ExplodingCabbage / sublime-gitignorer

Sublime plugin that excludes from your Sublime project any files ignored by git
Do What The F*ck You Want To Public License
76 stars 11 forks source link

Allow restricting the scope of the ignoring to just the CTRL-P menu #6

Open ExplodingCabbage opened 10 years ago

ExplodingCabbage commented 10 years ago

At the moment, we exclude Git-ignored files from the entire project; you see them disappear from the folder view in the left sidebar. This may not always be desirable.

Some folks might want to only exclude them from CTRL-SHIFT-F or CTRL-P searches.

Manually handling exclusion from CTRL-SHIFT-F searches is, I think, possible with some beautiful hacks involving detecting search views by their syntax highlighting and then listening for changes to their content, parsing it, and stripping out blocks relating to ignored files.

I have no idea if excluding files from CTRL-P searches is possible without excluding them from the whole project, though. It may well simply not be.

ExplodingCabbage commented 9 years ago

I have no idea how to exclude files only from the CTRL-P menu without excluding them from the sidebar. I believe this is impossible. If anybody with a better knowledge of Sublime's API swings by and thinks otherwise, I would welcome being proved wrong.

evenfrost commented 9 years ago

Hey, I don't really know Sublime API, but binary_file_patterns setting can exclude files from Pallete but not the sidebar.