Define color filter using saved search

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
kevinchan
Junior Member
Junior Member
Posts: 3
Joined: 2019-09-19, 01:36 UTC

Define color filter using saved search

Post by *kevinchan »

I define colors by type: FileLocked, Only search text: E-SafeNet.

Code: Select all

......
ColorFilters=1
[searches]
FileLocked_SearchFor=
FileLocked_SearchIn=
FileLocked_SearchText=E-SafeNet
FileLocked_SearchFlags=0|002002000020|||||||||0000|||
......
[Colors]
ColorFilter1=>FileLocked
ColorFilter1Color=255
......
Then all file names are color-coded, but there are actually only two files (file02.docx, file03.doc) that contain "E-SafeNet" .
What is the problem?
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Re: Define color filter using saved search

Post by *MVV »

Probably searching for text is ignored by coloring engine because it is too slow. But I couldn't find these restrictions in help.
User avatar
petermad
Power Member
Power Member
Posts: 14796
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Define color filter using saved search

Post by *petermad »

2kevinchan
I cannot make it work with SearchText

But it works with plugin, for example the filecontent plugin <http://totalcmd.net/plugring/filecontent.html>:

Code: Select all

FileLocked_SearchFor=
FileLocked_SearchIn=
FileLocked_SearchText=
FileLocked_SearchFlags=0|002002000020|||||||||0000|||
FileLocked_plugin=filecontent.Ansi contains E-SafeNet
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
kevinchan
Junior Member
Junior Member
Posts: 3
Joined: 2019-09-19, 01:36 UTC

Re: Define color filter using saved search

Post by *kevinchan »

MVV wrote: 2019-09-19, 07:31 UTC Probably searching for text is ignored by coloring engine because it is too slow. But I couldn't find these restrictions in help.
Thank you. I also think it's because I ignored SearchText.
kevinchan
Junior Member
Junior Member
Posts: 3
Joined: 2019-09-19, 01:36 UTC

Re: Define color filter using saved search

Post by *kevinchan »

petermad wrote: 2019-09-19, 20:51 UTC 2kevinchan
I cannot make it work with SearchText

But it works with plugin, for example the filecontent plugin <http://totalcmd.net/plugring/filecontent.html>:

Code: Select all

FileLocked_SearchFor=
FileLocked_SearchIn=
FileLocked_SearchText=
FileLocked_SearchFlags=0|002002000020|||||||||0000|||
FileLocked_plugin=filecontent.Ansi contains E-SafeNet


Thank you, but this plugin can not completely solve the problem, some files can not be color-coded.

The reason for this demand is that the company has deployed a set of encryption software to encrypt the newly created or modified files of the specified type (e.g. doc, docx, Java, etc.). The original files are not encrypted. When using TC, the color can be used to visually see which files are encrypted.

Find a plugin - firstByte, go straight to the first hexadecimal of the encrypted file. But it cannot be applied to a list of files in a Zip file.
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Re: Define color filter using saved search

Post by *MVV »

Yes, FirstByte plugin can only help in regular folders, but you can't apply content plugins to files in archive or in a file system.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Define color filter using saved search

Post by *ghisler(Author) »

You should restrict the searched files via the "name" field, otherwise TC would have to look at the contents of every file, including large video and audo files...
Author of Total Commander
https://www.ghisler.com
Post Reply