Files
tty7/docs/reference
l0ng-ai eb211d7fc1 docs(shortcuts): the document dock's actions are bindable, so name them
The shortcuts page has two halves: a table of default chords, and a list
of the rest — "more actions you can bind". An action with no chord of its
own appears only in that second list, so leaving it out makes the action
unfindable: no key to be discovered by, and no row to be read on.

The document dock (#625) shipped with four such actions —
`ToggleDocumentFill`, `DocumentWidthThird`, `DocumentWidthHalf`,
`DocumentWidthTwoThirds` — all bindable, all chordless, and none of them
on the page. The CHANGELOG names them as palette commands; the page a
reader goes to for "what can I bind" did not.

The neighbouring guard already holds the other direction: the page names
no action that has been renamed away. This one asks whether the page is
*complete*, which is the half a rename cannot break but a new feature
can.

Two spellings count as named, because the page uses both. The rebinding
lists write identifiers, and compactly — `ResizePaneLeft/Right/Up/Down`,
`SelectWorkspace1`…`SelectWorkspace9` — so a trailing direction or digit
is part of a family rather than an entry of its own, the same convention
the neighbouring test already keeps. The chord table writes labels, which
is how `CopyText` is covered: `per_platform("", "ctrl-shift-c")` leaves
it chordless on macOS while it is Ctrl+Shift+C elsewhere, so it earns a
table row and is written "Copy" there. The first draft of the guard
missed that and called it undocumented.

Checked against the page as it was: the guard names all four.
2026-08-23 01:04:54 +08:00
..