QuickSearch eXtended

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

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
WatchUer
Senior Member
Senior Member
Posts: 243
Joined: 2003-02-22, 10:46 UTC
Location: China

Post by *WatchUer »

Samuel wrote:
fenix_productions wrote:2Samuel
WatchUer wrote:Search for: "!.pdf"
Find: cat.bmp
Find not: cat.pdf

This does not work.
Actually, negate search won't work when match_beginning=1.
Its not a bug. The examples are written for the default values in "tcmatch.ini". The "!" before the search string just negates the result. All excluded files are included and vice versa.

If you search for ".pdf" (match_beginning=1) you will not find "cat.pdf", because it doesn't start with a ".". So "!.pdf" will find "cat.pdf".

You can search for: " .pdf" to find "cat.pdf" and "! .pdf" will not find "cat.pdf".
Sorry, with match_beginning=1, I can't type the space character after '!'.
User avatar
Samuel
Power Member
Power Member
Posts: 1930
Joined: 2003-08-29, 15:44 UTC
Location: Germany, Brandenburg an der Havel
Contact:

Post by *Samuel »

Please use the option: "allow_empty_result=1" in "tcmatch.ini".
The problem is: " " finds anything and so "! " finds nothing.
If you dont have the option "allow_empty_result=1" then TC just ignores the space because it would lead to an empty search result.

You could also copy "! .pdf" from notepad and paste it via contextmenu.
User avatar
WatchUer
Senior Member
Senior Member
Posts: 243
Joined: 2003-02-22, 10:46 UTC
Location: China

Post by *WatchUer »

Got it, thank you.
ivanco9
Junior Member
Junior Member
Posts: 5
Joined: 2009-07-22, 22:29 UTC

Post by *ivanco9 »

What do you think about Everything.

Will be wonderful if the quick search extended will be integrated with Everything

Or If Quick Search Extender will search in the children directory of the current directory
User avatar
Samuel
Power Member
Power Member
Posts: 1930
Joined: 2003-08-29, 15:44 UTC
Location: Germany, Brandenburg an der Havel
Contact:

Post by *Samuel »

ivanco9 wrote:What do you think about Everything.
I think Everything is a good File Indexing search, but I use Locate.
ivanco9 wrote:Will be wonderful if the quick search extended will be integrated with Everything.
Do you mean I should integrate "QuickSearch eXtended" in Everything or do you mean I should integrate Everything in "QuickSearch eXtended". I dont understand both ways.
Everything has already RegEx, etc. support and I cant get how I could use Everything in "QuickSearch eXtended". It searches on the whole Drive and not only the current folder. There are also some technical problems.
ivanco9 wrote:Or If Quick Search Extender will search in the children directory of the current directory
This will slow down the procedure very much. Why do you want that?
If you dont know where your files are please use Everything or Locate.
Does anyone support searching in subfolders?

Like:

Code: Select all

Search for: tcmatch (in C:\Program Files\)

Find:
C:\Program Files\totalcmd (because of tcmatch.dll etc.)
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

2Samuel
I think that searching in subfoders would be too much for QSX. QS should focus on filtering of the current files list and stay away from hidden data. I see no reason why should it work as in your example. From my point of view this is overkill.

If I want to see what is below, I can switch to branch view and use QS then.

P.S. I am also Locate32 user :)
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
User avatar
Samuel
Power Member
Power Member
Posts: 1930
Joined: 2003-08-29, 15:44 UTC
Location: Germany, Brandenburg an der Havel
Contact:

Post by *Samuel »

I agree to not include it.

ivanco9
If you (or someone) really need that create a wdx plugin that just concatenates the files in subfolder to a long string.
ivanco9
Junior Member
Junior Member
Posts: 5
Joined: 2009-07-22, 22:29 UTC

Post by *ivanco9 »

Samuel wrote: It searches on the whole Drive and not only the current folder. There are also some technical problems.
...
If you dont know where your files are please use Everything or Locate.
I am trying to explain what I mean.
Look the plugin FSE for totalcmd. This plugin allows fast search through external engine like Everything or Locate

I think, that using this plugin is not easy, because the user need to switch to it, type what he want to search, see the results and go to target directory...

Therefore, I prefer to launch Everything (or Locate) and use it for search under the following scenario:
I am opening Everything, specify the "search in" for example typing "d:\code" , type what I want to search in this directory/subdirectories and open search result directory in the totalcmd (see Everything's faq
How can I set "Everything" to use an external file manager?)

