diff options
Diffstat (limited to 'core/builtins.zig')
| -rw-r--r-- | core/builtins.zig | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/core/builtins.zig b/core/builtins.zig index a236b0d6..718a0f1f 100644 --- a/core/builtins.zig +++ b/core/builtins.zig @@ -1622,6 +1622,19 @@ pub const Help = struct { } }; +/// Show what a key sequence runs: the next keys typed are replayed in the tag. +/// +/// The tag shows `Keys` and the keys as they are typed; a sequence that +/// reaches a leaf unrolls its level under the tag with the leaf on the +/// cursor and its documentation beside it, and Enter runs it. Every root +/// answers: SPC, g, m, z, Z, [, ], window mode's C-w. A sequence nothing +/// is bound to is shown struck, `runs nothing`. Esc leaves it. +pub const Keys = struct { + pub fn run(c: Ctx) void { + pardes.TagState.openDescribe(c.p, c.id); + } +}; + /// Open the startup file, `init` in the configuration directory, in a pane. /// /// Its pane when it is open, else the file; not there yet, a pane of that |
