Exclude .css files [message #1827] |
Mon, 29 July 2024 16:16 |
AJKS
Messages: 53 Registered: June 2020
|
Member |
|
|
How can I set an index to exclude .css files?
I assume they are indexed because they are text files, and I need other text files (eg html) to be indexed.
Can we add a function to exclude files by filetype or suffix?
Thanks
|
|
|
Re: Exclude .css files [message #1828 is a reply to message #1827] |
Mon, 29 July 2024 16:19 |
AJKS
Messages: 53 Registered: June 2020
|
Member |
|
|
Also, can I use a smart exclusion tso it knows to not index a folder id the folder is called "CSS" or "JS" or "XML" or whatever.
Thanks
|
|
|
Re: Exclude .css files [message #1840 is a reply to message #1827] |
Tue, 27 August 2024 12:10 |
FoxTrot Engineering
Messages: 406 Registered: April 2020
|
Senior Member |
|
|
You can enter a Terminal.app command for this. See "Disabling Indexing Specific File Types" in our FAQ:
to disable indexing the contents of a specific file type (replace extension by the actual filename extension); you will then need to rebuild your index:
defaults write com.ctmdev.FoxTrotShared Aliases -array-add "{type='extension'; as='';}"
Jérôme - FoxTrot Engineering
|
|
|
Re: Exclude .css files [message #1841 is a reply to message #1828] |
Tue, 27 August 2024 12:18 |
FoxTrot Engineering
Messages: 406 Registered: April 2020
|
Senior Member |
|
|
Quote:Also, can I use a smart exclusion tso it knows to not index a folder id the folder is called "CSS" or "JS" or "XML" or whatever.
You can't do this at indexing time (you can only exclude folders you manually add to the "skipping these subfolders" pane).
You can however filter out files found in such folders at search time, by adding this criterion:
[then apply advanced filter] [full path] [does not contain the string (or "does not contain any of the strings"] [ignore case + multiple strings] [/css/—/js/—/xml/]
(use the em-dash character as a separator)
Jérôme - FoxTrot Engineering
|
|
|
|
|