Files
plainleaf/website/Shortcuts.md
T
Zef Hemel 34557e0575 Update documentation for consistency and clarity
- Revised multiple documentation files to correct references and improve clarity, including updates to the Command Palette, Document Editor, and various Markdown files.
- Removed outdated references to "Slash Templatese" and replaced them with "Slash Templates" for consistency.
- Enhanced explanations regarding meta pages and shortcuts, ensuring accurate guidance for users.
2025-04-17 12:04:20 +02:00

1000 B

SilverBullet enables you to configure some custom shortcuts in ^Library/Std/Config via the shortcuts attribute that trigger Commands in various ways.

Supported types of shortcuts:

  • Keyboard Shortcuts that create keyboard bindings for a given command
  • Slash Commands shortcuts that enable triggering a command via a slash command
  • Priority shortcuts to tweak the ordering of commands in the Command Palette

Configuration

Using Space Lua:

config.set {
  shortcuts = {
    -- Keyboard shortcuts:
    {
      command = "Navigate: Center Cursor",
      key = "Alt-x", -- for Linux/Windows
      mac = "Alt-x", -- for macOS (and other Apple devices with keyboards)
    },
    -- Slash command shortcuts:
    {
      command = "Outline: Move Right",
      slashCommand = "indent",
    },
    {
      command = "Outline: Move Left",
      slashCommand = "outdent",
    },
    -- Priority shortcut
    {
        command = "Upload: File",
        priority = 1,
    }
  }
}