Page 1 of 1

Provide global hotkey for search in current folder

Posted: Sat Feb 18, 2017 10:04 pm
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

Re: Provide global hotkey for search in current folder

Posted: Sun Feb 19, 2017 10:13 am
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

Re: Provide global hotkey for search in current folder

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

Re: Provide global hotkey for search in current folder

Posted: Mon Feb 20, 2017 4:19 pm
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 :)

Re: Provide global hotkey for search in current folder

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

Re: Provide global hotkey for search in current folder

Posted: Mon Mar 06, 2017 11:31 am
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.

Re: Provide global hotkey for search in current folder

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

Re: Provide global hotkey for search in current folder

Posted: Wed May 31, 2017 1:20 am
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.

Re: Provide global hotkey for search in current folder

Posted: Wed May 31, 2017 2:02 am
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.

Re: Provide global hotkey for search in current folder

Posted: Wed May 31, 2017 2:21 am
by void
Windows Explorer only at the moment, I may add support for more browsers and the command prompt in a future release.

Re: Provide global hotkey for search in current folder

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