With Atom's Tree View package, its easy to hide ignored files and VCS ignored files.
How can I exclude certain files from this ignore?
Why?
I still want have access to files like those contained in node_modules
, ( to know import paths, inspect package ReadMes ect. ), but I don't want to check them into git. Since they're not checked into git, I cant inspect those packages because they're hidden by Tree View.
Is there a way I can exclude certain names from the Tree View ignore?
To do this select Atom > Preferences. When your settings show up, click on Packages in the left hand column. Search for the installed package, tree-view. Once it comes up, click on Settings and then uncheck the option Hide VCS Ignored Files.
The tree view displays icons next to files. These icons are customizable by installing a package that provides an atom. file-icons service.
It's in nuclide-package -> settings -> NUclide-file-tree and toggle: Hide Ignored Names.
Yes. Here is an example:
Preferences -> Settings > Core Settings > Ignored Names: *.pyc, *.tmp
Preferences -> Settings > Packages > tree-view > check Hide Ignored names
The answer of @wisbucky is the correct one.
But if you want to hide files from .gitignore
from tree-view
by default and be able to display it with a keyboard shortcut, here is your solution :
- You can toggle whether either VCS ignored files or ignored names are displayed in the Tree View using the
tree-view:toggle-vcs-ignored-files
andtree-view:toggle-ignored-names
commands, respectively- The
tree-view:toggle-vcs-ignored-files
command is mapped toI
by default when the Tree View is focused
Source : lee-dohm on github
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With