Trigger Sequence Of Commands

Screenshots of the action

Executes up to 10 Obsidian commands in sequence, just like you'd do manually using its command palette.

Important: Due to the way Shortcuts and Obsidian work together, with Actions for Obsidian as translator in-between, AFO needs to maintain an internal list of commands available in your vault(s). So before you can use this action, the list needs to be fetched at least once using the "Get Available Commands" action. See below.

How to use it

As mentioned, AFO needs to know the list of available commands in order to let you select from it via its "Obsidian Command" parameter. So prepare two workflows, one for getting the list of commands from Obsidian and which is run occasionally and only when necessary, and another one for executing one or more commands from the list.

Workflow 1 (Getting the list):

  1. "Get Available Commands" action. Set "Vault" to your vault.

Run it once.

Workflow 2 (Executing commands):

  1. "Trigger Sequence of Commands" action. Select commands from the list.

Available Options

Pause between commands

Your commands may need some time to execute, and to avoid race conditions, you can add pauses from 0.2 up to 2 secs between them.


The Shortcuts workflow editor will get the list of commands from AFO when the action is initialized, which happens when you add a "Trigger Sequence of Commands" action to the workflow, and also (later on) when you re-open the workflow in the editor. The action will not be updated on list changes while it is open in the editor, though. (I wish I could work around that but at the time of this writing, I've yet to find a way.)

For example, when you have the two workflows from section "How to use it" open in the editor, side by side, the command list in Workflow 2's action will show whatever it contained at the time of the action's initialization in the editor. Running Workflow 1 will not change that, since the Shortcuts editor will not update the Trigger action in Workflow 2 with the new data. Only closing and re-opening Workflow 2 in the editor will do the trick.

Changes / History


  • Initial release.
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Carlo Contact Carlo