Add current file search
This commit is contained in:
+3
-3
@@ -260,7 +260,7 @@ fn runLocalEditor(
|
||||
if (client.requestedQuit()) {
|
||||
if (dirty) {
|
||||
client.clearQuit();
|
||||
client.setStatusMessage("dirty buffer: Space s saves, quit blocked");
|
||||
client.setStatusMessage("dirty buffer: Space w saves, quit blocked");
|
||||
continue;
|
||||
}
|
||||
return;
|
||||
@@ -325,7 +325,7 @@ fn renderLocalFrame(allocator: std.mem.Allocator, io: std.Io, stdout: std.Io.Fil
|
||||
try stdout.writeStreamingAll(io, if (is_dir)
|
||||
"\nDirectory browser. Space opens commands; o/Enter opens panel items where available; q quits when clean.\n"
|
||||
else
|
||||
"\nEditor. Type to insert; arrows move; Space shows commands; Space s saves; Space q quits when clean.\n");
|
||||
"\nEditor. Type to insert; arrows move; Space shows commands; Space w saves; Space q quits when clean.\n");
|
||||
}
|
||||
|
||||
fn printLocalContext(allocator: std.mem.Allocator, io: std.Io, args: *std.process.Args.Iterator, stdout: std.Io.File) !void {
|
||||
@@ -506,7 +506,7 @@ test "regular: local editor client exposes save and dirty quit guards" {
|
||||
try client.handleInput("n");
|
||||
try std.testing.expectEqualStrings("normal", client.modeName());
|
||||
try client.handleInput(" ");
|
||||
try client.handleInput("s");
|
||||
try client.handleInput("w");
|
||||
try std.testing.expectEqualStrings("hello", try client.saved());
|
||||
|
||||
try client.handleInput("i");
|
||||
|
||||
Reference in New Issue
Block a user