summaryrefslogtreecommitdiff
path: root/test/output.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-25 10:27:05 -0300
committerGabriel Schneider <[email protected]>2026-10-25 11:58:11 -0300
commitbfdc8a9e61dd20c91b68f62187e724d1a98445a4 (patch)
treea020fcbdc9ca8be68aa8983837accc2328f0e742 /test/output.zig
parent8bcaa657b39f24f0f2457f5c28e7095d5113ba73 (diff)
downloadpardes-bfdc8a9e61dd20c91b68f62187e724d1a98445a4.tar.gz
pardes-bfdc8a9e61dd20c91b68f62187e724d1a98445a4.zip
query: a language server's list is answered, not typed: one place lands on it (Diagnostics too now), the place fed as the text's places so it is tinted and n/N have it, no query pane; several open the list with the keyboard on its current row in normal mode (showCurrent: the caret on the rows is the current row, n/N take it there), its target shown, Esc in it back to the text as it was; none is a message; line 1 keeps its word as text; Diagnostics keep the keyboard in the text for ]d; lsp-client and lsprelpath step with n, their goldens the caret on the row and no insert marker
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016u3hBPFfja5pK4EBRC1UVD
Diffstat (limited to 'test/output.zig')
-rw-r--r--test/output.zig6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/output.zig b/test/output.zig
index 8eb389c8..530db77c 100644
--- a/test/output.zig
+++ b/test/output.zig
@@ -219,9 +219,11 @@ test "references fill the asking text's query pane: sorted under their files, th
try std.testing.expectEqual(@as(?usize, 2), source.places.current);
try std.testing.expectEqual(@as(i32, 3), source.body.cur_row);
try std.testing.expectEqual(@as(usize, 6), results.query.?.total);
- // Ctrl-n on line 1, Enter: the keyboard on that ref in the text
+ // A list answered, not a query typed: the keyboard on its current row in
+ // normal mode; n, Enter: the keyboard on that ref in the text
try std.testing.expectEqual(qid, p.active);
- p.update(.{ .key = .{ .cp = 'n', .ctrl = true } });
+ try std.testing.expect(results.body.mode == .normal and results.body.cur_row > 0);
+ p.update(.{ .key = .{ .cp = 'n' } });
try std.testing.expectEqual(@as(?usize, 3), source.places.current);
p.update(.{ .key = .{ .cp = Key.enter } });
try std.testing.expectEqual(@as(usize, 0), p.active);