Alternative Quick Search

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: sheep, Hacker, Stefan2, white

Post Reply
User avatar
jaco
Junior Member
Junior Member
Posts: 55
Joined: 2006-11-15, 10:15 UTC
Location: Amsterdam
Contact:

Alternative Quick Search

Post by *jaco »

Hello Everyone,

I was in the mood for a little programming recently, and I came up with a nice way to add some extra functionality to TC.

I called it 'Quick Search Plus' and you can find it here:
http://www.geocities.com/jacokwak/TCQSP.html

It shrinks the filelist while typeing, eliminating the need for extra keystrokes to search for the right file.

Please note: Enter quits the program, but leaves the filelist in the filtered state until the program is started again.

Any comments are welcome.
User avatar
Lefteous
Power Member
Power Member
Posts: 9497
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2jaco
Hi,

wow a really clever idea to use the ignore list for filtering the file list :-D

It's a great proof of concept which demonstrates that it should be no problem to add a quick filter internally.
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post by *m^2 »

Great idea, but you should use %COMMANDER_INI% instead of %COMMANDER_PATH%
User avatar
jaco
Junior Member
Junior Member
Posts: 55
Joined: 2006-11-15, 10:15 UTC
Location: Amsterdam
Contact:

Post by *jaco »

2Lefteous,

Lets hope Mr. Ghisler feels the same way :-)

2m^2,

I tried to take ini-redirection in account, but I admit I didn't tst it very well, I'll look into it though
User avatar
StickyNomad
Power Member
Power Member
Posts: 1933
Joined: 2004-01-10, 00:15 UTC
Location: Germany

Post by *StickyNomad »

2jaco

Very nice thingy, thanks!
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

Nice, thanks! How do you send all the files to the ignore list? Can we have the source? I might try this in AHK...
I switched to Linux, bye and thanks for all the fish!
User avatar
jaco
Junior Member
Junior Member
Posts: 55
Joined: 2006-11-15, 10:15 UTC
Location: Amsterdam
Contact:

Post by *jaco »

2SanskritFritz,

I uploaded the source too, feel free to use it as you wish.
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

2jaco
Thank you, I have my questions answered now! Really nice idea!
I switched to Linux, bye and thanks for all the fish!
User avatar
Stitscher
Power Member
Power Member
Posts: 1058
Joined: 2004-02-17, 12:34 UTC
Location: Hamburg, Germany

Post by *Stitscher »

Very nice work. Thanks a lot.
jaco wrote:2Lefteous,

Lets hope Mr. Ghisler feels the same way :-)

2m^2,

I tried to take ini-redirection in account, but I admit I didn't tst it very well, I'll look into it though
Look at this Thread and you will read the answer. ;)

Stitscher
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

2jaco
For the ignore list you enumerate the current folder. If you read the panel list from TC with the LB_GETTEXT message, the filtering could work also in branch view. Not sure, just a thought.
I switched to Linux, bye and thanks for all the fish!
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post by *m^2 »

It should also work faster :D
User avatar
jaco
Junior Member
Junior Member
Posts: 55
Joined: 2006-11-15, 10:15 UTC
Location: Amsterdam
Contact:

Post by *jaco »

ah, LB_GETTEXT , I never thought of that!
Then again you don't see the full path when you press ctrl-B, so for branch view it is probably useless. :(
I could scan all subdirs of course, but that might take a really long time, better to forget about branch view altogether.
That it is a bit slow is because of the refresh needed in TC, I switch the 'use ignorelist' off and on again to make TC update the filelist, so for every letter you type, tc reads the directory and updates the listbox twice.
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

2jaco
Thanks for the nice tool.
I've put it to totalcmd.pl, I hope you don't mind it.

I only don't like one thing in it. I've a large ignore list and I often turn it on/off. When I have it turned off (I don't use it) and I try to use your tool - it turns it on. It's ok, it must work this way but when I want to stop using it - I do what you suggest: "To return to the normal situation, and see all the files again, run the program and hit enter without typing anything.".

It really removes TCQSP filters but it leaves IgnoreListFileEnabled=1 :(
Is it possible TCQSP remembered the state of this parameter before it starts working and set it again when it finishes?
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
User avatar
jaco
Junior Member
Junior Member
Posts: 55
Joined: 2006-11-15, 10:15 UTC
Location: Amsterdam
Contact:

Post by *jaco »

Hi djk,
Thanks for uploading it, and no I don't mind.
But since you uploaded it already I guess I have to bring out a new version soon, I already feel the pressure ;-)

I put the IgnoreListFileEnabled thing on top of the list.

2m^2
Do I understand this correctly the new ignore list should be: path(%COMMANDER_INI%) + "tcignore.txt"
Or were you actually referring to something else?
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post by *m^2 »

When I wrote it, I thought that it should be so. But after checking, you should read IgnoreListFile entry in wincmd.ini. And if there's no fully qualified path, do what you said, %COMANDER_INI%\..\[filename if present, otherwise "tcignore.txt"]
Post Reply