Creating a keyboard shortcut to run a command on selected file path

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

Creating a keyboard shortcut to run a command on selected file path

Post by raccoon »

I'm not sure if this is possible, but here's what I'm aiming for.

To create a custom verb that I can bind a keyboard shortcut (hotkey) to...
- /custom_verb05=<something>

Using the command to reindex the specified path...
- /update <folder index> Update the specifed folder index by path now.

The specified path being the path of the selected item (file or folder) in the results...
- $p (if file) or $f (if folder)

I'm not really sure if there's a way to interact with the currently selected result items in this way. And I'm not sure whether I need to create a Bookmark (ie, with a macro:) to act as an intermediary in this process.

Would I need to do something external to Everything, such as with AutoHotkey, to copy and retrieve the path of the currently selected item(s), or can this be done within Everything itself?

If I do have to use AutoHotkey scripting, what is the best way to communicate a search filter / macro / command back to Everything? ControlSend to ClassNN Edit1 or is there a specific SendMessage/PostMessage that Everything monitors for?
void
Developer
Posts: 16753
Joined: Fri Oct 16, 2009 11:31 pm

Re: Creating a keyboard shortcut to run a command on selected file path

Post by void »

Please see the Everything IPC.

The Everything result list is an emulated WC_LISTVIEW. You can send the standard LVM_xxx messages to the result list window.

Please see the Everything SDK for the IDs for each UI element.
Post Reply