FoxTrot Search Forum
FoxTrot Search for macOS Forum

Home » Public Forums » FoxTrot Search User Forum » Exclude subfolders from index by folder name (filter index)
Re: Exclude subfolders from index by folder name [message #1692 is a reply to message #1691] Fri, 25 August 2023 18:05 Go to previous messageGo to previous message
FoxTrot Engineering
Messages: 385
Registered: April 2020
Senior Member
This hidden preference will be implemented in FoxTrot Pro version 8 (the beta version will be announced soon). We won't surcharge the user interface with this.

You can use Prefs Editor to change these hidden preferences without using Terminal.app.

This setting will apply both for folders and files, and you can add multiple regular expressions if you have different patterns to skip.

The setting is ignored for folders that you directly add to the indexed locations; i.e. if you skip all folders named "cache", but explicitly add a specific "cache" folder to the indexed location, this one will be indexed.

A few examples:
To skip any folder whose name is exactly "cache" or "meta" (case sensitive), use one of these commands:
defaults write com.ctmdev.FoxTrotShared SkipPathRegex -string '/(cache|meta)$'
defaults write com.ctmdev.FoxTrotShared SkipPathRegex -array -string '/cache$' -string '/meta$'
To do the same only at any depth inside a folder whose name ends with ".repo", use one of these commands:
defaults write com.ctmdev.FoxTrotShared SkipPathRegex -string '\.repo/(.*/)?(cache|meta)$'
defaults write com.ctmdev.FoxTrotShared SkipPathRegex -array -string '\.repo/(.*/)?cache$' -string '\.repo/(.*/)?meta$'


Jérôme - FoxTrot Engineering
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: New Index of folders/files
Next Topic: Just a little note of thanks
Goto Forum:
  


Current Time: Wed Jun 26 15:26:04 GMT+2 2024