[Solved in Beta 5] TC9 Beta 2: Everything Search Syntax

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Rob Weinstein
Junior Member
Junior Member
Posts: 45
Joined: 2006-06-10, 21:41 UTC
Location: Arizona

[Solved in Beta 5] TC9 Beta 2: Everything Search Syntax

Post by *Rob Weinstein »

Hello,

Is there a way to tell TC9 to use Everything's search syntax?

I've been using Everything for about a year now so I've been eagerly awaiting TC9's integrated Everything search. I just installed TC9 Beta 2 and I've been testing its search and I'm surprised that TC9's implementation doesn't appear to recognize the Everything search syntax that I'm accustomed to using.

A few particulars:

TC9.0 Beta 2 64-bit (EVERYTHING64.DLL is in c:\totalcmd\)
Everything 1.3.4.686 (x64) already installed
Windows 7 Pro SP1 64-bit

Currently, I use Everything to find tagged Visio drawings (I have hundreds). For example, my drawings might be named something like this:

vnnnn.tag1.tag2.tag3.tagN.vsd (where nnnn is a serial number, i.e., 1000, 1001, 1002, ...)

Here are some example tagged files:

v1009.dsss.dft.timing.vsd
v1010.dsss.dft.figure.timing.vsd
v1011.product.dsss.fir.filter.fpga.vsd
v1012.product.dsss.mnc.vsd
v1013.acm.big-picture.fpga.vsd
v1014.product.dsss.fpga.pll.symbol-loop.vsd
v1015.figure.fpga.top-level.vsd
v1016.demod.dsss.figure.top-level.vsd

With Everything, if I type into the search box something like this:

.vsd timing

Then Everything will just show me the two files that contain timing diagrams:
v1009.dsss.dft.timing.vsd
v1010.dsss.dft.figure.timing.vsd


Then if I add "figure" to the search string:

.vsd timing figure

Everything will narrow the results to just show me timing diagrams that are formatted as figures:
v1009.dsss.dft.figure.timing.vsd

In TC9 (with 'Everything' checked), if I type the following into the search for box:

Search for: timing

I get:
v1009.dsss.dft.timing.vsd
v1010.dsss.dft.figure.timing.vsd


So far so good. Now if I add "figure", i.e.,

Search for: timing figure

I get [No files found]. Reading the help, I see the syntax is different and I need to add wild cards, so I change my search string as follows,

Search for: *timing* *figure*

then I get:
v1015.figure.fpga.top-level.vsd
v1016.demod.dsss.figure.top-level.vsd
v1009.dsss.dft.timing.vsd
v1010.dsss.dft.figure.timing.vsd


Instead of narrowing the search, it ADDS to the results. This is NOT what I want. So I tried,

Search for: *timing* AND *figure*

and I get the same results.

Is there a setting I can use to make it work like Everything?

Thanks,

Rob
Last edited by Rob Weinstein on 2016-07-14, 14:52 UTC, edited 1 time in total.
TW
Senior Member
Senior Member
Posts: 392
Joined: 2005-01-19, 13:35 UTC

Post by *TW »

RegEx does work together with everything search, but it's not really as easy.
licenced and happy TC user since 1994 (#11xx)
Rob Weinstein
Junior Member
Junior Member
Posts: 45
Joined: 2006-06-10, 21:41 UTC
Location: Arizona

Post by *Rob Weinstein »

Let me simplify the question...

Let's say I have these files:

v1009.dsss.dft.timing.vsd
v1010.dsss.figure.dft.timing.vsd
v1011.product.dsss.fir.filter.fpga.vsd
v1012.product.dsss.mnc.vsd
v1013.acm.big-picture.fpga.vsd
v1014.product.dsss.fpga.pll.symbol-loop.vsd
v1015.figure.fpga.top-level.vsd
v1016.demod.dsss.figure.top-level.vsd

If I only know the tags timing and figure, what do I type into the 'Search for:' field so the search results will only return this single file: v1010.dsss.figure.dft.timing.vsd?

I welcome solutions with and without RegEx.

Thanks,

Rob
User avatar
Ovg
Power Member
Power Member
Posts: 755
Joined: 2014-01-06, 16:26 UTC

Post by *Ovg »

2Rob Weinstein
Enable Regex and try

Code: Select all

figure\..+\.timing
It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 11.01 x64, Windows 7 SP1 x64
Rob Weinstein
Junior Member
Junior Member
Posts: 45
Joined: 2006-06-10, 21:41 UTC
Location: Arizona

Post by *Rob Weinstein »

Thanks Ovg, that works.

Of course, that solution assumes I already know that figure comes before timing. Is there a way find that file if the two terms are in any order?

Rob
User avatar
Ovg
Power Member
Power Member
Posts: 755
Joined: 2014-01-06, 16:26 UTC

Post by *Ovg »

(figure\..+\.timing|timing\..+\.figure), but in 9.0 beta2 doesn't work if Everything is checked :shock: :shock: :shock:
It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 11.01 x64, Windows 7 SP1 x64
Rob Weinstein
Junior Member
Junior Member
Posts: 45
Joined: 2006-06-10, 21:41 UTC
Location: Arizona

Post by *Rob Weinstein »

Thanks Ovg.

I can see where this is going, unfortunately, especially if I want to search for three or more terms in any order.

I did some googling and found I can use RegEx with something called positive lookahead to find multiple terms in any order like this:

(?=.*timing)(?=.*figure).*

It works beautifully on this Ruby RegEx editor: http://www.rubular.com/r/Xm0BUX0DcS

Unfortunately, it doesn't work in TC nor in the Everything GUI (maybe it's just a Ruby thing). I'm not a programmer and this is starting to get complicated - I think I may be heading down the wrong path.

