Skip to content

Command items

Chris Gurney edited this page Jun 26, 2025 · 17 revisions

Command items allow you to execute commands built in to Obsidian, or provided by a plugin.

After selecting Commmand, search for the command to execute when the toolbar item is clicked.

Advanced options

Clicking on the gear (⚙️) icon opens advanced options:

Hide if not available

Hides this item in the toolbar, if its command cannot be performed in the current context (e.g., the Bold item is not displayed in Reading mode). This setting is disabled by default.

Note

Not all commands offer this check (i.e., the "Hide if not available" option won't do anything). The easiest way to check if Note Toolbar should be showing or hiding a command is to see if it is available in the command palette when you're in a different context (e.g., in Reading mode vs. Editing mode).

Note

Under the covers, Note Toolbar is calling editorCallback() and checkCallback() to confirm command availability.

Focus in editor

Sets the focus in the editor after running the command.

  • On mobile, if enabled, this keeps the keyboard visible.
  • This can be useful for formatting commands, such as Toggle bold, Toggle italics, etc.

Where to run command

Specify where the command should be executed: Default (current tab), in a New tab, or in a Split pane.

  • This can be useful for commands such as creating a Kanban: Create new board, so that the board is created in a new tab instead of the current one.
  • Some commands may override this setting as they do their own thing.

Next: Dataview

Clone this wiki locally