Add current file search

This commit is contained in:
slhx agent
2026-06-21 12:53:17 +02:00
parent 30af1e97bc
commit 70ef989c2a
4 changed files with 249 additions and 28 deletions
+4 -4
View File
@@ -86,7 +86,7 @@ test "regular: mobile trace performs code edit with leader save and quit" {
\\key p
\\key s
\\key space
\\key s
\\key w
\\key space
\\key q
\\
@@ -111,7 +111,7 @@ test "regular: mobile trace edits UTF-8 and hard-to-reach braces" {
\\key space
\\type n
\\key space
\\key s
\\key w
\\key space
\\key q
\\
@@ -123,7 +123,7 @@ test "regular: mobile search entry is reachable and recoverable without desktop
const trace =
\\open abc
\\key space
\\key /
\\key s
\\
;
try assertMobileOnlyTrace(trace);
@@ -135,7 +135,7 @@ test "regular: mobile search entry is reachable and recoverable without desktop
}
const frame = try client.render(std.testing.allocator);
defer std.testing.allocator.free(frame);
try std.testing.expect(std.mem.indexOf(u8, frame, "search is not built") != null);
try std.testing.expect(std.mem.indexOf(u8, frame, "search: f current file") != null);
try std.testing.expect(!client.quit);
try std.testing.expectError(tui.Error.NothingSaved, client.saved());
}