I'm still open to suggestions.

Rob
User avatar
Ovg
Power Member
Power Member
Posts: 755
Joined: 2014-01-06, 16:26 UTC

Post by *Ovg »

2Rob Weinstein

try figure.+timing|timing.+figure
It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 11.01 x64, Windows 7 SP1 x64
User avatar
nsp
Power Member
Power Member
Posts: 1949
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Post by *nsp »

Ovg wrote:2Rob Weinstein

try figure.+timing|timing.+figure
For 3, 4 ... tags you will have to generate all combinations....

This is not optimal but.
What you can do is to do iterative searches.
First find all your vsd file
(Feed to listbox, select all)
Then search in selected files, the one that have timing
(Feed to listbox, select all)
Then search in selected files, the one that have figure
.....
User avatar
Ovg
Power Member
Power Member
Posts: 755
Joined: 2014-01-06, 16:26 UTC

Post by *Ovg »

2nsp
OP talked about two keywords or i'm wrong?
It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 11.01 x64, Windows 7 SP1 x64
User avatar
nsp
Power Member
Power Member
Posts: 1949
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Post by *nsp »

Ovg wrote:2nsp
OP talked about two keywords or i'm wrong?
See
Rob Weinstein wrote:Thanks Ovg.

I can see where this is going, unfortunately, especially if I want to search for three or more terms in any order....
User avatar
Ovg
Power Member
Power Member
Posts: 755
Joined: 2014-01-06, 16:26 UTC

Post by *Ovg »

2nsp
Ok!
It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 11.01 x64, Windows 7 SP1 x64
Rob Weinstein
Junior Member
Junior Member
Posts: 45
Joined: 2006-06-10, 21:41 UTC
Location: Arizona

Solved with TC9 Beta 5

Post by *Rob Weinstein »

TC9 Beta 5 solves my problem!
HISTORY.TXT wrote:13.07.16 Release Total Commander 9.0 beta 5 (32/64)
13.07.16 Added: Experimental, not yet documented in help: Pass search parameters directly to "Everything" with prefix ev:, e.g. ev:<c: |d:> *.mp3 Note: All other search parameters except for the path field will still be applied to the results (32/64)
Now when I type:

ev:.vsd .timing

TC returns:
v1009.dsss.dft.timing.vsd
v1010.dsss.figure.dft.timing.vsd


Then if I add ".figure" to the search string:

ev:.vsd .timing .figure

TC returns the single file:
v1010.dsss.figure.dft.timing.vsd

This is exactly what I wanted and it works great.

Thanks Christian and everyone who contributed.

-Rob
User avatar
Horst.Epp
Power Member
Power Member
Posts: 7012
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

Thanks to Christian for the fast implementation of my suggestion to support Everything raw search strings. :D
This gives us the best of both tools in one environment.
Windows 11 Home, Version 24H2 (OS Build 26100.4351)
TC 11.55 RC7 x64 / x86
Everything 1.5.0.1396a (x64), Everything Toolbar 1.5.5.0, Listary Pro 6.3.2.88
QAP 11.9.0.4 x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50873
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Please let me know if you encounter any problem with the new ev: prefix!
Author of Total Commander
https://www.ghisler.com
Post Reply