Focus search on un-hide

Found a bug in "Everything"? report it here
Post Reply
enduser
Posts: 24
Joined: Mon May 02, 2022 2:34 pm

Focus search on un-hide

Post by enduser »

The option "Focus search on activate" under General | Search when unchecked works for when the window is un-minimized but not for when the window is un-hided (hide_on_close=1) i.e. it still focuses the search bar, so pressing the down arrow after un-hiding the window takes me to the top instead of below the previous selection.
void
Developer
Posts: 17152
Joined: Fri Oct 16, 2009 11:31 pm

Re: Focus search on un-hide

Post by void »

Thank you for the issue report enduser,

This is currently by design.

The unhidden window is still 'activated', so the search bar is focused.

I will consider an option to prevent focusing the search bar after unhiding a window.
enduser
Posts: 24
Joined: Mon May 02, 2022 2:34 pm

Re: Focus search on un-hide

Post by enduser »

void wrote: Thu Jun 02, 2022 12:33 pm I will consider an option to prevent focusing the search bar after unhiding a window.
any update on this?
void
Developer
Posts: 17152
Joined: Fri Oct 16, 2009 11:31 pm

Re: Focus search on un-hide

Post by void »

Minimize on close in Everything 1.5 might give better experience:
  • In Everything 1.5, copy and paste the following into your Everything search box:
    /minimize_on_close=1
  • Press ENTER in your Everything search box.
  • If successful, minimize_on_close=1 is shown in the status bar for a few seconds.
    (the default is /minimize_on_close=0 )
Now when you close an Everything window it minimize to the taskbar.
How are you showing a new Everything window? -depending on how you open an Everything window, the search box may still be focused.



Please consider the -focus-results command line option in Everything 1.5:

Launch Everything with -focus-results command line option.

For example:
Everything.exe -focus-results

This might not be desirable if you wanted to keep the focus on the search box.

-focus-results
enduser
Posts: 24
Joined: Mon May 02, 2022 2:34 pm

Re: Focus search on un-hide

Post by enduser »

I toggle the existing window with double_ctrl (viewtopic.php?p=45175#p45175)
/double_ctrl_action=3

close/hide it to the tray (viewtopic.php?p=45567#p45567)
/hide_on_close=1

/minimize_on_close=1 doesn't work with /double_ctrl_action=3, it won't bring up the window right after minimizing/closing it (probably because the window is still active/selected)

I think I've found a solution (I should've found it way earlier tbh)
/focus_search_on_show_window=0
(the default is /focus_search_on_show_window=1)

only problem is that the text seletction/cursor is reset to the end after unhiding (but thats not a big deal)
enduser
Posts: 24
Joined: Mon May 02, 2022 2:34 pm

Re: Focus search on un-hide

Post by enduser »

/focus_search_on_show_window=0 doesn't toggle/bring up the window to the front with /double_ctrl_action=3 if the window is not selected/active (works fine if it is minimized/closed to the tray), /focus_search_on_show_window=1 works in all 3 situations (selected, not selected, minimized/closed to the tray)
Post Reply