sublime-gitignorer icon indicating copy to clipboard operation
sublime-gitignorer copied to clipboard

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

Open ExplodingCabbage opened this issue 11 years ago • 2 comments

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 avatar Jul 05 '14 23:07 ExplodingCabbage

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.

ExplodingCabbage avatar Nov 11 '14 19:11 ExplodingCabbage

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

evenfrost avatar Mar 13 '15 12:03 evenfrost