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

It would be good if this project could follow the gitignores for ignoring by default.

Open adambirds opened this issue 2 years ago • 3 comments

It would be good if this project could follow the gitignores for ignoring by default.

adambirds avatar Aug 15 '23 12:08 adambirds

First i thought: yes! But I re-thinked about it: The .gitignore file is used to not check-in code. Generating file-trees for documentation purpose is completely independent of this and the files to ignore in the generated tree are very individual depending on what you want to show. So setting this by default is not a good idea in my opinion. Probably a boolean flag for optionally enabling a feature to respect the .gitignore would be cool. But on the other side there are other ignore files such as . prettierignore or others.

d-koppenhagen avatar Aug 18 '23 19:08 d-koppenhagen

Yeah I think at least an option to follow it would be good. I think that .gitignore would be a good one to start over others like .prettierignore as that one and others are more aimed at just not running linters and are not usually as long as the .gitignore files.

adambirds avatar Aug 20 '23 01:08 adambirds

On this, if you'd be willing to point me to the correct part of the code i'd be happy to try and work on this.

adambirds avatar Aug 20 '23 01:08 adambirds