vscode-file-tree-to-text-generator icon indicating copy to clipboard operation
vscode-file-tree-to-text-generator copied to clipboard

Unnecessary chars

Open skovalev opened this issue 6 years ago • 2 comments

Current:

┃ ┃ ┃ ┗ roller2.gif
┃ ┃ ┗ js/
┃ ┃ ┃ ┣ angular.js
┃ ┃ ┃ ┣ moment.js
┃ ┃ ┃ ┣ sockjs.js
┃ ┃ ┃ ┗ underscore.js
┃ ┣ css/
┃ ┃ ┗ style.css

Suggested:

┃ ┃ ┃ ┗ roller2.gif
┃ ┃ ┗ js/
┃ ┃   ┣ angular.js
┃ ┃   ┣ moment.js
┃ ┃   ┣ sockjs.js
┃ ┃   ┗ underscore.js
┃ ┣ css/
┃ ┃ ┗ style.css

skovalev avatar Sep 22 '19 11:09 skovalev

Hey, I like the suggestion. I Am wondering if the result can be reached by adjusting the masks or indent configuration But I think currently it's not possible as there is no distinction between the indent levels. Do you have an suggestion which can fit also other syntaxes exept ASCII. My general goal is to have alsways a general solution so that one is able to define custom tree configs. So changing hte behaviour could cause a change of the ASCII defaults in my opinion. But it shouldn't affect other configurations.

Feel also free to check implementing / changing the behaviour by yourself and sending me a PR.

d-koppenhagen avatar Sep 22 '19 11:09 d-koppenhagen

First steps for fixing this issue were made. I introduced a new indent string for the special case that the parent is the last one in it's subtree (indentParentDirIsLast):

Screen Shot 2019-09-27 at 20 30 29

unfortunately it's still not correctly working as expected when there are more levels of parents:

Screen Shot 2019-09-27 at 20 31 03

I will have a look at it the next days (I think I have to count the flag, to display the tree in an appropriate way.

d-koppenhagen avatar Sep 27 '19 18:09 d-koppenhagen