Documentation
¶
Overview ¶
Package commands is the desktop app's table of commands (docs/specs/ui.md#keyboard-map): each command's ID, as Obsidian names it, title, group, icon and keys. It is plain data: the window gives each command its action and binds its keys through frostui's command table. A test holds it to the spec's keyboard map.
Index ¶
Constants ¶
const ( GroupEditor = "Editor" GroupFiles = "Files" GroupWorkspace = "Workspace" GroupApp = "Frostnotes" )
The groups of the palette.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scope ¶
type Scope uint8
Scope says where a key works.
const ( // OutsideEditors keys step aside while a text editor has the focus. OutsideEditors Scope = iota // Everywhere keys work wherever the focus is. Everywhere // InEditor keys are the note editor's own: the table lists them for // the palette's key caps, and the editor binds them. InEditor )
The scopes, the app's own: the window maps them to frostui's KeyScope.