Make the first result always auto selected

Have a suggestion for "Everything"? Please post it here.
Post Reply
fhill122
Posts: 2
Joined: Fri Jun 26, 2015 3:10 pm

Make the first result always auto selected

Post by fhill122 »

Hi
I'm wondering if this is easy to implement: Make the first result always auto selected to minimise the operation.

At present, if you want to launch the first searching result, you will have to press the enter key to go to the 1st result, then hit enter key again to launch it.
But if the first result is auto selected, you only need to hit press the enter once to immediately open it, or you need to press 1 less arrow key to go to your desired result. It will save one operation every time you search. And if you look at other search programs, like the native windows search (in start) or spotlight in mac, this is the way they implement it. It makes sense as it minimise the operation needed and I can see no drawbacks coming from it.

What do you guys think about it?
void
Developer
Posts: 15506
Joined: Fri Oct 16, 2009 11:31 pm

Re: Make the first result always auto selected

Post by void »

I will look into adding a keyboard shortcut to run the most run or top result.
You would be able to set this to Enter.

Thanks for the suggestion.
kellerza
Posts: 2
Joined: Thu May 26, 2016 8:27 pm

Re: Make the first result always auto selected

Post by kellerza »

Hi,

Taking the idea of selecting a single result a bit further, what is the possibility to automatically open the result if there is only a single result?

I use the URL handler 'es:search text' in combination with Tiddlywiki 5 quite a lot and this allows me to store searches with my notes. It would be really great if you can store links to files in the notes (depending on how specific your search text is) and a single click on the URL opens the document immediately. Note that most browsers don't allow direct linking with file://dir/file and with the power of Everything's behind your links, who needs full paths?

I use Tiddlywiki, but in essence it can be a way to provide more flexible links for any application in Windows (Word document, One Note, Outlook, etc)

Maybe it could be implemented as an option as part of the URL handler to "Open documents instead of everything on a single result"? (For security reasons it might be good to exclude executable files). If there are many or no results, Everything should open as normal, and you can look through your results or make your search string less specific until you find it.

Everything really is an indispensable tool to find things in our digital world!
6h97y3
Posts: 1
Joined: Thu Apr 21, 2022 6:00 am

Re: Make the first result always auto selected

Post by 6h97y3 »

Has this been added by now? I went through all the settings.

It'd be great to:

- launch the top result with enter by default (toggle able)
- and/or via custom shortcut for those who use it less often

Thank you for your efforts!
void
Developer
Posts: 15506
Joined: Fri Oct 16, 2009 11:31 pm

Re: Make the first result always auto selected

Post by void »

The closest thing Everything has at the moment is the search_edit_enter_action in Everything 1.5a.

With search_edit_enter_action set to 4, you can press ENTER ENTER from the search box to open the top result:
  • In Everything 1.5, type in the following search and press ENTER:
    /search_edit_enter_action=4
  • If successful, search_edit_enter_action=4 is shown in the status bar for a few seconds.
  • where 4 can be one of the following:
    • 0 = Do nothing
    • 1 = Focus most run result (default)
    • 2 = Focus last run result
    • 3 = Focus top visible result (if no result focus)
    • 4 = Focus top result
    • 5 = Focus bottom result
    • 6 = Focus search box and select all text


An alternative is to disable run history from Tools -> Options -> History.
Pressing Enter + Enter from the Search box would then open the top result.
This would also work in Everything 1.4.



I will consider adding a command to open the top result.
Thank you for the suggestion.
hasantr
Posts: 8
Joined: Sun Apr 23, 2017 11:01 am

Re: Make the first result always auto selected

Post by hasantr »

I loved using Double Enter. But it would be much better to have a shortcut to quickly run selections, such as the first result with Control+1 and the second result with Control+2.
void
Developer
Posts: 15506
Joined: Fri Oct 16, 2009 11:31 pm

Re: Make the first result always auto selected

Post by void »

I have put on my TODO list to add commands to execute result 1 through 12.

Thank you for your suggestion.
meteorquake
Posts: 388
Joined: Thu Dec 15, 2016 9:44 pm

Re: Make the first result always auto selected

Post by meteorquake »

Currently Tab-Enter will run the top result (as opposed to Enter-Enter) if there's not an existing one selected from a prior search

d
void
Developer
Posts: 15506
Joined: Fri Oct 16, 2009 11:31 pm

Re: Make the first result always auto selected

Post by void »

I am looking into an option to automatically select the top item and allow ENTER pressed from anywhere to execute the selected item.


I loved using Double Enter. But it would be much better to have a shortcut to quickly run selections, such as the first result with Control+1 and the second result with Control+2.
For now, consider creating a bookmark to open the first item:
  • In Everything 1.5.0.1311a+, from the Bookmark menu, click Add to bookmarks.
  • Change the Name to:
    Open Item #1
  • Change the Search to:
    /open 0
    where 0 is the zero-based result index to open.
  • Change the keyboard shortcut to:
    Ctrl + 1
  • Please also unbind Ctrl + 1 from Tools -> Options -> Keyboard


/open
hasantr
Posts: 8
Joined: Sun Apr 23, 2017 11:01 am

Re: Make the first result always auto selected

Post by hasantr »

void wrote: Sat Apr 30, 2022 1:03 am I am looking into an option to automatically select the top item and allow ENTER pressed from anywhere to execute the selected item.


I loved using Double Enter. But it would be much better to have a shortcut to quickly run selections, such as the first result with Control+1 and the second result with Control+2.
For now, consider creating a bookmark to open the first item:
  • In Everything 1.5.0.1311a+, from the Bookmark menu, click Add to bookmarks.
  • Change the Name to:
    Open Item #1
  • Change the Search to:
    /open 0
    where 0 is the zero-based result index to open.
  • Change the keyboard shortcut to:
    Ctrl + 1
  • Please also unbind Ctrl + 1 from Tools -> Options -> Keyboard


/open
Thanks I will try that.
Is there a way to use my 1.4 settings with 1.5? I haven't migrated all my settings to the beta yet.
tuska
Posts: 941
Joined: Thu Jul 13, 2017 9:14 am

Re: Make the first result always auto selected

Post by tuska »

hasantr wrote: Sat Apr 30, 2022 7:06 pm Is there a way to use my 1.4 settings with 1.5? I haven't migrated all my settings to the beta yet.
Hi,

The author has detailed the issues here:
- Import settings from Everything 1.4
- Import other settings
- Replacing my Everything 1.4 installation with the test version?
hasantr
Posts: 8
Joined: Sun Apr 23, 2017 11:01 am

Re: Make the first result always auto selected

Post by hasantr »

tuska wrote: Sat Apr 30, 2022 10:07 pm
hasantr wrote: Sat Apr 30, 2022 7:06 pm Is there a way to use my 1.4 settings with 1.5? I haven't migrated all my settings to the beta yet.
Hi,

The author has detailed the issues here:
- Import settings from Everything 1.4
- Import other settings
- Replacing my Everything 1.4 installation with the test version?
Thank you so much.
Post Reply