Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

"find text" not work in file type based color

 
Post new topic   Reply to topic    Total Commander Forum Index -> Total Commander (English) Printable version
View previous topic :: View next topic  
Author Message
xbeta
Junior Member
Junior Member


Joined: 03 Jan 2006
Posts: 18

PostPosted: Fri Jul 25, 2008 12:39 am    Post subject: "find text" not work in file type based color Reply with quote

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:
[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 Fri Jul 25, 2008 2:00 am; edited 1 time in total
Back to top
View user's profile Send private message
icfu
Power Member
Power Member


Joined: 10 Sep 2003
Posts: 6023

PostPosted: Fri Jul 25, 2008 1:20 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Send e-mail
petermad
Power Member
Power Member


Joined: 05 Feb 2003
Posts: 3763
Location: Valsted, Denmark

PostPosted: Fri Jul 25, 2008 2:06 am    Post subject: Reply with quote

Quote:
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:
TXT={CP:ANSI}

to the TextSearch.ini file - it seems to work.
_________________
#524
Danish Total Commander Translator & Private Beta Tester
Win XP SP3 & Win 7 64bit. TC 7.55a

Get Extended Total Commander Menus
Back to top
View user's profile Send private message Send e-mail Visit poster's website
xbeta
Junior Member
Junior Member


Joined: 03 Jan 2006
Posts: 18

PostPosted: Fri Jul 25, 2008 3:13 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> Total Commander (English) All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Impressum: This site is maintained by Ghisler Software GmbH

Using phpBB © 2001-2005 phpBB Group