Define color filter using saved search

English support forum

Moderators: Stefan2, white, sheep, Hacker

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 » 2019-09-19, 01:53 UTC

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: 8322
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Re: Define color filter using saved search

Post by *MVV » 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.

User avatar
petermad
Power Member
Power Member
Posts: 8488
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Re: Define color filter using saved search

Post by *petermad » 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
License #524 (1994)
Danish Total Commander Translator
TC 9.22a 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 (1903) 64bit, 'Everything' 1.4.1.935 (x64)
TC 3.0b10 on Android 6.0
Get: Extended Total Commander Menus | 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 » 2019-09-20, 01:28 UTC

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 » 2019-09-20, 01:37 UTC

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: 8322
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Re: Define color filter using saved search

Post by *MVV » 2019-09-20, 06:53 UTC

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: 37630
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Define color filter using saved search

Post by *ghisler(Author) » 2019-09-20, 13:35 UTC

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
http://www.ghisler.com

Post Reply