summaryrefslogtreecommitdiff
path: root/core/lsp
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-24 21:10:48 -0300
committerGabriel Schneider <[email protected]>2026-11-24 21:10:58 -0300
commit9d7f1c626687454cd2d8431aa8f6c905efd7ce97 (patch)
tree9a2c82edc4d7faaf70119f48f101bcfeaf5b2470 /core/lsp
parent3621482c586b1d0d3601a1668a307918f1faea93 (diff)
downloadpardes-9d7f1c626687454cd2d8431aa8f6c905efd7ce97.tar.gz
pardes-9d7f1c626687454cd2d8431aa8f6c905efd7ce97.zip
Pick: the entry points open a picker in the tag (walk UI, pick-ui SPEC.md §14.3 phase 4, item 5 of line D): in a session whose jumps walk, from the keyboard or a click (Pick.asked: never a 9P script's, which keeps the query pane whose rows it reads back and whose `not found` it hears), Find and Grep (`SPC f f`, `SPC f g`, their words), Recent (`SPC f r`), Search's sources (`SPC b b` Panes, `SPC s s` Symbols, `SPC /` All), Panes, Jumplist (`SPC j l`) and the language server's symbols and diagnostics (`SPC l s`, `l S`, `l d`, `l D`: lsp/Ask.zig, a list picker titled by its word) unroll in the tag of the pane their Enter lands in; `Jumps new-pane` (still the default) keeps today's query pane and +Jumps, so no golden moves; `/` in a body stays today's; two fixes to the items before: the band is as tall as its second step (the acts and what they act on, the sources), and with the preview off (M-p) no frame is asked for it (Pick.busy spun every frame); test/perf.zig `--pick`: a key in a Find of 50,000 paths and its frame, the frames after it while the names are scored, a cursor move over files and the frame after it that loads the preview, instructions and time; TEST FIRST: Pick.zig "pick-ui §14.3 phase 4: SPC f f from a held pane opens in its reader and Esc removes it; from a reading pane it unrolls there; Enter lands as a step leaving the list word; n walks; a Look on the word reopens it with its cursor and marks"; core-test 0 failed; pane-test 182/184 and behaviour-test (and --replay) 274/277, process-test 5 of 146 failed: all the base's (A's tests not updated in this base: Help's +Help, window mode, a PDF's SPC; the goldens find, tagnav, builtins, leader, ttyhelp of A's report), shell-test, term-test, kitty-test pass
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'core/lsp')
-rw-r--r--core/lsp/Ask.zig6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/lsp/Ask.zig b/core/lsp/Ask.zig
index 29d36f0a..976821d5 100644
--- a/core/lsp/Ask.zig
+++ b/core/lsp/Ask.zig
@@ -366,6 +366,12 @@ pub fn lspResponse(p: *Pardes, id: u32, response: ?[]const u8) void {
return;
}
+ // Symbols and diagnostics asked from the keyboard, where jumps walk: a
+ // picker in the tag of the pane its Enter lands in (Pick.zig).
+ if (pardes.Pick.asked(p)) switch (w.kind) {
+ .document_symbols, .workspace_symbols, .diagnostics, .workspace_diagnostics => return pardes.Pick.open(p, asked, .list, lspWord(w.kind), "", rows),
+ else => {},
+ };
// The lists of places: into the asking text's query pane (made or
// reused), line 1 their word, the places in that text its places.
const listed: ?panes.Query.Source = switch (w.kind) {