-
-
Notifications
You must be signed in to change notification settings - Fork 12
Command items
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.
Clicking on the gear (⚙️) icon opens advanced options:
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.
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.
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
User Guide • Gallery • Note Toolbar API • Support • Discussions ↗ • Release Notes ↗ • Roadmap
Note Toolbar by Chris Gurney • Buy me a coffee ☕️