diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-26 13:16:02 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-26 13:25:15 -0300 |
| commit | 12715baaa9341fbc79c8bf4573c372843064ea51 (patch) | |
| tree | 63b3ff9d874d5ac974cb979313b0db79e717c37c /core | |
| parent | 163c6202017f8389a67d42f1f1037633ca4dfaa1 (diff) | |
| download | pardes-12715baaa9341fbc79c8bf4573c372843064ea51.tar.gz pardes-12715baaa9341fbc79c8bf4573c372843064ea51.zip | |
builtins, Pick, docs/typ: the help text that still put what a state shows in the tag says it hangs under the tag, as walkui UX DESIGN parts M and O have it (M1: a tag never leaves rest, everything a state shows hangs under it; O1: a picker hangs under the tag of the pane with the keyboard, only its preview goes to the pane its Enter lands in): Keys (describe-key: `the next keys typed are replayed under the tag`, `The row under the tag shows Keys and the keys as typed; ... unrolls its level below`), Messages (`a list under the pane's tag`), Resume (`Under this pane's tag, previewing where its Enter lands: this pane if it reads, else its reader`, where it said the picker unrolled in the tag of the pane its Enter lands in, a held pane's reader), CodeAction (`a picker under the pane's tag`), and the same words in docs/typ/builtins-tui.json and builtins-gui.json (the glossary the build writes from these docs; core/builtins_json.zig's test holds them to the registry), Pick.resumeAt's doc and two code comments in builtins.zig (Themes, Query's sources); WHAT WAS LOOKED AT: docs/typ (guide, reference, cheatsheet, running, setup, scripting, building, themes), core/tutor.txt, fs-help.txt, README.md and every builtin's documentation (the Help index): none of them names the act/source row, says a click ends a picker or a prompt, or puts a picker's head in a tag but these four; a question still takes the keyboard in its pane's tag (M1 leaves asking as it is), so Message's doc stays; Keys' doc is worded to keep its three rows in the Help index (process-test's builtins case middle-clicks Tutor's row by its number); TEXT ONLY, no behaviour; GOLDENS (the Help index's text rows only, no style row moved): builtins.golden docs-group and tutor-from-index (Keys' and Messages' rows), leader.golden help-group, tutor, deleted (Keys', Messages') and help-language (CodeAction's), ttyhelp.golden helped and leaderworks (Resume's); GATES (Debug tui): core-test 1165/1340 (175 skipped; the glossary's test with them), process-test 0 of 103 failed with --update (the three re-recorded, read above; a first wording of Keys' doc took a fourth row and failed builtins' `@Tutor` on row 31, reworded); load 1.4 to 2.1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
Diffstat (limited to 'core')
| -rw-r--r-- | core/Pick.zig | 2 | ||||
| -rw-r--r-- | core/builtins.zig | 18 |
2 files changed, 10 insertions, 10 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 { |
