Page 1 of 1

Select first result with a Command Line Option

Posted: Sat Mar 04, 2017 9:37 pm
by MrBuNo
Hi,

I'm currently using the following Command Line to search for files:

Code: Select all

"C:\Program Files\Everything\Everything.exe" -s "<search string>"
However, after Everything opens, the search box is selected. What I want is that the first item in the results is selected automatically.
Is it possible to add a new command line option that does exactly this? Something like "-selectresults".

Regards,
MrBuNo

Re: Select first result with a Command Line Option

Posted: Tue Mar 07, 2017 10:55 am
by void
I've added the following command line options to Everything 850b or later:
-focus-most-run-result
-focus-last-run-result
-focus-top-result
-focus-bottom-result

For example, focus the most run result in Everything:
Everything.exe -s "foo bar" -focus-most-run-result

For example, focus the top result in Everything:
Everything.exe -s "foo bar" -focus-top-result

For example, sort by size ascending and focus the bottom result in Everything:
Everything.exe -s "foo bar" -sort size-ascending -focus-bottom-result

Thanks for the suggestion.

Re: Select first result with a Command Line Option

Posted: Tue Mar 07, 2017 7:07 pm
by MrBuNo
Thank you! Works great.

Re: Select first result with a Command Line Option

Posted: Fri May 05, 2017 3:04 pm
by jeiea
I tested

Code: Select all

Everything.exe -s "foo bar" -sort size-ascending -focus-bottom-result
with v1.4.1.870b, Win10RS1, but it's not working.

On the first execution, Everything fills search box but not select results. On the second execution (the window is already opened) it selects the result, but it's not bottom but top.

Am I missing something?

Re: Select first result with a Command Line Option

Posted: Sat May 16, 2020 9:05 am
by void