Multi-Command Actions to assign keys to

Have a suggestion for "Everything"? Please post it here.
Post Reply
meteorquake
Posts: 495
Joined: Thu Dec 15, 2016 9:44 pm

Multi-Command Actions to assign keys to

Post by meteorquake »

Currently a keyboard shortcut can only be assigned to a single command.
It would be useful to be able to assign to a sequence of commands.
An example of use would be you search for an item and then you want to Ctrl-Enter to locate it in the Folder Bar AND clear the search bar that was used to find it so that the resulting folder shows its folder results. Currently you have to do this as two commands, although I've made the shortcuts to those two actions similar to facilitate the task.
Conceptually these could be thought of as a simple macro. Maybe it could be expanded for conditions if demand for that came.
Perhaps other examples of multi-actions could be thought of.
David
void
Developer
Posts: 16681
Joined: Fri Oct 16, 2009 11:31 pm

Re: Multi-Command Actions to assign keys to

Post by void »

You can already do this with Alt + Enter.

There's no limit to the number of search commands defined in a bookmark.
meteorquake
Posts: 495
Joined: Thu Dec 15, 2016 9:44 pm

Re: Multi-Command Actions to assign keys to

Post by meteorquake »

I'm thinking of GUI commands which I'm not currently aware are available in bookmarks - for example how would one perform 'File | Explore in Everything' and 'Search Edit | Clear' from a bookmark? maybe there is a way...

Cheers! David
Last edited by meteorquake on Mon Mar 11, 2024 10:37 am, edited 1 time in total.
void
Developer
Posts: 16681
Joined: Fri Oct 16, 2009 11:31 pm

Re: Multi-Command Actions to assign keys to

Post by void »

Use a bookmark.
Press Alt + Enter in the bookmark search
Assign your keyboard shortcut to the bookmark



To clear the search edit from a bookmark:

/command Search Edit | Clear
-or-
/command 42031

Command IDs
meteorquake
Posts: 495
Joined: Thu Dec 15, 2016 9:44 pm

Re: Multi-Command Actions to assign keys to

Post by meteorquake »

Aha I see what you're saying - I'll give that a try.

I wonder if the Options - Keyboard should have a link at the bottom "How to assign multiple commands to a key" and take you to a webpage that explains it, as you get so used to assigning keys there, the other method you mention can slip from the mind if it was ever seen :)

David
Post Reply