vscode-file-tree-to-text-generator
vscode-file-tree-to-text-generator copied to clipboard
Unnecessary chars
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
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.
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):
unfortunately it's still not correctly working as expected when there are more levels of parents:
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.