diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-04 10:56:51 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-04 10:59:26 -0300 |
| commit | 5752e5c94f27eced137f4ca061c68715d8b7131a (patch) | |
| tree | ffc1785740fb008e2ebb10053a2aaaaa25b82fd6 /test/panes.zig | |
| parent | 54f3ce0443f46f0bfe7565d6a31fb906beadf3b9 (diff) | |
| download | pardes-5752e5c94f27eced137f4ca061c68715d8b7131a.tar.gz pardes-5752e5c94f27eced137f4ca061c68715d8b7131a.zip | |
mouse: a click on a tag, a pane's, a column's or the workspace's, puts its cursor there in normal mode, where it was insert mode (the user's): a letter is a command, `i` types where it was clicked, Enter or Tab runs the word under it; the guide, the cheatsheet and the changelog say so; the tests that clicked a tag and typed now type `i` (or `a` after a sweep) first, and an Esc that left insert mode goes; snap: nine scripts likewise, layout-close's golden now the Del its chord was meant to run (the click had typed ` dk` into the tag); a behavioural test, checked to fail with insert mode back
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'test/panes.zig')
| -rw-r--r-- | test/panes.zig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/panes.zig b/test/panes.zig index db816d41..3b842c59 100644 --- a/test/panes.zig +++ b/test/panes.zig @@ -63,6 +63,8 @@ const TagLayerTests = struct { p.update(.{ .mouse = mouse(layer, x, .release) }); try std.testing.expect(pane.focus == .tag); try std.testing.expectEqual(at, @as(usize, @intCast(pane.tag.cur_col))); + // A clicked tag is in normal mode: `i` types where it was clicked. + p.update(.{ .key = .{ .cp = 'i', .text = "i" } }); p.update(.{ .key = .{ .cp = 'X', .text = "X" } }); _ = try p.render(frame.allocator()); const edited = try pardes.tagline.tagText(p, frame.allocator(), pane); |