But, If I will be able to use Quick Search for this, will use current directory for specify "search in" and will see the result of search of Everything/Locate in totalcmd panel that will be very useful, i think not only for me.
User avatar
Samuel
Power Member
Power Member
Posts: 1930
Joined: 2003-08-29, 15:44 UTC
Location: Germany, Brandenburg an der Havel
Contact:

Post by *Samuel »

This can't be done because TCs QuickSearch works in a different way:
The match function is called for all currently displayed files in the panel. All I can do for a match function call is to say "yes" or "no" to the file. If I say "yes" its not filtered otherwise it is filtered out.

I do not give in a list of files to display in the panel. I have to filter the current.

All I can do is the following: When the match function should decide about saying "yes" or "no" to a folder I could look into that folder and look for matching files. If a file inside the folder matches I could say "yes" to the folder. (So the folder would be displayed and not the file itself.)

All you could do is using branch view. Press "Ctrl+b" and then filter files with QuickSearch.
ivanco9
Junior Member
Junior Member
Posts: 5
Joined: 2009-07-22, 22:29 UTC

Post by *ivanco9 »

Unfortunately, sometimes it is impossible, for example I have a folder "d:\code", there are many code-projects (work copy of subversion repository). There are many .svn files and folders as result the full construction branch view (ctrl + b) occupies about 3 minutes.

But I know that I want to find some files like this simple pattern: "*Repository.cs"

IMO Everything/Location + TotalCmd (when I can get search result in the TC panel) is the best shell explorer in the world :-)
User avatar
Samuel
Power Member
Power Member
Posts: 1930
Joined: 2003-08-29, 15:44 UTC
Location: Germany, Brandenburg an der Havel
Contact:

Post by *Samuel »

Nothing I can do.

My opinion: If you use Everything more then once a week, then you should consider structuring your folders.
I use it from time to time if I search some files in "documents-and-settings-jungle". :D

Edit: Whats so difficult to press on a ButtonBar button, write the search terms and finally doubleclick on the file to open it in TC?
Its almost the same like TCs internal search.
Last edited by Samuel on 2009-07-24, 10:07 UTC, edited 2 times in total.
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

2ivanco9
It is impossible to get what you want using tcmatch.dll.

Did you try to configure FSE plugin? It supports both: Locate32 and Everything. With user commands and proper shortcuts assignment it might be possible to get close enough to what you need.
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
ivanco9
Junior Member
Junior Member
Posts: 5
Joined: 2009-07-22, 22:29 UTC

Post by *ivanco9 »

Samuel wrote:Nothing I can do.

My opinion: If you use Everything more then once a week, then you should consider structuring your folders.
I use it from time to time if I search some files in "documents-and-settings-jungle". :D

Edit: Whats so difficult to press on a ButtonBar button, write the search terms and finally doubleclick on the file to open it in TC?
Its almost the same like TCs internal search.
I'm a programmer, typing on a keyboard for me is easy way to get what i want. Therefore I use Everything because it is the quickest and easiest way to get some files. For this purpose, I use "TypeAndRun" instead of "Windows Start Menu" too..

1/2 OFFTOP
Question about buton on the QSE .. Can I replace the action of button on the QSE and use it for get typed parameters and to send it to any other application - to the Everything application for example ?
ivanco9
Junior Member
Junior Member
Posts: 5
Joined: 2009-07-22, 22:29 UTC

Post by *ivanco9 »

fenix_productions wrote:2ivanco9
It is impossible to get what you want using tcmatch.dll.

Did you try to configure FSE plugin? It supports both: Locate32 and Everything. With user commands and proper shortcuts assignment it might be possible to get close enough to what you need.
I tried to use FSE but for me faster to open Everything and to type what I want, and after get results go to the TotalCmd Panel
User avatar
Samuel
Power Member
Power Member
Posts: 1930
Joined: 2003-08-29, 15:44 UTC
Location: Germany, Brandenburg an der Havel
Contact:

Post by *Samuel »

There is only this function in the "tcmatch.dll":

Code: Select all

BOOL __stdcall MatchFileW(WCHAR* wcFilter,WCHAR* wcFilename);
There is no button function. You could of cause write your own "tcmatch.dll" detecting whenever "wcFilter" changes. Then you could send it to Everything. I dont get how this could help, because you do not get the Files back to TC automatically.

Edit: I also open locate itself, instead of using FSE. its easier.

@a Moderator: Perhaps this should be split to: "[Req] Better integration of Everything/Locate"
Post Reply