"find text" not work in file type based color

English support forum

Moderators: sheep, Hacker, Stefan2, white

Post Reply
User avatar
xbeta
Junior Member
Junior Member
Posts: 25
Joined: 2006-01-03, 11:28 UTC
Location: China PR
Contact:

"find text" not work in file type based color

Post by *xbeta »

update 2008-07-25:
thanks to icfu's reply.
conclusion:
- yes, find text did not work in this case directly
- for performance reseons
- if you really want it, use content plugin

------------------------------------------
TC can define colors by file type,
and here, I think, file type means a set of options of file search.

among these options, there is a "find text".
It works for search, but NOT work for color.

eg: highlight *.txt ONLY with string "done"
but all .txt highlighted.

Code: Select all

[searches]
done_SearchFor=*.txt
done_SearchIn=
done_SearchText=done
done_SearchFlags=0|000002000020|||||||||0000|

[Colors]
ColorFilter1=>done
ColorFilter1Color=16711680 
tested:
my daily used TC,
a origin TC (just setup, no more options & plugins),
both v7.03,
windows XP SP2 Simplified Chinese

I got the same result.
find no clues when searching this forum.
maybe this one have some relations:
http://ghisler.ch/board/viewtopic.php?t=10182
Last edited by xbeta on 2008-07-25, 08:00 UTC, edited 1 time in total.
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

TC would not be usable anymore if on each directory change it would have to scan big files for text...

If TC will be equipped with some kind of desktop search functionality one day, it would be feasible to do that, because then it could load the information from database, without stressing the hard disk permanently.

Until then, as explained in the linked thread, you have to use content plugins, like TextSearch:
http://www.totalcmd.net/plugring/TextSearch.html

Read the readme, you have to uncomment plaintext searching!

Anyway, make sure that your box is fast enough and the files are small enough...

Icfu
This account is for sale
User avatar
petermad
Power Member
Power Member
Posts: 9962
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Post by *petermad »

Read the readme, you have to uncomment plaintext searching!
If you don't want to install .Net Framework 2.0 (in order to use the included IFilter for searching in .txt files) then just add:

Code: Select all

TXT={CP:ANSI}
to the TextSearch.ini file - it seems to work.
License #524 (1994)
Danish Total Commander Translator
TC 9.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (20H2) 64bit, 'Everything' 1.4.1.992 x64
TC 3.20b1 on Android 6 & 11
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
xbeta
Junior Member
Junior Member
Posts: 25
Joined: 2006-01-03, 11:28 UTC
Location: China PR
Contact:

Post by *xbeta »

thanks a lot.
this requriement is from somebody else.
I have forward these explanations and solutions to him.
and, suggest him to avoid using TC this way.
Post Reply