summaryrefslogtreecommitdiff
path: root/core/builtins.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/builtins.zig')
-rw-r--r--core/builtins.zig16
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