I think something like a "negative selector" does not exist in Notepad ++.
I quickly took a look at 5.6.6 source code and it seems that the file selection mechanism comes down to a function called getMatchedFilenames() , which recursively goes through all the files under a specific directory, which in turn calls the following function to see if file name for template:
bool Notepad_plus::matchInList(const TCHAR *fileName, const vector<generic_string> & patterns) { for (size_t i = 0 ; i < patterns.size() ; i++) { if (PathMatchSpec(fileName, patterns[i].c_str())) return true; } return false; }
As far as I can tell, PathMatchSpec does not allow negative selectors.
However, you can enter a list of positive filters . If you can make this list long enough to include all extensions in your directory except .sh , you are there too.
Good luck
thomaspaulb
source share