Skip to main content

printed

Function printed 

Source
pub fn printed(chord: &str) -> SharedString
Expand description

A chord nothing is bound to, written the way this platform writes it.

For a label that names a chord the keymap does not own: a menu describing another app, a printed cheat sheet, a demo. Where there is a binding, shortcut is the one to reach for — it cannot drift, and this can.

The syntax is gpui’s own, so secondary-s is the primary accelerator — ⌘S on macOS, Ctrl+S elsewhere — while cmd-s, super-s and win-s all name the platform key itself and print ⌘S against Win+S. Whitespace separates the keystrokes of a sequence, and one that will not parse is dropped rather than printed wrong.