Find multiple files from within Directory Opus?

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
SuperDude
Posts: 221
Joined: Thu Sep 25, 2014 7:57 pm

Find multiple files from within Directory Opus?

Post by SuperDude »

Is it possible to find 2 or more file names at one time, using a single hotkey? I currently have Directory Opus and Everything configured like this:

1) I click on a file in a Directory Opus Lister.

2) I have assigned F6 as a hotkey, which, when pressed, passes this command to Everything:

Code: Select all

"C:\Everything\Everything.exe" -s {file}
Everything the finds all instances of that file. This currently only allows one file at a time to be found. Is there a way to click on 2 or more files in a Directory Opus Lister (or in Windows Explorer) and find those files using a single hotkey?
therube
Posts: 4955
Joined: Thu Sep 03, 2009 6:48 pm

Re: Find multiple files from within Directory Opus?

Post by therube »

Don't know Opus, so I'll relate to Altap Salamander (Servant Salamander).

Salamander

can create a popup menu, called via F9 key
so create a popup menu item called EVERYTHING
allows you to pass a list of (selected in Salamander) file names

argument: $(ListOfSelectedNames)
the list of names is sent space separated, so if I selected the files abc & 123,
$(ListOfSelectedNames) would have a value of "abc 123 "

EVERYTHING:
Command Line: c:/dev/everything/go.bat

GO.BAT:

Code: Select all

echo %1
- first variable only, so, abc
echo %*
- all variables, so "abc " & "123 "
echo %* > abc123
- send the list of file names to a file (abc123 in this case)
pause
sed -e "s/\s$//" -e "s/ /|/g" abc123 > abc1234
- format in a manner that Everything.exe will like
- remove the trailing space, then enter an OR between each variable
- so, "abc|123"
- write those edited results to another file, abc1234
pause
set /p XXX=<abc1234
- read the edited file, abc1234 into an environmental variable, XXX
pause
set X
- display all "X" environmental variables to make sure things look OK
echo "%XXX%"
- display our "XXX" environmental variable to make sure it looks OK
pause
pause
everything -s "%XXX%"
- send the results to Everything.exe
- Everything search line should show 'def123|def'
Perhaps similar can be done with Opus.

Opus would need

method to select multiple files
& to be able to send that "list", somewhere

need to be able to format that list in a fashion to be meaningful to Everything

in my case, i used the UNIX sed command to format the list of names being sent to Everything.


Let us know what you come up with.
Post Reply