Selecting items from successive searches

General discussion related to "Everything".
Post Reply
unearthed
Posts: 2
Joined: Sun Jan 08, 2017 6:47 pm

Selecting items from successive searches

Post by unearthed »

Hi All, I've just found I can make hardlinks (with Schingl's tools)http://schinagl.priv.at/nt/hardlinkshel ... nsion.html from a manual selection of items in an Everything search.
To go further is there a way in E to say run a search select some items, run another search and select and so on - I guess I'm describing a lightbox type selection scenario, or a tickbox at the start of a line. Currently I use Picasa to do this but if I can just hardlink that would save many steps.
void
Developer
Posts: 16743
Joined: Fri Oct 16, 2009 11:31 pm

Re: Selecting items from successive searches

Post by void »

Not easily, sorry.

To create a selection from multiple searches:
  • In Everything, perform a search.
  • Select the desired results and press Ctrl + Shift + C.
  • Paste the selection to Notepad (Ctrl + V)
  • Repeat above until you have your complete selection copied to notepad.
  • Save your notepad text to a txt file (save as UTF-8).
  • In Everything, from the Search menu, click Advanced Search.
  • At the bottom on the Advanced Search window, to the right of Search for a list of file names, click Browse.
  • Select your txt file from above and click OK.
  • Click OK.
Stamimail
Posts: 1122
Joined: Sat Aug 31, 2013 9:05 pm

Re: Selecting items from successive searches

Post by Stamimail »

To create a selection from multiple searches:
Hi, I tryed:
open 2 instances of Everything.
The one for search and select and then Copy (Ctrl+C)
Alt-Tab
for move to the second instance and then Paste (Ctr+V) (=create a filelist:"...")
Alt-Tab (to move back to the first instance for make a new search and all over again).

I think there is a bug?
trying:
filelist:"..."filelist:"..."
or with space to AND
filelist:"..." filelist:"..."
doesn't give the desired results.

I was trying also to omit the filelist: words and I noticed another thing:
"..." is stronger than |
For example: "program|files" won't give any result.
Why is it? what is good for?
unearthed
Posts: 2
Joined: Sun Jan 08, 2017 6:47 pm

Re: Selecting items from successive searches

Post by unearthed »

Hi Void, Thanks. It sounds a bit of a kludge. Has anyone else ever asked for such functionality?
void
Developer
Posts: 16743
Joined: Fri Oct 16, 2009 11:31 pm

Re: Selecting items from successive searches

Post by void »

No, however, I can see multiple selections being useful..

Maybe an option to append files and filenames to clipboard?
Would happens when the users appends the same file twice or more?

Maybe a keep selected option (Right click -> Keep selected) which will keep the selection shown in the results, no matter the search.

I'll consider it for a future release.
I think there is a bug?
Do you want to combine the two filelists? please try:
filelist:"..." | filelist:"..."
I was trying also to omit the filelist: words and I noticed another thing:
"..." is stronger than |
For example: "program|files" won't give any result.
Why is it? what is good for?
This is by design, double quotes are needed to escape the |.
It's useful if you want to do a regex search, for example: regex:"gr(a|e)y"
Stamimail
Posts: 1122
Joined: Sat Aug 31, 2013 9:05 pm

Re: Selecting items from successive searches

Post by Stamimail »

This is by design, double quotes are needed to escape the |.
It's useful if you want to do a regex search, for example: regex:"gr(a|e)y"
Are you sure that the double quotes are part of the regex syntax in regex engines?
I tried it in online regex tester https://regex101.com/, and it seems that " is literal ".
If so, the regex in Everything should be:
regex:gr(a|e)y
That's what the user will try.
Oh, I think now you're trying to solve a case like this:
regex:gr(a|e)y OR regex:gr(a|e)z
regex:gr(a|e)y | regex:gr(a|e)z
Maybe to write in Help > Search Syntax
regex:"..."
or
regex:/.../
void
Developer
Posts: 16743
Joined: Fri Oct 16, 2009 11:31 pm

Re: Selecting items from successive searches

Post by void »

The normal Everything syntax applies when using the regex: modifier.
A space and | will break the regex: term.
Use double quotes to escape spaces and |.

I have on my TODO list to eat the | with the regex modifier.
If you want to escape a " with the regex modifier, search for:
regex:\x22

I'm not sure you'll see any results as " is an invalid filename character.

If you want the true regex syntax you will need to enable regex mode from the Search menu.
Maybe to write in Help > Search Syntax
regex:"..."
or
regex:/.../
A suggestion drop down may help here, after the user types regex: a drop down could show some basic regex syntax, such as " " for space and "|" for |
Post Reply