- This is not a new post but a transfer of the text from the test forum, where it was available as a draft!
- The following text was linked in this post: Search queries in TC using 'Everything'
(The links to the post in the test forum have therefore been changed to the link to this post).
Code: Select all
Open separate search window with CTRL+F *) (self-defined): ---> em_command: em_Everything_Search_Path_End, etc.
TC parameter for using 'Everything' in TC: -------------------> ed:
*) CTRL+F is currently default to "FTP Connect...". (see: menu "Net").
SHIFT+F is also suitable as a shortcut, since no command has been assigned to it by default.
Code: Select all
1. Use the self-defined shortcut Ctrl+F and a saved search to open a separate TC window with the title: "Find Files"
2. In the field "Search for:" shall ... ed: to be entered (based on the stored search)
3. The AHK script "END_Key.AHK" should position the cursor after ed: so that you can start typing immediately
4. The "Search in:" field can remain EMPTY, since the search with ed: always starts in the currently active TC window (path) by default.
[Search in subdirectories: Directory depth adjustable]
Code: Select all
usercmd.ini
[em_Everything_Search_Path_End]
button=wcmicons.dll,47
cmd=em_Everything_Search_Path,em_END_Key
menu=em_Everything_Search_Path,em_END_Key |ed:
[em_Everything_Search_Path]
button=%COMMANDER_PATH%\Tools\Everything\Everything-portabel\Everything.exe
cmd=%COMMANDER_EXE%
param=/S=F:LEverythingSearchInCurrentPathSeparateWindow
menu=%COMMANDER_EXE% /S=F:LEverythingSearchInCurrentPathSeparateWindow|ed:
[em_END_Key]
button=%COMMANDER_PATH%\Tools\AutoHotkey\AutoHotkey.exe
cmd=%COMMANDER_PATH%\Tools\AutoHotkey\END_Key.AHK
path=%COMMANDER_PATH%\Tools\AutoHotkey\
menu=%COMMANDER_PATH%\Tools\AutoHotkey\END_Key.AHK
Code: Select all
wincmd.ini
[Shortcuts]
C+F=em_Everything_Search_Path_End
[SearchIn]
RedirectSection=History.ini
History.ini (Saved search)
[searches]
EverythingSearchInCurrentPathSeparateWindow_SearchFor=ed:
EverythingSearchInCurrentPathSeparateWindow_SearchIn=
EverythingSearchInCurrentPathSeparateWindow_SearchText=
EverythingSearchInCurrentPathSeparateWindow_SearchFlags=0|007002010021|||||||||0000|||
------------------------------------------------
END_Key.AHK (See: File comment below...)
Sleep 250
Send {End}
------------------------------------------------
File comment (Ctrl+Z) for file "END_Key.AHK" (--> Code for "END_Key.AHK": See above...):
Code: Select all
https://autohotkey.com/docs/commands/Send.htm
Sleep 250 is minimum required,
otherwise the search mask is displayed in TC and
- ed: remains selected
- ev: stays marked (--> for this parameter you will probably define a shortcut as well...)
instead of the "End"-key being executed by "END_Key.AHK".
Ctrl+F ....... ed: Search from current directory (= active window in TC)
Shift+S ...... ev: Search "everywhere"; field "Search in:" is ignored!
https://autohotkey.com/download/ Autohotkey Download, then install...
(e.g. v1.1.33.02 - July 17, 2020)
Storage of the download file and installation path e.g. %COMMANDER_PATH%\Tools\AutoHotkey\
Save the code above e.g. with Notepad to a file and store it here, e.g.: %COMMANDER_PATH%\Tools\AutoHotkey\
[or %COMMANDER_PATH%\Tools\AutoHotkey\Scripts --> then the path to the file "END_Key.AHK" in the
File: "usercmd.ini" has to be adapted! ...].
Name of the file: END_Key.AHK (.ahk = file extension!)
This topic is also available in German language.