diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-26 02:28:51 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-26 02:28:51 -0300 |
| commit | 0fb5f04ad236a6ce9e22c94be2847f4fdb0735f2 (patch) | |
| tree | bc09589ac8ab02e878356fd14166d9f8c0c958be /core/keys.zig | |
| parent | 4fe27fa83d1454830dd4fd98c5a76747f30d2776 (diff) | |
| parent | 1ce3bcb6178b720058518a12e45f25769be7d39c (diff) | |
| download | pardes-0fb5f04ad236a6ce9e22c94be2847f4fdb0735f2.tar.gz pardes-0fb5f04ad236a6ce9e22c94be2847f4fdb0735f2.zip | |
merge: L2cde (Changes, terminals, frontends colours) + W4 (the back model)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
Diffstat (limited to 'core/keys.zig')
| -rw-r--r-- | core/keys.zig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/keys.zig b/core/keys.zig index e9be2461..803b2b3c 100644 --- a/core/keys.zig +++ b/core/keys.zig @@ -232,6 +232,7 @@ pub fn handleKey(p: *Pardes, key: Key) void { // A tag in a typing state takes every key (TagState: Help, describe-key). if (p.view().tag_state.kind != .rest) return tagStateKey(p, key); Prompt.keyAtRest(p, key); + @import("Pick.zig").keyAtRest(p, key); // Esc takes a hover's ghost lines away (SPEC ยง3.5) before anything else // it does. if (p.lsp_ask.hover != null and hit(key, config.escape)) { @@ -585,6 +586,7 @@ fn tagStateKey(p: *Pardes, key: Key) void { const v = p.view(); const s = &v.tag_state; if (s.kind == .prompt) return Prompt.key(p, key); + if (s.kind == .pick and hit(key, config.escape) and @import("Pick.zig").closeHistory(p)) return; if (TagState.hostOf(p) == null or hit(key, config.escape)) return TagState.toRest(p); switch (s.kind) { .rest, .prompt => unreachable, |
