Page 1 of 1

Multi-Command Actions to assign keys to

Posted: Mon Mar 11, 2024 9:58 am
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

Re: Multi-Command Actions to assign keys to

Posted: Mon Mar 11, 2024 10:00 am
by void
You can already do this with Alt + Enter.

There's no limit to the number of search commands defined in a bookmark.

Re: Multi-Command Actions to assign keys to

Posted: Mon Mar 11, 2024 10:33 am
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

Re: Multi-Command Actions to assign keys to

Posted: Mon Mar 11, 2024 10:37 am
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

Re: Multi-Command Actions to assign keys to

Posted: Mon Mar 11, 2024 10:41 am
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