SublimeFileBrowser icon indicating copy to clipboard operation
SublimeFileBrowser copied to clipboard

Exclude files based on `.sublime-settings` and `.project-settings` files ?

Open kl0tl opened this issue 10 years ago • 6 comments

Why not using the patterns defined in folder_exclude_patterns and file_exclude_patterns (plus folder_exclude_patterns and file_exclude_patterns if inside a project) to filter files instead of relying on dired_hidden_files_patterns ?

kl0tl avatar May 30 '15 17:05 kl0tl

Then exe and psd files will be hidden by default, but you can launch them with space, so it might be not desirable to hide them. Maybe as an option, I dunno.

vovkkk avatar May 30 '15 17:05 vovkkk

Couldn’t those files still be shown if needed with "include_file_patterns": ['*.exe', '*.psd'] inside the project‘s settings file? With a flag disabled by default it wouldn’t bite anyone.

kl0tl avatar May 30 '15 18:05 kl0tl

Even as an option shouldn't be on by default. let's keep this plugin closer to a file browser rather than a sidebar. Sublime will eventually add more features to the sidebar but file browsing features of this plugin will always be unique.

aziz avatar May 31 '15 00:05 aziz

I’m not trying to mimic the sidebar, I use and like this plugin precisely because of those great file browsing features (great job btw !). I’m just confused by the upsides of using dired_hidden_files_patterns instead of taking advantage of the patterns that may already be defined inside the user’s preferences or project’s settings. Of course it shouldn’t be enabled by default. I could take a stab at it if can help !

kl0tl avatar May 31 '15 01:05 kl0tl

We appreciate any PR. I don't mind having a settings to integrate with sublime ignored files.

aziz avatar May 31 '15 02:05 aziz

It would be nice to exclude files based on .gitignore file as well. Maybe by using one more option

denisinvader avatar May 10 '19 16:05 denisinvader