agconti
agconti

Reputation: 18123

Exclude certain files from Atom Tree View ignore

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?

Upvotes: 12

Views: 4009

Answers (2)

wisbucky
wisbucky

Reputation: 38013

Yes. Here is an example:

Preferences -> Settings > Core Settings > Ignored Names: *.pyc, *.tmp

Preferences -> Settings > Packages > tree-view > check Hide Ignored names

Upvotes: 9

abumalick
abumalick

Reputation: 2346

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 and tree-view:toggle-ignored-names commands, respectively
  • The tree-view:toggle-vcs-ignored-files command is mapped to I by default when the Tree View is focused

Source : lee-dohm on github

Upvotes: 3

Related Questions