Files
plainleaf/website/Shortcuts.md
T
Zef Hemel 45b767fd3c Lua widgets: html can now also be a DOM node
Encoding some more space lua priorities and documenting them
2025-03-28 17:38:32 +01:00

1014 B

#level/intermediate

SilverBullet enables you to configure some custom shortcuts in SETTINGS via the shortcuts attribute that trigger Commands in various ways.

Supported types of shortcuts:

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,
    }
  }
}