Lokyr
Documentation

keymap-macos: the default shortcuts

On this page

lokyr/keymap-macos · bundled · macOS · source

The keys that macOS's apps have taught you, bound to Lokyr's commands and to the other bundled plugins': ⌘N opens a window, ⌘C copies, ⌘T opens a tab, ⌘F finds, a ⌘-click opens a link. It has no command of its own: it only binds keys, which the menus then show beside their items.

What it binds

KeysCommand
⌘,app.settings: opens your config file
⌘Qapp.quit
⌘N, ⇧⌘W, ⇧⌘I, ⌥⌘1 to ⌥⌘9window.new, window.close, window.set-title, window.goto
⌘C, ⌘V, ⌘A, ⌘Kpane.copy, pane.paste, pane.select-all, pane.clear
⌘=, ⌘+, ⌘-, ⌘0font.bigger, font.smaller, font.reset
⌥⌘;window.toggle-cursor-guide: the band across the cursor's row
⌘Uwindow.toggle-opacity: a translucent window shown opaque, and back · Since 1.3
⇧⌘E, and Tab and ⇧Tab in the hintslinks.hints, links.hints-action: the hints of what the pane shows, and what a pick does · Since 1.3
⇧⌘↑, ⇧⌘↓, ⌘Page Up, ⌘Page Down, ⌘Home, ⌘Endscrolling, by a line, a page, or to the top and the bottom
⌘↑, ⌘↓the previous prompt and the next, of the commands that the shell marks; while Blocks runs, the block of the prompt before or after, selected, blocks.select-previous, blocks.select-next · Since 1.4
↑, ↓, Escape, while a block is selectedthe block before or after, and none, blocks.select-previous, blocks.select-next, blocks.deselect · Since 1.4
⌘-clicklinks.open
⌘F, ⌘G, ⇧⌘Gsearch.open, search.next, search.previous
⇧⌘P, and ↑ and ↓ in the palettecommand-palette.open, command-palette.move
⌘T, ⌘W, ⇧⌘], ⇧⌘[, ⌃Tab, ⌃⇧Tab, ⌘1 to ⌘9, ⇧⌘← and ⇧⌘→the tabs: new, close, next, previous, by number, move
⇧⌘Ttabs.reopen: the tab you closed last · Since 1.3
⌘D, ⇧⌘D, ⌥⌘ and an arrow, ⌘], ⌘[, ⌃⌘ and an arrow, ⇧⌘Returnthe splits: split right or down, the pane in a direction, the next and the previous pane, resize, zoom

The commands' reference lists every command with its default keys, and the keys' table in the configuration guide has every binding, with what each command does.

Your own keys

Your [keys] come after these bindings, and win: bind a key to another command, or take a default away with false.

[keys]
"cmd+d" = false                       # no split on ⌘D
"cmd+shift+t" = "tabs.new"            # a second key for a new tab

A default of a command that is not there takes no key: with a plugin turned off, as [plugins.links] enabled = false, its keys go back to what they would do without it, and a ⌘-click selects, as a click does.

Turning it off

[plugins.keymap-macos]
enabled = false

Every default key goes, so that your [keys] bind every key from nothing. The menus keep the system's own keys alone: ⌘H hides Lokyr, ⌥⌘H the other apps, ⌘M minimizes the window, and ⌃⌘Space shows the emoji and symbols.

Permissions

None: it binds keys, and reads nothing of your terminals.