Re: How to exclude files by type (extension) from indexed folder [message #778 is a reply to message #760] |
Sat, 16 June 2018 16:10 |
Des Bw
Messages: 26 Registered: June 2017
|
Junior Member |
|
|
This worked for a while. For some reason, FT now failed to search these TEX
files again (no difference even if I run *defaults write com.ctmdev.foxtrot
Aliases -array-add "{type='tex'; as='txt';}"* hundreds of times)
On Friday, June 1, 2018 at 11:50:08 AM UTC+2, FoxTrot Engineering wrote:
>
> Des Bw wrote:
>
>> I want to exclude some file types from an indexed folder.
>>
>> I want to keep some plaintexts such as TEX to be indexed; but not Log
>> files.
>
> In Manage Indices / Indexed Data / Index contents of files, you can
> disable some file types, for example logs and generic xml files.
>
> Tex files are not indexed by contents, unless if you have a third-party
> application that declare them as plain text files (or if you have a tex
> Spotlight importer, possibly bundled with a tex editor application). In
> this case, they should be indexed if "plain text" is enabled in "Index
> contents of files" (or "document", in the case of a spotlight importer),
> and you can leave xml and log off.
>
>> The release note of Version 5.5.5 lists some kind of command-line
>> preference to exclude files by extension. But, I couldn't find any guide
> or
>> evidence on those preferences.
>
> If you don't have any third party application or importer to make tex
> files indexable, you can force FoxTrot to handle them as plain text files,
> by typing this command in Terminal.app (before launching FoxTrot):
>
> defaults write com.ctmdev.foxtrot Aliases -array-add "{type='tex';
> as='txt';}"
>
> To do the opposite (if tex files are actually indexed by content because
> of an application declaring tex as a plain text type, but you don't want to
> index them):
>
> defaults write com.ctmdev.foxtrot Aliases -array-add "{type='tex';
> as='';}"
>
> To do this for a filetype that have a specific binary header (in this
> example, to disable indexing .txt files with a uuencode header):
>
> defaults write com.ctmdev.foxtrot Aliases -array-add "{type='txt';
> headers=(); as='';}"
>
> to reset to the default settings:
>
> defaults delete com.ctmdev.FoxTrot Aliases
>
>
> Jérôme - CTM Engineering
>
>
> "FoxTrot Professional is the ONLY true indexing search solution out
> there that I can locate. ABSOLUTELY a life saver for text and content
> searches with a WAY cool preview window that is "live" in that you
> can copy and paste from it without launching the native application.
> If you try it, you'll wonder where you've been, man.
> I've tried all the others. This is a whole new ballgame."
> FoxTrot Professional Search user comment
>
> Download a demo version from www.foxtrot.ch
>
>
>
>
|
|
|