3 ms·
Sublime Text is a really nice and performant text editor, but one thing I unfortunately just can't get past is how excluding files from fuzzy-finding (Cmd+P) is
by denisw 8y ago
Sublime Text is a really nice and performant text editor, but one thing I unfortunately just can't get past is how excluding files from fuzzy-finding (Cmd+P) is handled. Files like .gitignore are not respected, so I need to kinda-replicate what is in .gitignore for every project in Sublime-specific project files. I thought I'd write a plugin for that, but it's not even possible to completely model .gitignore exclusions using Sublime's system because that's not powerful enough [1]. Lastly, excluded folders and files are removed _completely_ from the sidebar instead of, say, being greyed out like in Atom or VS Code. This means that if I do need to look into, say, a file inside node_modules/, I have to open it through other means.
[1]: https://forum.sublimetext.com/t/make-include-exclude-patterns-good-enough-for-gitignore/36326 https://forum.sublimetext.com/t/make-include-exclude-pattern...
- deleted 8y ago[deleted]
- wbond 8y agoSome of the changes in this build augmented the existing options for filtering files and folders. In addition to completely removing node_modules, you can cause it to be ignored from Goto Anything by marking it as "binary", or exclude it from indexing if you don't want Goto Definition and Goto References to show for that. 3.1 also adds the ability to specify all of these filtering options per-folder. See https://www.sublimetext.com/docs/3/projects.html https://www.sublimetext.com/docs/3/projects.html for the details. My plan is to get .gitignore working natively in a future dev build. I have definitely heard the request from a number of users, and I can appreciate why people would want that option.
- dserodio 8y agoPlease add support for .ignore (used by ripgrep and ack) too.
- wbond 8y agoOpening an issue at https://github.com/SublimeTextIssues/Core/issues https://github.com/SublimeTextIssues/Core/issues is the best way to make sure this comment doesn't fall through the cracks of my memory. :-)
- denisw 8y agoIt‘s great to know that native .gitignore support is being considered! Definitely looking forward to that. :)
- giovannibajo1 8y agoThere are some hacks like this one: https://github.com/ExplodingCabbage/sublime-gitignorer/blob/master/README.md https://github.com/ExplodingCabbage/sublime-gitignorer/blob/...