Sublime Text file_exclude_settings not excluding file from search results - sublimetext3

I have the file
/Users/maxpleaner/Hover/website/ngapps/account/account.partials.js
that I want to exclude from my search results.
Present in the .gitignore is
ngapps/**/*.partials.js
which I would like to ignore via Sublime settings also. But at minimum, being able to exclude all .partials.js files would do the trick.
I tried putting "ngapps/**/*.partials.js" and */partials.js in my file_exclude_settings, but neither one of them actually works to exclude the file from the search results.
What am I doing wrong here? Thanks in advance for your help.

The problem was that I had it as file_exclude_settings but it's actually supposed to be file_exclude_patterns.
facepalm!

Related

How to make Sublime Text 3 respect the .gitignore settings?

How do I make Sublime Text 3 to respect the .gitignore settings when we do a Find Files in Folders ctrl+p or Find ctrl+f? The expected output is no files in .gitignore gets listed in either of the command's output.
I checked this answer Tell Sublime Text to ignore everything in .gitignore? but it doesn't seem to work as expected when I checked the output of ctrl+p. I am not sure if I am missing something.
Is there a way to achieve this? Any hacks are welcome too. For example, I read about file_exclude_patterns and folder_exclude_patterns settings. Is there any example of how to use that?
I found that the plugin mentioned in this answer worked for me: https://stackoverflow.com/a/25565420/375262
Don't forget the final crucial step of File, Exclude Git-Ignored after installation.

IntelliJ File mask not working on simple excluding file pattern! Why?

Follows this page https://www.jetbrains.com/help/pycharm/2016.1/find-and-replace-in-path.html?origin=old_help#mask , it should be able to exclude many files using "!" symbol in front of the regular pattern like: *.java, when doing text search inside IntelliJ projects.
On my project, when I fired Ctrl + Shift + F to do text search for string xyz. There's over 100+ results return in both *.ftl and *.java files. I tried to reduce the results on only ftl files by changing the "File mask(s)"-Option to "!*.java" . But it did not work! The result list is empty!
Googling on the excluding file pattern results in creating custom file filters for each particular search, which I don't want to maintain!
Do I miss something here or IntelliJ is just bad on this function (I'm using IntelliJ 15)? With Eclipse, the "File mask" was amazing!
You have to use
!*.java instead of !.java
As for IDEA 2019.1 Ultimate, it works for me(exclude with !*.yml or anything else).
If it does not in yours, as you only as .ftl file to exclude, why not add mask as *.java?
PS: what does not work is exclude some path, like "all files under out/ folder". With !out/* or anything ales it does not work.
Forget about File Mask and use Scope:
In Scope the options are unlimited where you can select folder include/exclude files or folders.
Excluding file paths in the Find in Path dialogue was not added until IntelliJ 2016.1 per this IntelliJ forum response.

vim: netrw to skip searching directory

When use :Ex to search files under a current project, I would like to search to skip certain directories. The netrm document says that "g:netrm_list_hide" option can be used to achieve this, but my experiments with the options shows it only applies to the filename but not the directory name.
The google search also yields no solution to this. Does anyone know a workaround?
Taken from http://vim.1045645.n5.nabble.com/Hiding-Subversion-directories-within-netrw-td1167827.html
To hide directory names just add a trailing slash when you list them. For example to hide the directory .git/ use the following.
let g:netrw_list_hide='^\.git/$'

SublimeText3 - Find all files without a string?

I've looked around quite a bit for an answer to this, but I cannot seem to find what I need. Is it possible with SublimeText3 > Find in Files to do a search for all files that DO NOT include a string?
I've tried toggling the Regular Expressions button beside "Find:" and entering a value, but I'm not a regex pro, so I may be doing it wrong?
For example, I want to find all files in a designated folder that DO NOT have the following string:
social-links
Any help would be greatly appreciated.
Search for all files in your directory in question (for anything, like a space or the letter e...assuming every file has a space or letter e!), and copy all those file-paths to a new file.
Search for all files with the word, and paste that path-list into a second file.
Sort both files, then compare them to see which lines--which paths--are missing from the has-the-word file. Those are the ones you want.
As far as a single find-in-files search, I don't see how you would do that in Sublime or any other basic text editor. Here is some more information:
https://unix.stackexchange.com/questions/26836/how-can-i-find-all-files-that-do-not-contain-a-text-string
Find files that does not contain a string
How to find all files that do NOT contain specific string in windows environment Visual Studio or any other IDE?
Good luck!

SublimeText 2 - find all occurences and save in file

I need to find all occurences of expression in all project files and saved into a separate file. (I need complete list of occurences).
It's possible? (If not, please advice made unpaid simple similar editor with this functionality).
Thanks
You can accomplish this by using Find In Files. Then paste the output in a separate file and save.

Resources