New behavior encountered. Hitting Enter in Search bar tabs to Results pane

Discussion related to "Everything" 1.5 Alpha.
Post Reply
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

New behavior encountered. Hitting Enter in Search bar tabs to Results pane

Post by raccoon »

I presume this is a new behavior of the current Alpha build, since I often press Enter in the search bar to affirm that my search results are current.

When I press the Enter key in the search bar, it now scrolls down and selects a random item in the Results pane. The Numpad Enter key does the same.

I tried this with Search As You Type enabled and disabled. Normally enabled.
void
Developer
Posts: 15855
Joined: Fri Oct 16, 2009 11:31 pm

Re: New behavior encountered. Hitting Enter in Search bar tabs to Results pane

Post by void »

Everything will select the most-run item when pressing ENTER from the search box.


To disable run history (and select the top most result):
  • In Everything, from the Tools menu, click Options.
  • Click the History tab on the left.
  • Uncheck Enable Run history.
  • Click OK.

I have put on my TODO list to add an option to customize the 'on search ENTER action'.
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

Re: New behavior encountered. Hitting Enter in Search bar tabs to Results pane

Post by raccoon »

void wrote: Fri Dec 17, 2021 2:33 amTo disable run history (and select the top most result)...
I don't remember focus ever leaving the Search bar. So, for clarity, I would prefer that focus stay in the Search bar after pressing Enter.

Thanks for explaining this. I do remember now seeing that recent runs request. As someone who doesn't look at or pay attention to recent runs, the item selection appeared to be arbitrary and "broken behavior."
void
Developer
Posts: 15855
Joined: Fri Oct 16, 2009 11:31 pm

Re: New behavior encountered. Hitting Enter in Search bar tabs to Results pane

Post by void »

Everything has always focused the most run result (Since Everything 1.4)

There's an option to keep the focus on the search bar:
  • In Everything, type in the following search and press ENTER:
    /search_edit_enter_focus_results=0
    If successful, search_edit_enter_focus_results=0 is shown in the status bar for a few seconds.
I'll be changing this new ini setting to 'search_edit_enter_action' in a future update.

search_edit_enter_focus_results
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

Re: New behavior encountered. Hitting Enter in Search bar tabs to Results pane

Post by raccoon »

void wrote: Fri Dec 17, 2021 3:21 am/search_edit_enter_focus_results=0
Gracias. I don't remember turning this on. I wonder if you changed the default setting recently, or maybe I did something silly.

noted: /search_edit_enter_focus_results=0 will become /search_edit_enter_action=<value>
void
Developer
Posts: 15855
Joined: Fri Oct 16, 2009 11:31 pm

Re: New behavior encountered. Hitting Enter in Search bar tabs to Results pane

Post by void »

I have never had search_edit_enter_focus_results=0 as a default.

It could have been a bug in a previous version.
Or, Everything not saving/loading the config correctly.
void
Developer
Posts: 15855
Joined: Fri Oct 16, 2009 11:31 pm

Re: New behavior encountered. Hitting Enter in Search bar tabs to Results pane

Post by void »

Everything 1.5.0.1290a replaces search_edit_enter_focus_results with search_edit_enter_action for more control.

To focus the search box and select all text when pressing ENTER from the search box:
  • In Everything, type in the following search and press ENTER:
    /search_edit_enter_action=6
  • If successful, search_edit_enter_action=6 is shown in the status bar for a few seconds.
Post Reply