Provide global hotkey for search in current folder

Have a suggestion for "Everything"? Please post it here.
Post Reply
Fraka
Posts: 27
Joined: Thu Jan 12, 2017 5:07 pm

Provide global hotkey for search in current folder

Post by Fraka »

Hello!

I'd suggest a solution which is as comfortable like the original Windows search.
  • You have an explorer window open at C:\temp\blabla\
  • You press a hotkey defined by yourself (e.g. CTRL+SHIFT+F)
  • Everything should open with a search filter "C:\temp\blabla\" already applied.
    A trailing space and the cursor at the very end of the line should be provided to make instant typing of further keywords possible.
It's like calling everything.exe with the parameter -path, but it should work with a hotkey.
In Windows systems a similar function is pressing CTRL+F, so in a sense it should work as a replacement for that.

Why is it more comfortable?
It's breaking my workflow to always
  • switch one hand to the mouse and
  • go up one folder,
  • search the folder I was in,
  • right click it,
  • left click "search with Everything",
  • switch hand back to the keyboard and
  • start typing my keywords
instead of just
  • ctrl+f (or user defined hotkey) and
  • start typing.

I don't know if that is possible, it's just a suggestion.
We already tried to find a workaround solution, but failed so far.

Best regards,
Fraka
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

Re: Provide global hotkey for search in current folder

Post by void »

I've added the ini option hotkey_explorer_path_search in Everything 845b.

When this option is enabled, pressing an Everything hotkey that shows an Everything search window from a Windows Explorer window will set the search to the current path in Windows Explorer.

To enable this option:
  • In Everything, type in the following search and press ENTER:
    /hotkey_explorer_path_search=1
mapa4
Posts: 9
Joined: Tue Jan 17, 2017 9:28 am

Re: Provide global hotkey for search in current folder

Post by mapa4 »

Well done Fraka, you are very influent !

@void, it is a long time I have a dream for Everything : the Tab management ;-) So many thanks in advance to consider it !
Fraka
Posts: 27
Joined: Thu Jan 12, 2017 5:07 pm

Re: Provide global hotkey for search in current folder

Post by Fraka »

Thank you void, you are amazingly fast and it works well!
Maybe it will get it's own clickable checkbox option in a future version :)
mapa4
Posts: 9
Joined: Tue Jan 17, 2017 9:28 am

Re: Provide global hotkey for search in current folder

Post by mapa4 »

Fraka wrote:Thank you void, you are amazingly fast and it works well!
Maybe it will get it's own clickable checkbox option in a future version :)
LOL, how did you make it running exactly ?
Fraka
Posts: 27
Joined: Thu Jan 12, 2017 5:07 pm

Re: Provide global hotkey for search in current folder

Post by Fraka »

@mapa4
What's the problem?
  • Install the Beta
  • In Everything, type in the following search and press ENTER:
    /hotkey_explorer_path_search=1
    A confirmation like "hotkey_explorer_path_search=1" (or similar, don't remember) will show up in the status bar at the bottom.
  • Use your hotkey for new everything window or bringing everything to the front (See the four options at the top in the preferences, not something from the big list!)
Works for me in Windows 8.1 64bit.
Nevertheless, you can still just use the Autohotkey script if it doesn't work for you.
nathan323
Posts: 7
Joined: Thu Sep 22, 2016 9:22 am

Re: Provide global hotkey for search in current folder

Post by nathan323 »

This doesnt seem to work if Everything is not already open? Should I be changing to hotkey to a different command to fix that?
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

Re: Provide global hotkey for search in current folder

Post by void »

Everything will need to be running in the background for hotkeys to work.

To run Everything in the background:
  • In Everything, from the Tools menu, click Options.
  • Click the General tab on the left.
  • Check Start Everything on system startup.
  • Click the UI tab on the left.
  • Check Run in background.
  • Click OK.
therube
Posts: 4977
Joined: Thu Sep 03, 2009 6:48 pm

Re: Provide global hotkey for search in current folder

Post by therube »

So this only works from within a Windows Explorer window?

How about from within a file manager?
Altap Salamander, Total Commander, Unread Commander, Q-Dir, MultiCommander, JustManager ...

Or even from a command prompt, for that matter.
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

Re: Provide global hotkey for search in current folder

Post by void »

Windows Explorer only at the moment, I may add support for more browsers and the command prompt in a future release.
nathan323
Posts: 7
Joined: Thu Sep 22, 2016 9:22 am

Re: Provide global hotkey for search in current folder

Post by nathan323 »

void wrote:Everything will need to be running in the background for hotkeys to work.

To run Everything in the background:
  • In Everything, from the Tools menu, click Options.
  • Click the General tab on the left.
  • Check Start Everything on system startup.
  • Click the UI tab on the left.
  • Check Run in background.
  • Click OK.

Ah, awesome. Yeah didn't have Run in Background checked. Thanks.
koolestani
Posts: 54
Joined: Wed Feb 12, 2020 5:03 am

Re: Provide global hotkey for search in current folder

Post by koolestani »

void wrote: Sun Feb 19, 2017 10:13 am pressing an Everything hotkey that shows an Everything search window from a Windows Explorer window
ok, so this was not super clear on what exactly the hotkey is or where you can set one. For anyone else who didn't know, the hotkey being referred to can be created under:

Tools>Options>General>Keyboard

Image

I personally use Ctrl+F because who here needs windows native search. :)
koolestani
Posts: 54
Joined: Wed Feb 12, 2020 5:03 am

Re: Provide global hotkey for search in current folder

Post by koolestani »

The native way of achieving this (using /hotkey_explorer_path_search=1) by assigning a hotkey within everything's settings will take control globally, i.e in my case Ctrl+F is overridden everywhere (i found out when i tried searching for some text in Chrome and used the shortcut).

So is it safe to assume that in order to turn this thing off (beside clearing the hotkey from settings)
/hotkey_explorer_path_search=0
has to be typed followed by an Enter?
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Provide global hotkey for search in current folder

Post by NotNull »

koolestani wrote: Mon Jun 15, 2020 8:31 am So is it safe to assume that in order to turn this thing off (beside clearing the hotkey from settings)
/hotkey_explorer_path_search=0
has to be typed followed by an Enter?
Exactly!
(Keep an eye on the status bar as the new value will be shown there for a couple of seconds (if accepted)).

You can also "read" the current configuration by entering the following search query (followed by ENTER):

Code: Select all

/hotkey_explorer_path_search
The status bar will show you the current setting for a couple of seconds.
koolestani
Posts: 54
Joined: Wed Feb 12, 2020 5:03 am

Re: Provide global hotkey for search in current folder

Post by koolestani »

Thanks for confirming. :)
Post Reply