summaryrefslogtreecommitdiff
path: root/test/process/tty_editing.zig
diff options
context:
space:
mode:
Diffstat (limited to 'test/process/tty_editing.zig')
-rw-r--r--test/process/tty_editing.zig10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/process/tty_editing.zig b/test/process/tty_editing.zig
index 896a3634..0ae99de7 100644
--- a/test/process/tty_editing.zig
+++ b/test/process/tty_editing.zig
@@ -365,6 +365,8 @@ fn pipe(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
fn chordcut(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
var t = try Tty.init(gpa, exe, "chordcut");
defer t.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ try t.config("Jumps new-pane");
try t.lines("f.txt", 5, "");
try t.lines("g.txt", 2, "");
// The narrow-window fallback splits below the source shell and leaves the
@@ -742,6 +744,8 @@ fn fsearch(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
fn grep(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
var t = try Tty.init(gpa, exe, "grep");
defer t.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ try t.config("Jumps new-pane");
try t.dir("sub");
try t.file("a.txt", "hello TARGET one\nnothing here\nlast TARGET line");
try t.file("sub/b.txt", "deep\nTARGET inside sub");
@@ -1329,6 +1333,8 @@ fn jumps(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
fn cmdword(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
var t = try Tty.init(gpa, exe, "cmdword");
defer t.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ try t.config("Jumps new-pane");
try t.file("cmds.txt", "@`echo ZZ''E` @`echo ZZ''L` Look p.txt @`Look .`");
try t.file("p.txt", "just text");
try t.file("zzmark.txt", "x");
@@ -1891,6 +1897,8 @@ fn lspdebug(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
fn lsprelpath(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
var t = try Tty.init(gpa, exe, "lsprelpath");
defer t.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ try t.config("Jumps new-pane");
try t.dir("sub");
try t.dir("sub/inner");
try t.file("shade.zig", "pub const Shade = enum {\n verdigris,\n cinnabar,\n};\n");
@@ -1988,6 +1996,8 @@ fn lsp_rename(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
fn lsp_rename_files(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
var t = try Tty.init(gpa, exe, "lsp-rename-files");
defer t.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ try t.config("Jumps new-pane");
try t.file("lib.rs", "// main.rs\npub fn add(a: i32, b: i32) -> i32 {\n a + b\n}\n");
try t.file("main.rs", "mod lib;\n\nfn main() {\n let x = add(1, 2);\n let y = add(3, 4);\n let _ = x + y;\n}\n");
try t.start(25, 100, &.{"lib.rs"});