diff options
Diffstat (limited to 'test/process/tty_editing.zig')
| -rw-r--r-- | test/process/tty_editing.zig | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/test/process/tty_editing.zig b/test/process/tty_editing.zig index 53e1da1e..e6af5562 100644 --- a/test/process/tty_editing.zig +++ b/test/process/tty_editing.zig @@ -109,7 +109,7 @@ fn fileedit(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.snap("undone"); // Save through the file pane's own tag: `:` focuses that same tag and `w` // selects Save before the ordinary execute key runs it. - try t.key(":"); + try t.key(": :"); try t.stable(400, 5000); try t.key("w tab"); try t.stable(600, 8000); @@ -1373,7 +1373,7 @@ fn cmdword(gpa: std.mem.Allocator, exe: [:0]const u8) !void { // opens ITS tag; `A` appends at the end of it, Esc and `h` put the // normal-mode cursor on the last character typed, and the execute key runs // the word under it exactly as the body's does. - try t.key(":"); + try t.key(": :"); try t.key("A"); try t.key("space"); try t.send("Exec"); @@ -1389,7 +1389,7 @@ fn cmdword(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.snap("execword"); // a command word run from that tag runs as a command pane in the directory // the pane lists, as a word run from any text pane's tag does - try t.key(":"); + try t.key(": :"); try t.key("A"); try t.key("space"); try t.send("@`echo ZZ''T`"); @@ -2376,7 +2376,7 @@ fn tagcmd(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.stable(400, 5000); try t.snap("edited"); // `:` -> the tag, in normal mode, cursor on Save - try t.key(":"); + try t.key(": :"); try t.stable(400, 5000); try t.snap("colon"); // w -> the "Save" span (selected, like the body's word motion) @@ -2390,7 +2390,7 @@ fn tagcmd(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.snap("saved"); try t.snapFile("written", "/tmp/pardes-snap/tagcmd/cwd/c.txt"); // `:` then `:`: back to the body with the tag untouched, nothing run - try t.key(":"); + try t.key(": :"); try t.stable(400, 5000); try t.key(":"); try t.stable(400, 5000); @@ -2433,7 +2433,7 @@ fn tagnav(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.stable(400, 5000); try t.snap("start"); // `:` -> the file's OWN tagline, normal mode, on Save - try t.key(":"); + try t.key(": :"); try t.stable(400, 5000); try t.snap("colon"); // w selects in the tag the way it selects in a body @@ -2450,13 +2450,13 @@ fn tagnav(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.stable(400, 5000); try t.snap("right"); // `:` there -> that pane's own tag, on its Save the first time - try t.key(":"); + try t.key(": :"); try t.stable(400, 5000); try t.snap("right-tag"); // back left, and `:` finds the file's tag cursor where l left it try t.key("c-w h enter"); try t.stable(400, 5000); - try t.key(":"); + try t.key(": :"); try t.stable(400, 5000); try t.snap("left-tag"); // `:` in the tag's normal mode: back to the body @@ -2537,7 +2537,7 @@ fn tagpath(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.wait(8000, "c.txt"); try t.stable(700, 20000); try t.snap("start"); - try t.key(":"); + try t.key(": :"); try t.stable(400, 5000); try t.snap("colon"); try t.key("0"); @@ -2576,7 +2576,7 @@ fn tagpath(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.key("esc"); try t.stable(400, 5000); try t.snap("name-cancelled"); - try t.key(":"); + try t.key(": :"); try t.key("0"); try t.key("i"); try t.send("/renamed"); |
