Re: Added find.exclude
Lorenzo Donati <[email protected]>
| Newsgroups | gmane.editors.scite.general |
|---|---|
| Message-ID | <[email protected]> |
On 16/07/2022 07:27, 'Neil Hodgson' via scite-interest wrote: > As I was annoyed by .bak and .orig files showing in “Find in Files”, > I added a find.exclude property to filter out files and directories > that match a set of patterns. This is most commonly needed when the > Files item in the dialog is empty or otherwise over-broad. > Nice addition. Thanks. > For example: find.exclude=*.bak *.orig debug release This doesn’t > search in any *.bak or *.orig files or search inside the debug or > release directories where there may be object files or other build > artifacts. > Wouldn't it be better to discriminate directories by adding a final slash/backslash? e.g. "debug/" Otherwise it would be impossible to avoid searching in files that have no extensions. E.g. how would one avoid searching inside a file simply named "makefile" or "README"? > As well as avoiding extra results, this can improve performance by > excluding binary files based on name rather than reading them. > Moreover, how complex is the supported pattern syntax? Is it just a shell glob or does it support regular expressions (e.g. like the search/replace dialog)? > Changes available from the repository hg clone > http://hg.code.sf.net/p/scintilla/scite > <http://hg.code.sf.net/p/scintilla/scite> or from > https://www.scintilla.org/scite.zip > <https://www.scintilla.org/scite.zip> Source > https://www.scintilla.org/wscite.zip > <https://www.scintilla.org/wscite.zip> Windows executable (64-bit) > > Neil > Cheers! -- Lorenzo -- You received this message because you are subscribed to the Google Groups "scite-interest" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/scite-interest/ed20cd7e-bf01-4b11-d337-89b028ec51f7%40tiscali.it.