FoxTrot Search Forum
FoxTrot Search for macOS Forum

Home » Public Forums » FoxTrot Search User Forum » json file content - not indexed
Re: json file content - not indexed [message #1251 is a reply to message #1250] Wed, 18 August 2021 18:18 Go to previous message
FoxTrot Engineering
Messages: 414
Registered: April 2020
Senior Member
.json files are currently not handled as source code. You can however use a FoxTrot hidden preference to handle them as another file type: for example .txt or .xml.

If you choose to index them as xml, you will also need to enable indexing xml files (which is disabled by default) in "indexed contents of files", in your index settings. Then .json files will be categorized as xml files.

To do so, quit FoxTrot, then copy and paste the following command to a Terminal.app window:
defaults write com.ctmdev.FoxTrotShared Aliases -array-add "{type='json'; as='xml';}"
Note that this command is only valid for FoxTrot 7.1; for earlier versions, use com.ctmdev.FoxTrot instead of com.ctmdev.FoxTrotShared

After that, relaunch FoxTrot and rebuild your index (updating may not be sufficient). In some cases, rebooting your Mac is also required (this should not be the case, but this happens: the change you make in Terminal is not seen by FoxTrot until you reboot).

You may also use third party app Prefs Editor to edit this hidden preference, instead of using Terminal.app.

See also our FAQ


Jérôme - FoxTrot Engineering
 
Read Message
Read Message
Previous Topic: problems on Apple Silicon finding Scapple files
Next Topic: Installed Foxtrot, spinning wheel problem
Goto Forum:
  


Current Time: Fri Jan 31 12:54:12 GMT+1 2025