Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 452
agconti Avatar asked Sep 11 '15 15:09

agconti


People also ask

How do I show ignored files in atom?

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.

What is Treeview atom?

The tree view displays icons next to files. These icons are customizable by installing a package that provides an atom. file-icons service.

How to show. env file in Atom?

It's in nuclide-package -> settings -> NUclide-file-tree and toggle: Hide Ignored Names.


2 Answers

Yes. Here is an example:

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

Preferences -> Settings > Packages > tree-view > check Hide Ignored names
like image 84
wisbucky Avatar answered Oct 09 '22 09:10

wisbucky


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

like image 27
abumalick Avatar answered Oct 09 '22 08:10

abumalick