Provide global hotkey for search in current folder

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

Provide global hotkey for search in current folder

Post by Fraka » Sat Feb 18, 2017 10:04 pm

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
Site Admin
Posts: 4813
Joined: Fri Oct 16, 2009 11:31 pm

Re: Provide global hotkey for search in current folder

Post by void » Sun Feb 19, 2017 10:13 am

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 » Mon Feb 20, 2017 1:28 pm

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: 22
Joined: Thu Jan 12, 2017 5:07 pm

Re: Provide global hotkey for search in current folder

Post by Fraka » Mon Feb 20, 2017 4:19 pm

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 » Mon Feb 20, 2017 11:03 pm

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: 22
Joined: Thu Jan 12, 2017 5:07 pm

Re: Provide global hotkey for search in current folder

Post by Fraka » Mon Mar 06, 2017 11:31 am

@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 » Tue May 30, 2017 11:44 pm

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
Site Admin
Posts: 4813
Joined: Fri Oct 16, 2009 11:31 pm

Re: Provide global hotkey for search in current folder

Post by void » Wed May 31, 2017 1:20 am

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: 2286
Joined: Thu Sep 03, 2009 6:48 pm

Re: Provide global hotkey for search in current folder

Post by therube » Wed May 31, 2017 2:02 am

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
Site Admin
Posts: 4813
Joined: Fri Oct 16, 2009 11:31 pm

Re: Provide global hotkey for search in current folder

Post by void » Wed May 31, 2017 2:21 am

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 » Wed May 31, 2017 3:19 am

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.

Post Reply