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/builtins.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/builtins.zig')
| -rw-r--r-- | core/builtins.zig | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/core/builtins.zig b/core/builtins.zig index 7aaeee40..829935c7 100644 --- a/core/builtins.zig +++ b/core/builtins.zig @@ -2045,13 +2045,27 @@ pub const Forward = struct { /// Reopen the last picker as it was: its rows, marks, cursor and query. /// /// In the tag of the pane its Enter lands in from this one: this pane if it -/// reads, else its reader. `SPC '`. +/// reads, else its reader. `SPC '`; again after its Esc, nothing typed +/// between, the one before it; Ctrl-o and Ctrl-i in it, the older and newer. pub const Resume = struct { pub fn run(c: Ctx) void { pardes.Pick.resumeFrom(c.p, c.id); } }; +/// Pick from the last pickers kept, newest first: Enter reopens one as it was left. +/// +/// A row each: its source, query, cursor and marks, where it last landed at +/// its right. The body previews its current row; beside the rows, its +/// first rows. `SPC f l`, or `'` in a picker's sources (M-h). +pub const Lists = struct { + pub const scope: Scope = .session; + pub fn run(c: Ctx) void { + if (c.p.panes[c.id] == null) return c.p.reportFailure(c.id, "Lists: open a pane to pick from"); + pardes.Pick.open(c.p, c.id, .lists, "", "", ""); + } +}; + /// Keep this pane: a reading pane, which a jump steps, is held from now on. /// /// Its walk leaves its tag (its places, its owner): the next jump from its |
