diff options
| -rw-r--r-- | core/Pick.zig | 2 | ||||
| -rw-r--r-- | core/builtins.zig | 18 | ||||
| -rw-r--r-- | docs/typ/builtins-gui.json | 8 | ||||
| -rw-r--r-- | docs/typ/builtins-tui.json | 8 | ||||
| -rw-r--r-- | test/snapshots/builtins.golden | 12 | ||||
| -rw-r--r-- | test/snapshots/leader.golden | 28 | ||||
| -rw-r--r-- | test/snapshots/ttyhelp.golden | 2 |
7 files changed, 39 insertions, 39 deletions
diff --git a/core/Pick.zig b/core/Pick.zig index 39202fb9..398354b5 100644 --- a/core/Pick.zig +++ b/core/Pick.zig @@ -1904,7 +1904,7 @@ pub fn resumeFrom(p: *Pardes, from: usize) void { } /// The `k`th newest kept picker reopened as it was, asked from pane -/// `from`, in the tag of the pane its Enter lands in. +/// `from`, under its tag (UX DESIGN O1). fn resumeAt(p: *Pardes, from: usize, k: usize) void { const pk = (if (k > 0) nth(p, k) else null) orelse return p.setMessage(.at(from), if (k == 0) "Resume: the newest picker" else "Resume: no picker before it: the last 8 are kept"); diff --git a/core/builtins.zig b/core/builtins.zig index 176cabe0..62e53eaf 100644 --- a/core/builtins.zig +++ b/core/builtins.zig @@ -797,7 +797,7 @@ pub const Themes = struct { pub const scope: Scope = .session; pub const output: OutputTraits = .{ .name = config.themes_buffer, .steps = true, .commands = true }; pub fn run(c: Ctx) void { - // From the keyboard, where the walk is on: a picker in the tag, the + // From the keyboard, where the walk is on: a picker under the tag, the // window wearing its row (Pick.zig, SPEC §5.1). if (pardes.Pick.asked(c.p)) return pardes.Pick.open(c.p, c.id, .themes, "", "", ""); panes.Output.openThemes(c.p, c.id) catch |err| c.p.reportError(.at(c.id), "themes", err); @@ -1625,11 +1625,11 @@ pub const Help = struct { } }; -/// Show what a key sequence runs: the next keys typed are replayed in the tag. +/// Show what a key sequence runs: the next keys typed are replayed under 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 +/// The row under the tag shows `Keys` and the keys as typed; a sequence +/// that reaches a leaf unrolls its level below 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 { @@ -1744,7 +1744,7 @@ pub const Message = struct { /// Show the messages said so far, the newest first, an error's places /// under it. /// -/// Where jumps walk, a list in the pane's tag: Enter Looks a row (a +/// Where jumps walk, a list under the pane's tag: Enter Looks a row (a /// message's cause, a place), C-q keeps it as a +Messages; else the /// +Messages. pub const Messages = struct { @@ -1861,7 +1861,7 @@ pub const Search = struct { pub fn run(c: Ctx) void { const line = std.mem.trim(u8, c.arg orelse "", " \t\r\n"); const asked = panes.Query.parse(line) orelse panes.Query.parse(std.mem.concat(c.p.scratch.allocator(), u8, &.{ "/", line }) catch return).?; - // `SPC b b`, `SPC s s`, `SPC /` and the like: a picker in the tag. + // `SPC b b`, `SPC s s`, `SPC /` and the like: a picker under the tag. if (pardes.Pick.asked(c.p)) switch (asked.source) { inline .find, .grep, .recent, .panes, .symbols, .all => |s| return pardes.Pick.open(c.p, c.id, @field(pardes.Pick.Source, @tagName(s)), "", asked.pat, ""), else => {}, @@ -2045,7 +2045,7 @@ 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 +/// Under this pane's tag, previewing where its Enter lands: this pane if it /// 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 { @@ -2206,7 +2206,7 @@ pub const Hover = struct { /// List the language server's code actions for the cursor, to apply one. /// -/// Typed where jumps walk, they are a picker in the pane's tag, the one +/// Typed where jumps walk, they are a picker under the pane's tag, the one /// under the cursor shown as its edit, applied by Enter or its digit; else /// a +Lsp lists them. pub const CodeAction = struct { diff --git a/docs/typ/builtins-gui.json b/docs/typ/builtins-gui.json index 02981259..ee7375c8 100644 --- a/docs/typ/builtins-gui.json +++ b/docs/typ/builtins-gui.json @@ -17,7 +17,7 @@ {"name": "ClipReplace", "leader": "SPC R", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Replace the selection with the system clipboard.", "text": "Replace the selection with the system clipboard."}, {"name": "ClipYank", "leader": "SPC y", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Copy the selection to the system clipboard.", "text": "Copy the selection to the system clipboard.\nEvery cursor's selection, joined; in an image or a PDF's pane, what it has selected."}, {"name": "ClipYankMain", "leader": "SPC Y", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Copy the primary selection alone to the system clipboard.", "text": "Copy the primary selection alone to the system clipboard.\nClipYank (`SPC y`) copies every cursor's selection, joined; with one cursor the two are the same."}, - {"name": "CodeAction", "leader": "SPC l a", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "List the language server's code actions for the cursor, to apply one.", "text": "List the language server's code actions for the cursor, to apply one.\nTyped where jumps walk, they are a picker in the pane's tag, the one under the cursor shown as its edit, applied by Enter or its digit; else a +Lsp lists them."}, + {"name": "CodeAction", "leader": "SPC l a", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "List the language server's code actions for the cursor, to apply one.", "text": "List the language server's code actions for the cursor, to apply one.\nTyped where jumps walk, they are a picker under the pane's tag, the one under the cursor shown as its edit, applied by Enter or its digit; else a +Lsp lists them."}, {"name": "Collapse", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Fold this pane to its tag, or give it its share of the column again.", "text": "Fold this pane to its tag, or give it its share of the column again."}, {"name": "Compare", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Draw the file's difference between each two jj revisions as one change, as Changes draws one.", "text": "Draw the file's difference between each two jj revisions as one change, as Changes draws one.\n`Compare <rev> <rev> [<rev> ...]`: two points or more in their order, each one revision (a commit or change id, a bookmark, `master@origin`, `@`): `Compare 9ef6312813 ea63317630 master@origin`. A pair is drawn as one change however many lie between its points; after its last line, its row: the two points, how many changes lie between them, their first and last days. One set a pane: a later Changes or Compare replaces it. Bare: as bare Changes."}, {"name": "Config", "leader": "SPC f c", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Open the startup file, `init` in the configuration directory, in a pane.", "text": "Open the startup file, `init` in the configuration directory, in a pane.\nIts pane when it is open, else the file; not there yet, a pane of that name, which Save makes, its directory too."}, @@ -59,7 +59,7 @@ {"name": "Jumplist", "leader": "SPC j l", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "List the places jumped from in a +Jumps, each a place to go.", "text": "List the places jumped from in a +Jumps, each a place to go."}, {"name": "Jumps", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": "walk, new-pane", "doc": "A jump steps its pane or that pane's reader (walk), or opens a pane for each file (new-pane).", "text": "A jump steps its pane or that pane's reader (walk), or opens a pane for each file (new-pane)."}, {"name": "Keep", "leader": "SPC j k", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Keep this pane: a reading pane, which a jump steps, is held from now on.", "text": "Keep this pane: a reading pane, which a jump steps, is held from now on.\nIts walk leaves its tag (its places, its owner): the next jump from its owner makes a new reader. Editing a reading pane keeps it too."}, - {"name": "Keys", "leader": "SPC h k", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Show what a key sequence runs: the next keys typed are replayed in the tag.", "text": "Show what a key sequence runs: the next keys typed are replayed in the tag.\nThe 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."}, + {"name": "Keys", "leader": "SPC h k", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Show what a key sequence runs: the next keys typed are replayed under the tag.", "text": "Show what a key sequence runs: the next keys typed are replayed under the tag.\nThe row under the tag shows `Keys` and the keys as typed; a sequence that reaches a leaf unrolls its level below 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."}, {"name": "Kill", "leader": null, "also": [], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "Stop the commands pardes started that are still running.", "text": "Stop the commands pardes started that are still running.\nThey are the lines pardes typed into a terminal (from an exec, a middle click, a pty/run) and its command panes. Bare, every one; `Kill make ls`, those whose line starts with one of the words. Each gets SIGTERM: a command pane's whole command, a terminal's foreground job, never its shell, which stays."}, {"name": "Last", "leader": "SPC j j", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Go back to the last place jumped from in another pane.", "text": "Go back to the last place jumped from in another pane.\nWith none, to the pane beside this one."}, {"name": "Left", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Move the keyboard to the pane, or column tag, to the left.", "text": "Move the keyboard to the pane, or column tag, to the left."}, @@ -72,7 +72,7 @@ {"name": "Lspwhy", "leader": "SPC l w", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Explain, step by step in a +Lsp, how the last language server request was answered.", "text": "Explain, step by step in a +Lsp, how the last language server request was answered."}, {"name": "Message", "leader": "SPC e", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Act on the message the notice row leads with.", "text": "Act on the message the notice row leads with.\nOn a line a message names, its detail not shown yet: that detail, under the line until the caret leaves it. Else an error that names places lands them as a list in the pane's walk, n and N walking them (where jumps do not walk, a +Search the Look walk steps through); a question takes the keyboard in its pane's tag (its answer's key answers it, Esc leaves it waiting); anything else opens the history."}, {"name": "MessageLinger", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": null, "doc": "How long, in milliseconds, an echo or a notice stays bright before it dims; a warning twice as long.", "text": "How long, in milliseconds, an echo or a notice stays bright before it dims; a warning twice as long."}, - {"name": "Messages", "leader": "SPC h m", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Show the messages said so far, the newest first, an error's places under it.", "text": "Show the messages said so far, the newest first, an error's places under it.\nWhere jumps walk, a list in the pane's tag: Enter Looks a row (a message's cause, a place), C-q keeps it as a +Messages; else the +Messages."}, + {"name": "Messages", "leader": "SPC h m", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Show the messages said so far, the newest first, an error's places under it.", "text": "Show the messages said so far, the newest first, an error's places under it.\nWhere jumps walk, a list under the pane's tag: Enter Looks a row (a message's cause, a place), C-q keeps it as a +Messages; else the +Messages."}, {"name": "Mini", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Map a file of this pane's directory in braille dots: `Mini notes.txt`.", "text": "Map a file of this pane's directory in braille dots: `Mini notes.txt`.\nA pane of its own, drawn once: a Mini of the same file again draws it anew."}, {"name": "Mode", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Step this pane to its next input mode: normal, insert, and in a terminal raw.", "text": "Step this pane to its next input mode: normal, insert, and in a terminal raw.\nFrom the last it goes back to normal. The keyboard goes to the pane's text."}, {"name": "More", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Let a query pane's Grep stopped at its 2000 lines go on for 2000 more.", "text": "Let a query pane's Grep stopped at its 2000 lines go on for 2000 more."}, @@ -93,7 +93,7 @@ {"name": "Rename", "leader": "SPC l r", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Rename the symbol under the cursor to its argument, wherever the language server finds it.", "text": "Rename the symbol under the cursor to its argument, wherever the language server finds it.\nBare, it asks for the new name. Within this file it is done at once, saying how many places changed; one that reaches other files changes nothing and lists its edits in a +Search to look over."}, {"name": "Repl", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Bind this terminal as a language's REPL: an exec on that language's files is typed into it.", "text": "Bind this terminal as a language's REPL: an exec on that language's files is typed into it.\n`Repl python` binds it (the language named as a code fence names it: `py`, `Python`, `sh`); `Repl -` unbinds it; bare, it says what it is bound as. An exec made on the body of a file in that language (a middle click, the execute key, a single word like `ls` as much as a selection), and one made on this terminal's own body, is typed into it (bracketed paste if its program asked for that, else line by line, then Enter) instead of run. With several bound for a language, the exec asks which.\nStill commands, whatever is bound: a word in a tag, `Exec <text>`, a ctl line, and a command word @`cmd` in the text, looked at or clicked."}, {"name": "Restore", "leader": "SPC s r", "also": [], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "Replace every pane with those of a dump.", "text": "Replace every pane with those of a dump.\n`Restore <label>`: the state file's dump of that label (History lists them); `Restore <file>`: a dump file's, a path, or the name of a file in the DumpDir or the directory pardes runs in. Bare: the last one this session made, else the newest. A file that is not a dump is said first; then, as Exit, it is refused once while a pane holds unsaved text."}, - {"name": "Resume", "leader": "SPC '", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Reopen the last picker as it was: its rows, marks, cursor and query.", "text": "Reopen the last picker as it was: its rows, marks, cursor and query.\nIn the tag of the pane its Enter lands in from this one: this pane if it 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."}, + {"name": "Resume", "leader": "SPC '", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Reopen the last picker as it was: its rows, marks, cursor and query.", "text": "Reopen the last picker as it was: its rows, marks, cursor and query.\nUnder this pane's tag, previewing where its Enter lands: this pane if it 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."}, {"name": "Right", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Move the keyboard to the pane, or column tag, to the right.", "text": "Move the keyboard to the pane, or column tag, to the right."}, {"name": "Save", "leader": "SPC f s", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Write the pane's text to its file, or to the file its argument names.", "text": "Write the pane's text to its file, or to the file its argument names.\n`Save <path>` writes it there. Bare, a pane with no file of its own (a +New, a list, a terminal) asks for a path; a file at a revision is read-only, written only to a path. Over a file changed on disk since it was read, it warns once."}, {"name": "Search", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Search in a query pane under this pane, its line 1 the argument.", "text": "Search in a query pane under this pane, its line 1 the argument.\nLine 1's first word names what it searches: `/re` this pane's text, `Find`, `Grep`, `Recent`, `Panes`, `Symbols`, `All` (every open pane's text), `Refs`, `Def`, `Impl`, `Diagnostics`; a line with none of them is a `/`: `Search lay` is `/lay`. Bare, `/`, typed into. `SPC b b`, `SPC s s` and `SPC /` open it with Panes, Symbols and All."}, diff --git a/docs/typ/builtins-tui.json b/docs/typ/builtins-tui.json index e73396ae..99e46ac7 100644 --- a/docs/typ/builtins-tui.json +++ b/docs/typ/builtins-tui.json @@ -17,7 +17,7 @@ {"name": "ClipReplace", "leader": "SPC R", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Replace the selection with the system clipboard.", "text": "Replace the selection with the system clipboard."}, {"name": "ClipYank", "leader": "SPC y", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Copy the selection to the system clipboard.", "text": "Copy the selection to the system clipboard.\nEvery cursor's selection, joined; in an image or a PDF's pane, what it has selected."}, {"name": "ClipYankMain", "leader": "SPC Y", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Copy the primary selection alone to the system clipboard.", "text": "Copy the primary selection alone to the system clipboard.\nClipYank (`SPC y`) copies every cursor's selection, joined; with one cursor the two are the same."}, - {"name": "CodeAction", "leader": "SPC l a", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "List the language server's code actions for the cursor, to apply one.", "text": "List the language server's code actions for the cursor, to apply one.\nTyped where jumps walk, they are a picker in the pane's tag, the one under the cursor shown as its edit, applied by Enter or its digit; else a +Lsp lists them."}, + {"name": "CodeAction", "leader": "SPC l a", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "List the language server's code actions for the cursor, to apply one.", "text": "List the language server's code actions for the cursor, to apply one.\nTyped where jumps walk, they are a picker under the pane's tag, the one under the cursor shown as its edit, applied by Enter or its digit; else a +Lsp lists them."}, {"name": "Collapse", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Fold this pane to its tag, or give it its share of the column again.", "text": "Fold this pane to its tag, or give it its share of the column again."}, {"name": "Compare", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Draw the file's difference between each two jj revisions as one change, as Changes draws one.", "text": "Draw the file's difference between each two jj revisions as one change, as Changes draws one.\n`Compare <rev> <rev> [<rev> ...]`: two points or more in their order, each one revision (a commit or change id, a bookmark, `master@origin`, `@`): `Compare 9ef6312813 ea63317630 master@origin`. A pair is drawn as one change however many lie between its points; after its last line, its row: the two points, how many changes lie between them, their first and last days. One set a pane: a later Changes or Compare replaces it. Bare: as bare Changes."}, {"name": "Config", "leader": "SPC f c", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Open the startup file, `init` in the configuration directory, in a pane.", "text": "Open the startup file, `init` in the configuration directory, in a pane.\nIts pane when it is open, else the file; not there yet, a pane of that name, which Save makes, its directory too."}, @@ -55,7 +55,7 @@ {"name": "Jumplist", "leader": "SPC j l", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "List the places jumped from in a +Jumps, each a place to go.", "text": "List the places jumped from in a +Jumps, each a place to go."}, {"name": "Jumps", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": "walk, new-pane", "doc": "A jump steps its pane or that pane's reader (walk), or opens a pane for each file (new-pane).", "text": "A jump steps its pane or that pane's reader (walk), or opens a pane for each file (new-pane)."}, {"name": "Keep", "leader": "SPC j k", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Keep this pane: a reading pane, which a jump steps, is held from now on.", "text": "Keep this pane: a reading pane, which a jump steps, is held from now on.\nIts walk leaves its tag (its places, its owner): the next jump from its owner makes a new reader. Editing a reading pane keeps it too."}, - {"name": "Keys", "leader": "SPC h k", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Show what a key sequence runs: the next keys typed are replayed in the tag.", "text": "Show what a key sequence runs: the next keys typed are replayed in the tag.\nThe 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."}, + {"name": "Keys", "leader": "SPC h k", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Show what a key sequence runs: the next keys typed are replayed under the tag.", "text": "Show what a key sequence runs: the next keys typed are replayed under the tag.\nThe row under the tag shows `Keys` and the keys as typed; a sequence that reaches a leaf unrolls its level below 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."}, {"name": "Kill", "leader": null, "also": [], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "Stop the commands pardes started that are still running.", "text": "Stop the commands pardes started that are still running.\nThey are the lines pardes typed into a terminal (from an exec, a middle click, a pty/run) and its command panes. Bare, every one; `Kill make ls`, those whose line starts with one of the words. Each gets SIGTERM: a command pane's whole command, a terminal's foreground job, never its shell, which stays."}, {"name": "Last", "leader": "SPC j j", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Go back to the last place jumped from in another pane.", "text": "Go back to the last place jumped from in another pane.\nWith none, to the pane beside this one."}, {"name": "Left", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Move the keyboard to the pane, or column tag, to the left.", "text": "Move the keyboard to the pane, or column tag, to the left."}, @@ -68,7 +68,7 @@ {"name": "Lspwhy", "leader": "SPC l w", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Explain, step by step in a +Lsp, how the last language server request was answered.", "text": "Explain, step by step in a +Lsp, how the last language server request was answered."}, {"name": "Message", "leader": "SPC e", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Act on the message the notice row leads with.", "text": "Act on the message the notice row leads with.\nOn a line a message names, its detail not shown yet: that detail, under the line until the caret leaves it. Else an error that names places lands them as a list in the pane's walk, n and N walking them (where jumps do not walk, a +Search the Look walk steps through); a question takes the keyboard in its pane's tag (its answer's key answers it, Esc leaves it waiting); anything else opens the history."}, {"name": "MessageLinger", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": null, "doc": "How long, in milliseconds, an echo or a notice stays bright before it dims; a warning twice as long.", "text": "How long, in milliseconds, an echo or a notice stays bright before it dims; a warning twice as long."}, - {"name": "Messages", "leader": "SPC h m", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Show the messages said so far, the newest first, an error's places under it.", "text": "Show the messages said so far, the newest first, an error's places under it.\nWhere jumps walk, a list in the pane's tag: Enter Looks a row (a message's cause, a place), C-q keeps it as a +Messages; else the +Messages."}, + {"name": "Messages", "leader": "SPC h m", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Show the messages said so far, the newest first, an error's places under it.", "text": "Show the messages said so far, the newest first, an error's places under it.\nWhere jumps walk, a list under the pane's tag: Enter Looks a row (a message's cause, a place), C-q keeps it as a +Messages; else the +Messages."}, {"name": "Mini", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Map a file of this pane's directory in braille dots: `Mini notes.txt`.", "text": "Map a file of this pane's directory in braille dots: `Mini notes.txt`.\nA pane of its own, drawn once: a Mini of the same file again draws it anew."}, {"name": "Mode", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Step this pane to its next input mode: normal, insert, and in a terminal raw.", "text": "Step this pane to its next input mode: normal, insert, and in a terminal raw.\nFrom the last it goes back to normal. The keyboard goes to the pane's text."}, {"name": "More", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Let a query pane's Grep stopped at its 2000 lines go on for 2000 more.", "text": "Let a query pane's Grep stopped at its 2000 lines go on for 2000 more."}, @@ -88,7 +88,7 @@ {"name": "Rename", "leader": "SPC l r", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Rename the symbol under the cursor to its argument, wherever the language server finds it.", "text": "Rename the symbol under the cursor to its argument, wherever the language server finds it.\nBare, it asks for the new name. Within this file it is done at once, saying how many places changed; one that reaches other files changes nothing and lists its edits in a +Search to look over."}, {"name": "Repl", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Bind this terminal as a language's REPL: an exec on that language's files is typed into it.", "text": "Bind this terminal as a language's REPL: an exec on that language's files is typed into it.\n`Repl python` binds it (the language named as a code fence names it: `py`, `Python`, `sh`); `Repl -` unbinds it; bare, it says what it is bound as. An exec made on the body of a file in that language (a middle click, the execute key, a single word like `ls` as much as a selection), and one made on this terminal's own body, is typed into it (bracketed paste if its program asked for that, else line by line, then Enter) instead of run. With several bound for a language, the exec asks which.\nStill commands, whatever is bound: a word in a tag, `Exec <text>`, a ctl line, and a command word @`cmd` in the text, looked at or clicked."}, {"name": "Restore", "leader": "SPC s r", "also": [], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "Replace every pane with those of a dump.", "text": "Replace every pane with those of a dump.\n`Restore <label>`: the state file's dump of that label (History lists them); `Restore <file>`: a dump file's, a path, or the name of a file in the DumpDir or the directory pardes runs in. Bare: the last one this session made, else the newest. A file that is not a dump is said first; then, as Exit, it is refused once while a pane holds unsaved text."}, - {"name": "Resume", "leader": "SPC '", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Reopen the last picker as it was: its rows, marks, cursor and query.", "text": "Reopen the last picker as it was: its rows, marks, cursor and query.\nIn the tag of the pane its Enter lands in from this one: this pane if it 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."}, + {"name": "Resume", "leader": "SPC '", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Reopen the last picker as it was: its rows, marks, cursor and query.", "text": "Reopen the last picker as it was: its rows, marks, cursor and query.\nUnder this pane's tag, previewing where its Enter lands: this pane if it 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."}, {"name": "Right", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Move the keyboard to the pane, or column tag, to the right.", "text": "Move the keyboard to the pane, or column tag, to the right."}, {"name": "Save", "leader": "SPC f s", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Write the pane's text to its file, or to the file its argument names.", "text": "Write the pane's text to its file, or to the file its argument names.\n`Save <path>` writes it there. Bare, a pane with no file of its own (a +New, a list, a terminal) asks for a path; a file at a revision is read-only, written only to a path. Over a file changed on disk since it was read, it warns once."}, {"name": "Search", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Search in a query pane under this pane, its line 1 the argument.", "text": "Search in a query pane under this pane, its line 1 the argument.\nLine 1's first word names what it searches: `/re` this pane's text, `Find`, `Grep`, `Recent`, `Panes`, `Symbols`, `All` (every open pane's text), `Refs`, `Def`, `Impl`, `Diagnostics`; a line with none of them is a `/`: `Search lay` is `/lay`. Bare, `/`, typed into. `SPC b b`, `SPC s s` and `SPC /` open it with Panes, Symbols and All."}, diff --git a/test/snapshots/builtins.golden b/test/snapshots/builtins.golden index 357acd11..f683428d 100644 --- a/test/snapshots/builtins.golden +++ b/test/snapshots/builtins.golden @@ -100,15 +100,15 @@ |17: 8 Show this build's version and what changed to reach it, in a +Changelog. |18: 9 |19: 10 SPC h k Keys -|20: 11 Show what a key sequence runs: the next keys typed are replayed in the tag. -|21: 12 The tag shows `Keys` and the keys as they are typed; a sequence that reaches a leaf unrolls its level under the ↩ -|22: tag with the leaf on the cursor and its documentation beside it, and Enter runs it. Every root answers: SPC, g, ↩ -|23: m, z, Z, [, ], window mode's C-w. A sequence nothing is bound to is shown struck, `runs nothing`. Esc leaves it. +|20: 11 Show what a key sequence runs: the next keys typed are replayed under the tag. +|21: 12 The row under the tag shows `Keys` and the keys as typed; a sequence that reaches a leaf unrolls its level below↩ +|22: with the leaf on the cursor and its documentation beside it, and Enter runs it. Every root answers: SPC, g, m, ↩ +|23: z, Z, [, ], window mode's C-w. A sequence nothing is bound to is shown struck, `runs nothing`. Esc leaves it. |24: 13 |25: 14 SPC h m Messages |26: 15 Show the messages said so far, the newest first, an error's places under it. -|27: 16 Where jumps walk, a list in the pane's tag: Enter Looks a row (a message's cause, a place), C-q keeps it as a +M↩ -|28: essages; else the +Messages. +|27: 16 Where jumps walk, a list under the pane's tag: Enter Looks a row (a message's cause, a place), C-q keeps it as a↩ +|28: +Messages; else the +Messages. |29: 17 |30: 18 SPC h t Tutor |31: 19 Open the tutor, a document to work through. diff --git a/test/snapshots/leader.golden b/test/snapshots/leader.golden index f149bbd4..29f86d82 100644 --- a/test/snapshots/leader.golden +++ b/test/snapshots/leader.golden @@ -65,16 +65,16 @@ |13: 8 Show this build's version and what changed to reach it, in a +Changelog. |14: 9 |15: 10 SPC h k Keys -|16: 11 Show what a key sequence runs: the next keys typed are replayed in the tag. -|17: 12 The tag shows `Keys` and the keys as they are typed; a sequence that reaches a leaf unrolls ↩ -|18: its level under the tag with the leaf on the cursor and its documentation beside it, and Ent↩ -|19: er runs it. Every root answers: SPC, g, m, z, Z, [, ], window mode's C-w. A sequence nothing↩ -|20: is bound to is shown struck, `runs nothing`. Esc leaves it. +|16: 11 Show what a key sequence runs: the next keys typed are replayed under the tag. +|17: 12 The row under the tag shows `Keys` and the keys as typed; a sequence that reaches a leaf unr↩ +|18: olls its level below with the leaf on the cursor and its documentation beside it, and Enter ↩ +|19: runs it. Every root answers: SPC, g, m, z, Z, [, ], window mode's C-w. A sequence nothing is↩ +|20: bound to is shown struck, `runs nothing`. Esc leaves it. |21: 13 |22: 14 SPC h m Messages |23: 15 Show the messages said so far, the newest first, an error's places under it. -|24: 16 Where jumps walk, a list in the pane's tag: Enter Looks a row (a message's cause, a place), ↩ -|25: C-q keeps it as a +Messages; else the +Messages. +|24: 16 Where jumps walk, a list under the pane's tag: Enter Looks a row (a message's cause, a place↩ +|25: ), C-q keeps it as a +Messages; else the +Messages. |26: 17 |27: 18 SPC h t Tutor |28: 19 Open the tutor, a document to work through. @@ -132,11 +132,11 @@ |31: 8 Show this build's version and what changed to reach it, in a +Changelog. |32: 9 |33: 10 SPC h k Keys -|34: 11 Show what a key sequence runs: the next keys typed are replayed in the tag. -|35: 12 The tag shows `Keys` and the keys as they are typed; a sequence that reaches a leaf unrolls ↩ -|36: its level under the tag with the leaf on the cursor and its documentation beside it, and Ent↩ -|37: er runs it. Every root answers: SPC, g, m, z, Z, [, ], window mode's C-w. A sequence nothing↩ -|38: is bound to is shown struck, `runs nothing`. Esc leaves it. +|34: 11 Show what a key sequence runs: the next keys typed are replayed under the tag. +|35: 12 The row under the tag shows `Keys` and the keys as typed; a sequence that reaches a leaf unr↩ +|36: olls its level below with the leaf on the cursor and its documentation beside it, and Enter ↩ +|37: runs it. Every root answers: SPC, g, m, z, Z, [, ], window mode's C-w. A sequence nothing is↩ +|38: bound to is shown struck, `runs nothing`. Esc leaves it. |39: 13 |40: ✓ /tmp/pardes-snap/leader/cwd/+Tutor Del 6 messages · SPC h m == snap help-column grid=100x41 cursor=7,5 @@ -193,8 +193,8 @@ |18: 14 |19: 15 SPC l a CodeAction |20: 16 List the language server's code actions for the cursor, to apply one. -|21: 17 Typed where jumps walk, they are a picker in the pane's tag, the one under the cursor shown ↩ -|22: as its edit, applied by Enter or its digit; else a +Lsp lists them. +|21: 17 Typed where jumps walk, they are a picker under the pane's tag, the one under the cursor sho↩ +|22: wn as its edit, applied by Enter or its digit; else a +Lsp lists them. |23: 18 |24: 19 SPC l b Callstack |25: 20 Show the callers of the function under the cursor as a tree, outermost first, in a +Callstac↩ diff --git a/test/snapshots/ttyhelp.golden b/test/snapshots/ttyhelp.golden index 4b6e10d0..30feb983 100644 --- a/test/snapshots/ttyhelp.golden +++ b/test/snapshots/ttyhelp.golden @@ -39,7 +39,7 @@ |25: 2 |26: 3 SPC ' Resume |27: 4 Reopen the last picker as it was: its rows, marks, cursor and query. -|28: 5 In the tag of the pane its Enter lands in from this one: this pane if it reads, else its rea↩ +|28: 5 Under this pane's tag, previewing where its Enter lands: this pane if it reads, else its rea↩ |29: der. `SPC '`; again after its Esc, nothing typed between, the one before it; Ctrl-o and Ctrl |30: ✓ @p1 Help 1 message · SPC h m == snap leaderworks grid=100x31 cursor=12,21 |
