diff options
193 files changed, 6785 insertions, 3914 deletions
diff --git a/addons/fake/fake.out b/addons/fake/fake.out index 4216d91e..8f92d24e 100644 --- a/addons/fake/fake.out +++ b/addons/fake/fake.out @@ -1,11 +1,12 @@ > seed 7 > size 60 20 -window 58x6 +window 58x7 tag fake petscii:on palette:commodore ascii:on |count 0 | | -|view 1 58x6 glyphs +|view 1 58x7 glyphs +| | | placement 2x2 src 0,0 2x2 over 0,2 2x1 key 4b3cd99b86ea3486 @@ -14,7 +15,8 @@ tag fake petscii:on palette:commodore ascii:on |count 2 |kb | -|view 1 58x6 glyphs +|view 1 58x7 glyphs +| | | placement 2x2 src 0,0 2x2 over 0,2 2x1 key fdcaab9076ad067e @@ -23,7 +25,8 @@ tag fake petscii:on palette:commodore ascii:on |count 3 |m3 | -|view 1 58x6 glyphs +|view 1 58x7 glyphs +| | | placement 2x2 src 0,0 2x2 over 0,2 2x1 key 71e39225f0cec2a5 @@ -32,7 +35,8 @@ tag fake petscii:on palette:commodore ascii:on |count 13 |m3 | -|view 1 58x6 glyphs +|view 1 58x7 glyphs +| | | placement 2x2 src 0,0 2x2 over 0,2 2x1 key 54740e23065232cf @@ -41,7 +45,8 @@ tag fake petscii:on palette:commodore ascii:on |count 19 |m3 | -|view 1 58x6 glyphs +|view 1 58x7 glyphs +| | | placement 2x2 src 0,0 2x2 over 0,2 2x1 key 540d6c1b4eee5716 @@ -50,7 +55,8 @@ tag fake petscii:on palette:commodore ascii:on |count 19 |m3 | -|view 1 58x6 glyphs +|view 1 58x7 glyphs +| | | placement 2x2 src 0,0 2x2 over 0,2 2x1 key 540d6c1b4eee5716 @@ -59,17 +65,20 @@ tag fake petscii:on palette:commodore ascii:on |count 19 |m3 | -|view 2 58x6 +|view 2 58x7 +| | | placement 2x2 src 0,0 2x2 over 0,2 2x1 key 540d6c1b4eee5716 > size 70 30 -window 68x11 +window 68x13 tag fake petscii:on palette:commodore ascii:on |count 19 |m3 | -|view 2 68x11 +|view 2 68x13 +| +| | | | @@ -83,7 +92,8 @@ tag fake petscii:on palette:commodore ascii:on |count 19 |m3 | -|view 1 58x6 glyphs +|view 1 58x7 glyphs +| | | placement 2x2 src 0,0 2x2 over 0,2 2x1 key 540d6c1b4eee5716 @@ -92,7 +102,8 @@ tag fake petscii:on palette:commodore ascii:on |count 19 |m3 | -|view 1 58x6 glyphs +|view 1 58x7 glyphs +| | | placement 2x2 src 0,0 2x2 over 0,2 2x1 key 540d6c1b4eee5716 @@ -101,7 +112,8 @@ tag fake petscii:on palette:commodore ascii:on |count 19 |m3 | -|view 1 58x6 glyphs +|view 1 58x7 glyphs +| | | placement 2x2 src 0,0 2x2 over 0,2 2x1 key 540d6c1b4eee5716 diff --git a/addons/life/life.out b/addons/life/life.out index e6da2e40..e9c6b733 100644 --- a/addons/life/life.out +++ b/addons/life/life.out @@ -1,6 +1,6 @@ > seed 7 > size 40 36 -window 38x15 +window 38x16 tag gen 0 alive 130 |.#.#.......##......#...#..#..... |#.#......#......#......#.#...... @@ -17,6 +17,7 @@ tag gen 0 alive 130 |..#..#...#.##....#.#..........## |..#...#..###..#...........#..#.# |....#......##.##..#.#.....#.#.#. +|..#..##.#.......##.....#...#.... > tick 100 tag gen 0 alive 130 |.#.#.......##......#...#..#..... @@ -34,6 +35,7 @@ tag gen 0 alive 130 |..#..#...#.##....#.#..........## |..#...#..###..#...........#..#.# |....#......##.##..#.#.....#.#.#. +|..#..##.#.......##.....#...#.... > tick 100 tag gen 1 alive 170 |.#.#............##....##..#..... @@ -51,6 +53,7 @@ tag gen 1 alive 170 |#######..#.###....#......#....## |...#.#...#....##..##.......#.#.# |...#..##.#.#######........#.###. +|..####.......#.#####......##.... > tick 100 tag gen 2 alive 126 |.#...........###......######.... @@ -68,6 +71,7 @@ tag gen 2 alive 126 |..........######..#.......#..#.. |.#.....#.#........##......##.... |......#.#.#.#.............#..##. +|.....##......#...........##.##.. > key x x tag gen 3 alive 131 paused |.#.........#...#......#.....#... @@ -84,6 +88,8 @@ tag gen 3 alive 131 paused |..........#.....##....######..#. |........#.#...##.###........#... |.......###....#...##.....######. +|.....##.##...................##. +|.....###....##.........#....###. > tick 300 tag gen 3 alive 131 paused |.#.........#...#......#.....#... @@ -100,6 +106,8 @@ tag gen 3 alive 131 paused |..........#.....##....######..#. |........#.#...##.###........#... |.......###....#...##.....######. +|.....##.##...................##. +|.....###....##.........#....###. > key lljx tag gen 3 alive 130 paused |.#.........#...#......#.....#... @@ -116,6 +124,8 @@ tag gen 3 alive 130 paused |..........#.....##....######..#. |........#.#...##.###........#... |.......###....#...##.....######. +|.....##.##...................##. +|.....###....##.........#....###. > key k tag gen 3 alive 130 paused |.#.........#...#......#.....#... @@ -132,6 +142,8 @@ tag gen 3 alive 130 paused |..........#.....##....######..#. |........#.#...##.###........#... |.......###....#...##.....######. +|.....##.##...................##. +|.....###....##.........#....###. > body =.#.........#...#......#.....#... =...........#...................# @@ -166,6 +178,8 @@ tag gen 3 alive 130 paused |..........#.....##....######..#. |........#.#...##.###........#... |.......###....#...##.....######. +|.....##.##...................##. +|.....###....##.........#....###. > key r tag gen 0 alive 130 paused |.#.#.......##......#...#..#..... @@ -182,6 +196,8 @@ tag gen 0 alive 130 paused |.#..##.......#..#..#....#.#..... |..#..#...#.##....#.#..........## |..#...#..###..#...........#..#.# +|....#......##.##..#.#.....#.#.#. +|..#..##.#.......##.....#...#.... > key h l tag gen 0 alive 130 |.#.#.......##......#...#..#..... @@ -199,6 +215,7 @@ tag gen 0 alive 130 |..#..#...#.##....#.#..........## |..#...#..###..#...........#..#.# |....#......##.##..#.#.....#.#.#. +|..#..##.#.......##.....#...#.... > tick 100 tag gen 0 alive 130 |.#.#.......##......#...#..#..... @@ -216,6 +233,7 @@ tag gen 0 alive 130 |..#..#...#.##....#.#..........## |..#...#..###..#...........#..#.# |....#......##.##..#.#.....#.#.#. +|..#..##.#.......##.....#...#.... > tick 100 tag gen 2 alive 126 |.#...........###......######.... @@ -233,6 +251,7 @@ tag gen 2 alive 126 |..........######..#.......#..#.. |.#.....#.#........##......##.... |......#.#.#.#.............#..##. +|.....##......#...........##.##.. > blur tag gen 2 alive 126 |.#...........###......######.... @@ -250,6 +269,7 @@ tag gen 2 alive 126 |..........######..#.......#..#.. |.#.....#.#........##......##.... |......#.#.#.#.............#..##. +|.....##......#...........##.##.. > tick 300 tag gen 2 alive 126 |.#...........###......######.... @@ -267,6 +287,7 @@ tag gen 2 alive 126 |..........######..#.......#..#.. |.#.....#.#........##......##.... |......#.#.#.#.............#..##. +|.....##......#...........##.##.. > focus tag gen 2 alive 126 |.#...........###......######.... @@ -284,6 +305,7 @@ tag gen 2 alive 126 |..........######..#.......#..#.. |.#.....#.#........##......##.... |......#.#.#.#.............#..##. +|.....##......#...........##.##.. > tick 200 tag gen 3 alive 131 |.#.........#...#......#.....#... @@ -301,3 +323,4 @@ tag gen 3 alive 131 |........#.#...##.###........#... |.......###....#...##.....######. |.....##.##...................##. +|.....###....##.........#....###. diff --git a/addons/pdf/pdf.out b/addons/pdf/pdf.out index 1c438783..a0804da2 100644 --- a/addons/pdf/pdf.out +++ b/addons/pdf/pdf.out @@ -1,5 +1,5 @@ > open docs/design.pdf -window 78x8 +window 78x9 tag [1/16] petscii:on palette:commodore ascii:on docs/design.pdf |Pardes: A Text Environment |Architecture and implementation of the rewrite @@ -9,6 +9,7 @@ tag [1/16] petscii:on palette:commodore ascii:on docs/design.pdf |— where the prototype had three parallel implementations of one editor. Two se |is a state machine over plain values: Event in, Surface and a queue of Effect |said in those types exists in pardes. Downward, host.VTable is twenty-one opti +|one answered in-process, so the zero-method host is both the test harness and > graphics on tag [1/16] petscii:off palette:commodore ascii:on docs/design.pdf | @@ -19,9 +20,10 @@ tag [1/16] petscii:off palette:commodore ascii:on docs/design.pdf | | | -placement 794x1123 src 0,0 794x163 over 0,0 78x8 key 3017bc3ce49f9593 at 0,0 624x128 +| +placement 794x1123 src 0,0 794x184 over 0,0 78x9 key 3017bc3ce49f9593 at 0,0 624x144 > size 60 20 -window 58x6 +window 58x7 tag [1/16] petscii:off palette:commodore ascii:on docs/design.pdf | | @@ -29,7 +31,8 @@ tag [1/16] petscii:off palette:commodore ascii:on docs/design.pdf | | | -placement 794x1123 src 0,0 794x165 over 0,0 58x6 key 71e39225f0cec2a5 at 0,0 464x96 +| +placement 794x1123 src 0,0 794x192 over 0,0 58x7 key 71e39225f0cec2a5 at 0,0 464x112 > key j tag [1/16] petscii:off palette:commodore ascii:on docs/design.pdf | @@ -38,7 +41,8 @@ tag [1/16] petscii:off palette:commodore ascii:on docs/design.pdf | | | -placement 794x1123 src 0,27 794x165 over 0,0 58x6 key 71e39225f0cec2a5 at 0,0 464x96 +| +placement 794x1123 src 0,27 794x193 over 0,0 58x7 key 71e39225f0cec2a5 at 0,0 464x112 > key 3j tag [1/16] petscii:off palette:commodore ascii:on docs/design.pdf | @@ -47,7 +51,8 @@ tag [1/16] petscii:off palette:commodore ascii:on docs/design.pdf | | | -placement 794x1123 src 0,109 794x166 over 0,0 58x6 key 71e39225f0cec2a5 at 0,0 464x96 +| +placement 794x1123 src 0,109 794x193 over 0,0 58x7 key 71e39225f0cec2a5 at 0,0 464x112 > key G tag [16/16] petscii:off palette:commodore ascii:on docs/design.pdf | @@ -56,7 +61,8 @@ tag [16/16] petscii:off palette:commodore ascii:on docs/design.pdf | | | -placement 794x1123 src 0,0 794x165 over 0,0 58x6 key 1182c0220e1b5a25 at 0,0 464x96 +| +placement 794x1123 src 0,0 794x192 over 0,0 58x7 key 1182c0220e1b5a25 at 0,0 464x112 > key gg tag [1/16] petscii:off palette:commodore ascii:on docs/design.pdf | @@ -65,7 +71,8 @@ tag [1/16] petscii:off palette:commodore ascii:on docs/design.pdf | | | -placement 794x1123 src 0,0 794x165 over 0,0 58x6 key 5400263dddff499a at 0,0 464x96 +| +placement 794x1123 src 0,0 794x192 over 0,0 58x7 key 5400263dddff499a at 0,0 464x112 > key 3gg tag [3/16] petscii:off palette:commodore ascii:on docs/design.pdf | @@ -74,7 +81,8 @@ tag [3/16] petscii:off palette:commodore ascii:on docs/design.pdf | | | -placement 794x1123 src 0,0 794x165 over 0,0 58x6 key 1da05d9257cc481d at 0,0 464x96 +| +placement 794x1123 src 0,0 794x192 over 0,0 58x7 key 1da05d9257cc481d at 0,0 464x112 > PdfFit tag [3/16] petscii:off palette:commodore ascii:on docs/design.pdf | @@ -83,7 +91,8 @@ tag [3/16] petscii:off palette:commodore ascii:on docs/design.pdf | | | -placement 794x1123 src 0,0 794x1123 over 0,0 58x6 key acaee8c0ff4f63a6 at 198,0 67x96 +| +placement 794x1123 src 0,0 794x1123 over 0,0 58x7 key acaee8c0ff4f63a6 at 192,0 79x112 > ctl =fit:height tint:filtered > PdfTint full @@ -94,7 +103,8 @@ tag [3/16] petscii:off palette:commodore ascii:on docs/design.pdf | | | -placement 794x1123 src 0,0 794x1123 over 0,0 58x6 key 11acd08483d3011b at 198,0 67x96 +| +placement 794x1123 src 0,0 794x1123 over 0,0 58x7 key 11acd08483d3011b at 192,0 79x112 > ctl =fit:height tint:full > PdfTint loud @@ -105,7 +115,8 @@ tag [3/16] petscii:off palette:commodore ascii:on docs/design.pdf | | | -placement 794x1123 src 0,0 794x1123 over 0,0 58x6 key 11acd08483d3011b at 198,0 67x96 +| +placement 794x1123 src 0,0 794x1123 over 0,0 58x7 key 11acd08483d3011b at 192,0 79x112 > key <esc> tag [3/16] petscii:off palette:commodore ascii:on docs/design.pdf | @@ -114,7 +125,8 @@ tag [3/16] petscii:off palette:commodore ascii:on docs/design.pdf | | | -placement 794x1123 src 0,0 794x1123 over 0,0 58x6 key 11acd08483d3011b at 198,0 67x96 +| +placement 794x1123 src 0,0 794x1123 over 0,0 58x7 key 11acd08483d3011b at 192,0 79x112 > dump dump 24 bytes tag [3/16] petscii:off palette:commodore ascii:on docs/design.pdf @@ -124,7 +136,8 @@ tag [3/16] petscii:off palette:commodore ascii:on docs/design.pdf | | | -placement 794x1123 src 0,0 794x1123 over 0,0 58x6 key 4a2b3987bae4cbef at 198,0 67x96 +| +placement 794x1123 src 0,0 794x1123 over 0,0 58x7 key 4a2b3987bae4cbef at 192,0 79x112 > graphics off tag [3/16] petscii:on palette:commodore ascii:on docs/design.pdf |The watch path, in full, because it is the ask with the mo @@ -133,6 +146,7 @@ tag [3/16] petscii:on palette:commodore ascii:on docs/design.pdf |otify or a macOS kqueue behind one mark/reconcile transact |the native macOS host watches with debounced DispatchSourc |instead, then restats the exact path under a pane-generati +|guard. All three macOS watchers mark the same two things f > key j tag [4/16] petscii:on palette:commodore ascii:on docs/design.pdf |/// How to route a method, read off its own name. A method @@ -141,6 +155,7 @@ tag [4/16] petscii:on palette:commodore ascii:on docs/design.pdf |/// user: one Ctrl-V pasting twice. |fn isPull(comptime name: []const u8) bool { | if (std.mem.startsWith(u8, name, "pull_")) return true +| if (std.mem.startsWith(u8, name, "push_")) { > key 2k tag [2/16] petscii:on palette:commodore ascii:on docs/design.pdf |the core — src/pardes.zig @@ -149,6 +164,7 @@ tag [2/16] petscii:on palette:commodore ascii:on docs/design.pdf |emit(e) → fixed ring, limits.effect_cap |nextEffect() → perform(e) |single-threaded by construction +|native input > key 3gj tag [2/16] petscii:on palette:commodore ascii:on docs/design.pdf |emit(e) → fixed ring, limits.effect_cap @@ -157,6 +173,7 @@ tag [2/16] petscii:on palette:commodore ascii:on docs/design.pdf |native input |termios+vaxis / SDL / DOM / |AppKit / a byte sink on a UART +|Event > key gk tag [2/16] petscii:on palette:commodore ascii:on docs/design.pdf |render(arena) → *Surface @@ -165,8 +182,10 @@ tag [2/16] petscii:on palette:commodore ascii:on docs/design.pdf |single-threaded by construction |native input |termios+vaxis / SDL / DOM / +|AppKit / a byte sink on a UART > key 999gj tag [2/16] petscii:on palette:commodore ascii:on docs/design.pdf +|detach is served only by a detached core’s host, and the n |is the point rather than an oversight — a local tty or SDL |has no session to leave, so perform reports that on the pa |message row instead of quietly quitting something (the .de @@ -181,6 +200,7 @@ tag [3/16] petscii:on palette:commodore ascii:on docs/design.pdf |otify or a macOS kqueue behind one mark/reconcile transact |the native macOS host watches with debounced DispatchSourc |instead, then restats the exact path under a pane-generati +|guard. All three macOS watchers mark the same two things f > open test/pdf-fixtures/huge-pages.pdf window 58x2 tag [1/4] petscii:on palette:commodore ascii:on test/pdf-fixtures/huge-pages.pdf diff --git a/addons/snake/snake.out b/addons/snake/snake.out index 3249eaf9..6869c5cc 100644 --- a/addons/snake/snake.out +++ b/addons/snake/snake.out @@ -1,6 +1,6 @@ > seed 3 > size 40 30 -window 38x12 +window 38x13 tag Snake 0 |###################### |# # @@ -14,6 +14,7 @@ tag Snake 0 | | | +| > tick 150 tag Snake 0 |###################### @@ -28,6 +29,7 @@ tag Snake 0 | | | +| > tick 150 tag Snake 0 |###################### @@ -42,6 +44,7 @@ tag Snake 0 | | | +| > key k tag Snake 0 |###################### @@ -56,6 +59,7 @@ tag Snake 0 | | | +| > tick 150 tag Snake 0 |###################### @@ -70,6 +74,7 @@ tag Snake 0 | | | +| > key l tag Snake 0 |###################### @@ -84,6 +89,7 @@ tag Snake 0 | | | +| > tick 150 tag Snake 0 |###################### @@ -98,6 +104,7 @@ tag Snake 0 | | | +| > tick 150 tag Snake 1 |###################### @@ -112,6 +119,7 @@ tag Snake 1 | | | +| > key h tag Snake 1 |###################### @@ -126,6 +134,7 @@ tag Snake 1 | | | +| > tick 150 tag Snake 1 |###################### @@ -140,6 +149,7 @@ tag Snake 1 | | | +| > key j tag Snake 1 |###################### @@ -154,6 +164,7 @@ tag Snake 1 | | | +| > tick 150 tag Snake 1 |###################### @@ -168,6 +179,7 @@ tag Snake 1 | | | +| > ctl =score 1 =length 4 @@ -190,6 +202,7 @@ tag Snake 1 | | | +| > settle tag Snake 1 |###################### @@ -204,6 +217,7 @@ tag Snake 1 | | | +| > tick 600 tag Snake 1 |###################### @@ -218,6 +232,7 @@ tag Snake 1 | | | +| > focus tag Snake 1 |###################### @@ -232,6 +247,7 @@ tag Snake 1 | | | +| > tick 150 tag Snake 1 |###################### @@ -246,6 +262,7 @@ tag Snake 1 | | | +| > tick 150 tag Snake 1 |###################### @@ -260,6 +277,7 @@ tag Snake 1 | | | +| > dump dump 240 bytes tag Snake 1 @@ -275,6 +293,7 @@ tag Snake 1 | | | +| > tick 150 tag Snake 1 |###################### @@ -289,6 +308,7 @@ tag Snake 1 | | | +| > tick 150 tag Snake 1 over |###################### @@ -303,6 +323,7 @@ tag Snake 1 over | | | +| > tick 150 tag Snake 1 over |###################### @@ -317,6 +338,7 @@ tag Snake 1 over | | | +| > settle tag Snake 1 over |###################### @@ -331,6 +353,7 @@ tag Snake 1 over | | | +| > key x tag Snake 0 |###################### @@ -345,6 +368,7 @@ tag Snake 0 | | | +| > tick 150 tag Snake 0 |###################### @@ -359,3 +383,4 @@ tag Snake 0 | | | +| diff --git a/core/Band.zig b/core/Band.zig index 8ee5c9f0..d60e9831 100644 --- a/core/Band.zig +++ b/core/Band.zig @@ -40,6 +40,9 @@ pub const Row = struct { on: bool = false, /// Its first `key` bytes are a key: the key ink, bold. key: u8 = 0, + /// Its first `kind` bytes are a symbol's kind mark (`t`, `f`, `m`): + /// the keyword's ink (UX DESIGN N4). + kind: u8 = 0, /// Its first `chord` bytes are a chord (Help's `SPC h t`): the key ink /// at the text's weight. chord: u8 = 0, @@ -53,8 +56,9 @@ pub const Row = struct { index: u16 = 0, /// Marked in a picker's list: `•` before it. mark: bool = false, - /// Its first `pre` bytes are a place (`file:line`, `@p3`): the name's - /// tint; the `faint` bytes after them dimmed (a path's directory). + /// Its first `pre` bytes are a place (`file:line`, `@p3`) or a kind + /// mark: the name's tint; the `faint` bytes after them dimmed (a path's + /// directory, a symbol's qualifier). pre: u16 = 0, faint: u16 = 0, /// Said at the row's right end in the dim ink, two cells off its text @@ -644,6 +648,7 @@ fn cutRow(arena: std.mem.Allocator, tab: u16, row: Row, room: u16) !Row { fit.text = try std.mem.concat(arena, u8, &.{ row.text[0..cut], if (room > 0) "…" else "" }); for (row.marks) |m| if (m < cut) try marks.append(arena, m); fit.key = @intCast(@min(row.key, cut)); + fit.kind = @intCast(@min(row.kind, cut)); fit.pre = @intCast(@min(row.pre, cut)); fit.faint = @intCast(@min(row.faint, cut -| fit.pre)); } @@ -681,6 +686,8 @@ test "a narrow band gives way and keeps its spines: the doc goes, the steps star defer p.deinit(); const pane = try p.setTestFile("one\n"); const id = p.view().active; + // Its own text past a row: the tag takes two (UX K'1). + pane.tag.own = try p.gpa.dupe(u8, "words of the user's own that run on past a row"); p.sync(); const rest = pane.tag_rows; try std.testing.expect(rest > 1); @@ -716,6 +723,8 @@ test "out of rest with no band, the rows a tag keeps from rest stay blank: a spi defer p.deinit(); const pane = try p.setTestFile("one\n"); const id = p.view().active; + // Its own text past a row: the tag takes two (UX K'1). + pane.tag.own = try p.gpa.dupe(u8, "words of the user's own that run on past a row"); p.sync(); const rest = pane.tag_rows; try std.testing.expect(rest > 1); diff --git a/core/Command.zig b/core/Command.zig index 908358de..f41d0639 100644 --- a/core/Command.zig +++ b/core/Command.zig @@ -2,8 +2,9 @@ //! tag after a `:` key cell, a text prompt of its own (Prompt.zig's //! `.command`). Its rows are the answers of a question waiting on the pane //! (SPEC §10.4), then the tag's own words in the tag's order (`Kill` after -//! them for a terminal), marked `in the tag`, each kind ruled off, then the -//! commands a helix hand types, each the pardes word it runs: `write` +//! them for a terminal), marked `in the tag`, then the words of the pane's +//! kind its tag does not show now (UX K'4), marked `for this pane`, each +//! kind ruled off, then the commands a helix hand types, each the pardes word it runs: `write` //! Save, `quit` Del, `theme X` Theme X, `set` and `toggle` a setting's //! word, `reload` Get, `goto N` Look `:N`, `open F` Find F, `sort`, //! `reflow` and `pipe` a pipe of the selections. The field filters them by @@ -57,10 +58,11 @@ rows: Rows = .names, /// values are its. setting: u8 = 0, /// The names' first rows are the waiting question's answers, then the -/// tag's words: how many of each there were when the field was filtered -/// (the commands' come after them). +/// tag's words, then the pane's others: how many of each there were when +/// the field was filtered (the commands' come after them). answers: u8 = 0, words: u8 = 0, +others: u8 = 0, /// Where the query starts in the field: Tab writes the current row from /// there. from: u16 = 0, @@ -86,7 +88,8 @@ const typed = [_]Typed{ .{ .name = "toggle", .arg = "setting", .rows = .settings, .doc = "Flip a setting, or step it to its next value: its word bare." }, }; -/// The tag's words `:` lists at most, and a question's answers. +/// The tag's words and the pane's others `:` lists at most, and a +/// question's answers. const max_words = 32; const max_answers = 8; /// A row's text at most, its name and what it says beside it. @@ -149,6 +152,7 @@ pub fn filter(p: *Pardes, pane: *Pane) void { c.from = 0; c.answers = 0; c.words = 0; + c.others = 0; s.rows = .{}; s.nhits = 0; s.ntotal = 0; @@ -195,7 +199,13 @@ pub fn filter(p: *Pardes, pane: *Pane) void { consider(s, q, w, c.answers + c.words); c.words += 1; } - for (typed, 0..) |t, i| consider(s, q, t.name, c.answers + c.words + i); + var others = otherWords(pane); + while (others.next()) |w| { + if (c.words + c.others == max_words) break; + consider(s, q, w, c.answers + c.words + c.others); + c.others += 1; + } + for (typed, 0..) |t, i| consider(s, q, t.name, c.answers + c.words + c.others + i); }, .themes => for (colors.themes, 0..) |t, i| consider(s, q, t.name, i), .settings => { @@ -263,14 +273,16 @@ fn matches(q: []const u8, text: []const u8) bool { return Names.match(q, t, std.ascii.lowerString(&low, t), 0, null, null) != null; } -/// The tag's own words, in its order: its text after the prefix but `|`, -/// then for a terminal `Kill` (its job's), unless the tag has it. +/// The tag's words, in its order: its computed words, then its own text +/// but `|` (UX K'1), then for a terminal `Kill` (its job's), unless the +/// tag has it. const Words = struct { - words: std.mem.TokenIterator(u8, .any), + computed: std.mem.TokenIterator(u8, .any), + own: std.mem.TokenIterator(u8, .any), kill: bool, fn next(w: *Words) ?[]const u8 { - while (w.words.next()) |word| { + while (w.computed.next() orelse w.own.next()) |word| { if (std.mem.eql(u8, word, "|")) continue; if (std.mem.eql(u8, word, "Kill")) w.kill = false; return word; @@ -282,7 +294,38 @@ const Words = struct { }; fn tagWords(pane: *Pane) Words { - return .{ .words = std.mem.tokenizeAny(u8, tagline.curTail(pane), " \t\n"), .kill = pane.isTerminal() and pane.command == null }; + return .{ .computed = std.mem.tokenizeAny(u8, tagline.computedWords(pane), " "), .own = std.mem.tokenizeAny(u8, tagline.curTail(pane), " \t\n"), .kill = pane.isTerminal() and pane.command == null }; +} + +/// The words of the pane's kind its tag does not show now (UX K'4): those +/// its tag had before K' (tagline.kindTail: Save while clean, Term, +/// Collapse, Follow, Def, Refs, TreeContext, Mode, Filter, ...), then a +/// file's Undo and Redo (u, U); each runs from `:` as it ran from the tag. +const Others = struct { + pane: *Pane, + kind: std.mem.TokenIterator(u8, .scalar), + edits: u8, + + fn next(o: *Others) ?[]const u8 { + while (true) { + const word = o.kind.next() orelse edit: { + const all = [_][]const u8{ "Undo", "Redo" }; + if (o.edits == all.len) return null; + o.edits += 1; + break :edit all[o.edits - 1]; + }; + var shown = tagWords(o.pane); + while (shown.next()) |w| { + if (std.mem.eql(u8, w, word)) break; + } else return word; + } + } +}; + +fn otherWords(pane: *Pane) Others { + // A query's text is its rows (Query.zig): none of a file's edits. + const edits = pane.file != null and pane.query == null; + return .{ .pane = pane, .kind = std.mem.tokenizeScalar(u8, tagline.kindTail(pane), ' '), .edits = if (edits) 0 else 2 }; } /// What row `at` of the rows stands for, as Tab writes it: an answer's @@ -297,6 +340,8 @@ fn rowOf(p: *Pardes, pane: *Pane, c: *const Command, at: usize) ?[]const u8 { var words = tagWords(pane); var i: usize = c.answers; while (words.next()) |w| : (i += 1) if (i == at) return w; + var others = otherWords(pane); + while (others.next()) |w| : (i += 1) if (i == at) return w; return null; }, .themes => return if (at < colors.themes.len) colors.themes[at].name else null, @@ -320,8 +365,9 @@ fn answerAt(p: *const Pardes, pane: *const Pane, c: *const Command, at: usize) ? /// The command row `at` of the names is, by its index in `typed`. fn typedAt(c: *const Command, at: usize) ?usize { - if (c.rows != .names or at < @as(usize, c.answers) + c.words) return null; - const t = at - c.answers - c.words; + const before = @as(usize, c.answers) + c.words + c.others; + if (c.rows != .names or at < before) return null; + const t = at - before; return if (t < typed.len) t else null; } @@ -569,9 +615,9 @@ pub fn steps(p: *Pardes, arena: std.mem.Allocator, out: []Band.Step) !usize { _ = Names.match(q, t, std.ascii.lowerString(&low, t), 0, &marks, &nmarks); for (marks[0..nmarks]) |*m| m.* += lead; } - // The answers' last and the tag's last word ruled off from what is - // under them. - const last = c.rows == .names and i + 1 < s.nhits and (at + 1 == c.answers or at + 1 == @as(usize, c.answers) + c.words); + // The answers' last, the tag's last word and the pane's last other + // ruled off from what is under them. + const last = c.rows == .names and i + 1 < s.nhits and (at + 1 == c.answers or at + 1 == @as(usize, c.answers) + c.words or at + 1 == @as(usize, c.answers) + c.words + c.others); row.* = .{ .text = text.items, .on = i == s.rows.at, .key = if (ans != null) 1 else 0, .marks = try arena.dupe(u16, marks[0..nmarks]), .index = @intCast(i), .under = last }; } out[0] = .{ .rows = rows }; @@ -580,14 +626,14 @@ pub fn steps(p: *Pardes, arena: std.mem.Allocator, out: []Band.Step) !usize { return 2; } -/// What row `at` says on its right: a tag's word `in the tag`, what a -/// command takes, the theme in use, a setting's value now (its line of +/// What row `at` says on its right: a tag's word `in the tag`, the pane's +/// others `for this pane`, what a command takes, the theme in use, a setting's value now (its line of /// the settings' text `now`), the value it has. fn saidOf(p: *Pardes, arena: std.mem.Allocator, c: *const Command, at: usize, name: []const u8, now: []const u8) ![]const u8 { switch (c.rows) { .names => { if (at < c.answers) return "answers the question"; - const t = typed[typedAt(c, at) orelse return "in the tag"]; + const t = typed[typedAt(c, at) orelse return wordSaid(c, at)]; return if (t.arg.len > 0) try std.fmt.allocPrint(arena, "<{s}>", .{t.arg}) else ""; }, .themes => return if (p.custom_theme == null and at == p.settings.theme) "in use" else "", @@ -605,6 +651,11 @@ fn saidOf(p: *Pardes, arena: std.mem.Allocator, c: *const Command, at: usize, na } } +/// What a word row says: in the tag, or one of the pane's others. +fn wordSaid(c: *const Command, at: usize) []const u8 { + return if (at < @as(usize, c.answers) + c.words) "in the tag" else "for this pane"; +} + /// Setting `k`'s value now, as its word is written: `on`, `walk`. fn valueNow(p: *Pardes, k: u8, buf: []u8) []const u8 { const st = config.Settings.settings[@min(k, config.Settings.settings.len - 1)]; @@ -646,7 +697,7 @@ fn docRows(p: *Pardes, arena: std.mem.Allocator, pane: *Pane, c: *const Command, return rows; } const name = rowOf(p, pane, c, at) orelse ""; - rows[0] = .{ .text = try std.fmt.allocPrint(arena, "{s} in the tag", .{name}), .key = @intCast(name.len), .index = none }; + rows[0] = .{ .text = try std.fmt.allocPrint(arena, "{s} {s}", .{ name, wordSaid(c, at) }), .key = @intCast(name.len), .index = none }; rows[1] = .{ .text = if (std.meta.stringToEnum(pardes.Builtin, name)) |b| builtins.registry.doc(b).text else "A word of this pane's tag: ⏎ runs it, as B2 on it does.", .index = none }; return rows; } @@ -691,6 +742,9 @@ test ": opens a field in the tag after its key cell: the tag's own words first, defer frame.deinit(); const a = frame.allocator(); const pane = try p.setTestFile("b\na\nc\n"); + // Typed into: its tag's words Save Undo Del (UX K'3). + typeKeys(p, "ix"); + p.update(.{ .key = .{ .cp = Key.escape } }); const rest = try std.testing.allocator.dupe(u8, try tagOf(p)); defer std.testing.allocator.free(rest); typeKeys(p, ":"); @@ -699,19 +753,22 @@ test ": opens a field in the tag after its key cell: the tag's own words first, try std.testing.expectEqual(Prompt.Op.command, s.prompt.op); try std.testing.expectEqual(panes.Pane.Focus.body, pane.focus); // The head: its key cell, the field, the count, the hints. - try std.testing.expect(has(try tagOf(p), ": 16 commands Tab complete · ⏎ run · C-r history · esc")); + try std.testing.expect(has(try tagOf(p), ": 18 commands Tab complete · ⏎ run · C-r history · esc")); // The rows: the tag's words in its order, `in the tag`, the last ruled // off; then the commands, each what it takes. try std.testing.expect(has(try bandRow(p, a, 0), "▶ Save ")); try std.testing.expect(has(try bandRow(p, a, 0), "in the tag")); - try std.testing.expect(has(try bandRow(p, a, 1), " Term ")); + try std.testing.expect(has(try bandRow(p, a, 1), " Undo ")); // The doc beside them is the current row's: Save's. try std.testing.expect(has(try bandRow(p, a, 0), "Save in the tag")); const band = (try Band.of(p, a, pane, p.view().active)).?; const first = band.steps[0].rows; - try std.testing.expect(first[4].under and !first[3].under); - try std.testing.expect(has(first[5].text, "write w")); - try std.testing.expect(has(first[7].text, "theme") and has(first[7].text, "<theme>")); + try std.testing.expect(first[2].under and !first[1].under); + // Then its kind's words the tag does not show (UX K'4), ruled off too. + try std.testing.expect(has(first[3].text, "Term for this pane")); + try std.testing.expect(first[6].under and has(first[6].text, "Redo")); + try std.testing.expect(has(first[7].text, "write w")); + try std.testing.expect(has(first[9].text, "theme") and has(first[9].text, "<theme>")); // Typing filters both, by the scorer, in their order. typeKeys(p, "th"); try std.testing.expect(has(try tagOf(p), ": th = Exec th 1 command ")); @@ -990,3 +1047,43 @@ test "a question waiting on the pane lists its answers first, each after its key try std.testing.expect(has(try bandRow(p, a, 0), "▶ Save ")); p.update(.{ .key = .{ .cp = Key.escape } }); } + +test ": lists the words of the pane's kind its tag does not show now, `for this pane`: Save while the file is clean, Collapse, Undo; Enter runs any builtin as B2 does, Joincol too (UX K'4)" { + const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .cols = 160, .rows = 40 }); + defer p.deinit(); + var frame = std.heap.ArenaAllocator.init(std.testing.allocator); + defer frame.deinit(); + const a = frame.allocator(); + const pane = try p.setTestFile("one\n"); + const id = p.view().active; + // A file reading, clean: its tag's word `Del` (`Keep` is its walk's, + // after its path); the words its kind had before UX K' and a file's + // edits are the rest, in that order. + typeKeys(p, ":"); + const s = &p.view().tag_state; + try std.testing.expectEqual(@as(u8, 1), s.prompt.command.words); + try std.testing.expectEqual(@as(u8, 6), s.prompt.command.others); + const rows = (try Band.of(p, a, pane, id)).?.steps[0].rows; + try std.testing.expect(has(rows[0].text, "Del in the tag") and rows[0].under); + try std.testing.expect(has(rows[1].text, "Save for this pane")); + try std.testing.expect(has(rows[3].text, "Collapse for this pane")); + try std.testing.expect(has(rows[5].text, "Undo for this pane")); + try std.testing.expect(has(rows[6].text, "Redo for this pane") and rows[6].under); + try std.testing.expect(has(rows[7].text, "write w")); + // Its doc is the builtin's, said for this pane. + typeKeys(p, "Coll"); + try std.testing.expect(has(try bandRow(p, a, 0), "▶ Collapse ")); + try std.testing.expect(has(try bandRow(p, a, 0), "Collapse for this pane")); + p.update(.{ .key = .{ .cp = Key.escape } }); + // Enter runs the line as B2 runs a word: Joincol, in no pane's tag, + // from two columns folds this one into the one on its right. + try std.testing.expect(p.executeBuiltinLine(id, "Newcol")); + tagline.exitHeader(p); + p.view().active = id; + p.sync(); + try std.testing.expectEqual(@as(usize, 2), p.view().ncol); + typeKeys(p, ":Joincol"); + p.update(.{ .key = .{ .cp = Key.enter } }); + try std.testing.expectEqual(@as(usize, 1), p.view().ncol); + try std.testing.expectEqualStrings("one\n", pane.file.?.content); +} diff --git a/core/Core.zig b/core/Core.zig index 9cd58c50..3a2e1f51 100644 --- a/core/Core.zig +++ b/core/Core.zig @@ -1004,24 +1004,11 @@ fn setLastDumpInner(p: *Pardes, path: []const u8) void { ctlfs.events.notePath(p, "dump", path); } -/// The workspace tag's `Restore <path>` names `path` from now on: the -/// default's does by itself, and one the tag was edited around (its own -/// text) has the old path swapped, never left pointing at a dump that is -/// not the last. +/// The window row's `Restore <path>` names `path` from now on: a computed +/// word (UX K'2, tagline.headerWords), never the user's text. pub fn pointRestoreAt(p: *Pardes, path: []const u8) void { const copy = p.gpa.dupe(u8, path) catch |err| return p.reportError(.at(p.view().active), "Restore", err); - if (p.last_dump) |old| { - if (p.global_tag.own) |own| swap: { - const a = p.scratch.allocator(); - const was = std.fmt.allocPrint(a, "Restore {s}", .{old}) catch break :swap; - if (std.mem.indexOf(u8, own, was) == null) break :swap; - const now = std.fmt.allocPrint(a, "Restore {s}", .{path}) catch break :swap; - const swapped = std.mem.replaceOwned(u8, p.gpa, own, was, now) catch break :swap; - p.gpa.free(own); - p.global_tag.own = swapped; - } - p.gpa.free(old); - } + if (p.last_dump) |old| p.gpa.free(old); p.last_dump = copy; } @@ -1170,14 +1157,13 @@ fn acknowledgeShellInner(p: *Pardes, id: Pane.Id, executable: []const u8, prompt pane.greeted = false; pane.had_shell = true; pane.fs.unmarked = !prompt_marks; - // The tag's Term word names the shell the host ran, and a click - // on it (`Term+fish`) opens another of the same. + // The tag's text names the shell the host ran (tagline.defaultTail), + // and a click on it (`Term+fish`) opens another of the same. if (pane.command == null) { // A shell given as a path keeps it: its bare name would find // nothing, or another program, on the usual paths. const base = if (pane.shell) |given| (if (std.mem.indexOfScalar(u8, given, '/') != null) given else std.Io.Dir.path.basename(executable)) else std.Io.Dir.path.basename(executable); - const rest = tagline.terminal_pane_tail[" Term".len..]; - if (std.fmt.bufPrint(&pane.shell_tail, " Term+{s}{s}", .{ base, rest })) |tail| { + if (std.fmt.bufPrint(&pane.shell_tail, "Term+{s}", .{base})) |tail| { pane.shell_tail_len = @intCast(tail.len); } else |_| {} } @@ -1347,6 +1333,8 @@ pub fn toView(p: *Pardes, k: View.Id) void { if (k.index() == p.live) return; const taped = pardes.tape.enter(p, .{ .to_view = k }); defer pardes.tape.leave(p, taped); + // A terminal the going view sizes takes the size its inputs left it. + p.sizeTerminals(); Views.to(p, k.index()); } @@ -1665,6 +1653,7 @@ pub fn settle(p: *Pardes) void { // ...and the last line of an open closed with no newline after it. ctlfs.runClosedLines(p); while (p.nextQueued()) |ev| p.update(ev); + p.sizeTerminals(); while (p.nextEffect()) |e| p.perform(e); turn.bump(&turn.epoch); } @@ -1845,7 +1834,9 @@ fn updateInner(p: *Pardes, ev: Event) void { pardes.panes.Query.produceAll(p, ev == .tick, ev == .key); pardes.Pick.produceAll(p, ev == .tick); _ = p.scratch.reset(.{ .retain_with_limit = memory.limits.scratch_kept }); - p.sync(); + // Laid out; its terminals are sized when the burst it came in is + // (`settle`, `sizeTerminals`). + p.layOut(); p.fsReport(); ctlfs.events.announce(p); } @@ -1967,8 +1958,41 @@ pub fn saveRecent(p: *Pardes) void { } /// Recompute geometry, push grid-size changes to each emulator and pty, -/// fire deferred greetings. +/// fire deferred greetings: a step of its own (a 9P request's, a view's). pub fn sync(p: *Pardes) void { + p.layOut(); + p.sizeTerminals(); +} + +/// Each terminal's emulator and pty at the size its pane is laid out to, +/// once a step and its burst of inputs (`settle`), never once a key: a +/// size the keys of one burst give and take back (a level borrowing a +/// shell's rows, the next key giving them back) reaches neither. Every +/// reflow clears the prompt line under the cursor for the shell to draw +/// again (ghostty's Screen.resize, `shell_redraws_prompt`), and the shell, +/// told twice, reads its size once, finds the one it had and draws +/// nothing: the prompt was gone until it next printed one. The emulator's +/// own size says what it was given; the view that sizes a terminal +/// (`sizes`) has its size. +pub fn sizeTerminals(p: *Pardes) void { + for (p.panes, 0..) |slot, id| { + const pane = slot orelse continue; + const state = pane.terminal orelse continue; + if (!p.sizes(pane)) continue; + const grid = pardes.Term.grid(state); + if (grid.cols == pane.cols and grid.len == pane.rows) continue; + pane.resizeGrid(p, pane.cols, pane.rows); + p.shell_rows.markStale(pane); // reflow moved every row + p.emit(.{ .resize_pty = .{ .pane = .at(id), .cols = pane.cols, .rows = pane.rows } }); + pane.fs.winsize = null; + } +} + +/// The step's geometry: each pane's rect, tag rows and size (a terminal's +/// emulator and pty follow once a burst: `sizeTerminals`), its bands, and +/// the deferred greetings. What a step lays out in its middle, to read the +/// geometry after (a picker's first preview), is laid out with this. +pub fn layOut(p: *Pardes) void { const v = p.view(); while (p.unplaced.findFirstSet()) |id| { p.unplaced.unset(id); @@ -1981,7 +2005,9 @@ pub fn sync(p: *Pardes) void { // A file opened or closed this step: the kept list follows. p.saveRecent(); tagline.flattenHeaders(p); - if (p.headerColumn() != null and layout.columnBarHeight(p) == 0) { + // A column's tag with no row to be in lets the keyboard go; a lone + // column's keeps it in the window row (UX K'2). + if (p.headerColumn() != null and layout.columnBarHeight(p) == 0 and !layout.columnInWindowRow(p)) { tagline.exitHeader(p); } pardes.panes.reapPanes(p); @@ -2021,7 +2047,7 @@ pub fn sync(p: *Pardes) void { const prefix: ?[]const u8 = tagline.prefixIn(p, wa, pane) catch null; // The tag's cursor and selections are offsets in its text at rest: // a head shown over its own text moves none of them (UX D1). - const at_rest = if (pardes.Trail.outOfRest(p, pane)) tagline.restPrefix(p, wa, pane) catch null else prefix; + const at_rest = if (pardes.Trail.outOfRest(p, pane) or pardes.TagState.asks(p, pane)) tagline.restPrefix(p, wa, pane) catch null else prefix; const lead = if (at_rest) |made| made.len else pane.tag_lead; if (lead != pane.tag_lead) { const t = &pane.tag; @@ -2083,14 +2109,6 @@ pub fn sync(p: *Pardes) void { if ((cols != pane.cols or rows != pane.rows) and (r.h > pane.tag_rows or (pane.isTerminal() and !pane.collapsed and r.h > 0)) and (!pane.isTerminal() or p.sizes(pane))) { - // doc panes have no pty/emulator grid to reflow; just record - // the size so bodyText renders the right number of rows - if (pane.isTerminal()) { - pane.resizeGrid(p, cols, rows); - p.shell_rows.markStale(pane); // reflow moved every row - p.emit(.{ .resize_pty = .{ .pane = .at(id), .cols = cols, .rows = rows } }); - pane.fs.winsize = null; - } pane.cols = cols; pane.rows = rows; if (pane.file) |*file| file.syntax_dirty = true; @@ -2544,25 +2562,30 @@ test "topbar hover highlights exactly the executable word" { defer frame.deinit(); _ = try p.render(frame.allocator()); - p.update(.{ .mouse = .{ .button = .none, .kind = .motion, .col = TAG_TEXT_INSET + 1, .row = 0 } }); - _ = frame.reset(.retain_capacity); - const hovered = try p.render(frame.allocator()); - for (0.."Newcol".len) |col| { - const cell = hovered.at(TAG_TEXT_INSET + @as(u16, @intCast(col)), 0); - try std.testing.expectEqual(Color{ .rgb = p.theme().sel_bg }, cell.style.bg); - try std.testing.expectEqual(Color{ .rgb = p.theme().sel_fg }, cell.style.fg); - } - try std.testing.expectEqual(Color{ .rgb = p.chromeTheme().tag_bg }, hovered.at(TAG_TEXT_INSET + 6, 0).style.bg); + // Each side of the window row (UX K'2): the lone column's `New`, then + // the window's `Find`. + const words = tagline.windowRow(p).words; + for ([_]struct { at: u16, len: u16 }{ .{ .at = TAG_TEXT_INSET, .len = "New".len }, .{ .at = words, .len = "Find".len } }) |word| { + p.update(.{ .mouse = .{ .button = .none, .kind = .motion, .col = word.at + 1, .row = 0 } }); + _ = frame.reset(.retain_capacity); + const hovered = try p.render(frame.allocator()); + for (0..word.len) |col| { + const cell = hovered.at(word.at + @as(u16, @intCast(col)), 0); + try std.testing.expectEqual(Color{ .rgb = p.theme().sel_bg }, cell.style.bg); + try std.testing.expectEqual(Color{ .rgb = p.theme().sel_fg }, cell.style.fg); + } + try std.testing.expectEqual(Color{ .rgb = p.chromeTheme().tag_bg }, hovered.at(word.at + word.len, 0).style.bg); - p.update(.{ .mouse = .{ .button = .none, .kind = .motion, .col = TAG_TEXT_INSET + 6, .row = 0 } }); - _ = frame.reset(.retain_capacity); - const whitespace = try p.render(frame.allocator()); - try std.testing.expectEqual(Color{ .rgb = p.chromeTheme().tag_bg }, whitespace.at(TAG_TEXT_INSET + 1, 0).style.bg); + p.update(.{ .mouse = .{ .button = .none, .kind = .motion, .col = word.at + word.len, .row = 0 } }); + _ = frame.reset(.retain_capacity); + const whitespace = try p.render(frame.allocator()); + try std.testing.expectEqual(Color{ .rgb = p.chromeTheme().tag_bg }, whitespace.at(word.at + 1, 0).style.bg); + } p.update(.pointer_leave); _ = frame.reset(.retain_capacity); const left = try p.render(frame.allocator()); - try std.testing.expectEqual(Color{ .rgb = p.chromeTheme().tag_bg }, left.at(TAG_TEXT_INSET + 1, 0).style.bg); + try std.testing.expectEqual(Color{ .rgb = p.chromeTheme().tag_bg }, left.at(words + 1, 0).style.bg); } test "pane-tag Exec prefers Term and argument builtins before shell fallback" { @@ -2573,9 +2596,10 @@ test "pane-tag Exec prefers Term and argument builtins before shell fallback" { while (p.nextEffect()) |_| {} // initial shell spawn/geometry p.acknowledgeShell(.at(0), "/bin/sh", false); - // The Term word names the shell the host ran, and opens another of it. + // The Term word names the shell the host ran, and opens another of it: + // the tag's text after its computed Del (UX K'3). const pane = p.panes[0].?; - try std.testing.expectEqualStrings(" Term+sh" ++ tagline.terminal_pane_tail[" Term".len..], tagline.curTail(pane)); + try std.testing.expectEqualStrings("Term+sh", tagline.curTail(pane)); const tag_x = p.view().rects[0].x + TAG_TEXT_INSET; const tag_y = p.view().rects[0].y; @@ -2602,10 +2626,11 @@ test "pane-tag Exec prefers Term and argument builtins before shell fallback" { // Argument-taking builtins use the same gesture path: a tag sweep is the // complete command line, and Theme consumes its tail without a PTY write. if (pane.tag.own) |own| p.gpa.free(own); - pane.tag.own = try p.gpa.dupe(u8, " Theme dark"); - p.update(.{ .mouse = .{ .button = config.exec_button, .kind = .press, .col = tag_x + 1, .row = tag_y } }); - p.update(.{ .mouse = .{ .button = config.exec_button, .kind = .drag, .col = tag_x + 10, .row = tag_y } }); - p.update(.{ .mouse = .{ .button = config.exec_button, .kind = .release, .col = tag_x + 10, .row = tag_y } }); + pane.tag.own = try p.gpa.dupe(u8, "Theme dark"); + const theme_x = tag_x + @as(u16, @intCast(std.mem.indexOf(u8, try tagline.tagText(p, p.scratch.allocator(), pane), "Theme dark").?)); + p.update(.{ .mouse = .{ .button = config.exec_button, .kind = .press, .col = theme_x, .row = tag_y } }); + p.update(.{ .mouse = .{ .button = config.exec_button, .kind = .drag, .col = theme_x + 9, .row = tag_y } }); + p.update(.{ .mouse = .{ .button = config.exec_button, .kind = .release, .col = theme_x + 9, .row = tag_y } }); try std.testing.expectEqualStrings("dark", p.theme().name); while (p.nextEffect()) |effect| switch (effect) { .write => return error.ArgumentBuiltinFellThroughToPty, @@ -2621,9 +2646,10 @@ test "pane-tag Exec prefers Term and argument builtins before shell fallback" { // A word absent from the builtin vocabulary takes the fallback, including // the terminating carriage return expected by the shell prompt. if (pane.tag.own) |own| p.gpa.free(own); - pane.tag.own = try p.gpa.dupe(u8, " DefinitelyNotABuiltin"); - p.update(.{ .mouse = .{ .button = config.exec_button, .kind = .press, .col = tag_x + 1, .row = tag_y } }); - p.update(.{ .mouse = .{ .button = config.exec_button, .kind = .release, .col = tag_x + 1, .row = tag_y } }); + pane.tag.own = try p.gpa.dupe(u8, "DefinitelyNotABuiltin"); + const word_x = tag_x + @as(u16, @intCast(std.mem.indexOf(u8, try tagline.tagText(p, p.scratch.allocator(), pane), "Definitely").?)) + 1; + p.update(.{ .mouse = .{ .button = config.exec_button, .kind = .press, .col = word_x, .row = tag_y } }); + p.update(.{ .mouse = .{ .button = config.exec_button, .kind = .release, .col = word_x, .row = tag_y } }); var sent: [256]u8 = undefined; var sent_len: usize = 0; while (p.nextEffect()) |effect| switch (effect) { @@ -2695,12 +2721,14 @@ test "TreeContext command and custom tag survive a workspace round trip" { defer p.deinit(); const pane = try p.setTestFile("pub fn main() void {}\n"); try std.testing.expect(!pardes.panes.File.supportsContext(pane)); - try std.testing.expectEqualStrings(tagline.file_pane_tail, tagline.curTail(pane)); + try std.testing.expectEqualStrings(tagline.file_pane_tail, tagline.kindTail(pane)); const path = try p.gpa.dupe(u8, "/test.zig"); p.gpa.free(pane.file.?.path); pane.file.?.path = path; if (!pardes.panes.File.supportsContext(pane)) return error.SkipZigTest; - try std.testing.expectEqualStrings(if (lsp.speaks("/test.zig")) tagline.lsp_context_pane_tail else tagline.context_pane_tail, tagline.curTail(pane)); + // TreeContext is a word of its kind's (`:`'s, UX K'4), not its tag's. + try std.testing.expectEqualStrings(if (lsp.speaks("/test.zig")) tagline.lsp_context_pane_tail else tagline.context_pane_tail, tagline.kindTail(pane)); + try std.testing.expect(std.mem.indexOf(u8, try tagline.tagText(p, p.scratch.allocator(), pane), "TreeContext") == null); try std.testing.expect(!pane.file.?.tree_context); try std.testing.expect(p.executeBuiltinLine(0, "TreeContext on")); try std.testing.expect(pane.file.?.tree_context); @@ -2761,7 +2789,7 @@ test "Filter is ordered after Del and toggles only its terminal or +Pager pane" const pager_id = try pardes.panes.Output.openPager(p, 0, "/tmp"); const pager_pane = p.panes[pager_id].?; try testing.expect(pager_pane.tty_filter); - try testing.expectEqualStrings(tagline.pager_pane_tail, tagline.curTail(pager_pane)); + try testing.expectEqualStrings(" Filter Del", tagline.computedWords(pager_pane)); try testing.expectEqual(@as(u16, 0), pardes.panes.File.gutterWidth(pager_pane)); try testing.expect(p.executeBuiltinLine(pager_id, "Filter")); try testing.expect(!pager_pane.tty_filter); @@ -2791,7 +2819,9 @@ test "compact tag commands stay beside their own prefix across layout changes" { defer gpa.free(above_tag); const below_tag = try tagline.tagText(p, p.scratch.allocator(), below); try std.testing.expect(below_tag.len > above_tag.len); - const tail = tagline.terminal_pane_tail; + // Its computed Del, the blank before its own text (UX K'1), and that + // text: Term, its shell not yet named. + const tail = " Del Term"; try std.testing.expectEqualStrings(tail, above_tag[above_tag.len - tail.len ..]); try std.testing.expectEqual(above.cwdSlice().len + tail.len, above_tag.len); @@ -2803,7 +2833,7 @@ test "compact tag commands stay beside their own prefix across layout changes" { try std.testing.expectEqualStrings(above_tag, try tagline.tagText(p, p.scratch.allocator(), above)); p.update(.{ .resize = .{ .cols = 100, .rows = 30 } }); while (p.nextEffect()) |_| {} - try std.testing.expectEqualStrings(tail, tagline.curTail(below)); + try std.testing.expectEqualStrings("Term", tagline.curTail(below)); try below.appendTag(" lots and lots of typing out here"); try std.testing.expectEqual(above_tag.len, (try tagline.tagText(p, p.scratch.allocator(), above)).len); @@ -3075,7 +3105,7 @@ test "a REPL bound for a language takes the exec made on a body in it; tags, Exe try std.testing.expect(p.executeBuiltinLine(1, "Repl PY")); var idbuf: [48]u8 = undefined; try std.testing.expectEqualStrings("python-a", exec.replId(&idbuf, p.panes[1].?)); - try std.testing.expect(std.mem.endsWith(u8, try tagline.tagPrefix(p, p.panes[1].?), " python-a")); + try std.testing.expect(std.mem.endsWith(u8, try tagline.pathPrefix(p, p.scratch.allocator(), p.panes[1].?), " python-a")); Sent.drain(p); // A click on the file's body, a single word: typed into the REPL. @@ -3278,7 +3308,7 @@ test "a Term started by a shell's path keeps the path in its Term+ word" { try std.testing.expect(p.executeBuiltinLine(0, "Term /bin/sh")); try std.testing.expect(p.view().active != 0); p.acknowledgeShell(.at(p.view().active), "/bin/sh", false); - try std.testing.expect(std.mem.startsWith(u8, tagline.curTail(p.panes[p.view().active].?), " Term+/bin/sh ")); + try std.testing.expectEqualStrings("Term+/bin/sh", tagline.curTail(p.panes[p.view().active].?)); } test "Tty, Term's old name in saved tags, runs as Term, bare and with its +shell" { @@ -3304,7 +3334,7 @@ test "Term+fish, one word a tag can hold, opens a terminal on that shell" { try std.testing.expect(p.view().active != 0); try std.testing.expectEqualStrings("sh", p.panes[p.view().active].?.shell.?); p.acknowledgeShell(.at(p.view().active), "/bin/sh", false); - try std.testing.expect(std.mem.startsWith(u8, tagline.curTail(p.panes[p.view().active].?), " Term+sh ")); + try std.testing.expectEqualStrings("Term+sh", tagline.curTail(p.panes[p.view().active].?)); p.view().active = 0; // A shell that is not there is said, not quietly replaced, and the // pane that asked gets no shell of its own. @@ -3344,7 +3374,7 @@ test "a command pane shows how its command ended, and the next command there run } var frame = std.heap.ArenaAllocator.init(gpa); defer frame.deinit(); - try std.testing.expect(std.mem.endsWith(u8, try tagline.tagPrefix(p, pane), "(make -j8) running")); + try std.testing.expect(std.mem.endsWith(u8, try tagline.pathPrefix(p, p.scratch.allocator(), pane), "(make -j8) running")); // Running, a second command goes to a pane of its own. const other = exec.execute(p, 1, "ls") orelse return error.NoCommandPane; try std.testing.expect(other != dst); @@ -3362,7 +3392,7 @@ test "a command pane shows how its command ended, and the next command there run try std.testing.expect(p.panes[dst] == pane and !pane.command_pty); try std.testing.expect(p.panes[dst] == pane); try std.testing.expect(pane.command_done); - try std.testing.expect(std.mem.endsWith(u8, try tagline.tagPrefix(p, pane), "(make -j8) exit 2")); + try std.testing.expect(std.mem.endsWith(u8, try tagline.pathPrefix(p, p.scratch.allocator(), pane), "(make -j8) exit 2")); // Kill leaves a finished one be. try std.testing.expect(p.executeBuiltinLine(0, "Kill make")); while (p.nextEffect()) |effect| if (effect == .signal_pty and effect.signal_pty.pane.index() == dst) return error.SignalledAFinishedCommand; @@ -3384,7 +3414,7 @@ test "a command pane shows how its command ended, and the next command there run const ended = std.mem.indexOf(u8, body, "exit 2") orelse return error.ExitLost; const next = std.mem.indexOf(u8, body, "% make test") orelse return error.NoSeparator; try std.testing.expect(said < ended and ended < next); - try std.testing.expect(std.mem.endsWith(u8, try tagline.tagPrefix(p, pane), "(make test) running")); + try std.testing.expect(std.mem.endsWith(u8, try tagline.pathPrefix(p, p.scratch.allocator(), pane), "(make test) running")); // Kill stops a running one: its whole process group, SIGTERM. try std.testing.expect(p.executeBuiltinLine(0, "Kill make")); var signalled = false; @@ -3745,18 +3775,17 @@ test "tabbed file aligns syntax cursor and mouse at the nearest insertion gap" { try std.testing.expect(look.expandedSel(p, pane, .{ .state = .dragging, .c0 = separator, .c1 = separator, .r0 = BOX_H, .r1 = BOX_H }) == null); } -test "the workspace tag's Restore word names the last dump, the tag edited around it or not, across a Restore too" { +test "the window row's Restore word names the last dump, the user's text after it, across a Restore too (UX K'2)" { const p = try Pardes.init(std.testing.allocator, .{ .cols = 100, .rows = 20, .tty_only = true }); defer p.deinit(); p.setLastDump("/tmp/a.zon"); - // The tag edited: its own text holds the Restore word as it was then. - p.global_tag.own = try p.gpa.dupe(u8, try std.fmt.allocPrint(p.scratch.allocator(), "{s} Mine", .{tagline.headerDefault(p, .workspace)})); + p.global_tag.own = try p.gpa.dupe(u8, "Mine"); p.setLastDump("/tmp/b.zon"); - try std.testing.expect(std.mem.indexOf(u8, p.global_tag.own.?, "Restore /tmp/b.zon Mine") != null); + try std.testing.expectEqualStrings("Find Grep Newcol Help Exit Restore /tmp/b.zon Mine", tagline.topbar(p)); try dump.dumpState(p); const restored = try dump.restore(p, p.dump_out.?, "/tmp/c.zon"); defer restored.deinit(); - try std.testing.expect(std.mem.indexOf(u8, restored.global_tag.own.?, "Restore /tmp/c.zon Mine") != null); + try std.testing.expectEqualStrings("Find Grep Newcol Help Exit Restore /tmp/c.zon Mine", tagline.topbar(restored)); try std.testing.expectEqualStrings("/tmp/c.zon", restored.last_dump.?); } @@ -3765,27 +3794,45 @@ test "editable workspace and column tags are typed into and persist" { defer p.deinit(); _ = try p.setTestFile("untouched\n"); p.presented(); - try std.testing.expectEqual(TOPBAR_H + COLBAR_H, p.view().rects[0].y); + // One column: its tag in the window row, no column row (UX K'2). + try std.testing.expectEqual(TOPBAR_H, p.view().rects[0].y); + const words = tagline.windowRow(p).words; // a sweep over a header is its selection, the caret where it ended - p.update(.{ .mouse = .{ .button = .left, .kind = .press, .col = TAG_TEXT_INSET, .row = 0 } }); - p.update(.{ .mouse = .{ .button = .left, .kind = .drag, .col = TAG_TEXT_INSET + 6, .row = 0 } }); - p.update(.{ .mouse = .{ .button = .left, .kind = .release, .col = TAG_TEXT_INSET + 6, .row = 0 } }); + p.update(.{ .mouse = .{ .button = .left, .kind = .press, .col = words, .row = 0 } }); + p.update(.{ .mouse = .{ .button = .left, .kind = .drag, .col = words + 6, .row = 0 } }); + p.update(.{ .mouse = .{ .button = .left, .kind = .release, .col = words + 6, .row = 0 } }); try std.testing.expect(p.global_tag.vsel.active and p.global_tag.vsel.col == 0 and p.global_tag.cur_col == 6); - // A clicked header is in normal mode: `a` types after the sweep's - // last character, the blank it ended on. + // A clicked header is in normal mode: `a` types after the sweep's last + // character, in the computed words: refused, they are no one's. p.update(.{ .key = .{ .cp = 'a', .text = "a" } }); p.update(.{ .key = .{ .cp = 'H', .text = "Help " } }); - try std.testing.expect(std.mem.startsWith(u8, p.global_tag.own.?, "Newcol Help Joincol")); + try std.testing.expect(p.global_tag.own == null); p.update(.{ .key = .{ .cp = Key.escape } }); - p.update(.{ .mouse = .{ .button = .left, .kind = .press, .col = TAG_TEXT_INSET, .row = TOPBAR_H } }); - p.update(.{ .mouse = .{ .button = .left, .kind = .release, .col = TAG_TEXT_INSET, .row = TOPBAR_H } }); + // After them, the user's text. + const end: u16 = @intCast(words + "Find Grep Newcol Help Exit ".len); + p.update(.{ .mouse = .{ .button = .left, .kind = .press, .col = end, .row = 0 } }); + p.update(.{ .mouse = .{ .button = .left, .kind = .release, .col = end, .row = 0 } }); + p.update(.{ .key = .{ .cp = 'i', .text = "i" } }); + p.update(.{ .key = .{ .cp = 'H', .text = "Help " } }); + try std.testing.expectEqualStrings("Help ", p.global_tag.own.?); + try std.testing.expectEqualStrings("Find Grep Newcol Help Exit Help ", tagline.topbar(p)); + p.update(.{ .key = .{ .cp = Key.escape } }); + // The column's tag, at the window row's left: typed into, it has the + // user's text and the column row comes for it; emptied, it goes. + const own: u16 = TAG_TEXT_INSET + "New Term ".len; + p.update(.{ .mouse = .{ .button = .left, .kind = .press, .col = own, .row = 0 } }); + p.update(.{ .mouse = .{ .button = .left, .kind = .release, .col = own, .row = 0 } }); + try std.testing.expectEqual(@as(?usize, 0), p.headerColumn()); p.update(.{ .key = .{ .cp = 'i', .text = "i" } }); p.update(.{ .key = .{ .cp = 'é', .text = "é" } }); - try std.testing.expect(std.mem.startsWith(u8, tagline.columnTag(p, 0), "éNew")); + try std.testing.expectEqualStrings("New Term é", tagline.columnTag(p, 0)); + try std.testing.expectEqual(TOPBAR_H + COLBAR_H, p.view().rects[0].y); p.update(.{ .key = .{ .cp = Key.backspace } }); - try std.testing.expect(std.mem.startsWith(u8, tagline.columnTag(p, 0), "New")); + try std.testing.expectEqualStrings("New Term ", tagline.columnTag(p, 0)); + try std.testing.expectEqual(TOPBAR_H, p.view().rects[0].y); + try std.testing.expectEqual(@as(?usize, 0), p.headerColumn()); p.update(.{ .paste = "Grep " }); - try std.testing.expect(std.mem.startsWith(u8, tagline.columnTag(p, 0), "Grep New")); + try std.testing.expectEqualStrings("New Term Grep ", tagline.columnTag(p, 0)); try std.testing.expectEqualStrings("untouched\n", p.panes[0].?.file.?.content); try dump.dumpState(p); const restored = try dump.restore(p, p.dump_out.?, "test"); @@ -3797,7 +3844,7 @@ test "editable workspace and column tags are typed into and persist" { try dump.dumpState(p); const empty = try dump.restore(p, p.dump_out.?, "test"); defer empty.deinit(); - try std.testing.expectEqualStrings("", tagline.columnTag(empty, 0)); + try std.testing.expectEqualStrings("New Term ", tagline.columnTag(empty, 0)); } test "column tag first-cell execution keeps New local to the clicked column" { @@ -3825,6 +3872,7 @@ test "a screen too short for the column row releases a column tag's focus withou defer p.deinit(); const pane = try p.setTestFile("unchanged body\n"); p.view().col_tags[0].own = try p.gpa.dupe(u8, "New Help"); + p.sync(); p.presented(); const shown = p.view().rects[0]; try std.testing.expectEqual(TOPBAR_H + COLBAR_H, shown.y); @@ -3838,7 +3886,7 @@ test "a screen too short for the column row releases a column tag's focus withou try std.testing.expect(p.view().header == null and p.headerColumn() == null); p.update(.{ .resize = .{ .cols = 60, .rows = 12 } }); try std.testing.expectEqual(shown, p.view().rects[0]); - try std.testing.expectEqualStrings("New Help", tagline.columnTag(p, 0)); + try std.testing.expectEqualStrings("New Term New Help", tagline.columnTag(p, 0)); try std.testing.expectEqualStrings("unchanged body\n", pane.file.?.content); } @@ -4186,6 +4234,7 @@ test "leaving tty hides the prompt and keeps the command typed at it" { defer p.deinit(); p.update(.{ .resize = .{ .cols = 80, .rows = 24 } }); p.update(.{ .key = .{ .cp = 'n', .alt = true } }); // a shell under the doc + p.sync(); // its emulator sized as its step's end sizes it, before its shell speaks const shell = p.view().active; const sp = p.panes[shell].?; try std.testing.expect(sp.isTerminal()); @@ -4252,6 +4301,7 @@ test "entering tty walks the shell cursor to the column clicked past the prompt" defer p.deinit(); p.update(.{ .resize = .{ .cols = 80, .rows = 24 } }); p.update(.{ .key = .{ .cp = 'n', .alt = true } }); + p.sync(); // its emulator sized as its step's end sizes it, before its shell speaks const shell = p.view().active; const sp = p.panes[shell].?; p.update(.{ .output = .{ @@ -4297,3 +4347,33 @@ test "entering tty walks the shell cursor to the column clicked past the prompt" test "every allocation failure during boot is a clean OutOfMemory" { try std.testing.checkAllAllocationFailures(std.testing.allocator, bootAndTearDown, .{}); } + +test "a level that borrows a shell's rows and gives them back in one burst of keys resizes neither its emulator nor its pty: its prompt line stays (M1's ttyhelp row 3)" { + if (pardes.Term.ops == null) return error.SkipZigTest; // a shell's emulator + const p = try Pardes.init(std.testing.allocator, .{ .cols = 100, .rows = 31, .boot = .tty }); + defer p.deinit(); + const shell = p.panes[0].?; + // bash's prompt as pardes's marks draw it (dev/Shell.zig bash_rc), + // the cursor at its input. + p.update(.{ .output = .{ .pane = .at(0), .bytes = "\x1b]133;A;cl=line;aid=pardes\x07$ \x1b]133;B;aid=pardes\x07" } }); + const below = p.view().cols[0].panes[1]; + p.view().active = below; + p.settle(); + const rows = shell.rows; + var arena = std.heap.ArenaAllocator.init(std.testing.allocator); + defer arena.deinit(); + const body_layer = @import("body_layer.zig"); + try std.testing.expect(std.mem.startsWith(u8, try body_layer.bodyText(p.settings.tab, arena.allocator(), shell), "$ ")); + // `?`'s level takes rows of the shell's (layout.floorRows), `tutor` + // narrows it to one leaf and gives them back: keys of one burst, one + // settle after them, as a frontend takes a read of them. + p.update(.{ .key = .{ .cp = ' ', .text = " " } }); + p.update(.{ .key = .{ .cp = '?', .text = "?" } }); + try std.testing.expect(shell.rows < rows); + for ("tutor") |c| p.update(.{ .key = .{ .cp = c, .text = &.{c} } }); + try std.testing.expectEqual(rows, shell.rows); + // Its pty told nothing: no SIGWINCH for a size it had. + while (p.nextEffect()) |e| try std.testing.expect(e != .resize_pty); + p.settle(); + try std.testing.expect(std.mem.startsWith(u8, try body_layer.bodyText(p.settings.tab, arena.allocator(), shell), "$ ")); +} diff --git a/core/Dir.zig b/core/Dir.zig index 869a7cd5..b9c8c917 100644 --- a/core/Dir.zig +++ b/core/Dir.zig @@ -360,7 +360,7 @@ test "a look at a directory opens a pane named for it with a /, its entries in c try testing.expectEqual(id, p.view().active); const pane = p.panes[id].?; try testing.expectEqualStrings(".dot sub/ top.txt\n", pane.file.?.content); - try testing.expectEqualStrings(@import("tagline.zig").dir_pane_tail, @import("tagline.zig").curTail(pane)); + try testing.expectEqualStrings(" Get Del", @import("tagline.zig").computedWords(pane)); try testing.expectEqualStrings(s.dir, Pardes.paneDir(pane)); // Edited, still never dirty, and no Save writes it. try testing.expect(p.executeBuiltinLine(id, "Edit ,d")); diff --git a/core/Effect.zig b/core/Effect.zig index 3bca04c9..6146df69 100644 --- a/core/Effect.zig +++ b/core/Effect.zig @@ -64,6 +64,10 @@ pub const Effect = union(enum) { /// `arg` up to 128 bytes, or for `explain` the query it explains, /// `<kind> <arg>`. lsp: struct { id: u32, kind: lsp.Kind, pane: Pane.Id, offset: u32, arg: Buf(160) }, + /// A file opened in pane `pane` (File.open, a session's revived pane): + /// the server its language speaks to started and told of it, off the + /// loop (dev/Lsp.zig open), so its first query finds it ready. + lsp_open: struct { pane: Pane.Id }, /// Snapshot the matching request with pipeRequest(id), then run it away /// from the UI/event loop and answer with pipe_resp. pipe: struct { id: u32 }, @@ -216,6 +220,8 @@ fn performInner(p: *Pardes, e: Effect) void { }, .lsp => |q| p.tape.host(p, .lsp, .{.{ .id = q.id, .kind = q.kind, .pane = q.pane, .offset = q.offset, .arg = q.arg.slice() }}) orelse p.update(.{ .lsp_resp = .{ .id = q.id, .rows = "" } }), + // No workers here (a test, a board): no server starts before a query. + .lsp_open => |o| _ = p.tape.host(p, .lsp_open, .{o.pane}), .pipe => |q| p.tape.host(p, .pipe, .{q.id}) orelse p.update(.{ .pipe_resp = .{ .id = q.id, .success = false, .outputs = &.{} } }), // No workers here (a test, a board): it runs on the loop. @@ -442,8 +448,9 @@ test "Save on an output buffer writes its rows out and leaves the buffer alone" const rows = try gpa.dupe(u8, out.file.?.content); defer gpa.free(rows); - // Save leads its tagline now, and the path is REQUIRED: a bare Save asks - try std.testing.expectEqualStrings(tagline.file_pane_tail, tagline.curTail(out)); + // Save is one of its words (`:`'s, UX K'4), and the path is REQUIRED: a + // bare Save asks + try std.testing.expectEqualStrings(tagline.file_pane_tail, tagline.kindTail(out)); try std.testing.expect(p.executeBuiltinLine(id, "Save")); try std.testing.expect(out.prompt == .save); try edit.insertKey(p.editor(), &out.input, .{ .cp = 'h', .text = "help.txt" }); @@ -626,25 +633,29 @@ test "a save whose pane is gone before the drain writes nothing" { try std.testing.expect(p.fallback.get("/tmp/pardes-gone/recycled.txt") == null); } -test "Save reaches every tagline with text behind it and no other" { +test "Save is a word of every pane with text behind it and no other" { const gpa = std.testing.allocator; const p = try Pardes.init(gpa, .{ .tty_only = true, .cols = 100, .rows = 30 }); defer p.deinit(); while (p.nextEffect()) |_| {} + // Its kind's words (what `:` lists, UX K'4); its tag's, while clean, + // Del alone (K'3). const out = try p.setTestFile("build.zig:1:1 pub fn main\n"); out.file.?.output = .{ .from = .search }; - try std.testing.expectEqualStrings(tagline.locations_pane_tail, tagline.curTail(out)); + try std.testing.expectEqualStrings(tagline.locations_pane_tail, tagline.kindTail(out)); + try std.testing.expectEqualStrings(" Del", tagline.computedWords(out)); - // A scratch is an output buffer that wears the FILE tails. + // A scratch is an output buffer that has the FILE words. out.file.?.output = .{ .from = .{ .cmd = std.meta.stringToEnum(pardes.Builtin, "New").? } }; - try std.testing.expectEqualStrings(" Save Term Collapse Follow Del", tagline.curTail(out)); + try std.testing.expectEqualStrings(" Save Term Collapse Follow Del", tagline.kindTail(out)); // An image's bytes on disk already are what they are: nothing of the // pane's own is unwritten, so the word is absent and inert. const img_id = p.freeSlot().?; const img = try pardes.Kind.open(p, img_id, pardes.Kind.test_kind.of(p), "/tmp/pardes-tag.ppm", ""); - try std.testing.expectEqualStrings(" Term Collapse Del", tagline.curTail(img)); + try std.testing.expectEqualStrings(" Del", tagline.kindTail(img)); + try std.testing.expectEqualStrings(" Del", tagline.computedWords(img)); try std.testing.expect(p.executeBuiltinLine(img_id, "Save")); try std.testing.expect(img.prompt != .save); var buf: [256]u8 = undefined; diff --git a/core/File.zig b/core/File.zig index e246285c..d54d5011 100644 --- a/core/File.zig +++ b/core/File.zig @@ -60,35 +60,39 @@ pub const History = struct { } }; -/// Owned syntax results: a text's declarations at a revision. +/// Owned syntax results: a text's declarations and symbols at a revision. pub const ContextCache = struct { /// Its revision is dumped and digested: a worker's parse is an input, /// which a client joined since never saw, and a step reads what it - /// left (Query.ownerDecls). The declarations are made again from the - /// text at a load (`reload`), with the allocator that made them. - pub const replica = .{ .local = .{"allocator"}, .derived = .{"declarations"} }; + /// left (Query.ownerDecls, the Symbols source). The declarations and + /// symbols are made again from the text at a load (`reload`), with the + /// allocator that made them. + pub const replica = .{ .local = .{"allocator"}, .derived = .{ "declarations", "symbols" } }; allocator: ?std.mem.Allocator = null, declarations: []syntax.ContextDeclaration = &.{}, + symbols: []syntax.Symbol = &.{}, revision: ?u32 = null, pub fn deinit(self: *ContextCache) void { - if (self.allocator) |gpa| gpa.free(self.declarations); + if (self.allocator) |gpa| { + gpa.free(self.declarations); + gpa.free(self.symbols); + } self.* = .{}; } - /// A loaded text's (its revision the dump's): its declarations parsed - /// again where they are of the text it has. + /// A loaded text's (its revision the dump's): its context parsed + /// again where it is of the text it has. pub fn reload(self: *ContextCache, gpa: std.mem.Allocator, path: []const u8, content: []const u8, revision: u32) void { const at = self.revision orelse return; if (at != revision) return; - const declarations = syntax.contextDeclarations(gpa, path, content) catch return; - self.replace(gpa, declarations, at); + self.replace(gpa, syntax.context(gpa, path, content) catch return, at); } - /// Takes ownership of declarations allocated by gpa. - pub fn replace(self: *ContextCache, gpa: std.mem.Allocator, declarations: []syntax.ContextDeclaration, revision: u32) void { + /// Takes ownership of a context allocated by gpa. + pub fn replace(self: *ContextCache, gpa: std.mem.Allocator, made: syntax.Context, revision: u32) void { self.deinit(); - self.* = .{ .allocator = gpa, .declarations = declarations, .revision = revision }; + self.* = .{ .allocator = gpa, .declarations = made.declarations, .symbols = made.symbols, .revision = revision }; } }; @@ -922,7 +926,13 @@ pub fn open(p: *Pardes, id: usize, path: []const u8, line: usize) !*Pane { pane.body.cur_pinned = true; pane.body.cur_row = @intCast(scroll); p.installPane(id, pane); - if (filesystem.localPath(path) != null) p.emit(.{ .watch = .{ .pane = .at(id), .on = true } }); + if (filesystem.localPath(path) != null) { + p.emit(.{ .watch = .{ .pane = .at(id), .on = true } }); + // Its language's server started now, off the loop: the first + // question asked of it finds it ready. Not a picker's preview's, + // which opens no pane (Pick.preview). + p.emit(.{ .lsp_open = .{ .pane = .at(id) } }); + } return pane; } @@ -2191,12 +2201,17 @@ pub fn unchain(pane: *Pane) void { dropUnfollow(pane); } -/// The Unfollow word Follow gave a pane's tag (builtins.Follow), gone. +/// The Unfollow word Follow gave a pane's tag (builtins.Follow), gone, with +/// the blank before it (after it, first in the tag's own text). fn dropUnfollow(pane: *Pane) void { const own = pane.tag.own orelse return; - const at = std.mem.indexOf(u8, own, " Unfollow") orelse return; - const end = at + " Unfollow".len; - if (end < own.len and std.mem.indexOfScalar(u8, " \t\n", own[end]) == null) return; + const word = std.mem.indexOf(u8, own, "Unfollow") orelse return; + const word_end = word + "Unfollow".len; + const blank_after = word_end < own.len and std.mem.indexOfScalar(u8, " \t\n", own[word_end]) != null; + if (word_end < own.len and !blank_after) return; + if (word > 0 and own[word - 1] != ' ') return; + const at = if (word > 0) word - 1 else word; + const end = if (word == 0 and blank_after) word_end + 1 else word_end; const cut = std.mem.concat(pane.gpa, u8, &.{ own[0..at], own[end..] }) catch return; pane.gpa.free(own); pane.tag.own = cut; @@ -2490,8 +2505,7 @@ pub fn changed(p: *Pardes, id: u8, bytes: []const u8) void { pub fn refreshContext(p: *Pardes, pane: *Pane, f: *State) void { if (!f.tree_context or !supportsContext(pane) or f.context.revision == f.revision) return; // The file's declarations, in its lines (the layer's are none of it). - const declarations = syntax.contextDeclarations(p.tree_sitter_gpa, f.path, fileText(f, p.scratch.allocator()) catch return) catch return; - f.context.replace(p.tree_sitter_gpa, declarations, f.revision); + f.context.replace(p.tree_sitter_gpa, syntax.context(p.tree_sitter_gpa, f.path, fileText(f, p.scratch.allocator()) catch return) catch return, f.revision); } pub fn refreshHighlights(p: *Pardes) void { @@ -3614,12 +3628,13 @@ test "context cache frees each allocation with its original allocator" { defer std.testing.expect(second.deinit() == .ok) catch @panic("second allocator leaked"); var cache: ContextCache = .{}; defer cache.deinit(); - cache.replace(first.allocator(), try first.allocator().alloc(syntax.ContextDeclaration, 1), 1); - cache.replace(second.allocator(), try second.allocator().alloc(syntax.ContextDeclaration, 2), 2); + cache.replace(first.allocator(), .{ .declarations = try first.allocator().alloc(syntax.ContextDeclaration, 1), .symbols = try first.allocator().alloc(syntax.Symbol, 1) }, 1); + cache.replace(second.allocator(), .{ .declarations = try second.allocator().alloc(syntax.ContextDeclaration, 2), .symbols = try second.allocator().alloc(syntax.Symbol, 2) }, 2); try std.testing.expectEqual(@as(?u32, 2), cache.revision); cache.deinit(); try std.testing.expect(cache.allocator == null); try std.testing.expectEqual(@as(usize, 0), cache.declarations.len); + try std.testing.expectEqual(@as(usize, 0), cache.symbols.len); } /// The inks of row `row`'s first `n` text cells of pane `id` as `s` draws them. diff --git a/core/Handover.zig b/core/Handover.zig index 6f7340b2..f60ce72b 100644 --- a/core/Handover.zig +++ b/core/Handover.zig @@ -628,6 +628,10 @@ test "a column let go over another window goes beside the column the pointer is const gpa = std.testing.allocator; const from = try twoPanes(gpa); defer from.deinit(); + // A column's grip is in the column row, which a second column brings + // (UX K'2). + try std.testing.expect(from.executeBuiltinLine(0, "Newcol")); + from.sync(); const r = from.view().rects[0]; const c = layout.findPane(from, 0).?.col; from.update(.{ .mouse = .{ .button = .left, .kind = .press, .col = from.view().col_x[c], .row = from.topBarHeight() } }); diff --git a/core/Jump.zig b/core/Jump.zig index 3632a039..143aa9b5 100644 --- a/core/Jump.zig +++ b/core/Jump.zig @@ -472,6 +472,8 @@ test "Ctrl-o pops the walk one word at a time (UX L'1): after SPC f f words, Ent defer p.deinit(); var tmp = std.testing.tmpDir(.{}); defer tmp.cleanup(); + // A work tree of its own: Find searches it, not the one the test runs in. + try tmp.dir.createDir(std.testing.io, ".git", .default_dir); var text: [60 * 16]u8 = undefined; var w: std.Io.Writer = .fixed(&text); for (1..61) |n| try w.print("{s} {d}\n", .{ if (n % 12 == 4) "in_word" else "line", n }); diff --git a/core/Kind.zig b/core/Kind.zig index 4e1aa469..4841a55c 100644 --- a/core/Kind.zig +++ b/core/Kind.zig @@ -137,7 +137,7 @@ pub const Slot = struct { // jobs' inputs, its file's hash, a placeholder's record), and what // a frame makes (the thumb, the pointer, whether one was drawn: a // view's, never a step's). - .local = .{ "ops", "st", "gpa", "arena", "plain", "file", "opened", "reloads", "jobs", "record", "thumb_at", "thumb_span", "pointer", "painted", "over", "used" }, + .local = .{ "ops", "st", "gpa", "arena", "plain", "file", "opened", "reloads", "jobs", "record", "thumb_at", "thumb_span", "pointer", "painted", "over", "used", "drawn_from", "size" }, }; /// Its kind's code here; null in a placeholder (`live` false: its kind /// not in the registry, its record kept for the day it comes) or a @@ -215,6 +215,13 @@ pub const Slot = struct { /// A client's join: its plain kind's file, until the pane is opened /// from it (dump.plainHere). file: ?[]u8 = null, + /// This process's draws made before it (`drawn` then): an answer to + /// one of them is another slot's, of a pane that showed something + /// else (a picker's preview of the row before), and is dropped. + drawn_from: u32 = 0, + /// Its file's bytes, as a picker's line naming it says them until its + /// kind's picture is drawn (Pick.preview). + size: u64 = 0, /// Debug: the kind's allocations, which paint must leave as they are. /// The slot's allocator's, as the slot is: a client's rollback puts /// the list back with the slot that holds it (on the page allocator, @@ -259,16 +266,12 @@ fn caps(p: *const Pardes, s: *const Slot) Caps { /// word opened) from `bytes`: made whatever the kind says, with what it /// refused in `slot.refused` for the caller to say. pub fn open(p: *Pardes, id: usize, k: u8, path: ?[]const u8, bytes: ?[]const u8) !*Pane { - const e = &p.kinds.kinds[k]; - // A plain kind's slot and block are the core's (a client's epoch). - const gpa = if (e.caps.plain) p.gpa else p.image_gpa; - const s = try gpa.create(Slot); - s.* = .{ .ops = p.kinds.ops[k], .live = true, .gpa = gpa, .arena = .init(gpa), .version = e.version, .gen = e.gen, .name = e.name }; + const s = try newSlot(p, k, path orelse ""); errdefer { + const gpa = s.gpa; s.free(); gpa.destroy(s); } - s.path = try gpa.dupe(u8, path orelse ""); const pane = try p.newDocPane(id); pane.addon = s; _ = reopen(p, id, s, bytes); @@ -278,6 +281,23 @@ pub fn open(p: *Pardes, id: usize, k: u8, path: ?[]const u8, bytes: ?[]const u8) return pane; } +/// A slot of kind `k` for `path`, its kind's state not made yet (`reopen` +/// makes it): a pane's, or a picker's preview's in the pane it lands in +/// (Pick.preview), that pane's own text set aside meanwhile. +pub fn newSlot(p: *Pardes, k: u8, path: []const u8) !*Slot { + const e = &p.kinds.kinds[k]; + // A plain kind's slot and block are the core's (a client's epoch). + const gpa = if (e.caps.plain) p.gpa else p.image_gpa; + const s = try gpa.create(Slot); + s.* = .{ .ops = p.kinds.ops[k], .live = true, .gpa = gpa, .arena = .init(gpa), .version = e.version, .gen = e.gen, .name = e.name, .drawn_from = drawn }; + errdefer { + s.free(); + gpa.destroy(s); + } + s.path = try gpa.dupe(u8, path); + return s; +} + /// `open` of the file at `path`, read here (a file that cannot be read /// is no bytes: its kind may refuse it). The slot stays ours across the /// read: another request may make a pane meanwhile. @@ -305,10 +325,10 @@ pub fn reopen(p: *Pardes, id: usize, s: *Slot, bytes: ?[]const u8) bool { if (s.plain) |b| if (b.len > 0) s.gpa.free(b); s.plain = &.{}; } + // Its tag's computed words (UX K'3): its words, then Del. var w: std.Io.Writer = .fixed(&s.tail.bytes); - w.writeAll(" Term") catch {}; for (p.kinds.words[0..p.kinds.nwords]) |*kw| if (kw.kind == k and kw.opens == 0) w.print(" {s}", .{kw.name.slice()}) catch {}; - w.writeAll(" Collapse Del") catch {}; + w.writeAll(" Del") catch {}; s.tail.len = @intCast(w.buffered().len); } s.opened = if (bytes) |b| std.hash.Wyhash.hash(0, b) else 0; @@ -418,9 +438,10 @@ pub fn close(p: *Pardes, pane: *Pane) void { /// The pane's body painted over the `cols` x `rows` cells at (x, y): /// its cells into `s`, its placements after the frame's others. A pane /// whose kind has no code here, or a placeholder, says why in a line. -pub fn draw(p: *Pardes, s: *surface.Surface, arena: std.mem.Allocator, pane: *Pane, id: usize, x: u16, y: u16, cols: u16, rows: u16) void { - const slot = pane.addon orelse return; - if (cols == 0 or rows == 0) return; +/// False when its kind painted nothing (its picture not drawn yet). +pub fn draw(p: *Pardes, s: *surface.Surface, arena: std.mem.Allocator, pane: *Pane, id: usize, x: u16, y: u16, cols: u16, rows: u16) bool { + const slot = pane.addon orelse return true; + if (cols == 0 or rows == 0) return true; const th = p.theme(); const fg: surface.Color = if (th.fg) |f| .{ .rgb = f } else .default; const bg: surface.Color = if (th.bg) |b| .{ .rgb = b } else .default; @@ -431,17 +452,17 @@ pub fn draw(p: *Pardes, s: *surface.Surface, arena: std.mem.Allocator, pane: *Pa const why = if (caps(p, slot).plain) "it is not in its addons nor the session's library at its path here, or it broke its promise here" else "its state is not plain (PA_PLAIN), so it runs in the session alone"; var line: [200]u8 = undefined; _ = s.print(x, y, cols, std.fmt.bufPrint(&line, "addon {s} {d} does not run in this client: {s}", .{ slot.nameOf(), slot.version, why }) catch &line, .{ .fg = fg, .bg = bg }); - return; + return true; } else if (slot.ops == null) { var line: [160]u8 = undefined; const why = if (slot.refused.len > 0) slot.refused.slice() else "Addon load <path>"; // Its kind here, it waits for its file (`<path> is not here`). const text = if (p.kinds.byName(slot.nameOf()) != null) why else std.fmt.bufPrint(&line, "addon {s} {d} is not loaded: {s}", .{ slot.nameOf(), slot.version, why }) catch &line; _ = s.print(x, y, cols, text, .{ .fg = fg, .bg = bg }); - return; + return true; } else for (0..8) |_| { if (ready.items.len > 0) deliver(p, slot, pane, id); - frame.cells = (paint(p, slot, id, arena, cols, rows, &frame) orelse return); + frame.cells = (paint(p, slot, id, arena, cols, rows, &frame) orelse return true); // No workers here (a test's, a bench's core): a draw that paint // asked was done at once, and is this frame's, painted again. if (drawer != null) break; @@ -450,9 +471,11 @@ pub fn draw(p: *Pardes, s: *surface.Surface, arena: std.mem.Allocator, pane: *Pa } else break; } if (frame.gpu.len != 0) s.gpu_frames[id] = .{ .bytes = frame.gpu, .serial = pane.serial, .dst = .{ .x = x, .y = y, .w = cols, .h = rows } }; + var painted = frame.gpu.len != 0 or frame.n > 0; for (0..@min(rows, frame.rows)) |r| for (0..@min(cols, frame.cols)) |col| { const cell = &frame.cells[r * frame.cols + col]; if (cell.flags & c.PA_PAINTED == 0) continue; + painted = true; const len = @min(cell.len, 7); s.set(x + @as(u16, @intCast(col)), y + @as(u16, @intCast(r)), if (len == 0) " " else cell.text[0..len], styleOf(cell, fg, bg)); }; @@ -471,6 +494,7 @@ pub fn draw(p: *Pardes, s: *surface.Surface, arena: std.mem.Allocator, pane: *Pa .art = slot.art, }); } + return painted; } /// A frame of a kind's pane: its cells, `cols` a row, and its placements. @@ -1012,6 +1036,9 @@ const Call = struct { return o; }; const p = cl.p orelse return o; + // A picker's preview shows its file and does nothing more: what its + // kind says, looks at or runs meanwhile is dropped (Pick.showKind). + if (pardes.Pick.previewing(p, cl.id)) return o; if (o.said.len > 0) if (o.err) p.reportFailure(cl.id, o.said) else p.setMessage(.at(cl.id), o.said); if (o.pane_name.len > 0) textPane(p, cl.id, cl.slot, o.pane_name, o.pane_text); if (o.look.len > 0) @import("look.zig").lookAt(p, cl.id, o.look); @@ -1289,7 +1316,7 @@ fn deliver(p: *const Pardes, slot: *Slot, pane: *const Pane, id: usize) void { } _ = ready.orderedRemove(i); defer j.drop(); - if (pane.serial != j.serial or slot.gen != j.gen or slot.ops != j.ops) continue; + if (pane.serial != j.serial or slot.gen != j.gen or slot.ops != j.ops or j.token & ~c.PA_DRAWN <= slot.drawn_from) continue; var cl: Call = .{ .p = null, .id = id, .slot = slot, .quiet = true, .core = p }; const prev = cl.begin("job_done"); const before = if (checked) usedHash(slot); diff --git a/core/Messages.zig b/core/Messages.zig index eca5ec9f..fb2c3cde 100644 --- a/core/Messages.zig +++ b/core/Messages.zig @@ -1566,7 +1566,8 @@ test "a question never adds a row to its tag: at every width the asking tag take } test "a file changed on disk under unsaved text asks in its tag and never takes the keyboard: SPC e's keyboard answers, d shows the disk's lines as ghosts, Esc leaves it waiting, B2 on Reload reads it again" { - const p = try Pardes.init(std.testing.allocator, .{ .cols = 120, .rows = 20 }); + // Wide: the tag at rest one row (UX K'3), the question whole in it. + const p = try Pardes.init(std.testing.allocator, .{ .cols = 200, .rows = 20 }); defer p.deinit(); var tmp = std.testing.tmpDir(.{}); defer tmp.cleanup(); diff --git a/core/Names.zig b/core/Names.zig index d063bd17..9105e3c4 100644 --- a/core/Names.zig +++ b/core/Names.zig @@ -50,6 +50,9 @@ pub const Cand = struct { /// What the row is of: a line of the owner (Symbols, 1-based), a /// pane's serial (Panes); 0 for a path. ref: u32 = 0, + /// Its group: the hits stay in their groups' order, scored within + /// each (a Symbols row's kind, UX DESIGN N3); 0 for every other source. + group: u8 = 0, }; pub const Hit = struct { cand: u32, score: i32 }; @@ -128,7 +131,9 @@ pub fn typed(n: *Names, gpa: std.mem.Allocator, text: []const u8) void { // only those are scored again (and then the ones not yet scored). const grew = n.query_len > 0 and std.mem.startsWith(u8, q, n.queryText()) and std.mem.indexOfScalar(u8, q[n.query_len..], ' ') == null; n.query_len = @intCast(q.len); - @memcpy(n.query_buf[0..q.len], q); + // Its own query typed again, to score names that came after it + // (Pick.declsArrived), is the buffer itself. + std.mem.copyForwards(u8, n.query_buf[0..q.len], q); n.reach = max_rows; if (grew) { const pending = n.pending.items[n.pending_at..]; @@ -187,9 +192,17 @@ pub fn reachTo(n: *Names, rows: usize) void { n.gen +%= 1; } -/// Hit `a` goes before `b`: the higher score, then the shorter key, then -/// the candidate added first. +/// Hit `a` goes before `b`: the lower group, then `better`. fn before(cands: []const Cand, a: Hit, b: Hit) bool { + const ga = cands[a.cand].group; + const gb = cands[b.cand].group; + if (ga != gb) return ga < gb; + return better(cands, a, b); +} + +/// Hit `a` matched better than `b`: the higher score, then the shorter +/// key, then the candidate added first. +fn better(cands: []const Cand, a: Hit, b: Hit) bool { if (a.score != b.score) return a.score > b.score; const la = cands[a.cand].key_len; const lb = cands[b.cand].key_len; @@ -230,6 +243,22 @@ fn sink(heap: []Hit, cands: []const Cand, from: usize) void { } } +/// The row of the hit the query matched best, wherever its group puts it: +/// where a list's cursor starts (UX DESIGN N3); 0 for an empty query, +/// whose rows are the source's order. Its rows up to it are sorted once +/// `reachTo` has gone past it. +pub fn bestRow(n: *const Names) usize { + const hits = n.hits.items; + if (hits.len == 0 or std.mem.trim(u8, n.queryText(), " ").len == 0) return 0; + var top = hits[0]; + for (hits[1..]) |h| if (better(n.cands.items, h, top)) { + top = h; + }; + var at: usize = 0; + for (hits) |h| at += @intFromBool(before(n.cands.items, h, top)); + return at; +} + /// The row of hit `i` and, in `marks`, the bytes of it the query matched. pub fn row(n: *const Names, i: usize, marks: []u16, nmarks: *usize) []const u8 { const c = n.cands.items[n.hits.items[i].cand]; @@ -435,3 +464,15 @@ test "Names keeps its best `reach` hits first in a full sort's order, the rest a n.reachTo(max_rows + 500); try std.testing.expectEqualSlices(Hit, all[0 .. max_rows + 500], n.hits.items[0 .. max_rows + 500]); } + +test "Names takes its own query typed again: names added after it (a Symbols picker's declarations from a worker, Pick.declsArrived) are scored against it" { + const gpa = std.testing.allocator; + var n: Names = .{}; + defer n.deinit(gpa); + n.typed(gpa, "zzlast"); + for ([_][]const u8{ "fn f0001() void {", "fn zzlastfn() void {" }) |cand| try n.add(gpa, cand, 0, cand.len, 0, 0); + n.typed(gpa, n.queryText()); + while (n.busy()) n.rescore(gpa); + try std.testing.expectEqualStrings("zzlast", n.queryText()); + try std.testing.expectEqual(@as(usize, 1), n.hits.items.len); +} diff --git a/core/Output.zig b/core/Output.zig index 8807e55d..f0b32c4e 100644 --- a/core/Output.zig +++ b/core/Output.zig @@ -191,11 +191,15 @@ pub fn traits(o: Origin) Traits { }; } +/// A list laid out as Locations (each place's lines from its file, in +/// their order): not a file's symbols, a row each in their own order (UX +/// DESIGN N: types, functions, fields, the rest). pub fn usesLocationsConfig(from: Origin) bool { const tr = traits(from); return tr.steps and !tr.commands and from != .kind and !std.meta.eql(from, Origin{ .query = .completion }) and - !std.meta.eql(from, Origin{ .query = .callstack }); + !std.meta.eql(from, Origin{ .query = .callstack }) and + !std.meta.eql(from, Origin{ .query = .document_symbols }); } pub fn fileTraits(out: ?State) Traits { @@ -237,6 +241,8 @@ pub fn isResultRow(file: *const File.State, row: usize) bool { return !locations.isContextLine(modal.lineSlice(file.content, row)); } +/// A language server's places in the order of their places; a file's +/// symbols stay in theirs (lsp_client: types, functions, fields, the rest). fn sortResults(arena: std.mem.Allocator, from: Origin, content: []u8, anchor: ?usize) !?usize { switch (from) { .search => {}, @@ -251,7 +257,6 @@ fn sortResults(arena: std.mem.Allocator, from: Origin, content: []u8, anchor: ?u .outgoing_calls, .supertypes, .subtypes, - .document_symbols, .workspace_symbols, .diagnostics, .workspace_diagnostics, diff --git a/core/Pick.zig b/core/Pick.zig index 7c40a234..c05ed084 100644 --- a/core/Pick.zig +++ b/core/Pick.zig @@ -182,11 +182,11 @@ pub fn deinit(pk: *Pick, gpa: std.mem.Allocator) void { /// Whether a search a builtin asks for from pane `id` is a picker in the /// tag (SPEC §14.3 phase 4): in a session whose jumps walk, from the -/// keyboard or a click (kbdin's and mousein's too), never a script's word -/// (a 9P exec's: the query pane, whose rows it reads back, and whose `not -/// found` it hears). +/// keyboard or a click (kbdin's and mousein's too, which run as theirs: +/// ninep/ctl.zig writeKbdin), never a script's word (a 9P exec's: the query +/// pane, whose rows it reads back, and whose `not found` it hears). pub fn asked(p: *const Pardes) bool { - return p.settings.jumps == .walk and (!p.fs.serving or p.fs.typed); + return p.settings.jumps == .walk and !p.fs.serving; } /// Picker `id`, kept or live. @@ -226,7 +226,8 @@ pub fn open(p: *Pardes, from: usize, source: Source, word: []const u8, query: [] const pk = make(p, source) catch |err| return p.reportError(.at(from), "pick", err); pk.word.set(if (word.len > 0) word else words.get(source).word); pk.keys.set(words.get(source).keys); - pk.dir.set(Pardes.paneDir(asker)); + // Find and Grep from the work tree's root (W8), as other finders search. + pk.dir.set(if (source == .find or source == .grep) workTree(p, Pardes.paneDir(asker)) else Pardes.paneDir(asker)); pk.rows = p.gpa.dupe(u8, rows) catch |err| return p.reportError(.at(from), "pick", err); hostIn(p, pk, from) catch |err| return p.reportError(.at(from), "pick", err); if (p.paneBySerial(pk.landing)) |host| pk.cap = p.view().rects[host].h * 2 / 5; @@ -237,6 +238,35 @@ pub fn open(p: *Pardes, from: usize, source: Source, word: []const u8, query: [] if (source == .themes and query.len == 0 and p.custom_theme == null) p.view().tag_state.rows.at = @intCast(p.settings.theme); } +/// The work tree `dir` is in: the nearest directory at or above it that +/// holds a `.jj` or a `.git` (a git worktree's is a file); `dir` itself +/// when none does. Find and Grep search from it, their rows' paths +/// relative to it, wherever in the tree the asking pane is. +fn workTree(p: *Pardes, dir: []const u8) []const u8 { + var d = dir; + while (true) { + var buf: [4096]u8 = undefined; + for ([_][]const u8{ ".jj", ".git" }) |name| { + const marker = std.fmt.bufPrint(&buf, "{s}/{s}", .{ std.mem.trimEnd(u8, d, "/"), name }) catch return dir; + if (exec.kindOf(p.tape, marker) != null) return d; + } + d = std.Io.Dir.path.dirname(d) orelse return dir; + } +} + +/// Where a Grep's query `q` searches and for what (SPEC §5.1): a leading +/// directory, the root's or absolute, then a blank, narrows it to that +/// directory (`src/torque Macro`), the rest the pattern; else all of it +/// from the root. The directory joined in `buf`. +fn grepScope(p: *Pardes, pk: *const Pick, q: []const u8, buf: *[4096]u8) struct { dir: []const u8, pat: []const u8 } { + const root = pk.dir.slice(); + const sp = std.mem.indexOfScalar(u8, q, ' ') orelse return .{ .dir = root, .pat = q }; + const lead = q[0..sp]; + const dir = if (lead[0] == '/') lead else std.fmt.bufPrint(buf, "{s}/{s}", .{ std.mem.trimEnd(u8, root, "/"), lead }) catch return .{ .dir = root, .pat = q }; + if (exec.kindOf(p.tape, dir) != .directory) return .{ .dir = root, .pat = q }; + return .{ .dir = dir, .pat = std.mem.trimStart(u8, q[sp + 1 ..], " ") }; +} + /// A new picker in the ring, the oldest kept one dropped for it. fn make(p: *Pardes, source: Source) !*Pick { var slot: ?usize = null; @@ -452,12 +482,17 @@ pub fn filter(p: *Pardes, pk: *Pick) void { const q = std.mem.trim(u8, p.view().tag_state.field.text(), " "); p.view().tag_state.rows.at = 0; pk.shown = no_row; - if (fuzzy(pk)) return pk.names.typed(p.gpa, q); + if (fuzzy(pk)) { + pk.names.typed(p.gpa, q); + return toBest(p, pk); + } if (pk.source == .grep) { pk.found.clearRetainingCapacity(); pk.found_bytes.clearRetainingCapacity(); - if (q.len > 0) { - Stream.query(p, pk.id, .grep, q, pk.dir.slice(), if (p.fs.serving) .now else .typed) catch |err| return p.reportError(.at(p.view().active), "pick", err); + var buf: [4096]u8 = undefined; + const at = grepScope(p, pk, q, &buf); + if (at.pat.len > 0) { + Stream.query(p, pk.id, .grep, at.pat, at.dir, if (p.fs.serving) .now else .typed) catch |err| return p.reportError(.at(p.view().active), "pick", err); if (p.fs.serving) Stream.step(p); } else if (p.stream.target == pk.id) _ = p.stream.stop(); return; @@ -501,7 +536,12 @@ fn allPanes(p: *const Pardes, pk: *const Pick, out: *[pardes.MAX_PANES]usize) [] /// The disk engine's rows for picker `target` (Stream.receive). pub fn take(p: *Pardes, target: u32, kind: Stream.Kind, rows: []const u8) bool { const pk = byId(p, target) orelse return false; - Query.take(p, pk, kind, rows); + // A Grep narrowed to a directory (grepScope): its rows' paths from the + // root, as an unnarrowed one's are. + var buf: [4096]u8 = undefined; + const searched = p.stream.dir.items; + const under = if (kind == .grep and !std.mem.eql(u8, searched, pk.dir.slice())) std.fmt.bufPrint(&buf, "{s}/", .{relative(searched, pk.dir.slice())}) catch "" else ""; + Query.take(p, pk, kind, rows, under); // A listing's names, scored as they come. if (kind == .files) pk.names.rescore(p.gpa); return true; @@ -514,15 +554,31 @@ pub fn declsArrived(p: *Pardes, serial: u32) void { Query.gather(p, &pk.names, .symbols, pk.dir.slice(), null, p.paneBySerial(serial)); pk.names.typed(p.gpa, pk.names.queryText()); pk.names.rescore(p.gpa); + if (live(p) == pk) toBest(p, pk); }; } +/// The live picker's cursor on its best match, wherever its group puts it +/// (UX DESIGN N3: a Symbols list stays grouped while typed), its rows +/// sorted as far as the band shows past it. +fn toBest(p: *Pardes, pk: *Pick) void { + const at = pk.names.bestRow(); + pk.names.reachTo(at + Band.Cursor.shown); + p.view().tag_state.rows.at = @intCast(@min(at, std.math.maxInt(u16))); +} + /// After every step: each live picker's names scored on (a frame's count), /// and on a frame of its own after the cursor stood, the preview of the /// current row. pub fn produceAll(p: *Pardes, tick: bool) void { for (p.picks) |slot| if (slot) |pk| if (pk.unrolled) { - if (pk.names.busy()) pk.names.rescore(p.gpa); + if (pk.names.busy()) { + // A cursor on the best match follows it while the rest are + // scored. + const on_best = live(p) == pk and p.view().tag_state.rows.at == pk.names.bestRow(); + pk.names.rescore(p.gpa); + if (on_best) toBest(p, pk); + } // A theme's preview in the step of the key that moved to it. if (pk.source == .themes) pardes.colors.previewTheme(p, refAt(p, pk)); if (tick) preview(p, pk); @@ -584,7 +640,7 @@ const Target = union(enum) { none, place: struct { path: []const u8, at: look.Sp /// Row `i` as the band shows it and what it points at, its text in /// `arena`. -const Row = struct { text: []const u8, key: u8 = 0, pre: u16 = 0, faint: u16 = 0, dim: bool = false, marks: []const u16 = &.{}, target: Target = .none, meta: []const u8 = "" }; +const Row = struct { text: []const u8, key: u8 = 0, kind: u8 = 0, pre: u16 = 0, faint: u16 = 0, quiet: [2]u16 = .{ 0, 0 }, dim: bool = false, marks: []const u16 = &.{}, target: Target = .none, meta: []const u8 = "" }; fn rowAt(p: *Pardes, pk: *const Pick, arena: std.mem.Allocator, i: usize) std.mem.Allocator.Error!Row { const dir = pk.dir.slice(); @@ -626,7 +682,8 @@ fn rowAt(p: *Pardes, pk: *const Pick, arena: std.mem.Allocator, i: usize) std.me var marks: std.ArrayList(u16) = .empty; var c = fd.col; while (c < fd.end and c >= lead and pre.len + 1 + c - lead < text.len) : (c += 1) try marks.append(arena, @intCast(pre.len + 1 + c - lead)); - const path = try std.Io.Dir.path.join(arena, &.{ dir, name }); + // (Under an absolute leading directory, grepScope's, an absolute path.) + const path = if (name.len > 0 and name[0] == '/') name else try std.Io.Dir.path.join(arena, &.{ dir, name }); return .{ .text = text, .pre = @intCast(pre.len), .marks = marks.items, .target = .{ .place = .{ .path = path, .at = .{ .line = fd.line, .col = fd.col + 1 } } } }; } var marks: [Names.max_query * 4]u16 = undefined; @@ -639,15 +696,32 @@ fn rowAt(p: *Pardes, pk: *const Pick, arena: std.mem.Allocator, i: usize) std.me var namebuf: [4096]u8 = undefined; const name = if (text.len > 1 and text[0] == '"' and text[text.len - 1] == '"') look.unquoted(&namebuf, text[1 .. text.len - 1]) else text; row.faint = @intCast(if (std.mem.lastIndexOfScalar(u8, text, '/')) |k| k + 1 else 0); - row.target = .{ .place = .{ .path = try std.Io.Dir.path.join(arena, &.{ dir, name }), .at = .{ .line = 1, .col = 1 } } }; + // A text at its first line; a kind's file whole, as a Look of + // its name opens it (a place in it is its kind's address). + const at: look.Spot = if (p.kinds.forPath(name) != null) .{} else .{ .line = 1, .col = 1 }; + row.target = .{ .place = .{ .path = try std.Io.Dir.path.join(arena, &.{ dir, name }), .at = at } }; }, .panes => { row.pre = cand.key -| 1; row.dim = p.paneBySerial(cand.ref) == null; row.target = .{ .pane = cand.ref }; }, + // ` 12 m Counts.lines : usize = 0` (Query.gather): the line its + // meta, the mark in the keyword's ink, the qualifier and what + // follows the name dim (UX DESIGN N4). .symbols => { - row.pre = 6; + const line = 8; + if (text.len <= line or cand.key < line) return row; + row.text = text[line..]; + row.meta = std.mem.trimStart(u8, text[0..6], " "); + const marks_in = try arena.alloc(u16, row.marks.len); + for (marks_in, row.marks) |*m, at| m.* = at -| line; + row.marks = marks_in; + const name_at = cand.key - line; + row.kind = @intCast(name_at - 1); + row.pre = @intCast(name_at); + row.faint = cand.base; + if (name_at + cand.key_len < row.text.len) row.quiet = .{ @intCast(name_at + cand.key_len), @intCast(row.text.len) }; const owner = p.panes[p.paneBySerial(pk.owner) orelse return row] orelse return row; const f = owner.file orelse return row; row.target = .{ .place = .{ .path = f.path, .at = .{ .line = cand.ref } } }; @@ -837,7 +911,7 @@ pub fn steps(p: *Pardes, arena: std.mem.Allocator) ![]Band.Step { const rows = try arena.alloc(Band.Row, w.hi - w.lo); for (rows, w.lo..) |*row, i| { const r = try rowAt(p, pk, arena, i); - row.* = .{ .text = r.text, .key = r.key, .on = i == s.rows.at, .mark = marked(pk, idOf(pk, i)) != null, .dim = r.dim, .pre = r.pre, .faint = r.faint, .marks = r.marks, .index = @intCast(i), .meta = r.meta }; + row.* = .{ .text = r.text, .key = r.key, .kind = r.kind, .on = i == s.rows.at, .mark = marked(pk, idOf(pk, i)) != null, .dim = r.dim, .pre = r.pre, .faint = r.faint, .quiet = r.quiet, .marks = r.marks, .index = @intCast(i), .meta = r.meta }; } // A place's text (a Grep's line, a list's): its `path:line` in the dim // ink and the text after it in one column, the widest place shown @@ -925,7 +999,11 @@ pub fn sentence(p: *const Pardes, w: *std.Io.Writer) ?[2]usize { /// The landing pane's body showing the current row's place (SPEC §5.3): /// a file at its line, the query's matches lit for a Grep. Its own text is /// set aside the first time, put back when the picker rolls up. A file an -/// open pane shows is taken from it; any other is read. +/// open pane shows is taken from it; any other is read. A file a kind +/// takes (an addon's: a picture, a PDF), as a Look would open it +/// (look.resolve), shows through that kind (showKind); any other that is +/// not text (a NUL in its first 8000 bytes) as one line naming it, +/// `blob.bin · binary · 3.0 kB`, never its bytes. fn preview(p: *Pardes, pk: *Pick) void { const s = &p.view().tag_state; // No row yet: none shown, so the first to come is (a Find's listing @@ -944,45 +1022,27 @@ fn preview(p: *Pardes, pk: *Pick) void { const pane = p.panes[id].?; const f = if (pane.file) |*file| file else return; if (f.twin != 0) return; - if (!std.mem.eql(u8, f.path, place.path)) { + const showing = if (pane.addon) |k| k.path else f.path; + if (!std.mem.eql(u8, showing, place.path)) { if (exec.kindOf(p.tape, place.path)) |kind| if (kind != .file) return; - const bytes = openText(p, place.path) orelse (p.tape.site(.preview, p.gpa, filesystem.read, .{ p, place.path }) catch return); - if (std.mem.indexOfScalar(u8, bytes[0..@min(bytes.len, 8000)], 0) != null) { - p.gpa.free(bytes); - return; + const read = openText(p, place.path) orelse (p.tape.site(.preview, p.gpa, filesystem.read, .{ p, place.path }) catch return); + if (pane.addon != null) Kind.close(p, pane); + if (p.kinds.forPath(place.path)) |k| { + defer p.gpa.free(read); + return showKind(p, pk, id, k, place.path, read); } - const path = p.gpa.dupe(u8, place.path) catch { - p.gpa.free(bytes); - return; + const bytes = if (std.mem.indexOfScalar(u8, read[0..@min(read.len, 8000)], 0) == null) read else named: { + defer p.gpa.free(read); + break :named nameLine(p.gpa, place.path, "binary", read.len, "") catch return; }; - if (pk.aside == null and !pk.made) { - const history = File.History.create(p.gpa) catch { - p.gpa.free(bytes); - p.gpa.free(path); - return; - }; - pk.aside = pane.file; - pane.file = .{ .path = path, .content = bytes, .output = .{ .from = .preview }, .history = history }; - } else { - const pf = &pane.file.?; - p.gpa.free(pf.path); - pf.path = path; - File.setContent(p, pf, bytes); - pf.saved_revision = pf.revision; - pf.scroll = 0; - pf.scroll_row = 0; - pf.syntax_dirty = true; - pane.places.clear(p.gpa); - } - pane.hscroll = 0; - pk.previewed = true; - p.sync(); + showText(p, pk, id, place.path, bytes); } + if (pane.addon != null) return; // The body under the band from the first place it shows (previewing): // laid out again before the place is put in its rows. if (!pk.previewed) { pk.previewed = true; - p.sync(); + p.layOut(); } const keyboard = p.view().active; defer p.view().active = keyboard; @@ -998,7 +1058,85 @@ fn preview(p: *Pardes, pk: *Pick) void { } look.focusPaneLine(p, id, at, .third); // A Grep's matches in the file lit, as its own pane would have them. - if (pk.source == .grep) pane.places.search(p, pane, .list, pk.id, std.mem.trim(u8, s.field.text(), " "), true, null, false); + if (pk.source == .grep) { + var buf: [4096]u8 = undefined; + pane.places.search(p, pane, .list, pk.id, grepScope(p, pk, std.mem.trim(u8, s.field.text(), " "), &buf).pat, true, null, false); + } +} + +/// Landing pane `id`'s text `bytes` (taken) as `path`: its own text set +/// aside the first time, a preview's text after that changed in place. +fn showText(p: *Pardes, pk: *Pick, id: usize, path_: []const u8, bytes: []u8) void { + const pane = p.panes[id].?; + const path = p.gpa.dupe(u8, path_) catch { + p.gpa.free(bytes); + return; + }; + if (pk.aside == null and !pk.made) { + const history = File.History.create(p.gpa) catch { + p.gpa.free(bytes); + p.gpa.free(path); + return; + }; + pk.aside = pane.file; + pane.file = .{ .path = path, .content = bytes, .output = .{ .from = .preview }, .history = history }; + } else { + const pf = &pane.file.?; + p.gpa.free(pf.path); + pf.path = path; + File.setContent(p, pf, bytes); + pf.saved_revision = pf.revision; + pf.scroll = 0; + pf.scroll_row = 0; + pf.syntax_dirty = true; + pane.places.clear(p.gpa); + } + pane.hscroll = 0; + pk.previewed = true; + p.layOut(); +} + +/// Landing pane `id` showing the file at `path` through kind `k`, as a +/// Look would open it in a pane of its own: a slot of that kind over the +/// pane's text, which stays under it, unseen, until the next row or the +/// roll-up takes the slot away (Kind.close). Its kind does the work it +/// does for its own pane (an image decoded on a worker; a draw of a row +/// passed by dropped, Kind.Slot.drawn_from), and nothing more: what it +/// says, looks at or runs is not done while it previews (Kind.Call.end). +/// Until its picture is drawn, the line naming it (draw.zig); one its kind +/// refuses is that line as text, saying why. +fn showKind(p: *Pardes, pk: *Pick, id: usize, k: u8, path: []const u8, bytes: []const u8) void { + const pane = p.panes[id].?; + const slot = Kind.newSlot(p, k, path) catch |err| return p.reportError(.at(id), "pick", err); + slot.size = bytes.len; + pane.addon = slot; + pk.previewed = true; + if (!Kind.reopen(p, id, slot, bytes) and slot.refused.len > 0) { + const line = nameLine(p.gpa, path, slot.nameOf(), bytes.len, slot.refused.slice()) catch return Kind.close(p, pane); + Kind.close(p, pane); + return showText(p, pk, id, path, line); + } + p.layOut(); +} + +/// The one line a file shows while a picker previews it and none of its +/// text is shown: its name, what it is (`binary`, a kind's name), its size +/// and why when it says why: `photo.png · image · 1.2 MB`. +pub fn nameLine(gpa: std.mem.Allocator, path: []const u8, what: []const u8, size: u64, why: []const u8) ![]u8 { + var out: std.Io.Writer.Allocating = .init(gpa); + errdefer out.deinit(); + const w = &out.writer; + try w.print("{s} · {s} · ", .{ std.Io.Dir.path.basename(path), what }); + if (size < 1000) try w.print("{d} B", .{size}) else { + const units = [_][]const u8{ "kB", "MB", "GB", "TB", "PB", "EB" }; + var unit: u64 = 1000; + var u: usize = 0; + while (size / unit >= 1000 and u + 1 < units.len) : (u += 1) unit *= 1000; + const tenths = size / (unit / 10); + try w.print("{d}.{d} {s}", .{ tenths / 10, tenths % 10, units[u] }); + } + if (why.len > 0) try w.print(" · {s}", .{why}); + return out.toOwnedSlice(); } /// The text of `path` as an open pane has it, copied: no read for it. @@ -1019,6 +1157,9 @@ fn restore(p: *Pardes, pk: *Pick) void { const id = p.paneBySerial(pk.landing) orelse return; for (p.panes) |slot| if (slot) |tp| if (tp.places.from == pk.id) tp.places.clear(p.gpa); if (pk.made) { + // A kind's file shown: its slot closed first, as a pane's text + // closing is no file closed (no Recent row). + if (p.panes[id].?.addon != null) Kind.close(p, p.panes[id].?); pk.made = false; p.removePane(id, p.paneBySerial(pk.owner)) catch |err| p.reportError(.at(id), "pick", err); return; @@ -1030,6 +1171,7 @@ fn restore(p: *Pardes, pk: *Pick) void { fn putBack(p: *Pardes, pk: *Pick) void { const id = p.paneBySerial(pk.landing) orelse return; const pane = p.panes[id].?; + if (pane.addon != null) Kind.close(p, pane); if (pk.made) return; const own = pk.aside orelse { // Its own file previewed: its caret and top as they were. @@ -1045,7 +1187,7 @@ fn putBack(p: *Pardes, pk: *Pick) void { pane.body.cur_row = pk.aside_row; pane.body.cur_col = pk.aside_col; pane.body.vsel.active = false; - p.sync(); + p.layOut(); } /// The live picker rolled up (Esc, or the tag put to rest by anything): @@ -1415,6 +1557,7 @@ fn refine(p: *Pardes, pk: *Pick, drop: bool) void { if (drop and (if (pk.marks.items.len > 0) marked(pk, h.cand) != null else h.cand == current)) continue; const c = pk.names.cands.items[h.cand]; next.add(p.gpa, pk.names.bytes.items[c.start..][0..c.len], c.key, c.key_len, c.base, c.ref) catch break; + next.cands.items[next.cands.items.len - 1].group = c.group; } } else { var arena = std.heap.ArenaAllocator.init(p.gpa); @@ -1514,7 +1657,7 @@ fn keep(p: *Pardes, pk: *Pick) void { const row = rowAt(p, pk, arena.allocator(), i) catch break; switch (row.target) { .place => |t| if (pk.source == .symbols) - out.writer.print("{s}:{d} {s}\n", .{ std.Io.Dir.path.basename(t.path), t.at.line, std.mem.trimStart(u8, row.text, " 0123456789") }) catch break + out.writer.print("{s}:{d} {s}\n", .{ std.Io.Dir.path.basename(t.path), t.at.line, row.text }) catch break else out.writer.print("{s}\n", .{row.text}) catch break, else => out.writer.print("{s}\n", .{row.text}) catch break, @@ -1999,6 +2142,9 @@ pub fn execWord(p: *Pardes, txt: []const u8) bool { } fn testFile(p: *Pardes, tmp: *std.testing.TmpDir, name: []const u8, text: []const u8) ![]u8 { + // The directory a work tree of its own, as a project is: Find and Grep + // search it, not the tree the test runs in. + tmp.dir.createDir(std.testing.io, ".git", .default_dir) catch |err| if (err != error.PathAlreadyExists) return err; try tmp.dir.writeFile(std.testing.io, .{ .sub_path = name, .data = text }); var base_buf: [std.Io.Dir.max_path_bytes]u8 = undefined; const dir = base_buf[0..try tmp.dir.realPath(std.testing.io, &base_buf)]; @@ -3283,3 +3429,275 @@ test "Ctrl-r in a picker unrolls its source's earlier queries (UX L2's last line p.update(.{ .key = .{ .cp = Key.escape } }); p.update(.{ .key = .{ .cp = Key.escape } }); } + +/// A Symbols picker opened from a file pane whose path is `name` and text +/// `text`, its symbols parsed (small: here and now), and the pane. +fn openSymbols(p: *Pardes, name: []const u8, text: []const u8) !*Pane { + const pane = try p.setTestFile(text); + p.gpa.free(pane.file.?.path); + pane.file.?.path = try p.gpa.dupe(u8, name); + open(p, p.view().active, .symbols, "", "", ""); + settle(p); + return pane; +} + +/// The live picker's rows, `meta text` a line each. +fn rowLines(p: *Pardes, a: std.mem.Allocator) ![]const u8 { + const pk = live(p).?; + var out: std.ArrayList(u8) = .empty; + for (0..count(p, pk)) |i| { + const r = try rowAt(p, pk, a, i); + try out.print(a, "{s: >2} {s}\n", .{ r.meta, r.text }); + } + return out.items; +} + +const counts_zig = + \\const std = @import("std"); + \\pub const Counts = struct { + \\ lines: usize = 0, + \\ words: usize = 0, + \\ pub const zero: Counts = .{}; + \\ pub fn add(c: *Counts, text: []const u8) void { + \\ const local = text.len; + \\ c.lines += local; + \\ } + \\}; + \\const Mode = enum { fast, slow }; + \\var hits: u32 = 0; + \\pub fn count(text: []const u8) Counts { + \\ return .{ .lines = text.len }; + \\} + \\test "count.add" {} + \\ +; + +test "Symbols (UX DESIGN N): a Zig file's rows types, functions, fields, then the rest, each in the text's order with the field empty; a row its kind's mark, its name qualified, what its first line says after it, its line the meta; the mark in the keyword's ink, the qualifier and the rest dim" { + const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .cols = 140, .rows = 50 }); + defer p.deinit(); + p.settings.jumps = .walk; + var frame = std.heap.ArenaAllocator.init(std.testing.allocator); + defer frame.deinit(); + const a = frame.allocator(); + _ = try openSymbols(p, "/w6/counts.zig", counts_zig); + try std.testing.expectEqualStrings( + \\ 2 t Counts = struct + \\11 t Mode = enum { fast, slow } + \\ 6 f Counts.add (c: *Counts, text: []const u8) void + \\13 f count (text: []const u8) Counts + \\ 3 m Counts.lines : usize = 0 + \\ 4 m Counts.words : usize = 0 + \\11 m Mode.fast + \\11 m Mode.slow + \\ 1 n std = @import("std") + \\ 5 c Counts.zero : Counts = .{} + \\12 v hits : u32 = 0 + \\16 · "count.add" + \\ + , try rowLines(p, a)); + // The qualifier dim, `Counts.`; a name holding a `.` none of it. + try std.testing.expectEqual(@as(u16, "Counts.".len), (try rowAt(p, live(p).?, a, 4)).faint); + try std.testing.expectEqual(@as(u16, 0), (try rowAt(p, live(p).?, a, 11)).faint); + // Drawn: `m Counts.lines : usize = 0` (not the cursor's row). + const pane = p.panes[p.paneBySerial(live(p).?.landing).?].?; + _ = try p.render(a); + const layer = &p.surface.tag_layers[pardes.BAND_LAYER]; + const roles = &p.chromeTheme().roles; + const inks = roles.on(if (Trail.reading(p, pane)) .reading_focused else .focused); + var found = false; + for (0..layer.rows) |y| { + const cells = layer.cells[y * layer.cols ..][0..layer.cols]; + var text: std.ArrayList(u8) = .empty; + var at: std.ArrayList(usize) = .empty; + for (cells, 0..) |c, x| { + try at.append(a, text.items.len); + try text.appendSlice(a, c.grapheme()); + _ = x; + } + const from = std.mem.indexOf(u8, text.items, "m Counts.lines") orelse continue; + var x: usize = 0; + while (at.items[x] < from) x += 1; + try std.testing.expectEqual(pardes.Color{ .rgb = p.chrome().on(.focus).kind }, cells[x].style.fg); + try std.testing.expectEqual(pardes.Color{ .rgb = inks.dim }, cells[x + 2].style.fg); + try std.testing.expectEqual(pardes.Color{ .rgb = inks.text }, cells[x + 9].style.fg); + try std.testing.expectEqual(pardes.Color{ .rgb = inks.dim }, cells[x + 16].style.fg); + // Its line at the row's right end, dim. + const three = std.mem.lastIndexOfScalar(u8, text.items, '3').?; + var m: usize = 0; + while (at.items[m] < three) m += 1; + try std.testing.expect(m > x + 30); + try std.testing.expectEqual(pardes.Color{ .rgb = inks.dim }, cells[m].style.fg); + found = true; + } + try std.testing.expect(found); +} + +test "Symbols (UX DESIGN N3): typed, the rows stay grouped, scored within each group, and the cursor starts on the best match wherever its group puts it; the name alone is matched, never the signature" { + const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .cols = 140, .rows = 50 }); + defer p.deinit(); + p.settings.jumps = .walk; + var frame = std.heap.ArenaAllocator.init(std.testing.allocator); + defer frame.deinit(); + const a = frame.allocator(); + const pane = try openSymbols(p, "/w6/counts.zig", counts_zig); + for ("count") |c| p.update(.{ .key = .{ .cp = c, .text = &[_]u8{c} } }); + settle(p); + const rows = try rowLines(p, a); + try std.testing.expect(std.mem.startsWith(u8, rows, + \\ 2 t Counts = struct + \\13 f count (text: []const u8) Counts + \\ 6 f Counts.add (c: *Counts, text: []const u8) void + \\ 3 m Counts.lines : usize = 0 + \\ 4 m Counts.words : usize = 0 + \\ + )); + // `count` matched best: the cursor on it, not on the first row, and + // the count says where it is. + const s = &p.view().tag_state; + try std.testing.expectEqual(@as(u16, 1), s.rows.at); + const h = (try head(p, a, p.panes[p.paneBySerial(live(p).?.landing).?].?)).?; + try std.testing.expect(std.mem.indexOf(u8, h.text, "2/7") != null); + // Enter lands on its line. + _ = pane; + // `u8` is in signatures only: nothing matches. + for (0..5) |_| p.update(.{ .key = .{ .cp = pardes.Key.backspace } }); + for ("u8") |c| p.update(.{ .key = .{ .cp = c, .text = &[_]u8{c} } }); + settle(p); + try std.testing.expectEqual(@as(usize, 0), count(p, live(p).?)); +} + +test "Symbols (UX DESIGN N): a C++ file's rows by its kind table, members named in their class and namespace, a function's locals none" { + const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .cols = 140, .rows = 50 }); + defer p.deinit(); + p.settings.jumps = .walk; + var frame = std.heap.ArenaAllocator.init(std.testing.allocator); + defer frame.deinit(); + _ = try openSymbols(p, "/w6/parser.cc", + \\#define LIMIT 4 + \\namespace torque { + \\class Parser : public Base { + \\ public: + \\ Parser(); + \\ int Parse(int depth) const { return depth; } + \\ int depth_; + \\}; + \\enum class Kind { kA, kB }; + \\int Parser::Run(int n) { int local = n; return local; } + \\static int counter = 0; + \\const int limit = 4; + \\using Alias = int; + \\} + \\ + ); + try std.testing.expectEqualStrings( + \\ 3 t torque.Parser : public Base + \\ 9 t torque.Kind + \\13 t torque.Alias = int + \\ 5 f torque.Parser.Parser () + \\ 6 f torque.Parser.Parse (int depth) const + \\10 f torque.Parser::Run (int n) + \\ 7 m torque.Parser.depth_ + \\ 9 m torque.Kind.kA + \\ 9 m torque.Kind.kB + \\ 1 · LIMIT 4 + \\ 2 n torque + \\11 v torque.counter = 0 + \\12 c torque.limit = 4 + \\ + , try rowLines(p, frame.allocator())); +} + +test "Symbols: every row is ordinary text: no header rows, the cursor steps onto each in turn, the band shows each row's text, and C-q keeps them in a +Search with the mark a word" { + const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .cols = 140, .rows = 50 }); + defer p.deinit(); + p.settings.jumps = .walk; + var frame = std.heap.ArenaAllocator.init(std.testing.allocator); + defer frame.deinit(); + const a = frame.allocator(); + _ = try openSymbols(p, "/w6/counts.zig", counts_zig); + const pk = live(p).?; + const n = count(p, pk); + try std.testing.expectEqual(@as(usize, 12), n); + const s = &p.view().tag_state; + for (0..n) |i| { + try std.testing.expectEqual(@as(u16, @intCast(i)), s.rows.at); + const r = try rowAt(p, pk, a, i); + const host = p.paneBySerial(pk.landing).?; + const band = (try Band.of(p, a, p.panes[host].?, host)).?; + var shown = false; + for (0..band.height) |y| { + const ln = try band.line(a, p.settings.tab, @intCast(y)); + shown = shown or std.mem.indexOf(u8, ln.text, r.text) != null; + } + try std.testing.expect(shown); + p.update(.{ .key = .{ .cp = pardes.Key.down } }); + } + p.update(.{ .key = .{ .cp = 'q', .ctrl = true } }); + var kept: ?[]const u8 = null; + for (p.panes) |slot| if (slot) |tp| if (tp.file) |f| if (std.mem.startsWith(u8, f.content, "Symbols ")) { + kept = f.content; + }; + try std.testing.expect(std.mem.indexOf(u8, kept.?, "\ncounts.zig:3 m Counts.lines : usize = 0\n") != null); + try std.testing.expect(std.mem.indexOf(u8, kept.?, "\ncounts.zig:2 t Counts = struct\n") != null); +} + +test "Find and Grep search the work tree (W8): from a pane deep in a repo Find lists the files from its root and `sub/name` narrows it, a leading directory narrows Grep, and outside a repo they search the pane's directory" { + const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .cols = 100, .rows = 30 }); + defer p.deinit(); + p.settings.jumps = .walk; + p.stream.engine = .walk; + var tmp = std.testing.tmpDir(.{}); + defer tmp.cleanup(); + for ([_][]const u8{ "src/deep", "sub", "other" }) |d| try tmp.dir.createDirPath(std.testing.io, d); + const deep = try testFile(p, &tmp, "src/deep/x.txt", "deep\n"); + defer p.gpa.free(deep); + for ([_][2][]const u8{ .{ "sub/name.txt", "needle one\n" }, .{ "other/name.txt", "needle two\n" } }) |f| p.gpa.free(try testFile(p, &tmp, f[0], f[1])); + const root = std.Io.Dir.path.dirname(std.Io.Dir.path.dirname(std.Io.Dir.path.dirname(deep).?).?).?; + _ = try p.setTestFile("held\n"); + const asker = p.view().active; + Trail.keep(p.panes[asker].?); + p.gpa.free(p.panes[asker].?.file.?.path); + p.panes[asker].?.file.?.path = try p.gpa.dupe(u8, deep); + var frame = std.heap.ArenaAllocator.init(std.testing.allocator); + defer frame.deinit(); + const a = frame.allocator(); + // Find from src/deep: the root's files, by their paths from it. + open(p, asker, .find, "", "", ""); + var pk = live(p).?; + try std.testing.expectEqualStrings(root, pk.dir.slice()); + settle(p); + try std.testing.expectEqual(@as(usize, 3), count(p, pk)); + for ("sub/name") |c| p.update(.{ .key = .{ .cp = c, .text = &[_]u8{c} } }); + settle(p); + try std.testing.expectEqual(@as(usize, 1), count(p, pk)); + try std.testing.expectEqualStrings("sub/name.txt", (try rowAt(p, pk, a, 0)).text); + p.update(.{ .key = .{ .cp = Key.escape } }); + // Grep: the whole tree, then `sub needle` in sub/ alone, its row's + // path from the root, landing on the file there. + open(p, asker, .grep, "", "", ""); + pk = live(p).?; + for ("needle") |c| p.update(.{ .key = .{ .cp = c, .text = &[_]u8{c} } }); + // (Its typing paused: the search starts.) + p.clock.now_ns = p.stream.due_ns.?; + settle(p); + try std.testing.expectEqual(@as(usize, 2), count(p, pk)); + p.update(.{ .key = .{ .cp = Key.escape } }); + open(p, asker, .grep, "", "", ""); + pk = live(p).?; + for ("sub needle") |c| p.update(.{ .key = .{ .cp = c, .text = &[_]u8{c} } }); + // (Its typing paused: the search starts.) + p.clock.now_ns = p.stream.due_ns.?; + settle(p); + try std.testing.expectEqual(@as(usize, 1), count(p, pk)); + const row = try rowAt(p, pk, a, 0); + try std.testing.expect(std.mem.startsWith(u8, row.text, "sub/name.txt:1 needle one")); + try std.testing.expectEqualStrings(try std.Io.Dir.path.join(a, &.{ root, "sub/name.txt" }), row.target.place.path); + p.update(.{ .key = .{ .cp = Key.escape } }); + // Outside a repo (`/`, the test text's directory, holds no .jj nor + // .git): the pane's directory, as before. + p.gpa.free(p.panes[asker].?.file.?.path); + p.panes[asker].?.file.?.path = try p.gpa.dupe(u8, "/held.txt"); + open(p, asker, .find, "", "", ""); + try std.testing.expectEqualStrings("/", live(p).?.dir.slice()); + p.update(.{ .key = .{ .cp = Key.escape } }); +} diff --git a/core/Pipe.zig b/core/Pipe.zig index 1ef2e4ea..e94d2099 100644 --- a/core/Pipe.zig +++ b/core/Pipe.zig @@ -480,8 +480,9 @@ test "| in a tag pipes the tag's own text, and undo there brings it back" { defer p.deinit(); while (p.nextEffect()) |_| {} const pane = try p.setTestFile("body\n"); - for ("::") |c| p.update(.{ .key = .{ .cp = c } }); // the tag (`:` on the empty `:` field), on Save - p.update(.{ .key = .{ .cp = 'e' } }); // Save selected + pane.tag.own = try gpa.dupe(u8, "Look here"); // the user's text (UX K'1) + for ("::") |c| p.update(.{ .key = .{ .cp = c } }); // the tag (`:` on the empty `:` field), on its own text + p.update(.{ .key = .{ .cp = 'e' } }); // Look selected p.update(.{ .key = .{ .cp = '|' } }); try std.testing.expect(pane.focus == .tag and pane.prompt == .pipe and pane.prompt_for == .tag); p.update(.{ .key = .{ .cp = 't', .text = "tr a-z A-Z" } }); @@ -490,13 +491,13 @@ test "| in a tag pipes the tag's own text, and undo there brings it back" { const id = nextPipeEffect(p) orelse return error.MissingPipeEffect; const request = p.pipe.pipeRequest(id) orelse return error.MissingPipeRequest; try std.testing.expectEqual(@as(usize, 1), request.inputs.len); - try std.testing.expectEqualSlices(u8, "Save", request.inputs[0]); - const outputs: []const []const u8 = &.{"SAVE"}; + try std.testing.expectEqualSlices(u8, "Look", request.inputs[0]); + const outputs: []const []const u8 = &.{"LOOK"}; p.update(.{ .pipe_resp = .{ .id = id, .success = true, .outputs = outputs } }); - try std.testing.expect(std.mem.startsWith(u8, pardes.tagline.curTail(pane), " SAVE ")); + try std.testing.expectEqualStrings("LOOK here", pardes.tagline.curTail(pane)); try std.testing.expectEqualStrings("body\n", pane.file.?.content); p.update(.{ .key = .{ .cp = 'u' } }); - try std.testing.expect(std.mem.startsWith(u8, pardes.tagline.curTail(pane), " Save ")); + try std.testing.expectEqualStrings("Look here", pardes.tagline.curTail(pane)); } test "$ keeps the selections the command exits 0 on, and a real shell gives that verdict" { diff --git a/core/Query.zig b/core/Query.zig index f3673dd6..f9651faf 100644 --- a/core/Query.zig +++ b/core/Query.zig @@ -530,8 +530,9 @@ fn makeNameRows(p: *Pardes, id: usize) !void { f.pager_spans = spans.toOwnedSlice(p.gpa) catch &.{}; q.total = q.names.hits.items.len; q.more = q.names.busy() or p.stream.busyFor(rp.serial); - // The best is current until a step or a click moves it. - q.current = if (shown > 0) 0 else null; + // The best is current until a step or a click moves it: in a grouped + // list (Symbols) wherever its group puts it. + q.current = if (shown > 0) @min(q.names.bestRow(), shown - 1) else null; countCurrent(q); showCurrent(p.settings.tab, rp); if (q.current == null) blankPreview(p, id) else showTarget(p, id); @@ -771,23 +772,54 @@ pub fn gather(p: *Pardes, names: *Names, source: Source, dir: []const u8, self: const oid = owner_id orelse return; const owner = p.panes[oid].?; const f = if (owner.file) |*file| file else return; - const decls = ownerDecls(f) orelse { + if (f.context.revision != f.revision) { // Parsed on the worker; listed when it is done (declsArrived). Stream.parseFor(p, oid); return; - }; - for (decls) |d| { - const header = f.content[d.start_byte..@min(d.header_end_byte, f.content.len)]; - const first = std.mem.trim(u8, header[0 .. std.mem.indexOfScalar(u8, header, '\n') orelse header.len], " \t\r"); - var buf: [256 + 16]u8 = undefined; - const row = std.fmt.bufPrint(&buf, "{d: >6} {s}", .{ d.start_line + 1, first[0..@min(first.len, 240)] }) catch continue; - names.add(gpa, row, 8, row.len - 8, 0, @intCast(d.start_line + 1)) catch break; } + // The file's text, which was parsed (the `Changes` layer's lines + // are none of it). + const text = File.fileText(f, p.scratch.allocator()) catch return; + const symbols = f.context.symbols; + // A row a symbol, ` 12 m Counts.lines : usize = 0`: its + // line, its mark, its name qualified by the ones it is in, then + // what its first line says after the name; types, functions, + // fields, then the rest, each in the text's order (UX DESIGN N). + // The qualified name alone is matched, its own name the + // basename. + for (0..4) |group| for (symbols) |sym| { + if (sym.kind.group() != group or sym.kind == .scope or sym.end > text.len) continue; + var buf: [512]u8 = undefined; + var row: std.Io.Writer = .fixed(&buf); + row.print("{d: >6} {s} ", .{ sym.line + 1, sym.kind.mark() }) catch continue; + const key_at = row.end; + qualify(&row, symbols, text, sym.parent, 4) catch continue; + // The name its basename: the qualifier dim (Pick.rowAt). + const base = row.end - key_at; + row.writeAll(text[sym.name_start..sym.name_end]) catch continue; + const key_len = row.end - key_at; + const rest = text[sym.name_end..@max(sym.name_end, sym.end)]; + var detail = std.mem.trim(u8, rest[0 .. std.mem.indexOfScalar(u8, rest, '\n') orelse rest.len], " \t\r"); + detail = std.mem.trimEnd(u8, std.mem.trimEnd(u8, detail, "{,;"), " \t"); + if (detail.len > 0) row.print(" {s}", .{detail[0..@min(detail.len, buf.len - row.end -| 2)]}) catch {}; + names.add(gpa, row.buffered(), key_at, key_len, @intCast(base), sym.line + 1) catch break; + names.cands.items[names.cands.items.len - 1].group = @intCast(group); + }; }, else => {}, } } +/// The names of the symbols `parent` (an index + 1) is in, outermost +/// first, each with its `.`: `Outer.Inner.` (the `depth` innermost). +fn qualify(w: *std.Io.Writer, symbols: []const syntax.Symbol, text: []const u8, parent: u32, depth: u8) std.Io.Writer.Error!void { + if (parent == 0 or parent > symbols.len or depth == 0) return; + const up = symbols[parent - 1]; + if (up.name_end > text.len) return; + try qualify(w, symbols, text, up.parent, depth - 1); + try w.print("{s}.", .{text[up.name_start..up.name_end]}); +} + /// What a Panes row of a closed pane ends with. const closed_word = " (closed)"; @@ -1269,7 +1301,7 @@ fn countGrepCurrent(q: *Query) void { /// picker (Pick.zig: the same fields): a Grep's lines (`path:line:col-end /// code`, relative to the pane's directory) kept as found, a listing's /// names added to what Find scores. -pub fn take(p: *Pardes, q: anytype, kind: Stream.Kind, rows: []const u8) void { +pub fn take(p: *Pardes, q: anytype, kind: Stream.Kind, rows: []const u8, under: []const u8) void { var lines = std.mem.splitScalar(u8, rows, '\n'); while (lines.next()) |ln| { if (ln.len == 0) continue; @@ -1286,13 +1318,14 @@ pub fn take(p: *Pardes, q: anytype, kind: Stream.Kind, rows: []const u8) void { const name = if (ln[0] == '"') look.unquoted(&namebuf, t.path) else t.path; const found: Found = .{ .path = std.math.cast(u32, q.found_bytes.items.len) orelse return, - .path_len = std.math.cast(u16, name.len) orelse continue, + .path_len = std.math.cast(u16, under.len + name.len) orelse continue, .line = std.math.cast(u32, t.at.line) orelse continue, .col = std.math.cast(u32, t.at.col -| 1) orelse continue, .end = std.math.cast(u32, if (t.at.end_col > 0) t.at.end_col else t.at.col) orelse continue, - .code = std.math.cast(u32, q.found_bytes.items.len + name.len) orelse return, + .code = std.math.cast(u32, q.found_bytes.items.len + under.len + name.len) orelse return, .code_len = std.math.cast(u32, code.len) orelse continue, }; + q.found_bytes.appendSlice(p.gpa, under) catch return; q.found_bytes.appendSlice(p.gpa, name) catch return; q.found_bytes.appendSlice(p.gpa, code) catch return; q.found.append(p.gpa, found) catch return; @@ -1703,7 +1736,7 @@ fn displayPreview(p: *Pardes, qid: usize, path: []const u8, at: look.Spot) void pane.hscroll = 0; // another file: its own places, found below pane.places.clear(p.gpa); - p.sync(); + p.layOut(); } look.clearNavigationSelection(p, pane); if (at.line == 0 or at.line > File.nlines(p.gpa, f)) { @@ -2808,7 +2841,7 @@ test "Grep: a row whose numbers a Found cannot hold (a column past u32) is passe defer p.deinit(); var q: Query = .{ .owner = 0 }; defer q.deinit(p.gpa); - take(p, &q, .grep, "a:5000000000:b:3:1-4 hit\nok.txt:2:3-5 hit\nb:7:4294967297 hit\n"); + take(p, &q, .grep, "a:5000000000:b:3:1-4 hit\nok.txt:2:3-5 hit\nb:7:4294967297 hit\n", ""); // Taken or passed over, each: never cast (main: Query.zig:1267). try std.testing.expect(q.found.items.len <= 3); } diff --git a/core/Store.zig b/core/Store.zig index 1328af38..8a1c3987 100644 --- a/core/Store.zig +++ b/core/Store.zig @@ -223,7 +223,7 @@ pub fn reopen(s: *Store, p: *Pardes, serial: u32, from: usize) bool { }; p.view().active = free; if (layout.findPane(p, free)) |f| p.setActiveColumn(f.col); - p.sync(); + p.layOut(); return true; } diff --git a/core/Stream.zig b/core/Stream.zig index e9e7793b..4691e192 100644 --- a/core/Stream.zig +++ b/core/Stream.zig @@ -67,10 +67,11 @@ pub const Batch = struct { end: ?End = null, /// A parse's own time on the worker (`parse_ns`). took_ns: u64 = 0, - /// A parse's answer (`parseFor`): the declarations of pane `serial`'s - /// text at `revision`. + /// A parse's answer (`parseFor`): the declarations and symbols of pane + /// `serial`'s text at `revision`. parsed: ?struct { serial: u32, revision: u32 } = null, decls: []syntax.ContextDeclaration = &.{}, + symbols: []syntax.Symbol = &.{}, /// A paint's answer (`paintAhead`): the colours of pane `serial`'s text /// at `revision` from byte `start`, one syntax.Syn a byte. painted: ?struct { serial: u32, revision: u32, start: usize } = null, @@ -83,6 +84,7 @@ pub const Batch = struct { pub fn deinit(b: *const Batch, gpa: std.mem.Allocator) void { gpa.free(b.rows); gpa.free(b.decls); + gpa.free(b.symbols); gpa.free(b.styles); } }; @@ -480,9 +482,9 @@ pub fn parseFor(p: *Pardes, id: usize) void { fn parseWork(io: std.Io, job: *TextJob, ctx: ?*anyopaque, sink: Sink) void { const began = std.Io.Clock.awake.now(io); - const decls: []syntax.ContextDeclaration = syntax.declarationsApart(job.out, job.path, job.source, &job.stop) catch @constCast(&[_]syntax.ContextDeclaration{}); + const made: syntax.Context = syntax.contextApart(job.out, job.path, job.source, &job.stop) catch .{}; const took: u64 = @intCast(@max(0, began.durationTo(std.Io.Clock.awake.now(io)).nanoseconds)); - _ = sink(ctx, .{ .gen = job.gen, .decls = decls, .parsed = .{ .serial = job.serial, .revision = job.revision }, .end = .done, .took_ns = took }); + _ = sink(ctx, .{ .gen = job.gen, .decls = made.declarations, .symbols = made.symbols, .parsed = .{ .serial = job.serial, .revision = job.revision }, .end = .done, .took_ns = took }); } fn now() u64 { @@ -717,7 +719,7 @@ pub fn receive(p: *Pardes, b: *const Batch) void { const id = p.paneBySerial(s.target) orelse return; const q = p.panes[id].?.query orelse return; q.capped = s.state == .capped; - panes.Query.take(p, q, s.kind, b.rows); + panes.Query.take(p, q, s.kind, b.rows, ""); } /// A parse's answer: its task joined; the declarations kept as the pane's @@ -732,12 +734,15 @@ fn receiveParse(p: *Pardes, b: *const Batch, serial: u32, revision: u32) void { t.job.deinit(); }; s.parse_ns = b.took_ns; - if (p.paneBySerial(serial)) |id| if (p.panes[id].?.file) |*f| if (f.revision == revision and b.decls.len > 0) { - if (p.tree_sitter_gpa.dupe(syntax.ContextDeclaration, b.decls)) |copy| { - f.context.replace(p.tree_sitter_gpa, copy, revision); - panes.Query.declsArrived(p, serial); - panes.Pick.declsArrived(p, serial); - } else |_| {} + if (p.paneBySerial(serial)) |id| if (p.panes[id].?.file) |*f| if (f.revision == revision and (b.decls.len > 0 or b.symbols.len > 0)) kept: { + const decls = p.tree_sitter_gpa.dupe(syntax.ContextDeclaration, b.decls) catch break :kept; + const symbols = p.tree_sitter_gpa.dupe(syntax.Symbol, b.symbols) catch { + p.tree_sitter_gpa.free(decls); + break :kept; + }; + f.context.replace(p.tree_sitter_gpa, .{ .declarations = decls, .symbols = symbols }, revision); + panes.Query.declsArrived(p, serial); + panes.Pick.declsArrived(p, serial); }; p.needs_frame = true; // A `Churn` waiting on these declarations (jj.zig). @@ -1452,7 +1457,7 @@ test "Stream: a Grep stops at its 2000 lines and waits; More in the query pane's p.update(.tick); try testing.expectEqual(@as(usize, soft_cap), qp.query.?.found.items.len); try testing.expect(qp.query.?.capped); - try testing.expectEqualStrings(" More Del", @import("tagline.zig").curTail(qp)); + try testing.expectEqualStrings(" More Del", @import("tagline.zig").computedWords(qp)); pardes.exec.runBuiltin(p, .More, qid, "", null); try shell.finish(p, 20_000); p.update(.tick); diff --git a/core/TagState.zig b/core/TagState.zig index 3bf67e5e..c754e468 100644 --- a/core/TagState.zig +++ b/core/TagState.zig @@ -339,9 +339,16 @@ fn reaches(p: *const Pardes, root: Root, path: []const u8, leaf: bool) bool { /// the keyboard). The pane's state, not the view's keyboard: every view /// shows it; not while the tag has the keyboard, whose own text is edited /// then. +/// A question waits on pane `pane` at rest, its keyboard not in its tag: +/// its tag says it after the path, in place of the tag's computed words +/// and own text (UX D13, K'3). +pub fn asks(p: *const Pardes, pane: *const Pane) bool { + return pane.focus != .tag and pane.prompt != .name and p.messages.waiting(pane) != null; +} + fn asking(p: *Pardes, arena: std.mem.Allocator, pane: *Pane) !?Head { - if (pane.focus == .tag or pane.prompt == .name) return null; - const i = p.messages.waiting(pane) orelse return null; + if (!asks(p, pane)) return null; + const i = p.messages.waiting(pane).?; const said = &p.messages.live[i]; var b: Builder = .{ .arena = arena }; // In the rows the tag takes at rest (UX D13: a question never adds a @@ -350,7 +357,7 @@ fn asking(p: *Pardes, arena: std.mem.Allocator, pane: *Pane) !?Head { // always show. const tab = p.settings.tab; const id = panes.paneIdOf(p, pane) orelse return null; - const room = @as(usize, @import("layout.zig").wantedTagRows(p, id)) * tagline.tagWidth(p, id) -| panes.File.displayWidth(tab, try tagline.restPrefix(p, arena, pane)); + const room = @as(usize, @import("layout.zig").wantedTagRows(p, id)) * tagline.tagWidth(p, id) -| panes.File.displayWidth(tab, try tagline.prefixIn(p, arena, pane)); const hint = if (p.view().answering == pane.serial) "· Esc later" else "· SPC e to answer"; var answers: usize = 2; // ` ▸`, then each ` k word ` for (said.asks.answers()) |a| answers += 3 + panes.File.displayWidth(tab, a.word) + 1; @@ -1321,6 +1328,8 @@ test "a tag out of rest keeps exactly its rows at rest: a level shorter than its defer p.deinit(); _ = try p.setTestFile("one\n"); const pane = p.panes[p.view().active].?; + // Its own text past a row: the tag takes two (UX K'1). + pane.tag.own = try p.gpa.dupe(u8, "words of the user's own that run on past a row"); p.sync(); const rows, const tag_rows = .{ pane.rows, pane.tag_rows }; try std.testing.expect(tag_rows > 1); diff --git a/core/Term.zig b/core/Term.zig index d4baf4e8..509da6d9 100644 --- a/core/Term.zig +++ b/core/Term.zig @@ -422,7 +422,7 @@ pub const calls = [_]struct { []const u8, []const u8, []const u8 }{ .{ "endOutputHere", "ninep/pty.zig:1", "WRITE: a 9P pty/run's step ends a command's output at the cursor: the session's step, replayed as such" }, .{ "replies", "Core.zig:1", "WRITE: a step drains the reply buffer (in the digest), counted when it held any (the feed's own unit, which filled it); only the session writes it to the pty (pty_write is off the tape)" }, // ---- reads by a step: in the digest ---- - .{ "grid", "Core.zig:2 ansi.zig:3 body_layer.zig:3 draw.zig:2 dump.zig:4 echo.zig:8 exec.zig:2 layout.zig:2 panes.zig:6 replica.zig:2", "READ: the size, the history's length, the cursor: in the digest (a view's place is its pane's; ansi.zig, body_layer.zig, draw.zig, echo.zig: a draw's)" }, + .{ "grid", "Core.zig:3 ansi.zig:3 body_layer.zig:3 draw.zig:2 dump.zig:4 echo.zig:8 exec.zig:2 layout.zig:2 panes.zig:6 replica.zig:2", "READ: the size, the history's length, the cursor: in the digest (a view's place is its pane's; ansi.zig, body_layer.zig, draw.zig, echo.zig: a draw's)" }, .{ "modes", "Core.zig:5 draw.zig:1 dump.zig:2 echo.zig:3 exec.zig:3 mouse.zig:4 ninep/pty.zig:3 panes.zig:2 replica.zig:1", "READ: the program's modes (mouse, focus, bracketed paste, the alternate screen): in the digest (draw.zig, echo.zig: a draw's; panes.zig: a view scrolls no history on the alternate screen)" }, .{ "prompt", "Core.zig:1 builtins.zig:1 echo.zig:1 exec.zig:3 ninep/pty.zig:1 panes.zig:1", "READ: the OSC 133 cycle: in the digest (`marksOf`); Core.zig's and ninep/pty.zig's also taped (`.prompt`, each side's compared)" }, .{ "promptPrefix", "body_layer.zig:1 edit.zig:1 exec.zig:1", "READ: a row's prompt cells (`promptCut`): the active area's in the digest; a history row's text is not (below)" }, diff --git a/core/Trail.zig b/core/Trail.zig index cd8eb924..e42ab1e2 100644 --- a/core/Trail.zig +++ b/core/Trail.zig @@ -250,7 +250,9 @@ fn show(p: *Pardes, id: usize, path: []const u8, at: Spot) !usize { .opened => |free| free, .shown, .none => return p.view().active, }; - if (at.line > panes.File.nlines(p.gpa, &p.panes[free].?.file.?)) { + // (A kind's pane, look.open's for a file a kind takes, has no lines.) + const nf = if (p.panes[free].?.file) |*f| f else return free; + if (at.line > panes.File.nlines(p.gpa, nf)) { try p.removePane(free, null); p.view().active = id; return error.LineMissing; @@ -712,7 +714,7 @@ test "a file's pane is reading, its tag in the reading tint with Keep after its // Under Jumps new-pane nothing reads: the tag as it always was. p.settings.jumps = .@"new-pane"; try std.testing.expect(!reading(p, pane)); - try std.testing.expectEqualStrings("/test.txt Save Term Collapse Follow Del", try tagOf(p, pane)); + try std.testing.expectEqualStrings("/test.txt Del ", try tagOf(p, pane)); try std.testing.expectEqual(pardes.Color{ .rgb = p.chromeTheme().tag_active_bg }, try tagGroundOf(p, &arena, 0)); p.settings.jumps = .walk; // Typed into: held from now on, though Undo takes the text back. @@ -764,7 +766,7 @@ const Fixture = struct { for ([_][]const u8{ "search.zig", "rank.zig", "place.zig" }) |name| try f.tmp.dir.writeFile(std.testing.io, .{ .sub_path = name, .data = w.buffered() }); f.dir = f.dir_buf[0..try f.tmp.dir.realPath(std.testing.io, &f.dir_buf)]; - f.p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .cols = 120, .rows = rows }); + f.p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .cols = 200, .rows = rows }); errdefer f.p.deinit(); _ = try f.p.setTestFile("scratch\n"); f.p.settings.jumps = .@"new-pane"; @@ -867,7 +869,7 @@ test "a Look from inside the reader at a file its held pane shows focuses the he test "the reader of a held pane too short to halve goes to the bottom of the next column, of the previous one from the last" { var f: Fixture = .{ .p = undefined, .tmp = undefined }; - try f.init(24); + try f.init(20); defer f.deinit(); const col = layout.findPane(f.p, f.held).?.col; try std.testing.expect(f.p.view().rects[f.held].h / 2 < f.p.panes[f.held].?.tag_rows + layout.reader_keeps); @@ -944,7 +946,7 @@ test "the session of pick-ui §6.7: four jumps across three files, back by a cli // makes a new reader. pardes.exec.runBuiltin(p, .Keep, r, "Keep", null); p.sync(); - try std.testing.expect(std.mem.startsWith(u8, try tagOf(p, p.panes[r].?), try std.fmt.bufPrint(&buf, "{s}/rank.zig Save", .{f.dir}))); + try std.testing.expect(std.mem.startsWith(u8, try tagOf(p, p.panes[r].?), try std.fmt.bufPrint(&buf, "{s}/rank.zig Del ", .{f.dir}))); f.look(f.held, "place.zig", 20); const fresh = p.view().active; try std.testing.expect(fresh != r and fresh != f.held and p.panes[r] != null); diff --git a/core/builtins.zig b/core/builtins.zig index 829935c7..176cabe0 100644 --- a/core/builtins.zig +++ b/core/builtins.zig @@ -1993,7 +1993,8 @@ pub const Follow = struct { made.file.?.follow = true; c.pane.follow_scroll = f.scroll; made.follow_scroll = made.file.?.scroll; - made.appendTag(" Unfollow") catch |err| c.p.reportError(.at(c.id), "Follow", err); + // The new page's own text (UX K'1): a word after its computed ones. + made.appendTag(if (tagline.curTail(made).len == 0) "Unfollow" else " Unfollow") catch |err| c.p.reportError(.at(c.id), "Follow", err); } }; diff --git a/core/colors.zig b/core/colors.zig index 98b3b184..6c83f5c8 100644 --- a/core/colors.zig +++ b/core/colors.zig @@ -588,8 +588,10 @@ pub const Chrome = struct { /// user's, a path, `Keep`), word (computed command words: the text /// toward the ground to 4.5:1, H), dim (hints, meta, forward steps), /// rule (spines), key (the accent: keys, `▶`, the walked word), match - /// (a query's letters), the four severities, and a selection rebuilt - /// on it with its own. + /// (a query's letters), kind (a symbol's kind mark in a list, `t`, + /// `f`: the keyword's hue, which spells a kind in the text, held on the + /// ground and on its selection, a list's cursor row), the four + /// severities, and a selection rebuilt on it with its own. pub const Inks = struct { ground: [3]u8, text: [3]u8, @@ -598,6 +600,7 @@ pub const Chrome = struct { rule: [3]u8, key: [3]u8, match: [3]u8, + kind: [3]u8, severity: [4][3]u8, selection: Selection, }; @@ -986,6 +989,7 @@ fn groundInks(th: *const Theme, ground: [3]u8, text: [3]u8, sel: [3]u8, sel_text .rule = line.toward(Chrome.rule_ink), .key = hold(th.accent, &.{ground}, Chrome.text_floor), .match = hold(hue, &.{ground}, Chrome.text_floor), + .kind = hold(th.keyword, &.{ ground, sel }, Chrome.text_floor), .severity = severity, .selection = .{ .ground = sel, @@ -2716,6 +2720,13 @@ fn ringFailures(th: *const Theme, c: *const Chrome, designed_here: bool) std.Enu const t = contrast(g.text, g.ground); var low = (n > 0 and t < @min(4.5, reach(g.ground))) or contrast(g.dim, g.ground) < @min(3, t) - 0.01; for ([2][3]u8{ g.key, g.match } ++ g.severity) |i| low = low or contrast(i, g.ground) < @min(4.5, reach(g.ground)); + // The kind mark on the ground and on its selection, a list's + // cursor row: one ink for both, 4.5:1 where the keyword's hue + // reaches it there (held to the end of light, a hue keeps a trace + // of itself: #000100 on solarized_dark's grey tag reads 4.49). + const both = [2][3]u8{ g.ground, g.selection.ground }; + const most = leastContrast(hold(th.keyword, &both, 21), &both); + low = low or leastContrast(g.kind, &both) < @min(4.5, most) - 0.01; low = low or contrast(g.selection.text, g.selection.ground) < @min(4.5, reach(g.selection.ground)); if (low) f.insert(.inks); } diff --git a/core/config.zig b/core/config.zig index dc1d98dc..d500cdcb 100644 --- a/core/config.zig +++ b/core/config.zig @@ -239,8 +239,20 @@ pub const child_term = "xterm-256color"; pub const child_colorterm = "truecolor"; pub const child_term_program = "pardes"; -// Fonts is the window's word alone (the font picker), so a terminal build's -// row has no such builtin to name: the window's row and the terminal's. +/// The window row's words (UX K'2): at its right end, `Restore <dump>` +/// after them once a dump exists (tagline.headerWords). The rest of the +/// words that left it run from `:`, their keys and typed (K'4). +pub const window_words_str = "Find Grep Newcol Help Exit"; +/// A column's words: at the window row's left while there is one column, +/// in its column tag with several, where Joincol and Delcol have a +/// column to act on. +pub const column_words_str = "New Term"; +pub const columns_words_str = "New Term Joincol Delcol"; + +// The window's tag before UX K', its own text then: a dump's own text equal +// to one is dropped (dump.dropOldTags), and /tagexec still takes their words +// (ninep/cols.zig paneWord). Fonts is the window's word alone (the font +// picker), so a terminal build's row has no such builtin to name. pub const topbar_window_str = "Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Fonts Config History Debug Exit"; pub const topbar_terminal_str = "Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit"; pub const topbar_str = if (@import("builtins.zig").capabilities.font_picker) topbar_window_str else topbar_terminal_str; @@ -1564,13 +1576,16 @@ const doc_typ = struct { if (w.end > 0) w.writeByte(' ') catch return false; w.writeAll(x[0 .. std.mem.indexOfScalar(u8, x, '+') orelse x.len]) catch return false; } - // Both rows: the docs and the tutor show the window's and the terminal's. - const tags = [_][]const u8{ topbar_window_str, topbar_terminal_str, @import("tagline.zig").column_tag_default, pane_builtins_str, file_pane_builtins_str, diff_pane_builtins_str, pager_pane_builtins_str, pager_diff_pane_builtins_str, diff_view_builtins_str, terminal_pane_builtins_str, command_pane_builtins_str, dir_pane_builtins_str }; + // The window row's and the column tags' words (UX K'2), and K'3's + // computed words of a pane at rest: a file reading, held, edited, + // a +New typed into, a running command, a directory, a pager, a + // terminal with its shell's word. + const tags = [_][]const u8{ window_words_str, column_words_str, columns_words_str, "Keep Del", "Del", "Save Undo Del", "Undo Del", "Kill Del", "Get Del", "Filter Del", "Del Term" }; for (tags) |d| if (std.mem.eql(u8, d, w.buffered())) return true; - // A kind's pane's: Term, its addon's words, Collapse Del (Kind.zig). + // A kind's pane's: its addon's words, then Del (Kind.zig). const shown = w.buffered(); - if (!std.mem.startsWith(u8, shown, "Term ") or !std.mem.endsWith(u8, shown, " Collapse Del")) return false; - var mid = std.mem.tokenizeScalar(u8, shown["Term ".len .. shown.len - " Collapse Del".len], ' '); + if (!std.mem.endsWith(u8, shown, " Del")) return false; + var mid = std.mem.tokenizeScalar(u8, shown[0 .. shown.len - " Del".len], ' '); while (mid.next()) |x| { if (!addonWord(x)) return false; } diff --git a/core/draw.zig b/core/draw.zig index e90535b5..42396aa1 100644 --- a/core/draw.zig +++ b/core/draw.zig @@ -152,6 +152,12 @@ pub fn place(p: *Pardes, s: *Surface) void { } } const column_rows = layout.columnBarHeight(p); + // A lone column's tag at the window row's left (UX K'2): no grip, a + // column's edge has nothing to be dragged against. + if (layout.columnInWindowRow(p)) { + const inset = @min(TAG_TEXT_INSET, v.screen_w); + s.addRegion(.{ .kind = .column_tag, .owner = 0, .serial = v.cols[0].serial, .active = layout.findPane(p, v.active) != null, .rect = .{ .x = inset, .y = 0, .w = tagline.windowRow(p).column, .h = p.topBarHeight() } }); + } if (column_rows > 0) for (0..p.view().ncol) |c| { if (v.col_w[c] == 0) continue; const active = if (layout.findPane(p, v.active)) |found| found.col == c else false; @@ -538,7 +544,14 @@ fn renderPane(p: *Pardes, s: *Surface, arena: std.mem.Allocator, pane: *Pane, r: // painted out. Text gets the overlay; a kind's pane gives up the rows. const shown = pane.notices.span(); const body_h = (r.h -| pane.tag_rows) -| shown; - pardes.Kind.draw(p, s, arena, pane, id, tx, body_y + shown, tw, body_h); + // A picker's preview through a kind (Pick.showKind): its file named + // until its kind has drawn it. + if (!pardes.Kind.draw(p, s, arena, pane, id, tx, body_y + shown, tw, body_h) and body_h > 0 and pardes.Pick.previewing(p, id)) { + const k = pane.addon.?; + if (pardes.Pick.nameLine(arena, k.path, k.nameOf(), k.size, "")) |line| { + _ = s.print(tx, body_y + shown, tw, line, .{ .fg = if (th.fg) |c| .{ .rgb = c } else .default, .bg = pane_bg }); + } else |_| {} + } // The same one column as the real scrollbar below, running past // the notice bands so the gutter has no notch in it; its thumb // where this frame's paint said its window is in its whole (a @@ -588,25 +601,31 @@ fn paintHeaders(p: *Pardes, s: *Surface) !void { if (s.region(.workspace_tag, Region.none)) |region| { const top = if (v.header != null and p.headerColumn() == null) v.header_top else 0; const layer = &s.tag_layers[MAX_PANES + MAX_COLS]; - var viewport = region.rect; - s.chrome.tagline_rows = @intCast(viewport.y + viewport.h); - const inset = @min(TAG_TEXT_INSET, viewport.w); - s.fill(viewport.x, viewport.y, inset, viewport.h, .{ .bg = .{ .rgb = chrome.tagline_bg }, .fg = .{ .rgb = chrome.tagline_fg }, .font_role = .tagline }); - viewport.x += inset; - viewport.w -= inset; - try renderHeaderLayer(p, layer, .workspace, 0, viewport, tagline.topbar(p), top, chrome.tagline_bg, chrome.tagline_fg); + s.chrome.tagline_rows = @intCast(region.rect.y + region.rect.h); + // The window row (UX K'2), on the tagline's ground end to end: a + // lone column's tag at its left (its region), in the row's inks; + // the window's at its right end (tagline.windowRow). + s.fill(region.rect.x, region.rect.y, region.rect.w, region.rect.h, .{ .bg = .{ .rgb = chrome.tagline_bg }, .fg = .{ .rgb = chrome.tagline_fg }, .font_role = .tagline }); + if (s.region(.column_tag, 0)) |column| if (column.rect.y < region.rect.y + region.rect.h) { + const column_top = if (v.header != null and p.headerColumn() == 0) v.header_top else 0; + const column_layer = &s.tag_layers[MAX_PANES]; + try renderHeaderLayer(p, column_layer, .column, 0, column.rect, tagline.columnTag(p, 0), column_top, chrome.tagline_bg, chrome.tagline_fg); + joinHeaderRows(s, column_layer, chrome.tagline_fg); + }; + const words = tagline.windowRow(p).words; + const viewport: Rect = .{ .x = words, .y = region.rect.y, .w = region.rect.w -| words, .h = region.rect.h }; + const text = tagline.topbar(p); + try renderHeaderLayer(p, layer, .workspace, 0, viewport, text, top, chrome.tagline_bg, chrome.tagline_fg); // A server's progress (a message of no pane) at its first row's // right end, where the row has room for it. - if (layer.rows > 0 and top == 0) for (p.messages.live[0..p.messages.live_len]) |*said| { - if (said.kind != .progress or said.pane != 0) continue; + if (layer.rows > 0 and top == 0) if (tagline.sessionProgress(p)) |said| { var buf: [Messages.LoggedMessage.cap + 8]u8 = undefined; - const text = std.fmt.bufPrint(&buf, "{s} {s}", .{ Messages.Kind.progress.glyph(), said.words() }) catch break; - const width = panes.File.displayWidth(p.settings.tab, text); - const used = panes.File.displayWidth(p.settings.tab, modal.lineSlice(tagline.topbar(p), 0)); + const shown = std.fmt.bufPrint(&buf, "{s} {s}", .{ Messages.Kind.progress.glyph(), said.words() }) catch ""; + const width = panes.File.displayWidth(p.settings.tab, shown); + const used = panes.File.displayWidth(p.settings.tab, modal.lineSlice(text, 0)); const room = layout.tagCapacity(p, viewport.w); var row: Surface = .{ .cols = layer.cols, .rows = 1, .cells = layer.cells[0..layer.cols], .tab = p.settings.tab }; - if (used + 2 + width < room) _ = row.print(@intCast(room - 1 - width), 0, @intCast(width), text, .{ .fg = .{ .rgb = Messages.ink(chrome, .progress) }, .bg = .{ .rgb = chrome.tagline_bg }, .font_role = .tagline }); - break; + if (used + 2 + width < room) _ = row.print(@intCast(room - 1 - width), 0, @intCast(width), shown, .{ .fg = .{ .rgb = Messages.ink(chrome, .progress) }, .bg = .{ .rgb = chrome.tagline_bg }, .font_role = .tagline }); }; joinHeaderRows(s, layer, chrome.tagline_fg); } @@ -926,6 +945,9 @@ fn joinBand(p: *Pardes, s: *Surface, arena: std.mem.Allocator, pane: *Pane, r: R const ground = groundOf(p, pane, active); const inks = chrome.roles.on(ground); const selected = chrome.roles.selectedOn(ground); + // A symbol's kind mark (colors.Chrome.Inks.kind): held on this tag's + // ground and on its cursor row's selection. + const kind = p.chrome().on(if (active) .focus else .plain).kind; const bg = inks.ground; const fg = inks.text; const storage = try arena.alloc(Cell, @as(usize, columns) * rows); @@ -970,6 +992,7 @@ fn joinBand(p: *Pardes, s: *Surface, arena: std.mem.Allocator, pane: *Pane, r: R if (b < part.row.chord) style.fg = .{ .rgb = chrome.roles.key }; if (b < part.row.pre) style.fg = .{ .rgb = if (active) chrome.tag_active_name_fg else chrome.tag_name_fg }; if (part.row.dim or (b >= part.row.pre and b < part.row.pre + part.row.faint) or (b >= part.row.quiet[0] and b < part.row.quiet[1])) style.fg = .{ .rgb = on.dim }; + if (b < part.row.kind) style.fg = .{ .rgb = kind }; for (part.row.keys) |k| if (k == b) { style.fg = .{ .rgb = chrome.roles.key }; style.bold = true; diff --git a/core/dump.zig b/core/dump.zig index 69eda35e..0cefa157 100644 --- a/core/dump.zig +++ b/core/dump.zig @@ -635,6 +635,7 @@ fn loadAndRevive(gpa: std.mem.Allocator, opts: Options, bytes: []const u8, previ var on_disk: OnDisk = @splat(false); const p = try loadKnowing(gpa, opts, bytes, ¬es, &on_disk); errdefer p.deinit(); + dropOldTags(p); // The 9P state its requests made was its connections', which do not // come with it (a client's join loads alone, and keeps it). p.fs.forget(gpa); @@ -657,6 +658,36 @@ fn loadAndRevive(gpa: std.mem.Allocator, opts: Options, bytes: []const u8, previ return p; } +/// A build before UX K' kept a tag's command words as its own text: one a +/// dump restores equal to what its kind's tag said then (tagline.kindTail) +/// is dropped, its words computed now (K'1); any other is the user's text, +/// kept as it is. Here, where a Restore, a start from a dump and an +/// Upgrade load (a replica's join loads its authority's, dropped there). +/// The window's and the columns' tags the same (UX K'2): the window row of +/// either build, with its `Restore <path>` or without, and the column tag +/// it had. +fn dropOldTags(p: *Pardes) void { + for (p.panes) |slot| if (slot) |pane| if (pane.tag.own) |own| { + if (std.mem.eql(u8, own, pardes.tagline.kindTail(pane))) dropOwn(p, &pane.tag); + }; + const window: []const u8 = p.global_tag.own orelse ""; + for ([_][]const u8{ pardes.config.topbar_window_str, pardes.config.topbar_terminal_str }) |old| { + if (!std.mem.startsWith(u8, window, old)) continue; + if (window.len != old.len and !std.mem.startsWith(u8, window[old.len..], " Restore ")) continue; + dropOwn(p, &p.global_tag); + break; + } + for (&p.views) |*slot| if (slot.*) |*v| for (v.col_tags[0..v.ncol]) |*t| { + if (t.own) |own| if (std.mem.eql(u8, own, pardes.tagline.column_tag_default)) dropOwn(p, t); + }; +} + +fn dropOwn(p: *Pardes, t: *pardes.panes.Text) void { + p.gpa.free(t.own.?); + t.own = null; + t.cur_pinned = false; +} + /// A loaded core given to this host (with `revivePane` for each of its /// panes): the store and Recent read (a Restore's carried from the session /// it replaces, with its state file) and its ThemeFile asked for again. An @@ -714,8 +745,9 @@ fn reviveSession(p: *Pardes, previous: ?*Pardes, resumed: bool) !void { } /// A loaded pane given to this host: a terminal a new shell in its old -/// one's directory under its history, a file watched again (one changed on -/// disk since comes back as it is now, one unsaved is marked changed), a +/// one's directory under its history, a file watched again and its +/// language's server started (one changed on disk since comes back as it +/// is now, one unsaved is marked changed), a /// kind's pane opened again (a PDF a build before the pdf addon dumped, as /// the addon's). fn revivePane(p: *Pardes, id: usize, pane: *pardes.panes.Pane, was_on_disk: bool) void { @@ -758,6 +790,7 @@ fn revivePane(p: *Pardes, id: usize, pane: *pardes.panes.Pane, was_on_disk: bool } else |_| {} } p.emit(.{ .watch = .{ .pane = .at(id), .on = true } }); + p.emit(.{ .lsp_open = .{ .pane = .at(id) } }); // Its file gone from disk since the dump: its text is nowhere else, so // it is said deleted, and Del, Exit and Restore ask first. One never on // disk (a name not yet saved) comes back as it was. @@ -1375,7 +1408,7 @@ test "restored syntax context caches are rebuilt from the text rather than loade const f = &pane.file.?; const declarations = try p.tree_sitter_gpa.alloc(pardes.syntax.ContextDeclaration, 1); @memset(std.mem.sliceAsBytes(declarations), 0); - f.context.replace(p.tree_sitter_gpa, declarations, f.revision); + f.context.replace(p.tree_sitter_gpa, .{ .declarations = declarations }, f.revision); // Older builds persisted these two fields; the schema reader must skip them too. const OldFile = struct { path: []const u8, @@ -1401,13 +1434,14 @@ test "restored syntax context caches are rebuilt from the text rather than loade defer gpa.free(bytes); const q = try load(gpa, opts, bytes, null); defer q.deinit(); - // This build's: the revision kept, the declarations parsed again from - // the text, with the syntax allocator. - const want = try pardes.syntax.contextDeclarations(syntax_gpa.allocator(), f.path, f.content); - defer syntax_gpa.allocator().free(want); + // This build's: the revision kept, the declarations and the symbols + // parsed again from the text, with the syntax allocator. + var want = try pardes.syntax.context(syntax_gpa.allocator(), f.path, f.content); + defer want.deinit(syntax_gpa.allocator()); for (q.panes) |slot| if (slot) |restored| if (restored.file) |file| { try std.testing.expectEqual(f.context.revision, file.context.revision); - try std.testing.expectEqualSlices(pardes.syntax.ContextDeclaration, want, file.context.declarations); + try std.testing.expectEqualSlices(pardes.syntax.ContextDeclaration, want.declarations, file.context.declarations); + try std.testing.expectEqualSlices(pardes.syntax.Symbol, want.symbols, file.context.symbols); }; } diff --git a/core/edit.zig b/core/edit.zig index e68f8d38..12cd7706 100644 --- a/core/edit.zig +++ b/core/edit.zig @@ -540,7 +540,8 @@ pub fn flatSurface(e: Editor, t: *Text) Error![]const u8 { // the tag as it is shown: the keyboard reaches its prefix too .tag => return if (t.pane()) |pane| try tagline.tagText(e.p, e.scratch, pane) else "", .input => return t.own orelse "", - .column, .workspace => return t.own orelse if (comptime Editor.lib) "" else tagline.headerDefault(e.p, t.what), + // a header as it is shown: its computed words, then its own text + .column, .workspace => return if (comptime Editor.lib) t.own orelse "" else try tagline.headerText(e.p, t), } const pane = t.pane() orelse return ""; if (pane.file) |f| return f.content; @@ -576,14 +577,13 @@ pub fn paneWrapWidth(e: Editor, t: *Text) usize { /// Route shared edit operations to the characters `t` edits: its own, or /// for a body its file's content or its terminal's overlay. fn editText(e: Editor, t: *Text, lo: i32, hi: i32, col: i32) Error!?panes.EditText { - // A tag or header nobody has changed shows its default; the first edit - // makes that default its own text. + // A tag or a header is edited as it is shown, its computed words and + // all; what an edit leaves after them is its own text (setEditTextSpan). if (t.what == .tag) { const pane = t.pane() orelse return null; return .{ .text = try tagline.tagText(e.p, e.scratch, pane), .row0 = 0 }; } - if (t.what != .body and t.what != .input and t.own == null) - t.own = try e.gpa.dupe(u8, try flatSurface(e, t)); + if (comptime !Editor.lib) if (t.what == .column or t.what == .workspace) return .{ .text = try tagline.headerText(e.p, t), .row0 = 0 }; if (t.what != .body or comptime Editor.lib) return .{ .text = t.own orelse &.{}, .row0 = 0 }; const pane = t.pane() orelse return null; if (pane.file) |f| return .{ .text = f.content, .row0 = 0 }; @@ -682,9 +682,10 @@ pub fn setEditTextEnd(e: Editor, t: *Text, new: []u8, known_end: ?modal.Cursor) fn setEditTextSpan(e: Editor, t: *Text, new: []u8, known_end: ?modal.Cursor, span: ?panes.File.Span) Error!void { if (t.what == .tag) { // A tag is edited as it is shown, but only what follows its - // prefix is its own: an edit that changed the prefix is refused. - // The shown text stays alive until the next such edit, since every - // caller reads the new text back, as a body's is kept. + // prefix (its path and computed words, UX K'1) is its own: an edit + // that changed the prefix is refused. The shown text stays alive + // until the next such edit, since every caller reads the new text + // back, as a body's is kept. defer retireEditText(e, new); const pane = t.pane() orelse return; // Out of rest the tag shows its head, which is no one's to edit. @@ -692,7 +693,7 @@ fn setEditTextSpan(e: Editor, t: *Text, new: []u8, known_end: ?modal.Cursor, spa t.refused = true; return; } - const prefix = try tagline.pathPrefix(e.p, e.scratch, pane); + const prefix = try tagline.restPrefix(e.p, e.scratch, pane); if (!std.mem.startsWith(u8, new, prefix)) { t.refused = true; return; @@ -702,6 +703,20 @@ fn setEditTextSpan(e: Editor, t: *Text, new: []u8, known_end: ?modal.Cursor, spa t.own = tail; return; } + if (comptime !Editor.lib) if (t.what == .column or t.what == .workspace) { + // A header's computed words (UX K'2) are no one's to edit, as a + // tag's prefix is not. + defer retireEditText(e, new); + const words = tagline.headerWords(e.p, t.what); + if (!std.mem.startsWith(u8, new, words) or new.len == words.len or new[words.len] != ' ') { + t.refused = true; + return; + } + const tail = try e.gpa.dupe(u8, new[words.len + 1 ..]); + if (t.own) |old| e.gpa.free(old); + t.own = tail; + return; + }; if (t.what != .body) { if (t.own) |old| e.gpa.free(old); t.own = new; diff --git a/core/fs.zig b/core/fs.zig index 594c89cf..c5eb432d 100644 --- a/core/fs.zig +++ b/core/fs.zig @@ -868,7 +868,7 @@ pub const Namespace = struct { .authority = .{ "socket_path", "tcp_address", "mounts", "node_name", "os_paths", "out", "listeners", "origin", "no_prompt", "session_write", "unlogged", "capturing", - "serving", "typed", "refused", "failure", "failure_len", "no_pane_slot", "no_pane_slot_len", + "serving", "refused", "failure", "failure_len", "no_pane_slot", "no_pane_slot_len", "said", "said_len", "said_at", "late_failure", "late_failure_len", "lsp_answer_at", "edit_started", "edit_hold", "edit_said", "lsp_result", "write_room", "write_waits", "log_full_hash", "pages", "closed_lines", "ran_at", "refilled", @@ -908,12 +908,10 @@ pub const Namespace = struct { /// which also refuses prompts, which a click may open). capturing: bool = false, /// A 9P request is being served (Pardes.serveFs): a prompt it opens is - /// a question for the log (`ask`), answered with `answer`. + /// a question for the log (`ask`), answered with `answer`. Not while + /// the keys or the mouse written to `kbdin` or `mousein` run: they are + /// the user's own (ninep/ctl.zig writeKbdin). serving: bool = false, - /// The request is keys or a mouse written to `kbdin` or `mousein`: - /// the user's own, so a builtin they reach routes as typed - /// (Pick.asked), though their write is served as any other. - typed: bool = false, refused: bool = false, failure: [256]u8 = undefined, failure_len: u16 = 0, diff --git a/core/jj.zig b/core/jj.zig index e9b8edd1..618f363e 100644 --- a/core/jj.zig +++ b/core/jj.zig @@ -157,7 +157,7 @@ pub fn open(p: *Pardes, near: usize, path: []const u8, rev: []const u8, at: look if (replace) p.removePane(near, free) catch |err| p.reportError(.at(free), "At", err); layout.compute(p); // Sized for its place before it is centred there. - p.sync(); + p.layOut(); look.focusPaneLine(p, free, at, .center); return free; } @@ -2486,7 +2486,7 @@ test "At shows a file at a revision beside it, read-only, coloured as its file; try testing.expectEqualStrings(Repo.two, pane.file.?.content); const name = try std.fmt.allocPrint(gpa, "{s}@@-", .{repo.file}); defer gpa.free(name); - try testing.expectEqualStrings(name, try pardes.tagline.tagPrefix(p, pane)); + try testing.expectEqualStrings(name, try pardes.tagline.pathPrefix(p, p.scratch.allocator(), pane)); try testing.expectEqualStrings(repo.file, File.langPath(&pane.file.?)); try testing.expect(pane.colorAlgo() == .source); // Read-only: a key's edit and a whole-text edit (dd) change nothing, and a bare Save says so. diff --git a/core/keys.zig b/core/keys.zig index 803b2b3c..05349d59 100644 --- a/core/keys.zig +++ b/core/keys.zig @@ -1066,12 +1066,12 @@ test "s in a header selects in the header's own text" { p.update(.{ .key = .{ .cp = 's' } }); try std.testing.expect(pane.prompt == .search and pane.prompt_for == .workspace); // the prompt takes the keys while the header keeps the keyboard - p.update(.{ .key = .{ .cp = 'c', .text = "col" } }); + p.update(.{ .key = .{ .cp = 'i', .text = "i" } }); p.update(.{ .key = .{ .cp = Key.enter } }); try std.testing.expect(p.view().header != null and pane.prompt == .none); var ranges: [Text.max_selections]modal.Selection = undefined; const text = try edit.flatSurface(p.editor(), &p.global_tag); const got = p.global_tag.ranges(text, 0, &ranges); - try std.testing.expectEqual(@as(usize, 2), got.n); // Newcol, Joincol + try std.testing.expectEqual(@as(usize, 2), got.n); // Find, Exit try std.testing.expectEqual(@as(u16, 0), pane.body.nsel); } diff --git a/core/layout.zig b/core/layout.zig index 3f6bea51..c8fb91f9 100644 --- a/core/layout.zig +++ b/core/layout.zig @@ -402,7 +402,7 @@ pub fn givePaneRows(p: *Pardes, id: usize, wanted: u16, context: usize) void { if (missing == 0) break; } setColumnWeights(p, at.col, &heights); - p.sync(); + p.layOut(); } pub fn applyRowSplit(p: *Pardes, cc: usize, k: usize, cur_y: u16) void { @@ -592,12 +592,18 @@ pub const min_body_rows = 2; /// wants a row more. pub fn wantedTagRows(p: *Pardes, id: usize) u16 { const pane = p.panes[id] orelse return BOX_H; + return tagRows(p, id, tagline.computedWords(pane)); +} + +/// The rows pane `id`'s tag at rest takes with computed words `words`. +fn tagRows(p: *Pardes, id: usize, words: []const u8) u16 { + const pane = p.panes[id] orelse return BOX_H; if (pane.collapsed or !pane.tag_expanded) return BOX_H; if (p.view().rects[id].w == 0) return pane.tag_rows; // never laid out var wrap_room: [32 * 1024]u8 = undefined; var wrap_fba = std.heap.FixedBufferAllocator.init(&wrap_room); const wa = wrap_fba.allocator(); - const prefix = tagline.restPrefix(p, wa, pane) catch return pane.tag_rows; + const prefix = tagline.prefixWith(p, wa, pane, words) catch return pane.tag_rows; const whole = std.mem.concat(wa, u8, &.{ prefix, tagline.curTail(pane) }) catch return pane.tag_rows; const shown = tagline.wrapTag(p.settings.tab, wa, whole, tagline.tagWidth(p, id)) catch return pane.tag_rows; return @intCast(@max(BOX_H, @min(shown.rows(), MAX_TAG_ROWS))); @@ -622,7 +628,11 @@ pub fn headRows(p: *Pardes, id: usize) u16 { /// The rows a placement, and a `size`, leave a pane: its tag at its width /// and `min_body_rows`. The one minimum both ask. pub fn minRows(p: *Pardes, id: usize) u16 { - return wantedTagRows(p, id) + min_body_rows; + const pane = p.panes[id] orelse return BOX_H + min_body_rows; + // Its tag with the widest computed words it can come to show (UX + // K'3): an edit that brings Save and Undo never takes a row its + // column did not give. + return tagRows(p, id, tagline.widestWords(p, pane)) + min_body_rows; } /// Whether every column has the rows for each of its unfolded panes' @@ -1668,12 +1678,24 @@ pub fn noticeRowHeight(p: *const Pardes) u16 { return 1; } -/// The column tags' height: one row, as acme's (cols.c:244, colresize, -/// gives a column tag one font height); a newline in one is a space -/// (tagline.flattenHeaders). +/// The column tags' row: one, as acme's (cols.c:244, colresize, gives a +/// column tag one font height), a newline in one a space +/// (tagline.flattenHeaders); only while there are columns (UX K'2): two +/// or more, a column tag holding the user's text, or no window row for a +/// lone column's words (a native shell's). None on a screen too short. pub fn columnBarHeight(p: *const Pardes) u16 { - if (p.view().screen_h < 3) return 0; - return COLBAR_H; + const v = p.view(); + if (v.screen_h < 3) return 0; + if (v.ncol > 1 or p.topBarHeight() == 0) return COLBAR_H; + for (v.col_tags[0..v.ncol]) |t| if (t.own) |own| if (own.len > 0) return COLBAR_H; + return 0; +} + +/// A lone column's tag is at the window row's left (UX K'2): no column +/// row, and a window row for it. +pub fn columnInWindowRow(p: *const Pardes) bool { + const v = p.view(); + return v.ncol == 1 and v.screen_h >= 3 and p.topBarHeight() > 0 and columnBarHeight(p) == 0; } /// Whether new column `c` (Newcol's) may stay. A narrower @@ -1682,9 +1704,13 @@ pub fn columnBarHeight(p: *const Pardes) u16 { /// minimum `before`, `before_min`, not one dragged short) takes rows back /// from the panes with rows to spare, its column shared out again only /// where that is not enough. False, `c` dropped unannounced, where nothing -/// holds every minimum, as a size too small is refused. +/// holds every minimum, as a size too small is refused, and every pane's +/// rows as they were: the trial's shares are taken back with it (the +/// column row a second column brings, UX K'2, takes a row from every pane). pub fn keepColumn(p: *Pardes, c: usize, before: *const [MAX_PANES]Rect, before_min: *const [MAX_PANES]u16) bool { const v = p.view(); + var weights: [MAX_PANES]f32 = undefined; + for (p.panes, &weights) |slot, *w| w.* = if (slot) |pane| pane.vweight else 0; restoreMinimaFrom(p, before, before_min); for (0..p.view().ncol) |k| { compute(p); @@ -1694,6 +1720,9 @@ pub fn keepColumn(p: *Pardes, c: usize, before: *const [MAX_PANES]Rect, before_m if (!pane.collapsed and v.rects[id].h < minRows(p, id) and before[id].h >= before_min[id]) break true; } else false; if (squeezed and !shareColumn(p, k)) { + for (p.panes, weights) |slot, w| if (slot) |pane| { + pane.vweight = w; + }; dropColumnUnannounced(p, c); return false; } @@ -2580,3 +2609,47 @@ test "free space first (UX J1): a command's output and a Term take an untouched try std.testing.expectEqual(before + 3, f.count()); try std.testing.expect(p.panes[scratch] != null); } + +test "the column row comes with a second column and goes with it, the panes giving it and taking it back; a column tag with the user's text keeps it (UX K'2)" { + const p = try Pardes.init(std.testing.allocator, .{ .cols = 100, .rows = 20, .tty_only = true }); + defer p.deinit(); + _ = try p.setTestFile("one\n"); + // One column: no column row, its words in the window row, its pane + // under the window row. + try std.testing.expectEqual(@as(u16, 0), columnBarHeight(p)); + try std.testing.expect(columnInWindowRow(p)); + const alone = p.view().rects[0]; + try std.testing.expectEqual(TOPBAR_H, alone.y); + // A second column: the row, under the window row, every column's panes + // starting under it. + try std.testing.expect(p.executeBuiltinLine(0, "Newcol")); + p.sync(); + try std.testing.expectEqual(@as(usize, 2), p.view().ncol); + try std.testing.expectEqual(COLBAR_H, columnBarHeight(p)); + try std.testing.expect(!columnInWindowRow(p)); + try std.testing.expectEqual(TOPBAR_H + COLBAR_H, p.view().rects[0].y); + newScratchIn(p, 0, 1); + p.sync(); + const second = p.view().cols[1].panes[0]; + try std.testing.expectEqual(TOPBAR_H + COLBAR_H, p.view().rects[second].y); + // Delcol back to one: the row goes, the pane has it again. + p.exec_column = 1; + try std.testing.expect(p.executeBuiltinLine(second, "Delcol")); + p.exec_column = null; + p.sync(); + try std.testing.expectEqual(@as(usize, 1), p.view().ncol); + try std.testing.expectEqual(@as(u16, 0), columnBarHeight(p)); + try std.testing.expectEqualDeep(alone, p.view().rects[0]); + // The user's text in the column's tag: the row stays for it, alone. + p.view().col_tags[0].own = try p.gpa.dupe(u8, "Mine"); + p.sync(); + try std.testing.expectEqual(COLBAR_H, columnBarHeight(p)); + try std.testing.expect(!columnInWindowRow(p)); + try std.testing.expectEqual(TOPBAR_H + COLBAR_H, p.view().rects[0].y); + // Emptied, it goes again. + p.gpa.free(p.view().col_tags[0].own.?); + p.view().col_tags[0].own = try p.gpa.dupe(u8, ""); + p.sync(); + try std.testing.expectEqual(@as(u16, 0), columnBarHeight(p)); + try std.testing.expectEqualDeep(alone, p.view().rects[0]); +} diff --git a/core/look.zig b/core/look.zig index d9dfe0e1..3ce1e48c 100644 --- a/core/look.zig +++ b/core/look.zig @@ -1522,6 +1522,9 @@ pub const Landed = union(enum) { none, shown, opened: usize }; /// `Jumps new-pane` as before the walk: a pane showing the file focused, /// else a new one. pub fn open(p: *Pardes, from: usize, path: []const u8, at: Spot, how: How) Landed { + // A file a kind takes (an addon's: a picture, a PDF) is its kind's + // pane, as a Look of it opens (resolve), never its bytes as a text. + if (p.kinds.forPath(path)) |k| return openKind(p, from, path, k, at); if (how == .replace and p.settings.jumps == .walk and path.len <= Trail.max_text and p.panes[from] != null) return walk(p, from, path, at); if (how == .replace and focusPaneByPath(p, path, at)) return .shown; return if (openNew(p, from, path, at, .doc)) |free| .{ .opened = free } else .none; @@ -1557,6 +1560,38 @@ fn walk(p: *Pardes, from: usize, path: []const u8, at: Spot) Landed { return .shown; } +/// The file at `path`, of kind `kind`, looked at from pane `id`: the pane +/// of it there is focused, else one of its kind opened as a document is +/// placed (layout.placeNew), at `at` when it says a place. +fn openKind(p: *Pardes, id: usize, path: []const u8, kind: u8, at: Spot) Landed { + var place: [41]u8 = undefined; + if (focusPaneByPath(p, path, .{})) { + if (at.line > 0) lookKind(p, id, p.view().active, spotText(at, &place), false); + return .shown; + } + const free = p.freeSlot() orelse { + p.reportError(.at(id), "look", error.NoPaneSlots); + return .none; + }; + const made = Kind.openFile(p, free, kind, path) catch |err| { + lookOpenFailed(p, id, path, err); + return .none; + }; + // One its kind refuses (an image corrupt, truncated, not what its name + // says) is said, a failure, rather than shown blank. + if (made.addon.?.refused.len > 0) { + made.vweight = 0; + p.unplaced.set(free); + var said: Kind.Buf(miss_path_cap + 160) = .{}; + var cut: [miss_path_cap + "…".len]u8 = undefined; + p.reportFailure(id, said.print("look: {s}: {s}", .{ missText(path, &cut), made.addon.?.refused.slice() })); + return .none; + } + layout.placeNew(p, id, id, free, .doc); + if (at.line > 0) lookKind(p, id, free, spotText(at, &place), true); + return .{ .opened = free }; +} + /// `path` opened at `at` in a new pane placed as `kind` places one from /// `from`, its line half its body's rows down; null when it is not /// (refused, said). @@ -1808,24 +1843,7 @@ pub fn lookAt(p: *Pardes, id: usize, operand_raw: []const u8) void { }; return missed(p, id, "{s}: the pane its list is of is gone", .{target.path}); } - if (focusPaneByPath(p, target.path, .{})) { - if (target.at.line > 0) lookKind(p, id, v.active, spotText(target.at, &place), false); - return; - } - const free = p.freeSlot() orelse return p.reportError(.at(id), "look", error.NoPaneSlots); - const made = Kind.openFile(p, free, target.kind, target.path) catch |err| - return lookOpenFailed(p, id, target.path, err); - // One its kind refuses (an image corrupt, truncated, not what - // its name says) is said, a failure, rather than shown blank. - if (made.addon.?.refused.len > 0) { - made.vweight = 0; - p.unplaced.set(free); - var said: Kind.Buf(miss_path_cap + 160) = .{}; - var cut: [miss_path_cap + "…".len]u8 = undefined; - return p.reportFailure(id, said.print("look: {s}: {s}", .{ missText(target.path, &cut), made.addon.?.refused.slice() })); - } - layout.placeNew(p, id, id, free, .doc); - if (target.at.line > 0) lookKind(p, id, free, spotText(target.at, &place), true); + _ = openKind(p, id, target.path, target.kind, target.at); }, } } diff --git a/core/lsp/Ask.zig b/core/lsp/Ask.zig index 0f4f39dc..c60eb72b 100644 --- a/core/lsp/Ask.zig +++ b/core/lsp/Ask.zig @@ -558,17 +558,21 @@ test "Lspwhy after a Hover asks to explain that hover, in its file at its place, try std.testing.expect(seen); } -test "Def and Refs are a speaking file's tag words; gd, gr and a 2-1 chord all run them" { +test "Def and Refs are a speaking file's words, out of its tag (UX K'4); gd, gr and a 2-1 chord on them typed in its tag all run them" { if (!lsp.supports.contains(.definition)) return error.SkipZigTest; const p = try Pardes.init(std.testing.allocator, .{ .cols = 100, .rows = 24, .tty_only = true }); defer p.deinit(); const pane = try p.setTestFile("const alpha = 1;\nconst beta = alpha;\n"); // A .txt has no server: no Def, no Refs. - try std.testing.expect(std.mem.indexOf(u8, tagline.curTail(pane), "Def") == null); + try std.testing.expect(std.mem.indexOf(u8, tagline.kindTail(pane), "Def") == null); const f = &pane.file.?; p.gpa.free(f.path); f.path = try p.gpa.dupe(u8, "/tmp/x.zig"); - try std.testing.expect(std.mem.endsWith(u8, tagline.curTail(pane), " Def Refs Del")); + try std.testing.expect(std.mem.endsWith(u8, tagline.kindTail(pane), " Def Refs Del")); + // Its tag's computed words have neither: typed into its own text, they + // run as any word there does. + try std.testing.expect(std.mem.indexOf(u8, tagline.computedWords(pane), "Def") == null); + pane.tag.own = try p.gpa.dupe(u8, "Def Refs"); p.sync(); while (p.nextEffect()) |_| {} const Asked = struct { diff --git a/core/lsp/lsp.zig b/core/lsp/lsp.zig index 7a636f72..00ffc98b 100644 --- a/core/lsp/lsp.zig +++ b/core/lsp/lsp.zig @@ -96,6 +96,12 @@ pub fn query(io: std.Io, arena: std.mem.Allocator, req: Req, out: *std.Io.Writer return client.query(io, arena, req, out); } +/// A file opened in a pane: its language's server started and told of it +/// (lsp_client.open), on a host's worker. +pub fn open(io: std.Io, arena: std.mem.Allocator, req: Req) !void { + return client.open(io, arena, req); +} + /// The one line the client answers with when it cannot answer at all, and /// why: the core says it rather than "nothing found". pub fn none(out: *std.Io.Writer, comptime fmt: []const u8, args: anytype) std.Io.Writer.Error!void { diff --git a/core/mouse.zig b/core/mouse.zig index b62cec7e..04bbaeb4 100644 --- a/core/mouse.zig +++ b/core/mouse.zig @@ -235,7 +235,8 @@ fn kindMouse(p: *Pardes, m: Mouse) bool { for (p.panes, 0..) |slot, id| { const pane = slot orelse continue; const k = pane.addon orelse continue; - if (!pardes.Kind.takesMouse(p, k) or pane.collapsed) continue; + // A picker's preview through a kind is shown, not handled. + if (!pardes.Kind.takesMouse(p, k) or pane.collapsed or pardes.Pick.previewing(p, id)) continue; const r = v.rects[id]; const top = p.bodyTop(pane, r) + pane.notices.span(); const x0 = r.x + config.GUTTER; @@ -365,11 +366,14 @@ fn emulateButton(p: *Pardes, m: *Mouse) void { fn headerPoint(p: *Pardes, column: ?usize, mcol: u16, mrow: u16, clamp: bool) ?struct { t: *panes.Text, text: []const u8, line: u16, at: usize } { const v = p.view(); const t = if (column) |c| &v.col_tags[c] else &p.global_tag; - const x = if (column) |c| v.col_x[c] + TAG_TEXT_INSET else TAG_TEXT_INSET; + // A lone column's tag is at the window row's left, the window's at + // its right end (UX K'2). + const in_row = column == null or layout.columnInWindowRow(p); + const x = if (column) |c| (if (in_row) TAG_TEXT_INSET else v.col_x[c] + TAG_TEXT_INSET) else tagline.windowRow(p).words; const focused = v.header != null and p.headerColumn() == column; const text = edit.flatSurface(p.editor(), t) catch return null; - const base = if (column != null) p.topBarHeight() else 0; - const rows = if (column != null) layout.columnBarHeight(p) else p.topBarHeight(); + const base = if (in_row) 0 else p.topBarHeight(); + const rows = if (in_row) p.topBarHeight() else layout.columnBarHeight(p); const row: u16 = if (clamp) @min(mrow -| base, rows -| 1) else mrow -| base; const top: usize = if (focused) v.header_top else 0; const lines = modal.lineCount(text); @@ -680,7 +684,12 @@ pub fn handleMouse(p: *Pardes, event: Mouse) void { var column: ?usize = null; var x: u16 = TAG_TEXT_INSET; if (mcol < x) return; - if (mrow >= p.topBarHeight()) { + if (mrow < p.topBarHeight()) { + // The window row: a lone column's tag at its left, the + // window's at its right; the blank between them is no one's. + const sides = tagline.windowRow(p); + if (mcol < TAG_TEXT_INSET + sides.column) column = 0 else if (mcol < sides.words) return; + } else { for (0..p.view().ncol) |c| if (mcol >= v.col_x[c] and mcol < v.col_x[c] + v.col_w[c]) { column = c; x = v.col_x[c] + TAG_TEXT_INSET; @@ -1991,3 +2000,39 @@ test "a body press, drag and release are the same state whichever frame this pro } try expectSame(a, b, "after the press"); } + +fn clickAt(p: *Pardes, button: pardes.Mouse.Button, col: u16, row: u16) void { + p.update(.{ .mouse = .{ .button = button, .kind = .press, .col = col, .row = row } }); + p.update(.{ .mouse = .{ .button = button, .kind = .release, .col = col, .row = row } }); +} + +test "one column's words at the window row's left and the window's at its right each run their own; the blank between is no one's (UX K'2)" { + const p = try Pardes.init(std.testing.allocator, .{ .cols = 100, .rows = 20, .tty_only = true }); + defer p.deinit(); + _ = try p.setTestFile("one\n"); + const row = tagline.windowRow(p); + // `New Term ` and its caret's cell from the inset; the window's words + // end on the blank before the last cell. + try std.testing.expectEqual(@as(u16, "New Term ".len + 1), row.column); + try std.testing.expectEqual(@as(u16, 100 - "Find Grep Newcol Help Exit ".len - 1), row.words); + // B2 on `New`: a pane in the column. + clickAt(p, .middle, TAG_TEXT_INSET + 1, 0); + try std.testing.expectEqual(@as(usize, 2), p.view().cols[0].n); + // B2 and B1 on the blank between: nothing, and no tag takes the keyboard. + const between = row.words - 2; + try std.testing.expect(between > TAG_TEXT_INSET + row.column); + clickAt(p, .middle, between, 0); + clickAt(p, .left, between, 0); + try std.testing.expectEqual(@as(usize, 2), p.view().cols[0].n); + try std.testing.expectEqual(@as(usize, 1), p.view().ncol); + try std.testing.expect(p.view().header == null); + // B1 on `Term`: the column's tag has the keyboard, there in the window + // row, its caret on the clicked cell. + clickAt(p, .left, TAG_TEXT_INSET + "New ".len + 1, 0); + p.sync(); + try std.testing.expectEqual(@as(?usize, 0), p.headerColumn()); + try std.testing.expectEqual(@as(i32, "New ".len + 1), p.view().col_tags[0].cur_col); + // B2 on `Newcol`, at the right: a second column. + clickAt(p, .middle, row.words + @as(u16, "Find Grep ".len) + 2, 0); + try std.testing.expectEqual(@as(usize, 2), p.view().ncol); +} diff --git a/core/ninep/cols.zig b/core/ninep/cols.zig index 88d8ef88..c84017a7 100644 --- a/core/ninep/cols.zig +++ b/core/ninep/cols.zig @@ -79,7 +79,7 @@ pub fn write(p: *Pardes, req: Req, serial: ?u32) Reply { if (pending) p.fs.header_trunc_pending = null; return tree.failText(req.tag, E.INVAL, why); } - const had = if (pending) 0 else headerText(p, serial).?.len; + const had = if (pending) 0 else if (t.own) |own| own.len else 0; // A rewrite drops its one trailing newline: `echo <4096 bytes> > tag` // is 4096 bytes of tag, and fits. const rewrite = pending or p.fs.header_rewrite == rewriteKey(serial); @@ -89,7 +89,8 @@ pub fn write(p: *Pardes, req: Req, serial: ?u32) Reply { return tree.failText(req.tag, E.NOSPC, pardes.ctlfs.pane.e_tag_over); } applyTruncation(p, serial); - const was = headerText(p, serial).?; + // Its own text grows, after the computed words (UX K'1). + const was: []const u8 = t.own orelse ""; var data = req.data; const rewriting = p.fs.header_rewrite == rewriteKey(serial); // A newline held from the write before goes in once more text follows. @@ -106,8 +107,8 @@ pub fn write(p: *Pardes, req: Req, serial: ?u32) Reply { return .{ .tag = req.tag, .written = @intCast(req.data.len) }; } -/// Truncating clears it, as a pane tag's `cleartag`: its default words go -/// too, and `u` in it brings them back. +/// Truncating clears it, as a pane tag's `cleartag`: its own text goes, +/// its computed words stay, and `u` in it brings the text back. pub fn truncate(p: *Pardes, serial: ?u32) tree.Status { if (header(p, serial) == null) return .err; // Done with the write after it, which may yet be refused. @@ -128,8 +129,9 @@ fn clear(p: *Pardes, serial: ?u32) tree.Status { const empty = p.gpa.alloc(u8, 0) catch unreachable; // no byte: the allocator is not asked if (t.own) |own| p.gpa.free(own); t.own = empty; + // what is left is the computed words; the cursor goes after them t.cur_row = 0; - t.cur_col = 0; + t.cur_col = @intCast(tagline.headerWords(p, t.what).len + 1); p.fs.header_rewrite = rewriteKey(serial); p.fs.header_held = false; return .ok; @@ -548,19 +550,21 @@ test "a column's tag and the workspace's read, replace and append as a pane tag try testing.expectEqual(E.NOENT, th.look_up(p, col_dir, "777").errno()); const tag = Node.ofCol(serial, .tag); try testing.expectEqual(tree.Status.ok, th.look_up(p, Node.ofCol(serial, .dir), "tag").reply.status); - try testing.expectEqualStrings("New Term Find Grep Joincol Delcol", th.rd(p, tag, 0, 4096).bytes); - // `echo Make > tag`: cleared, then the newline ending the write dropped. + // Its computed words (UX K'2), a blank, and its own text: none yet. + try testing.expectEqualStrings("New Term ", th.rd(p, tag, 0, 4096).bytes); + // `echo Make > tag`: its own text cleared, then the newline ending the + // write dropped; the computed words stay. _ = th.call(p, .{ .tag = 1, .op = .setattr, .node = tag, .truncate = true }); _ = th.wr(p, tag, "Make\n"); - try testing.expectEqualStrings("Make", th.rd(p, tag, 0, 4096).bytes); + try testing.expectEqualStrings("New Term Make", th.rd(p, tag, 0, 4096).bytes); _ = th.call(p, .{ .tag = 2, .op = .release, .node = tag }); // `>>` appends; a newline in a one-line tag is a space. _ = th.wr(p, tag, " Lint\nNow"); - try testing.expectEqualStrings("Make Lint Now", th.rd(p, tag, 0, 4096).bytes); + try testing.expectEqualStrings("New Term Make Lint Now", th.rd(p, tag, 0, 4096).bytes); const top = @backingInt(tree.TopFile.tag); _ = th.call(p, .{ .tag = 3, .op = .setattr, .node = top, .truncate = true }); _ = th.wr(p, top, "Newcol Exit\n"); - try testing.expectEqualStrings("Newcol Exit", tagline.topbar(p)); + try testing.expectEqualStrings("Find Grep Newcol Help Exit Newcol Exit", tagline.topbar(p)); } test "a focus write makes its pane's column the active one: layout says so and pane/new goes there" { diff --git a/core/ninep/ctl.zig b/core/ninep/ctl.zig index 80d1176c..6d78bc44 100644 --- a/core/ninep/ctl.zig +++ b/core/ninep/ctl.zig @@ -882,7 +882,10 @@ const e_no_pane = "no such pane"; /// rio's kbdin (windows/rio/xfid.c:515): each rune written is a key typed /// at the pane with the keyboard, the user's own, each done before the next -/// and all before the write is answered. Control runes are Ctrl and a +/// and all before the write is answered. They run as the keyboard's, not as +/// a script's write: what they start on a worker (a picker's listing or +/// search, a parse, a language server's answer) comes after the answer, as +/// a keyboard's comes a frame later. Control runes are Ctrl and a /// letter, but for Plan 9's keys (include/ALL/keyboard.h): \n or \r Enter, /// \t Tab, \b Backspace, 0x7f Delete, 0x1b Esc, and the arrows, Home, End, /// Page Up and Down, Insert and F1-F12 at its private-use runes. Its @@ -890,8 +893,11 @@ const e_no_pane = "no such pane"; /// or Ctrl to the key after them. pub fn writeKbdin(p: *Pardes, req: Req) Reply { const view = std.unicode.Utf8View.init(req.data) catch return tree.failText(req.tag, E.INVAL, "invalid UTF-8"); - p.fs.typed = true; - defer p.fs.typed = false; + // The keyboard's path, not a script's write's: nothing waits on the + // loop for a picker's source or an answer (Pick.asked, Stream.step). + const serving = p.fs.serving; + p.fs.serving = false; + defer p.fs.serving = serving; var it = view.iterator(); var mods: pardes.Key = .{ .cp = 0 }; while (it.nextCodepointSlice()) |rune| { @@ -946,8 +952,10 @@ fn kbdKey(rune: []const u8) pardes.Key { /// changed since the last line is pressed or released there, in that order /// of buttons; a move with one held drags, with none moves. pub fn writeMousein(p: *Pardes, req: Req) Reply { - p.fs.typed = true; - defer p.fs.typed = false; + // The mouse's path, as kbdin's keys take the keyboard's. + const serving = p.fs.serving; + p.fs.serving = false; + defer p.fs.serving = serving; var lines = std.mem.tokenizeScalar(u8, req.data, '\n'); while (lines.next()) |line| { var words = std.mem.tokenizeAny(u8, line, " \t\r"); diff --git a/core/ninep/pane.zig b/core/ninep/pane.zig index 093a9223..3627fdfb 100644 --- a/core/ninep/pane.zig +++ b/core/ninep/pane.zig @@ -777,7 +777,7 @@ pub fn applyTagTruncation(p: *Pardes, pane: *Pane) void { pane.tag.own = empty; // what is left is the prefix; the cursor goes after it pane.tag.cur_row = 0; - pane.tag.cur_col = if (tagline.pathPrefix(p, p.scratch.allocator(), pane)) |prefix| @intCast(prefix.len) else |_| 0; + pane.tag.cur_col = if (tagline.restPrefix(p, p.scratch.allocator(), pane)) |prefix| @intCast(prefix.len) else |_| 0; pane.tag.vsel.active = false; pane.tag.nsel = 0; pf.tag_rewrite = true; diff --git a/core/ninep/pty.zig b/core/ninep/pty.zig index 2dd7f7f3..2671467f 100644 --- a/core/ninep/pty.zig +++ b/core/ninep/pty.zig @@ -597,6 +597,7 @@ test "every pty/ctl verb, and every refusal" { try testing.expectEqual(@as(u64, "winsize 132 44\n".len), call(p, .{ .tag = 1, .op = .getattr, .node = ctl }).reply.attr.size); try testing.expect(std.mem.startsWith(u8, rd(p, Node.of(serialOf(p), .pty_status), 0, 64).bytes, " 132 44 ")); p.update(.{ .resize = .{ .cols = 76, .rows = 24 } }); + p.settle(); // the step's end: the pty takes its pane's size (Pardes.sizeTerminals) try testing.expect(pane.cols != 132); try testing.expectEqualStrings(try std.fmt.bufPrint(&said, "winsize {d} {d}\n", .{ pane.cols, pane.rows }), rd(p, ctl, 0, 64).bytes); diff --git a/core/replica.zig b/core/replica.zig index 97cbaeee..6c037cd2 100644 --- a/core/replica.zig +++ b/core/replica.zig @@ -7351,6 +7351,8 @@ const may_wait = [_]Wait{ .{ .what = "Save", .on = .any, .stop = "write_file", .why = "a save" }, // A program run, a shell opened or closed: the session's processes. .{ .what = "Exec *", .on = .any, .stop = "kind", .why = "a program run: its name asked of the disk first" }, + .{ .what = "Find *", .on = .any, .stop = "kind", .why = "the work tree it lists from, a `.jj` or `.git` above the pane's directory asked of the session's disk (Pick.workTree), as the listing itself is the session's" }, + .{ .what = "Grep *", .on = .any, .stop = "kind", .why = "the work tree it searches, a `.jj` or `.git` above the pane's directory asked of the session's disk (Pick.workTree), as the search itself is the session's" }, .{ .what = "Exec *", .on = .any, .stop = "tty_taken", .why = "a program run in a shell: whether one has it, the session's" }, .{ .what = "Term", .on = .any, .stop = "kind", .why = "a shell opened: its name asked of the disk first" }, .{ .what = "A-n", .on = .any, .stop = "open a terminal", .why = "a shell opened" }, @@ -8001,7 +8003,9 @@ test "a far client's drag in a kind's pane it grabbed, the pane since too short } for ([_]pardes.Event{ .{ .mouse = .{ .button = .left, .kind = .press, .col = col, .row = row } }, - .{ .resize = .{ .cols = 80, .rows = 5 } }, + // Two rows for the two panes under the window row (a lone column has + // no column row, UX K'2): one each. + .{ .resize = .{ .cols = 80, .rows = 4 } }, .{ .mouse = .{ .button = .left, .kind = .drag, .col = col, .row = 30 } }, .{ .mouse = .{ .button = .left, .kind = .release, .col = col, .row = 30 } }, }) |ev| { diff --git a/core/root.zig b/core/root.zig index e07cbed6..1b107d59 100644 --- a/core/root.zig +++ b/core/root.zig @@ -166,7 +166,13 @@ pub const TAG_TEXT_INSET: u16 = config.GUTTER; pub fn taglineOriginCol(p: *const Pardes, col: u16, row: u16) f32 { const v = p.view(); - if (row < p.topBarHeight()) return 0; + // The window row's two tags (UX K'2): a lone column's from the inset, + // the window's from its words. + if (row < p.topBarHeight()) { + const sides = tagline.windowRow(p); + if (col >= sides.words) return @floatFromInt(sides.words); + return if (sides.column > 0 and col >= TAG_TEXT_INSET) @floatFromInt(TAG_TEXT_INSET) else 0; + } if (row < p.topBarHeight() + layout.columnBarHeight(p)) { for (v.col_x[0..p.view().ncol], v.col_w[0..p.view().ncol]) |x, w| if (col >= x and col - x < w) return @floatFromInt(x); @@ -183,7 +189,17 @@ pub fn taglineOriginCol(p: *const Pardes, col: u16, row: u16) f32 { pub fn gridColAt(p: ?*const Pardes, x: f32, row: u16, body_w: f32, tagline_w: f32) u16 { const body = @max(body_w, 1); const tag = @max(tagline_w, 1); - if (row < (if (p) |core| core.topBarHeight() else TOPBAR_H)) return colFromSpan(x, tag); + if (row < (if (p) |core| core.topBarHeight() else TOPBAR_H)) { + // Its inset and the blank between its two tags on the body's grid, + // each tag's glyphs from its origin (taglineOriginCol). + const core = p orelse return colFromSpan(x, tag); + const cell = colFromSpan(x, body); + const origin: u16 = @intFromFloat(taglineOriginCol(core, cell, row)); + if (origin == 0) return cell; + const sides = tagline.windowRow(core); + const end = if (origin < sides.words) TAG_TEXT_INSET + sides.column else core.view().screen_w; + return @min(origin + colFromSpan(x - @as(f32, @floatFromInt(origin)) * body, tag), end -| 1); + } if (p) |core| if (row < core.topBarHeight() + layout.columnBarHeight(core)) { for (core.view().col_x[0..core.view().ncol], core.view().col_w[0..core.view().ncol]) |origin, width| { if (width == 0) continue; @@ -279,7 +295,7 @@ fn shortcuts(comptime b: Builtin) []const u8 { for (config.exec_key) |k| s = s ++ ", " ++ chordName(k); s = s ++ ", " ++ @tagName(config.exec_button) ++ "-click"; } - var it = std.mem.tokenizeScalar(u8, config.topbar_str, ' '); + var it = std.mem.tokenizeScalar(u8, config.window_words_str, ' '); while (it.next()) |w| if (std.mem.eql(u8, w, @tagName(b))) { s = s ++ ", topbar"; }; @@ -333,7 +349,7 @@ pub const builtin_rows: [std.enums.values(Builtin).len]Row = blk: { comptime { @setEvalBranchQuota(20000); // one branch per string byte, behind the decl walk that folds Builtin - var it = std.mem.tokenizeScalar(u8, config.topbar_str, ' '); + var it = std.mem.tokenizeScalar(u8, config.topbar_str ++ " " ++ config.window_words_str ++ " " ++ config.columns_words_str, ' '); words: while (it.next()) |w| { for (@typeInfo(Builtin).@"enum".field_names) |name| if (std.mem.eql(u8, name, w)) continue :words; @@ -368,9 +384,11 @@ test "a compact tagline anchors at its own pane, and both shells step from the s try std.testing.expectEqual(@as(f32, @floatFromInt(left.x)), taglineOriginCol(p, left.x + 3, left.y)); try std.testing.expectEqual(@as(f32, @floatFromInt(right.x)), taglineOriginCol(p, right.x + 3, right.y)); - // The topbar's origin is column zero always — it is not a pane rect, which - // is why row zero is right even in a window with no core to ask. + // The window row (UX K'2): its blank's origin is column zero, as a window + // with no core to ask has it; the window's words start at their own. + const words = tagline.windowRow(p).words; try std.testing.expectEqual(@as(f32, 0), taglineOriginCol(p, 40, 0)); + try std.testing.expectEqual(@as(f32, @floatFromInt(words)), taglineOriginCol(p, words + 3, 0)); const body_row = left.y + 2; try std.testing.expectEqual(@as(f32, 7), taglineOriginCol(p, 7, body_row)); @@ -399,9 +417,10 @@ test "a compact tagline anchors at its own pane, and both shells step from the s try std.testing.expectEqual(col, gridColAt(p, glyph_x + tag_w / 2, left.y, body_w, tag_w)); } - // The topbar's pointer grid is compact from column zero, with no pane to - // anchor to — the one tag row that is right with or without a core. - try std.testing.expectEqual(@as(u16, 3), gridColAt(p, 3.5 * tag_w, 0, body_w, tag_w)); + // The window row's blank is on the body's grid, its words compact from + // where they start; with no core to ask, compact from column zero. + try std.testing.expectEqual(@as(u16, 3), gridColAt(p, 3.5 * body_w, 0, body_w, tag_w)); + try std.testing.expectEqual(words + 3, gridColAt(p, @as(f32, @floatFromInt(words)) * body_w + 3.5 * tag_w, 0, body_w, tag_w)); try std.testing.expectEqual(@as(u16, 3), gridColAt(null, 3.5 * tag_w, 0, body_w, tag_w)); // A body row is untouched: still the body grid, still divided by the body @@ -461,6 +480,7 @@ test { _ = @import("FrameStats.zig"); _ = @import("Query.zig"); _ = @import("Names.zig"); + _ = @import("syntax.zig"); // without it a -Dtest-filter run compiles none of its tests (a whole run has them) _ = @import("Stream.zig"); _ = @import("Tables.zig"); _ = @import("Handover.zig"); @@ -791,6 +811,7 @@ const kept_out = [_]struct { []const u8, []const u8, []const u8 }{ .{ "Text.zig", "room", "a buffer's capacity" }, .{ "Kind.zig", "ops st gpa arena plain file opened reloads jobs record", "the kind's code and memory here: a plain kind's block is in the copy, and its state hash is checked at every call (Kind.Call.end)" }, .{ "Kind.zig", "thumb_at thumb_span pointer painted over used", "a frame's: written by a paint; `painted` is read by a tick of a kind that is not plain, whose calls are the authority's alone" }, + .{ "Kind.zig", "drawn_from size", "a picker's preview through a kind (Pick.showKind): this process's draw count when the slot was made, which drops the answers of draws made before it, and the file's size for the line naming it until its kind draws; both read by a frame alone" }, .{ "Places.zig", "ticks ticks_gen re", "the rail's ticks, made again when the places move (`gen`), and the compiled pattern, of the pattern" }, .{ "Plumb.zig", "parsed parsed_arena", "the rules parsed, of their text" }, .{ "Stream.zig", "parse_ns paint paint_retired paint_count ahead ahead_for painted_ahead painted_on_loop ahead_seen ahead_ask", "the workers' paints and timings: how a text looks, and numbers" }, diff --git a/core/syntax.zig b/core/syntax.zig index 5c05300e..9fbad3cf 100644 --- a/core/syntax.zig +++ b/core/syntax.zig @@ -621,7 +621,7 @@ pub fn analyzeSource(gpa: std.mem.Allocator, path: []const u8, content: []const defer tree.destroy(); var result: SourceAnalysis = .{}; errdefer result.deinit(gpa); - if (want_declarations) result.declarations = try declarationsFromTree(gpa, content, tree, null); + if (want_declarations) result.declarations = (try contextFromTree(gpa, content, tree, null, &.{})).declarations; if (want_colors) { result.colors = try gpa.alloc(u8, content.len); @memset(result.colors, 0); @@ -635,23 +635,52 @@ pub fn contextDeclarations(gpa: std.mem.Allocator, path: []const u8, content: [] return analysis.declarations; } -/// The declarations of `content` (its path's language), on a worker -/// (`parseApart`). `halt` ends the parse and the walk early -/// (error.Canceled): a 1.2 MB file is seconds in a Debug build. -pub fn declarationsApart(gpa: std.mem.Allocator, path: []const u8, content: []const u8, halt: *const std.atomic.Value(bool)) ![]ContextDeclaration { - if (content.len == 0) return &.{}; +/// A text's context, from one parse: its declarations (the sticky +/// headers', Locations') and its symbols (the Symbols picker's, UX DESIGN +/// N), both of the same allocator. +pub const Context = struct { + declarations: []ContextDeclaration = &.{}, + symbols: []Symbol = &.{}, + + pub fn deinit(c: *Context, gpa: std.mem.Allocator) void { + gpa.free(c.declarations); + gpa.free(c.symbols); + c.* = .{}; + } +}; + +/// `content`'s context (its path's language), parsed here: a sticky +/// header's (File.refreshContext), a loaded text's. +pub fn context(gpa: std.mem.Allocator, path: []const u8, content: []const u8) !Context { + if (content.len == 0) return .{}; + const spec = byExt(std.Io.Dir.path.extension(path)) orelse return .{}; + const selected = try ensure(spec); + const tree = selected.parser.parseString(content, null) orelse return .{}; + defer tree.destroy(); + return contextFromTree(gpa, content, tree, null, rulesOf(spec.name)); +} + +/// `content`'s context, on a worker (`parseApart`). `halt` ends the parse +/// and the walk early (error.Canceled): a 1.2 MB file is seconds in a +/// Debug build. +pub fn contextApart(gpa: std.mem.Allocator, path: []const u8, content: []const u8, halt: *const std.atomic.Value(bool)) !Context { + if (content.len == 0) return .{}; const ext = std.Io.Dir.path.extension(path); const spec = specs: for (&specs) |*spec| { for (spec.exts) |choice| if (std.ascii.eqlIgnoreCase(ext, choice)) break :specs spec; - } else return &.{}; + } else return .{}; const tree = try parseApart(langOf(spec), content, halt); defer tree.destroy(); - return declarationsFromTree(gpa, content, tree, halt); + return contextFromTree(gpa, content, tree, halt, rulesOf(spec.name)); } -fn declarationsFromTree(gpa: std.mem.Allocator, content: []const u8, tree: *ts.Tree, halt: ?*const std.atomic.Value(bool)) ![]ContextDeclaration { +/// The declarations and, by `rules` (none: no symbols), the symbols of a +/// parse, in one walk of its nodes. +fn contextFromTree(gpa: std.mem.Allocator, content: []const u8, tree: *ts.Tree, halt: ?*const std.atomic.Value(bool), rules: []const Rule) !Context { var result: std.ArrayList(ContextDeclaration) = .empty; errdefer result.deinit(gpa); + var symbols: SymbolWalk = .{ .gpa = gpa, .rules = rules, .source = content }; + errdefer symbols.out.deinit(gpa); // The cursor retains its ancestor stack: sibling visits do not repeatedly // reconstruct parents in broad syntax trees. Preorder preserves source order. var cursor = tree.rootNode().walk(); @@ -661,14 +690,21 @@ fn declarationsFromTree(gpa: std.mem.Allocator, content: []const u8, tree: *ts.T visited += 1; if (halt) |flag| if (visited % 4096 == 0 and flag.load(.monotonic)) return error.Canceled; const node = cursor.node(); - if (node.isNamed()) if (contextSpan(node, content)) |span| { - if (result.items.len == 0 or result.items[result.items.len - 1].start_line != span.start_line or - result.items[result.items.len - 1].end_line != span.end_line) - try result.append(gpa, span); - }; + if (node.isNamed()) { + if (contextSpan(node, content)) |span| { + if (result.items.len == 0 or result.items[result.items.len - 1].start_line != span.start_line or + result.items[result.items.len - 1].end_line != span.end_line) + try result.append(gpa, span); + } + if (rules.len > 0) try symbols.visit(node); + } if (cursor.gotoFirstChild()) continue; while (!cursor.gotoNextSibling()) { - if (!cursor.gotoParent()) return result.toOwnedSlice(gpa); + if (!cursor.gotoParent()) { + const declarations = try result.toOwnedSlice(gpa); + errdefer gpa.free(declarations); + return .{ .declarations = declarations, .symbols = try symbols.out.toOwnedSlice(gpa) }; + } } } } @@ -761,6 +797,543 @@ fn contextSpan(node: ts.Node, source: []const u8) ?ContextDeclaration { }; } +// ---- symbols: the Symbols picker's (UX DESIGN N) ---- + +/// What a symbol is, in the Symbols picker's order (UX DESIGN N2): types, +/// functions, fields, then the rest (consts, vars, modules, other) as one +/// group. A `scope` is listed nowhere: it names its members (Rust's +/// `impl S`: `S.new`). +pub const SymbolKind = enum(u8) { + type, + function, + field, + constant, + variable, + module, + other, + scope, + + /// Its mark in a row (UX DESIGN N4): one letter, `·` for the other. + pub fn mark(k: SymbolKind) []const u8 { + return switch (k) { + .type => "t", + .function => "f", + .field => "m", + .constant => "c", + .variable => "v", + .module => "n", + .other, .scope => "·", + }; + } + + /// Its group in the picker: 0 types, 1 functions, 2 fields, 3 the rest. + pub fn group(k: SymbolKind) u8 { + return @min(@intFromEnum(k), 3); + } +}; + +/// A declaration the Symbols picker lists: its kind, the line and bytes of +/// its name, and the symbol it is declared in. +pub const Symbol = struct { + kind: SymbolKind, + /// The line its name is on, from 0. + line: u32, + name_start: u32, + name_end: u32, + /// Where what its row says after its name ends (a function's + /// signature): its body's start, else its own end. Its row cuts it at + /// its name's line's end. + end: u32, + /// The symbol it is declared in, by its index + 1 (0: none): its name + /// qualifies this one's (`Counts.lines`). + parent: u32 = 0, +}; + +/// How a node of a grammar is a symbol (UX DESIGN N2: one table a language). +const Rule = struct { + node: []const u8, + kind: SymbolKind, + how: How = .plain, + /// The field naming it; without it, its declarator's name (C's) or the + /// first name under it (`nameOf`). "": none (an anonymous scope). + name: []const u8 = "name", + /// A form's first words and the kinds they declare (`.head`). + heads: []const struct { []const u8, SymbolKind } = &.{}, + /// Not one under a node of this kind (Pascal's declProc heading the + /// defProc that is the symbol). + unless_in: []const u8 = "", +}; + +const How = enum { + /// Its kind as given. + plain, + /// Only with a body (C's `struct s { ... }`; `struct s x;` names the + /// type, declares none); unnamed, a scope (an anonymous struct's fields + /// are its owner's). + body, + /// C's declaration: a function where a declarator on the way to its + /// name is one's; else a const where `const` says so (its kind a var). + declarator, + /// A binding whose value tells: a type, a function, a module (Zig's + /// `const S = struct`, `@import`, JavaScript's arrow function); else a + /// const or a var by its keyword. + value, + /// A binding that is a field in a type (a Python class's attribute, + /// Kotlin's property); else a const or a var by its keyword. Named + /// by a name, never a pattern (`self.x = ...`). + binding, + /// A form whose first word says what it declares (Elixir's `def f`, + /// Clojure's `(defn f ...)`), named by its second. + head, + /// No row: a scope its members are named in, by its own name (Rust's + /// `impl S`) or its owner's (an anonymous struct). + scope, +}; + +const c_rules = [_]Rule{ + .{ .node = "function_definition", .kind = .function }, + .{ .node = "declaration", .kind = .variable, .how = .declarator }, + .{ .node = "field_declaration", .kind = .field, .how = .declarator }, + .{ .node = "struct_specifier", .kind = .type, .how = .body }, + .{ .node = "union_specifier", .kind = .type, .how = .body }, + .{ .node = "enum_specifier", .kind = .type, .how = .body }, + .{ .node = "enumerator", .kind = .field }, + .{ .node = "type_definition", .kind = .type }, + .{ .node = "preproc_def", .kind = .other }, + .{ .node = "preproc_function_def", .kind = .other }, +}; + +/// The kind tables, by grammar (grammar_manifest.zig): a grammar with none +/// (JSON, CSS, HTML, Markdown, Typst) lists no symbols. +const symbol_rules = [_]struct { []const u8, []const Rule }{ + .{ "zig", &.{ + // Named by its FnProto's `function` (symbolOf). + .{ .node = "Decl", .kind = .function, .name = "" }, + .{ .node = "VarDecl", .kind = .variable, .how = .value, .name = "variable_type_function" }, + .{ .node = "ContainerField", .kind = .field }, + .{ .node = "TestDecl", .kind = .other, .name = "" }, + .{ .node = "ContainerDecl", .kind = .type, .how = .scope, .name = "" }, + } }, + .{ "c", &c_rules }, + .{ "cpp", &(c_rules ++ [_]Rule{ + .{ .node = "class_specifier", .kind = .type, .how = .body }, + .{ .node = "namespace_definition", .kind = .module }, + .{ .node = "alias_declaration", .kind = .type }, + }) }, + .{ "rust", &.{ + .{ .node = "function_item", .kind = .function }, + .{ .node = "function_signature_item", .kind = .function }, + .{ .node = "struct_item", .kind = .type }, + .{ .node = "enum_item", .kind = .type }, + .{ .node = "union_item", .kind = .type }, + .{ .node = "trait_item", .kind = .type }, + .{ .node = "type_item", .kind = .type }, + .{ .node = "impl_item", .kind = .type, .how = .scope, .name = "type" }, + .{ .node = "field_declaration", .kind = .field }, + .{ .node = "enum_variant", .kind = .field }, + .{ .node = "const_item", .kind = .constant }, + .{ .node = "static_item", .kind = .variable }, + .{ .node = "mod_item", .kind = .module }, + .{ .node = "macro_definition", .kind = .other }, + } }, + .{ "go", &.{ + .{ .node = "function_declaration", .kind = .function }, + .{ .node = "method_declaration", .kind = .function }, + .{ .node = "method_elem", .kind = .function }, + .{ .node = "type_spec", .kind = .type }, + .{ .node = "type_alias", .kind = .type }, + .{ .node = "field_declaration", .kind = .field }, + .{ .node = "const_spec", .kind = .constant }, + .{ .node = "var_spec", .kind = .variable }, + } }, + .{ "python", &.{ + .{ .node = "class_definition", .kind = .type }, + .{ .node = "function_definition", .kind = .function }, + .{ .node = "assignment", .kind = .variable, .how = .binding, .name = "left" }, + } }, + .{ "javascript", &.{ + .{ .node = "function_declaration", .kind = .function }, + .{ .node = "generator_function_declaration", .kind = .function }, + .{ .node = "class_declaration", .kind = .type }, + .{ .node = "method_definition", .kind = .function }, + .{ .node = "field_definition", .kind = .field, .name = "property" }, + .{ .node = "variable_declarator", .kind = .variable, .how = .value }, + } }, + .{ "java", &.{ + .{ .node = "class_declaration", .kind = .type }, + .{ .node = "interface_declaration", .kind = .type }, + .{ .node = "enum_declaration", .kind = .type }, + .{ .node = "record_declaration", .kind = .type }, + .{ .node = "annotation_type_declaration", .kind = .type }, + .{ .node = "method_declaration", .kind = .function }, + .{ .node = "constructor_declaration", .kind = .function }, + .{ .node = "field_declaration", .kind = .field }, + .{ .node = "enum_constant", .kind = .field }, + .{ .node = "constant_declaration", .kind = .constant }, + } }, + .{ "c_sharp", &.{ + .{ .node = "class_declaration", .kind = .type }, + .{ .node = "struct_declaration", .kind = .type }, + .{ .node = "interface_declaration", .kind = .type }, + .{ .node = "enum_declaration", .kind = .type }, + .{ .node = "record_declaration", .kind = .type }, + .{ .node = "delegate_declaration", .kind = .type }, + .{ .node = "namespace_declaration", .kind = .module }, + .{ .node = "file_scoped_namespace_declaration", .kind = .module }, + .{ .node = "method_declaration", .kind = .function }, + .{ .node = "constructor_declaration", .kind = .function }, + .{ .node = "destructor_declaration", .kind = .function }, + .{ .node = "field_declaration", .kind = .field }, + .{ .node = "property_declaration", .kind = .field }, + .{ .node = "event_field_declaration", .kind = .field }, + .{ .node = "enum_member_declaration", .kind = .field }, + } }, + .{ "kotlin", &.{ + .{ .node = "class_declaration", .kind = .type }, + .{ .node = "object_declaration", .kind = .type }, + .{ .node = "companion_object", .kind = .type, .how = .scope, .name = "" }, + .{ .node = "function_declaration", .kind = .function }, + .{ .node = "property_declaration", .kind = .variable, .how = .binding }, + .{ .node = "type_alias", .kind = .type }, + .{ .node = "enum_entry", .kind = .field }, + } }, + .{ "scala", &.{ + .{ .node = "class_definition", .kind = .type }, + .{ .node = "object_definition", .kind = .type }, + .{ .node = "trait_definition", .kind = .type }, + .{ .node = "enum_definition", .kind = .type }, + .{ .node = "type_definition", .kind = .type }, + .{ .node = "function_definition", .kind = .function }, + .{ .node = "function_declaration", .kind = .function }, + .{ .node = "val_definition", .kind = .constant, .how = .binding, .name = "pattern" }, + .{ .node = "var_definition", .kind = .variable, .how = .binding, .name = "pattern" }, + .{ .node = "simple_enum_case", .kind = .field }, + .{ .node = "full_enum_case", .kind = .field }, + } }, + .{ "ruby", &.{ + .{ .node = "class", .kind = .type }, + .{ .node = "singleton_class", .kind = .type, .how = .scope, .name = "" }, + .{ .node = "module", .kind = .module }, + .{ .node = "method", .kind = .function }, + .{ .node = "singleton_method", .kind = .function }, + } }, + .{ "php", &.{ + .{ .node = "class_declaration", .kind = .type }, + .{ .node = "interface_declaration", .kind = .type }, + .{ .node = "trait_declaration", .kind = .type }, + .{ .node = "enum_declaration", .kind = .type }, + .{ .node = "function_definition", .kind = .function }, + .{ .node = "method_declaration", .kind = .function }, + .{ .node = "property_declaration", .kind = .field }, + .{ .node = "enum_case", .kind = .field }, + .{ .node = "const_declaration", .kind = .constant }, + .{ .node = "namespace_definition", .kind = .module }, + } }, + .{ "bash", &.{ + .{ .node = "function_definition", .kind = .function }, + .{ .node = "variable_assignment", .kind = .variable, .how = .binding }, + } }, + .{ "haskell", &.{ + .{ .node = "data_type", .kind = .type }, + .{ .node = "newtype", .kind = .type }, + .{ .node = "type_synomym", .kind = .type }, + .{ .node = "class", .kind = .type }, + .{ .node = "instance", .kind = .type, .how = .scope }, + .{ .node = "function", .kind = .function }, + .{ .node = "bind", .kind = .constant }, + .{ .node = "data_constructor", .kind = .field }, + } }, + .{ "ocaml", &.{ + .{ .node = "type_binding", .kind = .type }, + .{ .node = "module_binding", .kind = .module }, + .{ .node = "module_type_definition", .kind = .type }, + .{ .node = "class_binding", .kind = .type }, + .{ .node = "method_definition", .kind = .function }, + .{ .node = "let_binding", .kind = .constant, .how = .value, .name = "pattern" }, + .{ .node = "field_declaration", .kind = .field }, + .{ .node = "constructor_declaration", .kind = .field }, + } }, + .{ "erlang", &.{ + .{ .node = "fun_decl", .kind = .function }, + .{ .node = "record_decl", .kind = .type }, + .{ .node = "record_field", .kind = .field }, + .{ .node = "type_alias", .kind = .type }, + .{ .node = "pp_define", .kind = .other }, + .{ .node = "module_attribute", .kind = .module }, + } }, + .{ "elixir", &.{ + .{ .node = "call", .kind = .other, .how = .head, .heads = &.{ + .{ "defmodule", .module }, .{ "defprotocol", .type }, .{ "def", .function }, + .{ "defp", .function }, .{ "defdelegate", .function }, .{ "defguard", .function }, + .{ "defguardp", .function }, .{ "defmacro", .other }, .{ "defmacrop", .other }, + } }, + } }, + .{ "clojure", &.{ + .{ .node = "list_lit", .kind = .other, .how = .head, .heads = &.{ + .{ "ns", .module }, .{ "def", .constant }, .{ "defonce", .constant }, .{ "defn", .function }, + .{ "defn-", .function }, .{ "defmulti", .function }, .{ "defmethod", .function }, .{ "defmacro", .other }, + .{ "defrecord", .type }, .{ "deftype", .type }, .{ "defprotocol", .type }, .{ "definterface", .type }, + .{ "defstruct", .type }, + } }, + } }, + .{ "fortran", &.{ + .{ .node = "module", .kind = .module }, + .{ .node = "program", .kind = .module }, + .{ .node = "subroutine", .kind = .function }, + .{ .node = "function", .kind = .function }, + .{ .node = "derived_type_definition", .kind = .type }, + .{ .node = "variable_declaration", .kind = .variable, .how = .binding }, + } }, + .{ "ada", &.{ + .{ .node = "package_declaration", .kind = .module }, + .{ .node = "package_body", .kind = .module }, + .{ .node = "full_type_declaration", .kind = .type }, + .{ .node = "subprogram_declaration", .kind = .function }, + .{ .node = "subprogram_body", .kind = .function }, + .{ .node = "object_declaration", .kind = .variable, .how = .binding }, + .{ .node = "component_declaration", .kind = .field }, + } }, + .{ "pascal", &.{ + .{ .node = "declType", .kind = .type }, + .{ .node = "declProc", .kind = .function, .unless_in = "defProc" }, + .{ .node = "defProc", .kind = .function }, + .{ .node = "declConst", .kind = .constant }, + .{ .node = "declVar", .kind = .variable, .how = .binding }, + .{ .node = "declField", .kind = .field }, + } }, + .{ "powershell", &.{ + .{ .node = "function_statement", .kind = .function }, + .{ .node = "class_statement", .kind = .type }, + .{ .node = "class_method_definition", .kind = .function }, + .{ .node = "class_property_definition", .kind = .field }, + .{ .node = "enum_statement", .kind = .type }, + .{ .node = "enum_member", .kind = .field }, + } }, +}; + +fn rulesOf(grammar: []const u8) []const Rule { + for (symbol_rules) |entry| if (std.mem.eql(u8, entry[0], grammar)) return entry[1]; + return &.{}; +} + +/// A walk's symbols, node by node in preorder (`contextFromTree`). +const SymbolWalk = struct { + gpa: std.mem.Allocator, + rules: []const Rule, + source: []const u8, + out: std.ArrayList(Symbol) = .empty, + /// The scopes the node is in, the innermost last. + scopes: [max_scopes]Scope = undefined, + depth: u8 = 0, + + /// Where a scope ends, its kind, and the symbol its members are named + /// in (an index + 1, 0 none). + const Scope = struct { end: u32, kind: SymbolKind, symbol: u32 }; + /// Deeper scopes are their parent's. + const max_scopes = 32; + + fn visit(w: *SymbolWalk, node: ts.Node) !void { + while (w.depth > 0 and w.scopes[w.depth - 1].end <= node.startByte()) w.depth -= 1; + const in: Scope = if (w.depth > 0) w.scopes[w.depth - 1] else .{ .end = 0, .kind = .module, .symbol = 0 }; + // A test's body (a macro's) lists nothing: its types are its + // locals' (a test's `const Find = struct`). + if (in.kind == .other) return; + const kind_name = node.kind(); + const rule = for (w.rules) |r| { + if (std.mem.eql(u8, r.node, kind_name)) break r; + } else return; + const found = symbolOf(rule, node, w.source, in.kind) orelse return; + // A body's consts and vars are its locals, none of them listed. + const local = in.kind != .type and in.kind != .module and in.kind != .scope; + if (local and (found.kind == .constant or found.kind == .variable)) return; + var named = in.symbol; + if (found.name) |name| { + // A longer name is cut (a test's sentence), on a character. + var end = name.endByte(); + if (end - name.startByte() > max_name) { + end = name.startByte() + max_name; + while (end > name.startByte() and w.source[end] & 0xc0 == 0x80) end -= 1; + } + try w.out.append(w.gpa, .{ + .kind = found.kind, + .line = name.startPoint().row, + .name_start = name.startByte(), + .name_end = end, + .end = found.end, + .parent = in.symbol, + }); + // A const's or a field's members are not named in it. + if (found.kind == .type or found.kind == .function or found.kind == .module or found.kind == .scope) named = @intCast(w.out.items.len); + } + if (w.depth == max_scopes) return; + w.scopes[w.depth] = .{ .end = node.endByte(), .kind = if (found.kind == .scope) rule.kind else found.kind, .symbol = named }; + w.depth += 1; + } +}; + +/// What node `node` declares by `rule`, in a scope of kind `in`: its kind, +/// its name (null: an anonymous scope) and where its row's words end. +fn symbolOf(rule: Rule, node: ts.Node, source: []const u8, in: SymbolKind) ?struct { kind: SymbolKind, name: ?ts.Node, end: u32 } { + if (rule.unless_in.len > 0) if (node.parent()) |up| if (std.mem.eql(u8, up.kind(), rule.unless_in)) return null; + var kind = rule.kind; + var name: ?ts.Node = null; + var end = if (node.childByFieldName("body")) |body| body.startByte() else node.endByte(); + switch (rule.how) { + .plain => name = nameOf(node, rule.name), + .scope => { + name = nameOf(node, rule.name); + kind = .scope; + }, + .body => { + if (node.childByFieldName("body") == null) return null; + name = nameOf(node, rule.name); + if (name == null) kind = .scope; + }, + .declarator => { + var d = node; + while (d.childByFieldName("declarator")) |next| { + if (std.mem.eql(u8, next.kind(), "function_declarator")) kind = .function; + d = next; + } + name = nameOf(node, rule.name); + if (kind == .variable and constant(source, node.startByte(), name orelse return null)) kind = .constant; + }, + .value => { + // Named by a name, never a pattern (`const { a, b } = ...`, + // OCaml's `let () = ...`). + name = nameOf(node, rule.name); + if (name) |n| if (!nameLike(n.kind())) return null; + kind = valueKind(node, source) orelse kind; + // JavaScript's keyword is its declaration's (`const a = 1, b`). + const from = if (std.mem.eql(u8, rule.node, "variable_declarator")) (node.parent() orelse node).startByte() else node.startByte(); + if (kind == .variable and constant(source, from, name orelse return null)) kind = .constant; + }, + .binding => { + const n = node.childByFieldName(rule.name) orelse nameOf(node, rule.name) orelse return null; + if (!nameLike(n.kind())) return null; + name = n; + if (in == .type) kind = .field else if (kind == .variable and constant(source, node.startByte(), n)) kind = .constant; + }, + .head => { + const elixir = std.mem.eql(u8, rule.node, "call"); + const first = (if (elixir) node.childByFieldName("target") else node.namedChild(0)) orelse return null; + const word = source[first.startByte()..first.endByte()]; + kind = for (rule.heads) |h| { + if (std.mem.eql(u8, h[0], word)) break h[1]; + } else return null; + var second = (if (elixir) childOfKind(node, "arguments") else node.namedChild(1)) orelse return null; + if (elixir) second = second.namedChild(0) orelse return null; + if (second.childByFieldName("target")) |target| second = target; + name = if (nameLike(second.kind())) second else nameOf(second, "name"); + }, + } + // Zig's: a function's name is its prototype's, its body a Block; a + // test's its string. + if (std.mem.eql(u8, rule.node, "Decl")) { + const proto = childOfKind(node, "FnProto") orelse return null; + name = proto.childByFieldName("function"); + if (childOfKind(node, "Block")) |block| end = block.startByte(); + } else if (std.mem.eql(u8, rule.node, "TestDecl")) { + const first = node.namedChild(0) orelse return null; + if (std.mem.eql(u8, first.kind(), "Block")) return null; + name = first; + if (childOfKind(node, "Block")) |block| end = block.startByte(); + } + if (name == null and kind != .scope) return null; + if (name) |n| if (n.endByte() <= n.startByte()) return null; + return .{ .kind = kind, .name = name, .end = end }; +} + +/// The longest name a symbol has: a longer one is cut. +const max_name = 200; + +/// The node naming `node`: its field `field`, whole on its line (C++'s +/// `namespace v8::internal`, Rust's `impl Vec<T>`); without one, its +/// declarator's (C's `int *f(void)`: `f`); else the first name under it, +/// past its type, value, body and parameters (Kotlin's, Fortran's). +fn nameOf(node: ts.Node, field: []const u8) ?ts.Node { + if (field.len == 0) return null; + var n = node; + if (node.childByFieldName(field)) |f| { + if (f.startPoint().row == f.endPoint().row) return f; + n = f; + } else while (n.childByFieldName("declarator")) |d| n = d; + if (nameLike(n.kind())) return n; + if (n.childByFieldName("name")) |f| if (nameLike(f.kind())) return f; + return firstName(n, 3); +} + +fn firstName(node: ts.Node, depth: u8) ?ts.Node { + if (depth == 0) return null; + const skipped = [_][]const u8{ "type", "value", "body", "parameters", "return_type", "returns", "result", "superclass", "arguments", "default", "trait" }; + var i: u32 = 0; + while (i < node.childCount()) : (i += 1) { + const child = node.child(i) orelse continue; + if (!child.isNamed()) continue; + const field = node.fieldNameForChild(i) orelse ""; + if (for (skipped) |s| { + if (std.mem.eql(u8, s, field)) break true; + } else false) continue; + const kind = child.kind(); + if (std.mem.indexOf(u8, kind, "modifier") != null or std.mem.indexOf(u8, kind, "annotation") != null or + std.mem.indexOf(u8, kind, "parameter") != null or std.mem.indexOf(u8, kind, "attribute") != null or + std.mem.indexOf(u8, kind, "decorator") != null or std.mem.indexOf(u8, kind, "comment") != null or + std.mem.indexOf(u8, kind, "literal") != null) continue; + if (nameLike(kind)) return child; + if (firstName(child, depth - 1)) |found| return found; + } + return null; +} + +/// A node kind that is a name: an identifier, a `*_name`, a word. +fn nameLike(kind: []const u8) bool { + if (std.ascii.endsWithIgnoreCase(kind, "identifier") or std.mem.endsWith(u8, kind, "name")) return true; + for ([_][]const u8{ "word", "constant", "atom", "variable", "constructor", "type_constructor", "alias" }) |k| { + if (std.mem.eql(u8, kind, k)) return true; + } + return false; +} + +/// What a binding's value makes it, where it says (else null): Zig's +/// `struct {...}`, `error{...}`, `@This()`, `@Type(...)` a type and +/// `@import(...)` a module; JavaScript's function a function and class a +/// type; OCaml's `let f x = ...` (a parameter) a function. +fn valueKind(node: ts.Node, source: []const u8) ?SymbolKind { + if (node.childByFieldName("value")) |value| { + const kind = value.kind(); + for ([_][]const u8{ "arrow_function", "function_expression", "generator_function" }) |k| if (std.mem.eql(u8, kind, k)) return .function; + if (std.mem.eql(u8, kind, "class")) return .type; + return null; + } + if (childOfKind(node, "parameter") != null) return .function; + // Zig's value: the last of the VarDecl, under its ErrorUnionExpr. + var v = node.namedChild(node.namedChildCount() -| 1) orelse return null; + while (std.mem.eql(u8, v.kind(), "ErrorUnionExpr")) v = v.namedChild(0) orelse return null; + if (!std.mem.eql(u8, v.kind(), "SuffixExpr")) return null; + const first = v.namedChild(0) orelse return null; + const kind = first.kind(); + if (std.mem.eql(u8, kind, "ContainerDecl") or std.mem.eql(u8, kind, "ErrorSetDecl")) return .type; + if (!std.mem.eql(u8, kind, "BUILTINIDENTIFIER")) return null; + const builtin = source[first.startByte()..first.endByte()]; + if (std.mem.eql(u8, builtin, "@This") or std.mem.eql(u8, builtin, "@Type")) return .type; + if ((std.mem.eql(u8, builtin, "@import") or std.mem.eql(u8, builtin, "@cImport")) and v.namedChildCount() == 2) return .module; + return null; +} + +/// Whether a binding is a const: a keyword says so between `from` and its +/// name, or after the name before its value (Ada's `K : constant`). +fn constant(source: []const u8, from: usize, name: ts.Node) bool { + const after = source[name.endByte()..]; + const before_value = std.mem.indexOfAny(u8, after, "=\n") orelse after.len; + for ([_][]const u8{ source[@min(from, name.startByte())..name.startByte()], after[0..before_value] }) |text| { + var words = std.mem.tokenizeAny(u8, text, " \t\r\n,:()*&"); + while (words.next()) |word| for ([_][]const u8{ "const", "constexpr", "val", "final", "readonly", "parameter", "constant" }) |k| { + if (std.mem.eql(u8, word, k)) return true; + }; + } + return false; +} + fn paint(styles: []u8, source: []const u8, selected: Selected) void { const tree = selected.parser.parseString(source, null) orelse return; defer tree.destroy(); @@ -2180,3 +2753,131 @@ test "syntax: a grammar handed in at run time colours and walks as the one compi forgetLanguages(); try std.testing.expect(!supportsPath("x.mine")); } + +/// Each of `source`'s symbols as `mark qualified name`, in the walk's order. +fn symbolLines(gpa: std.mem.Allocator, path: []const u8, source: []const u8) ![]const u8 { + var made = try context(gpa, path, source); + defer made.deinit(gpa); + var out: std.Io.Writer.Allocating = .init(gpa); + defer out.deinit(); + for (made.symbols) |sym| { + if (sym.kind == .scope) continue; + try out.writer.print("{s} ", .{sym.kind.mark()}); + var chain: [8]u32 = undefined; + var n: usize = 0; + var up = sym.parent; + while (up != 0 and n < chain.len) : (up = made.symbols[up - 1].parent) { + chain[n] = up; + n += 1; + } + while (n > 0) { + n -= 1; + const s = made.symbols[chain[n] - 1]; + try out.writer.print("{s}.", .{source[s.name_start..s.name_end]}); + } + try out.writer.print("{s}\n", .{source[sym.name_start..sym.name_end]}); + } + return out.toOwnedSlice(); +} + +test "syntax symbols: a Zig file's types, functions, fields and the rest by their declarations and values, each named in the containers it is in; a function's locals and an unnamed test none of them (UX DESIGN N2)" { + if (comptime !minimal_grammars) return error.SkipZigTest; + const gpa = std.testing.allocator; + start(gpa); + defer stop(); + const source = + \\const std = @import("std"); + \\pub const Counts = struct { + \\ lines: usize = 0, + \\ pub const zero: Counts = .{}; + \\ pub fn add(c: *Counts) void { + \\ const local = 1; + \\ c.lines += local; + \\ } + \\}; + \\const Mode = enum { fast, slow }; + \\const Failure = error{ Late, Lost }; + \\const Self = @This(); + \\var hits: u32 = 0; + \\fn List(comptime T: type) type { + \\ return struct { items: []T }; + \\} + \\test "count" { + \\ const Local = struct { + \\ fn helper() void {} + \\ }; + \\ _ = Local; + \\} + \\test {} + \\extern fn tick() void; + \\ + ; + // A test's name longer than a row's room is cut, its body still none. + const xs: [250]u8 = @splat('x'); + const long = "test \"" ++ xs ++ "\" {\n const Inner = struct {};\n _ = Inner;\n}\n"; + const lines = try symbolLines(gpa, "a.zig", source ++ long); + defer gpa.free(lines); + try std.testing.expectEqualStrings( + \\n std + \\t Counts + \\m Counts.lines + \\c Counts.zero + \\f Counts.add + \\t Mode + \\m Mode.fast + \\m Mode.slow + \\t Failure + \\t Self + \\v hits + \\f List + \\m List.items + \\· "count" + \\f tick + \\ + ++ "· \"" ++ xs[0 .. max_name - 1].* ++ "\n", lines); +} + +test "syntax symbols: C, C++, Rust, Go, Python and JavaScript by their kind tables, members named in their types, an impl's in its type, locals none" { + if (!full_grammars) return error.SkipZigTest; + const gpa = std.testing.allocator; + start(gpa); + defer stop(); + const cases = [_]struct { path: []const u8, source: []const u8, want: []const u8 }{ + .{ .path = "a.c", .source = "#define LIMIT 4\nstruct point { int x; int *y; };\ntypedef struct { int a; } pair;\nenum color { RED };\nstatic int counter = 0;\nconst int limit = 4;\nint add(int a) { int local = a; return local; }\nint later(void);\nstruct point p;\n", .want = "· LIMIT\nt point\nm point.x\nm point.y\nt pair\nm pair.a\nt color\nm color.RED\nv counter\nc limit\nf add\nf later\nv p\n" }, + .{ .path = "a.cc", .source = "namespace torque {\nclass Parser : public Base {\n public:\n Parser();\n int Parse(int depth) const { return depth; }\n int depth_;\n};\nint Parser::Run(int n) { int local = n; return local; }\nusing Alias = int;\n}\nnamespace v8::internal {\nint flags;\n}\n", .want = "n torque\nt torque.Parser\nf torque.Parser.Parser\nf torque.Parser.Parse\nm torque.Parser.depth_\nf torque.Parser::Run\nt torque.Alias\nn v8::internal\nv v8::internal.flags\n" }, + .{ .path = "a.rs", .source = "mod m {\npub struct S { pub a: u32 }\nenum E { A, B(u32) }\ntrait T { fn f(&self); }\nimpl S { pub fn new() -> Self { let x = 1; S { a: x } } }\nconst C: u32 = 1;\nstatic G: u32 = 2;\nmacro_rules! mac { () => {} }\n}\n", .want = "n m\nt m.S\nm m.S.a\nt m.E\nm m.E.A\nm m.E.B\nt m.T\nf m.T.f\nf m.S.new\nc m.C\nv m.G\n· m.mac\n" }, + .{ .path = "a.go", .source = "package main\ntype S struct { A int }\ntype I interface { M() }\nconst C = 1\nvar V = 2\nfunc F() { var x = 1; _ = x }\nfunc (s *S) M() {}\n", .want = "t S\nm S.A\nt I\nf I.M\nc C\nv V\nf F\nf M\n" }, + .{ .path = "a.py", .source = "X = 1\nclass C:\n attr = 2\n def m(self):\n y = 3\n self.z = 4\ndef f():\n pass\n", .want = "v X\nt C\nm C.attr\nf C.m\nf f\n" }, + .{ .path = "a.js", .source = "const A = 1;\nlet b = 2;\nfunction f() { const local = 1; }\nclass K { field = 1; m() {} }\nconst arrow = () => 1;\nconst Klass = class {};\nconst { x, y } = A;\n", .want = "c A\nv b\nf f\nt K\nm K.field\nf K.m\nf arrow\nt Klass\n" }, + }; + for (cases) |case| { + const lines = try symbolLines(gpa, case.path, case.source); + defer gpa.free(lines); + std.testing.expectEqualStrings(case.want, lines) catch |err| { + std.debug.print("in {s}\n", .{case.path}); + return err; + }; + } +} + +test "syntax symbols: every kind table names nodes of its grammar, and a grammar with none (JSON) lists no symbol" { + if (!full_grammars) return error.SkipZigTest; + const gpa = std.testing.allocator; + start(gpa); + defer stop(); + var tables: usize = 0; + for (symbol_rules) |entry| { + const spec = for (&specs) |*spec| { + if (std.mem.eql(u8, spec.name, entry[0])) break spec; + } else return error.NoGrammar; + for (entry[1]) |rule| std.testing.expect(langOf(spec).idForNodeKind(rule.node, true) != 0) catch |err| { + std.debug.print("{s} has no node {s}\n", .{ entry[0], rule.node }); + return err; + }; + tables += 1; + } + try std.testing.expectEqual(@as(usize, 23), tables); + var made = try context(gpa, "a.json", "{\"a\": 1}\n"); + defer made.deinit(gpa); + try std.testing.expectEqual(@as(usize, 0), made.symbols.len); +} diff --git a/core/tagline.zig b/core/tagline.zig index 0ec26d2f..8e8c5d2d 100644 --- a/core/tagline.zig +++ b/core/tagline.zig @@ -12,11 +12,14 @@ const config = @import("config.zig"); const Layer = @import("Layer.zig"); const layout = @import("layout.zig"); const TagState = @import("TagState.zig"); +const Messages = @import("Messages.zig"); const Pane = panes.Pane; const Text = panes.Text; const TAG_TEXT_INSET = pardes.TAG_TEXT_INSET; const Pardes = pardes.Pardes; +/// The words a pane of each kind had in its tag before UX K' (its own +/// text until edited then): what `kindTail` says. pub const pane_tail = " " ++ config.pane_builtins_str; pub const file_pane_tail = " " ++ config.file_pane_builtins_str; fn withFileCommands(comptime tail: []const u8, comptime words: []const u8) []const u8 { @@ -41,39 +44,161 @@ pub const query_live_tail = " Del"; pub const query_frozen_tail = " Save Undock Del"; /// ...and while its Grep waits at 2000 lines for More (Stream.zig). pub const query_capped_tail = " More Del"; + +/// A file's computed words (UX K'3) by which of `Diff`, `Filter`, `Save`, +/// `Undo` and `Redo` act now (bit 0 to 4), each after a blank, `Del` last. +const file_words = words: { + const names = [_][]const u8{ "Diff", "Filter", "Save", "Undo", "Redo" }; + var table: [1 << names.len][]const u8 = undefined; + for (&table, 0..) |*words, bits| { + words.* = ""; + for (names, 0..) |name, i| if (bits >> i & 1 == 1) { + words.* = words.* ++ " " ++ name; + }; + words.* = words.* ++ " Del"; + } + break :words table; +}; + +/// A pane's computed words at rest (UX K'3): the words that act now, each +/// after a blank, read-only and made again from its state, as its path is. +/// The tag's own text (the user's) follows them. +pub fn computedWords(pane: *const Pane) []const u8 { + // A kind's: its addon's words, then Del (Kind.reopen). + if (pane.addon) |k| if (k.tail.len > 0) return k.tail.slice(); + if (pane.query) |q| return if (q.frozen) query_frozen_tail else if (q.capped) query_capped_tail else query_live_tail; + if (pane.file) |*f| { + if (f.output) |out| if (out.from == .preview) return query_live_tail; + if (f.listing != null) return " Get Del"; + const j = &f.history.journal; + var bits = fileBits(pane, f); + if (!dirty(pane)) bits &= ~@as(usize, 4); + // A step back with something in it: insert mode's mark is a step + // of none until a key types (Text.Journal.mark keeps one such, on + // top), and Undo would act on nothing. + if (j.done == 0 or (j.done == 1 and j.steps.items[0].n == 0)) bits &= ~@as(usize, 8); + if (j.done == j.steps.items.len) bits &= ~@as(usize, 16); + return file_words[bits]; + } + if (pane.command != null) return if (pane.command_done) " Del" else " Kill Del"; + return " Del"; +} + +/// The computed words pane `pane` can come to show (K'3: Save, Undo and +/// Redo come and go with its edits, a query's as it freezes): what a +/// placement leaves its tag the rows for (layout.minRows), so an edit +/// never takes a row its column did not give. A reading pane's are its +/// own (its first edit holds it): its walk folds to the rows it has with +/// them (`folded`). +pub fn widestWords(p: *const Pardes, pane: *const Pane) []const u8 { + if (pardes.Trail.reading(p, pane)) return computedWords(pane); + if (pane.query != null) return query_frozen_tail; + if (pane.file) |*f| if (f.listing == null and (if (f.output) |out| out.from != .preview else true)) + return file_words[fileBits(pane, f)]; + return computedWords(pane); +} + +/// A file's computed words that its kind can show (file_words' bits): +/// Diff for a diff (a .patch, a +Pager holding one, the Diff view), +/// Filter for a pager, Save where it saves (never a +New's, K'3: SPC f s +/// asks it a path), Undo and Redo. +fn fileBits(pane: *const Pane, f: *const panes.File.State) usize { + const diff = if (f.pager) f.pager_diff else pane.colorAlgo() == .diff or + (if (f.output) |out| std.meta.eql(out.from, panes.Output.Origin{ .cmd = .Diff }) else false); + const scratch = if (f.output) |out| std.meta.eql(out.from, panes.Output.Origin{ .cmd = .New }) else false; + const saves = panes.Output.fileTraits(f.output).saves and !scratch; + return @as(usize, @intFromBool(diff)) | @as(usize, @intFromBool(f.pager)) << 1 | @as(usize, @intFromBool(saves)) << 2 | 8 | 16; +} /// A file with changes it has not saved. pub fn dirty(pane: *const panes.Pane) bool { const f = pane.file orelse return false; return panes.Output.fileTraits(f.output).saves and (f.revision != f.saved_revision or f.disk_gone); } -/// What a column's tag says until someone edits it. +/// What a column's tag said before UX K', its own text then: a dump's own +/// text equal to it is dropped (dump.dropOldTags), and a column's exec +/// still takes its words (ninep/cols.zig paneWord). pub const column_tag_default = "New Term Find Grep Joincol Delcol"; -/// What a header says until someone edits it: for the workspace the -/// fixed builtins, plus `Restore <path>` once a dump exists. -pub fn headerDefault(p: *Pardes, what: Text.What) []const u8 { - if (what == .column) return column_tag_default; - const row = topbarDefault(p); - const d = p.last_dump orelse return row; - return std.fmt.allocPrint(p.scratch.allocator(), "{s} Restore {s}", .{ row, d }) catch row; +/// A header's computed words (UX K'2), read-only, made again from the +/// session's state as a pane tag's are: the window's, then `Restore +/// <path>` once a dump exists; a column's, with Joincol and Delcol where +/// there is a second column for them. +pub fn headerWords(p: *Pardes, what: Text.What) []const u8 { + if (what == .column) return if (p.view().ncol > 1) config.columns_words_str else config.column_words_str; + const d = p.last_dump orelse return config.window_words_str; + return std.fmt.allocPrint(p.scratch.allocator(), "{s} Restore {s}", .{ config.window_words_str, d }) catch config.window_words_str; } -/// The workspace row's words for this view: the window's row, with Fonts, -/// in a window's view alone; a terminal's view (a terminal's build, or a -/// terminal's replica of a window's session) has the row without it. -fn topbarDefault(p: *Pardes) []const u8 { - if (comptime @import("builtins.zig").capabilities.font_picker) if (@import("builtins.zig").registry.here(p, .Fonts)) return config.topbar_window_str; - return config.topbar_terminal_str; +/// A header as it is shown, read and edited: its computed words, a blank, +/// then the user's text (UX K'1), everything typed into it, as a pane +/// tag's own text follows its prefix. +pub fn headerText(p: *Pardes, t: *const Text) ![]u8 { + const own: []const u8 = t.own orelse ""; + return std.mem.concat(p.scratch.allocator(), u8, &.{ headerWords(p, t.what), " ", own }); } -/// the topbar line -- render and click dispatch must agree on this exact -/// string +/// The window's tag -- render and click dispatch must agree on this exact +/// string. pub fn topbar(p: *Pardes) []const u8 { - return p.global_tag.own orelse headerDefault(p, .workspace); + return headerText(p, &p.global_tag) catch config.window_words_str; +} + +pub fn columnTag(p: *Pardes, c: usize) []const u8 { + return headerText(p, &p.view().col_tags[c]) catch config.column_words_str; +} + +/// A header's width in glyphs as headerText makes it, made of nothing. +fn headerWidth(p: *const Pardes, t: *const Text) usize { + const tab = p.settings.tab; + const own = if (t.own) |text| panes.File.displayWidth(tab, text) else 0; + const column: []const u8 = if (p.view().ncol > 1) config.columns_words_str else config.column_words_str; + if (t.what == .column) return column.len + 1 + own; + const restore = if (p.last_dump) |d| " Restore ".len + panes.File.displayWidth(tab, d) else 0; + return config.window_words_str.len + restore + 1 + own; +} + +/// The window row's two sides (UX K'2), in cells from the window's left: +/// column 0's tag from the inset, `column` cells (its text and its caret's +/// cell; none but while layout.columnInWindowRow), and the window's tag +/// from `words` to the right edge, its last cell the caret's, a server's +/// progress after its text while one runs and the row has room for it +/// (draw.zig). Draw, the mouse, workspaceBlank and a pixel shell's grid +/// read it. +pub const WindowRow = struct { column: u16, words: u16 }; +pub fn windowRow(p: *const Pardes) WindowRow { + const v = p.view(); + const inset = @min(TAG_TEXT_INSET, v.screen_w); + const column = if (layout.columnInWindowRow(p)) @min(cellsFor(p, headerWidth(p, &v.col_tags[0]) + 1), v.screen_w - inset) else 0; + var glyphs = headerWidth(p, &p.global_tag) + 1; + // The progress where the row has room for it beside the column's + // words; else it is not drawn (draw.zig), and moves nothing. + if (sessionProgress(p)) |said| { + const with = glyphs + 2 + progressWidth(p, said); + if (cellsFor(p, with) <= v.screen_w -| (inset + column)) glyphs = with; + } + return .{ .column = column, .words = @max(v.screen_w -| cellsFor(p, glyphs), inset + column) }; +} + +/// A server's progress that is no pane's, the session's: shown at the +/// window tag's end while it runs. +pub fn sessionProgress(p: *const Pardes) ?*const Messages.Said { + for (p.messages.live[0..p.messages.live_len]) |*said| if (said.kind == .progress and said.pane == 0) return said; + return null; } -pub fn columnTag(p: *const Pardes, c: usize) []const u8 { - return p.view().col_tags[c].own orelse column_tag_default; +/// The width of a server's progress as the window's tag shows it: its +/// glyph, a blank and its words. +pub fn progressWidth(p: *const Pardes, said: *const Messages.Said) usize { + return panes.File.displayWidth(p.settings.tab, Messages.Kind.progress.glyph()) + 1 + panes.File.displayWidth(p.settings.tab, said.words()); +} + +/// The grid cells `glyphs` tagline glyphs take: layout.tagCapacity's +/// inverse. +fn cellsFor(p: *const Pardes, glyphs: usize) u16 { + const m = p.view().row_metrics; + const body: usize = @max(1, m.body_w); + const tag: usize = @max(1, m.tagline_w); + return @intCast(@min(std.math.maxInt(u16), (glyphs * tag + body - 1) / body)); } /// The header with the keyboard, when one has it. @@ -93,11 +218,14 @@ pub fn revealHeader(p: *Pardes) void { }; const text = edit.flatSurface(p.editor(), t) catch |err| return p.reportError(.at(v.active), "tag", err); const cur: usize = @intCast(@max(0, t.cur_row)); - const rows: usize = if (p.headerColumn() != null) layout.columnBarHeight(p) else p.topBarHeight(); + // Column 0's tag in the window row (UX K'2) has that row and its side. + const in_row = p.headerColumn() != null and layout.columnInWindowRow(p); + const rows: usize = if (p.headerColumn() != null and !in_row) layout.columnBarHeight(p) else p.topBarHeight(); if (cur < v.header_top) v.header_top = cur; if (rows > 0 and cur >= v.header_top + rows) v.header_top = cur + 1 - rows; const line = modal.lineSlice(text, cur); - const width = layout.tagCapacity(p, if (p.headerColumn()) |c| v.col_w[c] -| TAG_TEXT_INSET else v.screen_w -| TAG_TEXT_INSET); + const sides = windowRow(p); + const width = layout.tagCapacity(p, if (p.headerColumn()) |c| (if (in_row) sides.column else v.col_w[c] -| TAG_TEXT_INSET) else v.screen_w -| sides.words); const col = panes.File.rawDisplayCol(p.settings.tab, line, @min(@as(usize, @intCast(@max(0, t.cur_col))), line.len)); if (col < v.header_scroll) v.header_scroll = col; if (col >= v.header_scroll + width) v.header_scroll = col -| (width -| 1); @@ -120,9 +248,9 @@ fn shownDir(arena: std.mem.Allocator, pane: *Pane) ![]const u8 { return pardes.ctlfs.events.shown(dir, out); } -/// The computed start of a pane's tag -- its path and dirty marker, a -/// PDF's page, a terminal's directory -- without the space that parts it -/// from the tag's own text. It is never stored, and never edited. +/// The computed start of a pane's tag -- its path, a PDF's page, a +/// terminal's directory -- without its computed words (restPrefix). It is +/// never stored, and never edited. pub fn pathPrefix(p: *const Pardes, arena: std.mem.Allocator, pane: *Pane) ![]const u8 { // Out of rest (UX D1) the owner's word and the newest step's, each with // its ` › `, before the head: the path, the forward steps and Keep @@ -240,7 +368,9 @@ pub fn folded(p: *const Pardes, pane: *const Pane) Fold { const name = if (pane.prompt == .name) pane.input.own orelse f.path else f.path; const keep = pardes.Trail.reading(p, pane); const tail = curTail(pane); - const bare = panes.File.displayWidth(tab, name) + @as(usize, if (keep) " Keep".len else 0) + panes.File.displayWidth(tab, tail); + // Its computed words and the blank before its own text (restPrefix). + const words = panes.File.displayWidth(tab, computedWords(pane)) + 1; + const bare = panes.File.displayWidth(tab, name) + @as(usize, if (keep) " Keep".len else 0) + words + panes.File.displayWidth(tab, tail); var whole: usize = pardes.Trail.shown_steps; while (whole > 1 and rowsOf(bare + walkCells(t, whole, tab), width) > rowsOf(bare, width)) whole -= 1; const r = p.view().rects[id]; @@ -249,34 +379,38 @@ pub fn folded(p: *const Pardes, pane: *const Pane) Fold { // one the layout has given its width and not yet its height (the band // host's floor, layout.floorRows, wraps its tag at rest then). if (!keep or !walked or pane.prompt == .name or pane.collapsed or !pane.tag_expanded or r.w == 0 or r.h == 0) return .{ .whole = whole }; - // Its first line: the prefix, the space restPrefix gives a tail - // without one, the tail's first line; and the rows its others take. + // Its first line: the prefix, its computed words and their blank, the + // own text's first line; and the rows its others take. const first = std.mem.indexOfScalar(u8, tail, '\n') orelse tail.len; var below: usize = 0; if (first < tail.len) { var lines = std.mem.splitScalar(u8, tail[first + 1 ..], '\n'); while (lines.next()) |line| below += rowsOf(panes.File.displayWidth(tab, line), width); } - const gap: usize = @intFromBool(tail.len > 0 and std.mem.indexOfScalar(u8, " \t\n", tail[0]) == null); - const rest = " Keep".len + gap + panes.File.displayWidth(tab, tail[0..first]); + const rest = " Keep".len + words + panes.File.displayWidth(tab, tail[0..first]); const path = panes.File.displayWidth(tab, name); const rows = r.h -| layout.min_body_rows; if (@min(rowsOf(walkCells(t, whole, tab) + path + rest, width) + below, pardes.MAX_TAG_ROWS) <= rows) return .{ .whole = whole }; // The newest step alone, then as much of the path's end as fits, after - // a `…` cell. + // a `…` cell; where its basename does not fit beside the newest step + // (a column too narrow for its tag's words), that step folds into the + // `+N` too. const room = (rows -| below) * width; - const used = walkCells(t, 1, tab) + rest; - if (used + path <= room) return .{ .whole = 1, .squeezed = true }; - const drop = used + path + 1 - room; const base = if (std.mem.lastIndexOfScalar(u8, name, '/')) |slash| slash + 1 else 0; - var cut: usize = 0; - var cells: usize = 0; - while (cut < base and cells < drop) { - const next = modal.nextGrapheme(name, cut); - cells += panes.File.displayWidth(tab, name[cut..next]); - cut = next; + var shown: usize = 1; + while (true) : (shown -= 1) { + const used = walkCells(t, shown, tab) + rest; + if (used + path <= room) return .{ .whole = shown, .squeezed = true }; + const drop = used + path + 1 - room; + var cut: usize = 0; + var cells: usize = 0; + while (cut < base and cells < drop) { + const next = modal.nextGrapheme(name, cut); + cells += panes.File.displayWidth(tab, name[cut..next]); + cut = next; + } + if (shown == 0 or cells >= drop) return .{ .whole = shown, .cut = @min(cut, base), .squeezed = true }; } - return .{ .whole = 1, .cut = @min(cut, base), .squeezed = true }; } /// The cells a walk's words take at rest with its newest `whole` back @@ -334,38 +468,52 @@ pub fn tagPrefix(p: *Pardes, pane: *Pane) ![]u8 { /// The prefix as the tag shows it, built in `arena`. pub fn prefixIn(p: *const Pardes, arena: std.mem.Allocator, pane: *Pane) ![]u8 { - // Out of rest the head follows: its words end in their own space. - if (pardes.Trail.outOfRest(p, pane)) return arena.dupe(u8, try pathPrefix(p, arena, pane)); + // Out of rest the head follows: its words end in their own space; a + // question at rest follows the path, in place of the computed words. + if (pardes.Trail.outOfRest(p, pane) or TagState.asks(p, pane)) return arena.dupe(u8, try pathPrefix(p, arena, pane)); return restPrefix(p, arena, pane); } -/// The prefix as the tag has it at rest, whatever its state: what its own -/// text follows, so what its cursor and selections are offsets after -/// (Core.sync's `tag_lead`), and the rows it takes at rest -/// (layout.wantedTagRows). +/// The prefix as the tag has it at rest, whatever its state: its path, +/// its computed words (UX K'1) and a blank, read-only, which its own text +/// follows: what its cursor and selections are offsets after (Core.sync's +/// `tag_lead`), what an edit must leave as it is (edit.zig), and the rows +/// it takes at rest (layout.wantedTagRows). The blank is the prefix's: +/// with the own text's first word against `Del`, Look and Exec would see +/// one word. pub fn restPrefix(p: *const Pardes, arena: std.mem.Allocator, pane: *Pane) ![]u8 { - const prefix = try restPath(p, arena, pane); - // The space between the prefix and the tag's own text is the text's - // (every default starts with one), but the prefix is computed, so it - // cannot trust the text to keep it: with it deleted, Look and Exec - // would see the path and the first word as one. The prefix brings its - // own then. - const tail = curTail(pane); - if (tail.len > 0 and std.mem.indexOfScalar(u8, " \t\n", tail[0]) == null) - return std.fmt.allocPrint(arena, "{s} ", .{prefix}); - return arena.dupe(u8, prefix); + return prefixWith(p, arena, pane, computedWords(pane)); } -/// The tag's own text: what the user made of it, or until then the -/// default a pane of its kind starts with. +/// The prefix at rest with computed words `words` (restPrefix's own, or +/// the widest its pane can come to show, widestWords). +pub fn prefixWith(p: *const Pardes, arena: std.mem.Allocator, pane: *Pane, words: []const u8) ![]u8 { + return std.mem.concat(arena, u8, &.{ try restPath(p, arena, pane), words, " " }); +} + +/// The tag's own text: the user's (UX K'1), everything typed into the tag +/// after its computed words, kept as typed; until then a terminal's word +/// for its shell, none for the rest. pub fn curTail(pane: *const Pane) []const u8 { return pane.tag.own orelse defaultTail(pane); } +/// A tag's own text until it is edited: a terminal's word for its shell, +/// `Term` until the shell says its name, then `Term+<shell>` +/// (Core.acknowledgeShell; a click opens another of it), as before UX +/// K'; none for the rest. pub fn defaultTail(pane: *const Pane) []const u8 { - // A kind's: Term, its words for its panes, Collapse Del (Kind.open). - if (pane.addon) |k| if (k.tail.len > 0) return k.tail.slice(); - if (pane.query) |q| return if (q.frozen) query_frozen_tail else if (q.capped) query_capped_tail else query_live_tail; + if (!pane.isTerminal() or pane.command != null) return ""; + return if (pane.shell_tail_len > 0) pane.shell_tail[0..pane.shell_tail_len] else "Term"; +} + +/// The words a pane of its kind had in its tag before UX K', its own text +/// until edited then: an own text a dump restores equal to it is dropped +/// (dump.zig dropOldTags). +pub fn kindTail(pane: *const Pane) []const u8 { + // A kind's: its words (Kind.reopen). + if (pane.addon) |k| return k.tail.slice(); + if (pane.query != null) return computedWords(pane); if (pane.file) |file| if (file.output) |out| if (out.from == .preview) return query_live_tail; if (pane.file) |file| if (file.listing != null) return dir_pane_tail; if (pane.file) |file| if (file.pager) return if (file.pager_diff) pager_diff_pane_tail else pager_pane_tail; @@ -378,7 +526,7 @@ pub fn defaultTail(pane: *const Pane) []const u8 { if (panes.File.supportsContext(pane)) return if (speaks) lsp_context_pane_tail else context_pane_tail; if (pane.file != null) return if (speaks) lsp_pane_tail else file_pane_tail; if (pane.command != null) return command_pane_tail; - if (pane.isTerminal()) return if (pane.shell_tail_len > 0) pane.shell_tail[0..pane.shell_tail_len] else terminal_pane_tail; + if (pane.isTerminal()) return terminal_pane_tail; return pane_tail; } @@ -399,18 +547,14 @@ pub fn tagText(p: *Pardes, arena: std.mem.Allocator, pane: *Pane) ![]u8 { /// Give the keyboard to the tag in normal mode (`:`), its cursor where /// the tag last had it. The first time there is nothing to remember, and -/// it starts on Save, so that `:` and the execute key write the file. +/// it starts on the user's text (UX K'1), after the computed words: what +/// is typed goes there. pub fn enterTag(p: *Pardes, pane: *Pane) void { const t = &pane.tag; const whole = tagText(p, p.scratch.allocator(), pane) catch |err| return p.reportError(.at(p.view().active), "tag", err); if (!t.cur_pinned) { - // Save is looked for in the tag's own text, after the prefix. - const lead = whole.len - curTail(pane).len; - const tail = whole[lead..]; - var words = std.mem.tokenizeAny(u8, tail, " \t\n"); - const at = lead + while (words.next()) |word| { - if (std.mem.eql(u8, word, "Save")) break @intFromPtr(word.ptr) - @intFromPtr(tail.ptr); - } else tail.len - std.mem.trimStart(u8, tail, " ").len; + const tail = curTail(pane); + const at = whole.len - std.mem.trimStart(u8, tail, " ").len; const cursor = modal.positionAt(whole, @min(at, whole.len)); t.cur_row = @intCast(cursor.row); t.cur_col = @intCast(cursor.col); @@ -616,13 +760,18 @@ pub fn exitHeader(p: *Pardes) void { } /// Give the keyboard to a column's tag, or the workspace's for null, in -/// normal mode, its cursor where that header last had it. +/// normal mode, its cursor where that header last had it; the first time +/// on the user's text, after the computed words (UX K'1), as enterTag. pub fn enterHeader(p: *Pardes, column: ?usize) void { exitHeader(p); if (p.panes[p.view().active]) |pane| pane.focus = .body; p.view().header = if (column) |c| .{ .column = c } else .workspace; if (column) |c| p.setActiveColumn(c); const t = focusedHeader(p) orelse return exitHeader(p); + if (!t.cur_pinned) { + t.cur_row = 0; + t.cur_col = @intCast(headerWords(p, t.what).len + 1); + } takeKeyboard(t, edit.flatSurface(p.editor(), t) catch |err| return p.reportError(.at(p.view().active), "tag", err)); } @@ -641,19 +790,23 @@ pub fn headerSelection(t: *const Text, text: []const u8, row: usize) ?struct { l return .{ .lo = @max(lo, start) - start, .hi = @min(hi, end) - start }; } -/// Whether the workspace tag is blank at cell (col, row): its inset left of -/// the text, or past the text's end with two cells kept free for the caret -/// (a B1 there still types at the end of the tag). A pixel shell lets the -/// window be dragged by such a cell, as a browser by the space beside its -/// tabs: blank is no text, so no button of acme's is taken from any. A -/// column's tag and a pane's are not: their blank is where B1 types. +/// Whether the window row is blank at cell (col, row): its inset, the +/// cells between its two sides (UX K'2), or past the window's text with +/// two cells kept free for the caret (a B1 there still types at the end of +/// the tag). A pixel shell lets the window be dragged by such a cell, as a +/// browser by the space beside its tabs: blank is no text, so no button of +/// acme's is taken from any. A column's tag and a pane's are not: their +/// blank is where B1 types. pub fn workspaceBlank(p: *Pardes, col: u16, row: u16, tag_hit: ?pardes.TagHit) bool { const v = p.view(); if (row >= p.topBarHeight() or col >= v.screen_w) return false; if (col < TAG_TEXT_INSET) return true; - const text = edit.flatSurface(p.editor(), &p.global_tag) catch return false; + const sides = windowRow(p); + if (col < TAG_TEXT_INSET + sides.column) return false; + if (col < sides.words) return true; + const text = topbar(p); const scroll: usize = if (v.header != null and p.headerColumn() == null) v.header_scroll else 0; - const at = @as(usize, Layer.columnAt(p, .workspace, 0, tag_hit, false, 0) orelse (col - TAG_TEXT_INSET)) + scroll; + const at = @as(usize, Layer.columnAt(p, .workspace, 0, tag_hit, false, 0) orelse (col - sides.words)) + scroll; return at >= panes.File.displayWidth(p.settings.tab, modal.lineSlice(text, 0)) + 2; } @@ -661,15 +814,17 @@ pub fn workspaceBlank(p: *Pardes, col: u16, row: u16, tag_hit: ?pardes.TagHit) b /// pasted or restored from a dump into one becomes a space, the caret and /// the selection kept on the same characters. pub fn flattenHeaders(p: *Pardes) void { - for (p.view().col_tags[0..p.view().ncol]) |*t| flatten(t); - flatten(&p.global_tag); + for (p.view().col_tags[0..p.view().ncol]) |*t| flatten(p, t); + flatten(p, &p.global_tag); } -fn flatten(t: *Text) void { +fn flatten(p: *Pardes, t: *Text) void { const own = t.own orelse return; if (std.mem.indexOfScalar(u8, own, '\n') == null) return; - const cur = modal.offsetAt(own, .{ .row = @intCast(@max(0, t.cur_row)), .col = @intCast(@max(0, t.cur_col)) }); - const anchor = modal.offsetAt(own, .{ .row = @intCast(@max(0, t.vsel.row)), .col = @intCast(@max(0, t.vsel.col)) }); + // The caret and the anchor are in the text as shown, words and all. + const shown = headerText(p, t) catch return; + const cur = modal.offsetAt(shown, .{ .row = @intCast(@max(0, t.cur_row)), .col = @intCast(@max(0, t.cur_col)) }); + const anchor = modal.offsetAt(shown, .{ .row = @intCast(@max(0, t.vsel.row)), .col = @intCast(@max(0, t.vsel.col)) }); std.mem.replaceScalar(u8, own, '\n', ' '); t.cur_row = 0; t.cur_col = @intCast(cur); @@ -691,25 +846,22 @@ pub fn wordBoundsAtCol(str: []const u8, col: usize) ?WordBounds { return .{ .lo = lo, .hi = hi }; } -test "the workspace tag is blank left of its text and past its end, and nowhere else" { +test "the window row is blank at its inset and between its two sides, and nowhere else (UX K'2)" { const p = try Pardes.init(std.testing.allocator, .{ .cols = 80, .rows = 12, .tty_only = true }); defer p.deinit(); - p.global_tag.own = try p.gpa.dupe(u8, "Newcol Exit"); p.sync(); var arena = std.heap.ArenaAllocator.init(std.testing.allocator); defer arena.deinit(); _ = try p.render(arena.allocator()); - const end = TAG_TEXT_INSET + "Newcol Exit".len; - try std.testing.expect(workspaceBlank(p, 0, 0, null)); - try std.testing.expect(workspaceBlank(p, TAG_TEXT_INSET - 1, 0, null)); - // Every cell of the text, the gap between its words too, is not. - for (TAG_TEXT_INSET..end) |c| try std.testing.expect(!workspaceBlank(p, @intCast(c), 0, null)); - // The two cells after it are the caret's, then blank to the edge. - try std.testing.expect(!workspaceBlank(p, end, 0, null)); - try std.testing.expect(!workspaceBlank(p, end + 1, 0, null)); - try std.testing.expect(workspaceBlank(p, end + 2, 0, null)); - try std.testing.expect(workspaceBlank(p, 79, 0, null)); - // Below the workspace tag: a column's tag, a pane: never. + const sides = windowRow(p); + try std.testing.expect(sides.column > 0 and TAG_TEXT_INSET + sides.column < sides.words); + for (0..TAG_TEXT_INSET) |c| try std.testing.expect(workspaceBlank(p, @intCast(c), 0, null)); + // The column's words and their caret's cell are not; the cells between + // the two sides are; the window's words and their caret's cell are not. + for (TAG_TEXT_INSET..TAG_TEXT_INSET + sides.column) |c| try std.testing.expect(!workspaceBlank(p, @intCast(c), 0, null)); + for (TAG_TEXT_INSET + sides.column..sides.words) |c| try std.testing.expect(workspaceBlank(p, @intCast(c), 0, null)); + for (sides.words..80) |c| try std.testing.expect(!workspaceBlank(p, @intCast(c), 0, null)); + // Below the window row: a column's tag, a pane: never. for (1..12) |r| try std.testing.expect(!workspaceBlank(p, 79, @intCast(r), null)); // Hidden, there is none. p.settings.workspace_tag = false; @@ -724,10 +876,11 @@ test "a column or workspace tag is one line: a newline in it is a space" { p.view().col_tags[0].cur_col = 2; p.global_tag.own = try p.gpa.dupe(u8, "Newcol\nExit"); p.sync(); - try std.testing.expectEqualStrings("New Snarf", columnTag(p, 0)); + try std.testing.expectEqualStrings("New Term New Snarf", columnTag(p, 0)); try std.testing.expectEqualStrings("Newcol Exit", p.global_tag.own.?); + // The caret on the same character, `a` of Snarf. try std.testing.expectEqual(@as(i32, 0), p.view().col_tags[0].cur_row); - try std.testing.expectEqual(@as(i32, 6), p.view().col_tags[0].cur_col); + try std.testing.expectEqual(@as(i32, "New Term New Sn".len), p.view().col_tags[0].cur_col); try std.testing.expectEqual(pardes.COLBAR_H, layout.columnBarHeight(p)); try std.testing.expectEqual(pardes.TOPBAR_H, p.topBarHeight()); } @@ -741,3 +894,203 @@ test "a pane tag wraps a long line onto rows, and offsets map both ways" { try std.testing.expectEqual(@as(usize, 10), shown.toReal(11)); // the 'e' of Del try std.testing.expectEqual(@as(usize, 11), shown.fromReal(10)); } + +/// What pane `pane`'s tag says after its path: its computed words, the +/// blank before its own text, and that text. +fn afterPath(p: *Pardes, pane: *Pane) ![]const u8 { + const a = p.scratch.allocator(); + const whole = try tagText(p, a, pane); + return whole[(try pathPrefix(p, a, pane)).len..]; +} + +fn typeKeys(p: *Pardes, keys: []const u8) void { + for (keys) |ch| p.update(.{ .key = .{ .cp = ch, .text = &[_]u8{ch} } }); +} + +test "a pane tag's computed words are the words that act now, its own text after them (UX K'1, K'3)" { + const p = try Pardes.init(std.testing.allocator, .{ .cols = 120, .rows = 30, .tty_only = true }); + defer p.deinit(); + const pane = try p.setTestFile("one\n"); + const f = &pane.file.?; + p.sync(); + // A file reading (its jumps walk): Keep (its walk's, after its path), + // Del. + try std.testing.expectEqualStrings("/test.txt Keep Del ", try tagText(p, p.scratch.allocator(), pane)); + // Held and clean, no undo step: Del alone. + pane.trail.held = true; + try std.testing.expectEqualStrings(" Del ", try afterPath(p, pane)); + // Typed into twice: unsaved, an undo step: Save Undo Del. + typeKeys(p, "ix"); + p.update(.{ .key = .{ .cp = pardes.Key.escape } }); + typeKeys(p, "iy"); + p.update(.{ .key = .{ .cp = pardes.Key.escape } }); + try std.testing.expectEqualStrings(" Save Undo Del ", try afterPath(p, pane)); + // Undone once: a step each way, Redo after Undo. + typeKeys(p, "u"); + try std.testing.expectEqualStrings(" Save Undo Redo Del ", try afterPath(p, pane)); + // Saved: clean, Save gone. + f.saved_revision = f.revision; + try std.testing.expectEqualStrings(" Undo Redo Del ", try afterPath(p, pane)); + // A diff, a pager, a pager holding a diff: Diff, Filter first. + const path = f.path; + f.path = @constCast("/x.patch"); + try std.testing.expectEqualStrings(" Diff Undo Redo Del", computedWords(pane)); + f.path = path; + f.pager = true; + try std.testing.expectEqualStrings(" Filter Undo Redo Del", computedWords(pane)); + f.pager_diff = true; + try std.testing.expectEqualStrings(" Diff Filter Undo Redo Del", computedWords(pane)); + f.pager = false; + f.pager_diff = false; + // A +New: Del, and Undo once it is typed into (it saves nowhere). + p.newScratchBelow(0); + const scratch = p.panes[p.view().active].?; + try std.testing.expect(scratch != pane); + try std.testing.expectEqualStrings(" Del ", try afterPath(p, scratch)); + typeKeys(p, "iz"); + p.update(.{ .key = .{ .cp = pardes.Key.escape } }); + try std.testing.expectEqualStrings(" Undo Del ", try afterPath(p, scratch)); + // A kind's own words, then Del; a pane of no kind: Del. + const doc_id = p.freeSlot().?; + const doc = try pardes.Kind.open(p, doc_id, pardes.Kind.test_kind.of(p), "/tmp/words.ppm", ""); + try std.testing.expect(std.mem.endsWith(u8, computedWords(doc), " Del")); + try std.testing.expect(std.mem.indexOf(u8, computedWords(doc), "Collapse") == null); +} + +test "typing in a tag goes after its computed words, and stays the user's text through a change of state (UX K'1)" { + const p = try Pardes.init(std.testing.allocator, .{ .cols = 120, .rows = 30, .tty_only = true }); + defer p.deinit(); + const pane = try p.setTestFile("one\n"); + pane.trail.held = true; + p.sync(); + // `:` `:` gives the keyboard to the tag, on its own text, after Del. + enterTag(p, pane); + p.sync(); + typeKeys(p, "iMine"); + p.update(.{ .key = .{ .cp = pardes.Key.escape } }); + try std.testing.expectEqualStrings("Mine", pane.tag.own.?); + try std.testing.expectEqualStrings(" Del Mine", try afterPath(p, pane)); + // An edit of the computed words is refused: a Backspace at the start + // of the user's text, on the blank before it. + pane.tag.cur_col = @intCast((try restPrefix(p, p.scratch.allocator(), pane)).len); + typeKeys(p, "i"); + p.update(.{ .key = .{ .cp = pardes.Key.backspace } }); + p.update(.{ .key = .{ .cp = pardes.Key.escape } }); + try std.testing.expectEqualStrings("Mine", pane.tag.own.?); + try std.testing.expectEqualStrings(" Del Mine", try afterPath(p, pane)); + // The body changed: Save Undo come in, the user's text after them, + // the tag's caret on the same character of it. + pane.focus = .body; + typeKeys(p, "ix"); + p.update(.{ .key = .{ .cp = pardes.Key.escape } }); + p.sync(); + try std.testing.expectEqualStrings(" Save Undo Del Mine", try afterPath(p, pane)); + try std.testing.expectEqualStrings("Mine", pane.tag.own.?); + const whole = try tagText(p, p.scratch.allocator(), pane); + try std.testing.expectEqual(@as(u8, 'M'), whole[@intCast(pane.tag.cur_col)]); +} + +test "a dump of a build before UX K' restores a tag's old default own text as none, any other as the user's (UX K'1)" { + const dump = @import("dump.zig"); + const p = try Pardes.init(std.testing.allocator, .{ .cols = 120, .rows = 30, .tty_only = true }); + defer p.deinit(); + const pane = try p.setTestFile("one\n"); + // What a tag of its kind said before (its own text, once edited). + pane.tag.own = try p.gpa.dupe(u8, kindTail(pane)); + try dump.dumpState(p); + const dropped = try dump.restore(p, p.dump_out.?, "old"); + defer dropped.deinit(); + try std.testing.expect(dropped.panes[0].?.tag.own == null); + try std.testing.expectEqualStrings("/test.txt Keep Del ", try tagText(dropped, dropped.scratch.allocator(), dropped.panes[0].?)); + // Edited around: kept whole, after the computed words. + p.gpa.free(pane.tag.own.?); + pane.tag.own = try p.gpa.dupe(u8, " Save Term Collapse Follow Del Mine"); + try dump.dumpState(p); + const kept = try dump.restore(p, p.dump_out.?, "custom"); + defer kept.deinit(); + try std.testing.expectEqualStrings(" Save Term Collapse Follow Del Mine", kept.panes[0].?.tag.own.?); +} + +test "a header reads its computed words, then the user's text: typed there, kept through a change of its words (UX K'1, K'2)" { + const p = try Pardes.init(std.testing.allocator, .{ .cols = 120, .rows = 30, .tty_only = true }); + defer p.deinit(); + _ = try p.setTestFile("one\n"); + try std.testing.expectEqualStrings("Find Grep Newcol Help Exit ", topbar(p)); + try std.testing.expectEqualStrings("New Term ", columnTag(p, 0)); + // The window's tag given the keyboard starts on the user's text. + enterHeader(p, null); + typeKeys(p, "iMine"); + p.update(.{ .key = .{ .cp = pardes.Key.escape } }); + try std.testing.expectEqualStrings("Mine", p.global_tag.own.?); + try std.testing.expectEqualStrings("Find Grep Newcol Help Exit Mine", topbar(p)); + // A Backspace on the blank before it is refused: the words are no one's. + p.global_tag.cur_col = "Find Grep Newcol Help Exit ".len; + typeKeys(p, "i"); + p.update(.{ .key = .{ .cp = pardes.Key.backspace } }); + p.update(.{ .key = .{ .cp = pardes.Key.escape } }); + try std.testing.expectEqualStrings("Find Grep Newcol Help Exit Mine", topbar(p)); + // A dump: its Restore comes into the words, the user's text after it. + p.setLastDump("/tmp/a.zon"); + try std.testing.expectEqualStrings("Find Grep Newcol Help Exit Restore /tmp/a.zon Mine", topbar(p)); + // A second column: Joincol and Delcol come into every column's words. + exitHeader(p); + try std.testing.expect(p.executeBuiltinLine(0, "Newcol")); + p.sync(); + try std.testing.expectEqualStrings("New Term Joincol Delcol ", columnTag(p, 0)); + try std.testing.expectEqualStrings("New Term Joincol Delcol ", columnTag(p, 1)); + // Newcol gave the keyboard to the new column's tag, on its user's text. + try std.testing.expectEqual(@as(?usize, 1), p.headerColumn()); + typeKeys(p, "iTwo"); + p.update(.{ .key = .{ .cp = pardes.Key.escape } }); + try std.testing.expectEqualStrings("New Term Joincol Delcol Two", columnTag(p, 1)); + try std.testing.expectEqualStrings("Two", p.view().col_tags[1].own.?); +} + +test "a dump of a build before UX K' restores a header's old default own text as none, any other as the user's (UX K'1)" { + const dump = @import("dump.zig"); + const p = try Pardes.init(std.testing.allocator, .{ .cols = 120, .rows = 30, .tty_only = true }); + defer p.deinit(); + _ = try p.setTestFile("one\n"); + // What the window's and a column's tags said before, with a Restore. + p.global_tag.own = try p.gpa.dupe(u8, config.topbar_terminal_str ++ " Restore /tmp/old.zon"); + p.view().col_tags[0].own = try p.gpa.dupe(u8, column_tag_default); + try dump.dumpState(p); + const dropped = try dump.restore(p, p.dump_out.?, "old"); + defer dropped.deinit(); + try std.testing.expect(dropped.global_tag.own == null); + try std.testing.expect(dropped.view().col_tags[0].own == null); + try std.testing.expectEqualStrings("New Term ", columnTag(dropped, 0)); + // The window's row with Fonts, and no Restore, is dropped too. + p.gpa.free(p.global_tag.own.?); + p.global_tag.own = try p.gpa.dupe(u8, config.topbar_window_str); + try dump.dumpState(p); + const window = try dump.restore(p, p.dump_out.?, "window"); + defer window.deinit(); + try std.testing.expect(window.global_tag.own == null); + // Edited around: kept whole, after the computed words. + p.gpa.free(p.global_tag.own.?); + p.global_tag.own = try p.gpa.dupe(u8, config.topbar_terminal_str ++ " Mine"); + p.gpa.free(p.view().col_tags[0].own.?); + p.view().col_tags[0].own = try p.gpa.dupe(u8, "New Mine"); + try dump.dumpState(p); + const kept = try dump.restore(p, p.dump_out.?, "custom"); + defer kept.deinit(); + try std.testing.expectEqualStrings(config.topbar_terminal_str ++ " Mine", kept.global_tag.own.?); + try std.testing.expectEqualStrings("New Term New Mine", columnTag(kept, 0)); +} + +test "a server's progress goes after the window's words where the row has room for it, and moves them by nothing where it has not (UX K'2)" { + const p = try Pardes.init(std.testing.allocator, .{ .cols = 84, .rows = 20, .tty_only = true }); + defer p.deinit(); + _ = try p.setTestFile("one\n"); + const alone = windowRow(p).words; + try std.testing.expectEqual(@as(u16, 84 - "Find Grep Newcol Help Exit ".len - 1), alone); + // Too long for the row beside the column's words: not drawn, and the + // words stay where they were. + _ = Messages.say(p, .progress, pardes.MAX_PANES, "lsp zls ready \u{2014} /tmp/claude-1000/a/long/session/directory"); + try std.testing.expectEqual(alone, windowRow(p).words); + // Short: after the words, two cells between, the words left by as + // much (`⋯ zls 3/9`, 9 cells). + _ = Messages.say(p, .progress, pardes.MAX_PANES, "zls 3/9"); + try std.testing.expectEqual(alone - 2 - 9, windowRow(p).words); +} diff --git a/core/tutor.txt b/core/tutor.txt index 5b0fd23d..62f71402 100644 --- a/core/tutor.txt +++ b/core/tutor.txt @@ -59,18 +59,19 @@ The workspace tag, a column's, and a file's, a terminal's, a PDF's and an image's: -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -| Save Term Collapse Follow Del -| Term Save Mode Filter Collapse Del -| Term PdfSections PdfTint PdfFit Collapse Del -| Term Collapse Follow Del +| Find Grep Newcol Help Exit +| New Term Joincol Delcol +| Save Undo Del +| Del Term +| PdfSections PdfTint PdfFit Del +| Del - 1. Press : here: the keyboard goes to this pane's tag, on `Save`. - Press A, type a space and Help, press Esc, then Tab: `Help` + 1. Press : twice here: the keyboard goes to this pane's tag, after + its words. Press i, type Help, press Esc, then Tab: `Help` runs and its list takes the keyboard. Esc brings you back. - 2. Click `Collapse` in this tag: the pane folds to its tag. Click - it again. + 2. A tag shows the words that act now; its kind's others run from + :, listed for this pane. Press :, type Coll, press Enter: the + pane folds to its tag. The same again unfolds it. 3. Drag the box left of the tag down a few rows, then back. -> Guide: Tags diff --git a/dev/Host.zig b/dev/Host.zig index 52205518..0a175754 100644 --- a/dev/Host.zig +++ b/dev/Host.zig @@ -54,6 +54,9 @@ pub const VTable = struct { /// startDetached. Null once it runs, else why not. start: ?*const fn (ctx: ?*anyopaque, line: []const u8, why: []u8) ?[]const u8 = null, lsp: ?*const fn (ctx: ?*anyopaque, req: Lsp.Request) void = null, + /// Start the language server of the file `pane` opened, and tell it of + /// the file, on a worker (Lsp.open). + lsp_open: ?*const fn (ctx: ?*anyopaque, pane: pardes.Pane.Id) void = null, pipe: ?*const fn (ctx: ?*anyopaque, id: u32) void = null, /// Start the streaming search of this generation on a worker /// (pardes.Stream.start); absent, it runs on the loop. diff --git a/dev/Inbox.zig b/dev/Inbox.zig index bc7c7e8a..a0b9494d 100644 --- a/dev/Inbox.zig +++ b/dev/Inbox.zig @@ -67,6 +67,9 @@ gpa: std.mem.Allocator, lsp_allocator: std.mem.Allocator, /// The query in flight; the UI thread's alone (spawnLsp, teardown). lsp_task: ?Lsp.Task = null, +/// The server start a file's opening asked for (openLsp); the UI +/// thread's alone. +lsp_opener: Lsp.Opener = .{}, /// The `|` pipes' and the addons' jobs' and draws' workers in flight, each /// posting its answer here (`pushPipe`, `pushJob`); the loop's thread's /// alone: joined as their answers land (`land`), canceled at the end. @@ -290,6 +293,8 @@ pub fn deinit(q: *Inbox) void { // The workers in flight end first: what they still deliver is dropped. if (q.lsp_task) |*t| t.future.cancel(q.io); q.lsp_task = null; + if (q.lsp_opener.future) |*f| f.cancel(q.io); + q.lsp_opener.future = null; q.pipe_tasks.cancelAll(q.io); q.job_tasks.cancelAll(q.io); q.close(); @@ -343,6 +348,12 @@ pub fn startLsp(q: *Inbox, core: *pardes.Pardes, e: Lsp.Request) void { Lsp.start(q.io, q.lsp_allocator, core, &q.lsp_task, e, q, pushLspRows); } +/// The language server of the file `pane` opened started, on a worker of +/// its own (Lsp.open). +pub fn openLsp(q: *Inbox, core: *const pardes.Pardes, pane: pardes.Pane.Id) void { + Lsp.open(q.io, q.lsp_allocator, core, &q.lsp_opener, pane); +} + /// A worker's answer taken off the queue, to the core (whichever frontend /// took it), its worker joined: a language server's answer or status line, /// a pipe's, a search's rows, an addon's job or draw, a handover's end. diff --git a/dev/Lsp.zig b/dev/Lsp.zig index b799c9f6..d7638c83 100644 --- a/dev/Lsp.zig +++ b/dev/Lsp.zig @@ -138,6 +138,46 @@ pub fn start(io: std.Io, gpa: std.mem.Allocator, core: *pardes.Pardes, task: *?T task.* = .{ .id = req.id, .future = future }; } +/// The server start a file's opening asks for (`open`), one at a time: +/// `busy` while its worker runs. +pub const Opener = struct { + future: ?std.Io.Future(void) = null, + busy: std.atomic.Value(bool) = .init(false), +}; + +/// Pane `pane`'s file just opened: the server of its language started and +/// told of it (lsp_client.open) on a worker of its own, so its first query +/// finds both done (that query paid a spawn and a handshake, 2.5 s of zls's +/// over the comparison video's project). Not through `start`, whose cancel +/// of the query in flight waits out a handshake on the loop, nor `work`, +/// whose fixed region is the queries'. One at a time: a file opened while +/// one is under way is let go, and told at its first query (syncDoc); one +/// done is awaited (at once) before the next. +pub fn open(io: std.Io, gpa: std.mem.Allocator, core: *const pardes.Pardes, opener: *Opener, pane: pardes.Pane.Id) void { + if (opener.busy.load(.acquire)) return; + if (opener.future) |*f| f.await(io); + opener.future = null; + const p = core.panes[pane.index()] orelse return; + const f = p.file orelse return; + if (!pardes.lsp.speaks(f.path)) return; + const job = snapshot(gpa, core, .{ .id = 0, .kind = .definition, .pane = pane, .offset = 0, .arg = "" }) catch return; + opener.busy.store(true, .release); + opener.future = io.concurrent(tell, .{ io, gpa, job, &opener.busy }) catch { + opener.busy.store(false, .release); + return job.free(gpa); + }; +} + +fn tell(io: std.Io, gpa: std.mem.Allocator, job: *Job, busy: *std.atomic.Value(bool)) void { + defer busy.store(false, .release); + defer job.free(gpa); + var arena: std.heap.ArenaAllocator = .init(gpa); + defer arena.deinit(); + // A server that failed to start says so itself (`ensure`); one not + // started for want of memory is started by the file's first query. + pardes.lsp.open(io, arena.allocator(), .{ .kind = job.kind, .path = job.path, .source = job.source, .offset = 0, .root = job.root }) catch {}; +} + pub fn work(io: std.Io, gpa: std.mem.Allocator, job: *Job, ctx: ?*anyopaque, deliver: Deliver) void { defer job.free(gpa); // The query's memory is the fixed region memory.zig reserved at diff --git a/dev/gui/gui.zig b/dev/gui/gui.zig index f572a7ce..ccf9387b 100644 --- a/dev/gui/gui.zig +++ b/dev/gui/gui.zig @@ -2650,6 +2650,7 @@ const Shell = struct { .open_link = openLink, .start = host_io.startDetached, .lsp = lsp, + .lsp_open = lspOpen, .pipe = pipe, .search = search, .hand_over = handOver, @@ -3225,6 +3226,13 @@ fn lsp(ctx: ?*anyopaque, req: host_io.Lsp.Request) void { s.core.reportError(req.pane, "lsp", error.WorkersUnavailable); } +/// Not held for `threads_ok`: the boot's file and a restored session's are +/// opened before `start`. +fn lspOpen(ctx: ?*anyopaque, pane: pardes.Pane.Id) void { + const s = shellOf(ctx); + s.queue.openLsp(s.core, pane); +} + fn pipe(ctx: ?*anyopaque, id: u32) void { const s = shellOf(ctx); if (s.threads_ok) return selection_pipe.start(s.io, s.gpa, s.core, &s.queue.pipe_tasks, id, s.queue, Queue.pushPipe); @@ -6342,8 +6350,9 @@ test "tagline pointer mapping retains physical grips and carries logical text co try std.testing.expectEqual(body_y, body.row); try std.testing.expect(body.tag_hit == null); - // The workspace tag's text starts TAG_TEXT_INSET cells in, as a pane's. - const x_top = @as(f32, @floatFromInt(pardes.TAG_TEXT_INSET)) * body_w + 3.5 * tag_w; + // The window's tag's text starts where its words do, at the window + // row's right end (UX K'2). + const x_top = @as(f32, @floatFromInt(pardes.tagline.windowRow(core).words)) * body_w + 3.5 * tag_w; const topbar = gridCellAtDimensions(&g, x_top, 0.5 * body_h, body_w, body_h, tag_w); try std.testing.expectEqual(pixelCell(x_top, 10), topbar.col); try std.testing.expectEqual(@as(u16, 3), topbar.tag_hit.?.col); diff --git a/dev/lsp/lsp_client.zig b/dev/lsp/lsp_client.zig index a53ff57f..d90f655a 100644 --- a/dev/lsp/lsp_client.zig +++ b/dev/lsp/lsp_client.zig @@ -6,9 +6,10 @@ //! //! THE PROCESS LIFECYCLE IS THE DESIGN. `lsp.query` is a synchronous call on a //! worker thread, and a language server costs tens of milliseconds to start -//! and MINUTES to index a large workspace. So a server is spawned lazily on -//! the first query that needs it, kept for the life of the editor, and each -//! spec gets at most one — `conns[i]` guards itself with an `Io.Mutex` +//! and MINUTES to index a large workspace. So a server is spawned when a +//! file of its language opens in a pane (`open`, on a worker of its own) or +//! by the first query that needs it, kept for the life of the editor, and +//! each spec gets at most one — `conns[i]` guards itself with an `Io.Mutex` //! because a canceled query can still be inside `run` when the next arrives. //! Every wait is an `Io` cancelation point: a shell cancels the worker of a //! query it no longer wants, and the worker stops there. @@ -40,7 +41,8 @@ //! (ignoring SIGPIPE process-wide would be inherited by every pty shell we //! fork and would change what `yes | head` does in a pane), //! - a binary missing from PATH costs one cached probe, disables the spec -//! for the session, and says so ONCE on the message row. +//! for the session, and says so ONCE on the message row (a query's; a +//! file opened says nothing). //! //! Position encoding is negotiated to utf-8 and the SERVER'S ANSWER is //! believed, not our request; the utf-16 conversion is implemented in both @@ -50,6 +52,7 @@ const std = @import("std"); const builtin = @import("builtin"); const libc = std.c; const lsp = @import("core").lsp; +const SymbolKind = @import("core").syntax.SymbolKind; const Scip = @import("Scip.zig"); extern "c" fn execv(path: [*:0]const u8, argv: [*:null]const ?[*:0]const u8) c_int; @@ -478,8 +481,8 @@ fn status(io: std.Io, path: []const u8, out: *std.Io.Writer) !void { const thier = c.caps.type_hier; c.mu.unlock(io); const env_v = if (libc.getenv(s.env)) |v| std.mem.span(v) else null; - // Never spawned is not off: the first query of its files starts it. - try out.print(" {s:<28} {s}", .{ s.name, if (state == .off) "not started yet (its first query starts it)" else @tagName(state) }); + // Never spawned is not off: a file of its opened starts it. + try out.print(" {s:<28} {s}", .{ s.name, if (state == .off) "not started yet (a file of its opened starts it)" else @tagName(state) }); if (state == .ready or state == .starting) { try out.print(" root {s} {s}", .{ root, @tagName(enc) }); if (pull) try out.print(" pull-diags", .{}); @@ -757,6 +760,36 @@ pub fn query(io: std.Io, arena: std.mem.Allocator, asked: lsp.Req, out: *std.Io. try out.writeAll(scratch.buffered()); } +/// A file opened in a pane (dev/Lsp.zig open): the server of its language +/// started as its first query would start it (`ensure`, which says +/// `starting` and `ready` on the message row) and told of the file +/// (didOpen), so that query finds both done. A server not installed is +/// disabled without a word: the file's first query says it is not found, +/// not every file opened. Nothing in the query log: none was asked. +/// PARDES_LSP_OPEN=off starts none (the process harnesses' default), and a +/// test binary starts none unless it says `on` (the behaviour harness's +/// language sessions, their servers the mock): no test starts a server of +/// this machine's by opening a file. +pub fn open(io: std.Io, arena: std.mem.Allocator, req: lsp.Req) Err!void { + const said = if (libc.getenv("PARDES_LSP_OPEN")) |v| std.mem.span(v) else ""; + if (std.mem.eql(u8, said, "off") or (builtin.is_test and !std.mem.eql(u8, said, "on"))) return; + const si = specFor(req.path) orelse return; + const c = &conns[si]; + try c.mu.lock(io); + defer c.mu.unlock(io); + if (c.state == .disabled) return; + var exe_buf: [4096:0]u8 = undefined; + if (!c.alive() and binOf(&specs[si], &exe_buf) == null) { + c.state = .disabled; + return; + } + var tr: Trace = .{}; + _ = try ensure(c, io, si, arena, req, &tr); + var uri: std.ArrayList(u8) = .empty; + try uriOf(&uri, arena, req.path); + try syncDoc(c, io, si, arena, uri.items, req.source); +} + fn traceOut(tr: *const Trace, req: lsp.Req, out: *std.Io.Writer, rows: usize, us: u64) std.Io.Writer.Error!void { if (req.kind != .explain) return; try out.print("lsp explain — the {s} query at byte {d} of {s}\n\n", .{ @@ -1002,7 +1035,11 @@ fn run(c: *Conn, io: std.Io, si: usize, arena: std.mem.Allocator, req: lsp.Req, .document_symbols => { const b = try docParams(arena, uri.items); const result = (try call(c, io, arena, "textDocument/documentSymbol", b.items, deadline)) orelse return; - try walkSymbols(&cx, c.caps.enc, uri.items, result, 0); + // Types, functions, fields, then the rest, each in the + // server's order (UX DESIGN N, the Symbols picker's). + var found: std.ArrayList(Symbol) = .empty; + try walkSymbols(arena, &found, uri.items, result, "", 0); + for (0..4) |group| for (found.items) |sym| if (sym.kind.group() == group) try emitRange(&cx, c.caps.enc, sym.uri, sym.range, sym.note); }, .workspace_symbols => { var b: std.ArrayList(u8) = .empty; @@ -1106,20 +1143,42 @@ fn locations(cx: *Cx, enc: Enc, result: std.json.Value) Err!void { } } -/// DocumentSymbol[] nests (`children`), SymbolInformation[] is flat. -fn walkSymbols(cx: *Cx, enc: Enc, uri: []const u8, node: std.json.Value, depth: u8) Err!void { +/// A symbol a server listed: its row's place and words, `t Shape.area`. +const Symbol = struct { kind: SymbolKind, uri: []const u8, range: ?std.json.Value, note: []const u8 }; + +/// DocumentSymbol[] nests (`children`), SymbolInformation[] is flat: each +/// its kind's mark and its name qualified by the ones it is in (the +/// nesting, or SymbolInformation's `containerName`), into `out`. +fn walkSymbols(arena: std.mem.Allocator, out: *std.ArrayList(Symbol), uri: []const u8, node: std.json.Value, qualifier: []const u8, depth: u8) Err!void { if (depth > 8) return; for (items(node)) |sym| { const name = str(get(sym, "name")) orelse continue; + const kind = symbolKind(num(get(sym, "kind")) orelse 0); + const container = if (qualifier.len > 0) qualifier else str(get(sym, "containerName")) orelse ""; + const qualified = if (container.len > 0) try std.fmt.allocPrint(arena, "{s}.{s}", .{ container, name }) else name; + const note = try std.fmt.allocPrint(arena, "{s} {s}", .{ kind.mark(), qualified }); if (get(get(sym, "location"), "range")) |r| { - try emitRange(cx, enc, str(get(get(sym, "location"), "uri")) orelse uri, r, name); + try out.append(arena, .{ .kind = kind, .uri = str(get(get(sym, "location"), "uri")) orelse uri, .range = r, .note = note }); } else { - try emitRange(cx, enc, uri, get(sym, "selectionRange") orelse get(sym, "range"), name); + try out.append(arena, .{ .kind = kind, .uri = uri, .range = get(sym, "selectionRange") orelse get(sym, "range"), .note = note }); } - if (get(sym, "children")) |kids| try walkSymbols(cx, enc, uri, kids, depth + 1); + if (get(sym, "children")) |kids| try walkSymbols(arena, out, uri, kids, qualified, depth + 1); } } +/// LSP's SymbolKind as the Symbols picker's (UX DESIGN N2). +fn symbolKind(lsp_kind: i64) SymbolKind { + return switch (lsp_kind) { + 5, 10, 11, 23, 26 => .type, + 6, 9, 12, 25 => .function, + 7, 8, 22 => .field, + 14 => .constant, + 13, 15...21, 24 => .variable, + 1...4 => .module, + else => .other, + }; +} + /// Pull when the server does (LSP 3.17), the push store otherwise. The store /// path waits briefly for a publish that postdates the didChange we just /// sent, so `]d` right after an edit sees the new truth, not the old one. @@ -3162,11 +3221,53 @@ test "a language with no server to start says so, not that it did not answer" { try std.testing.expectEqualStrings("@none language server for .py not found\n", out.buffered()); } +test "a file opened whose server is not installed disables it without a word, at every file's open; a query of it then says it is not found" { + const host_io = @import("../host_io.zig"); + const io = std.testing.io; + const si = specFor("/x/a.py") orelse return; + const c = &conns[si]; + const was_state = c.state; + defer c.state = was_state; + // A test binary's files start servers only where it says so. + const names = [_][*:0]const u8{ "PARDES_LSP_PY", "PARDES_LSP_OPEN" }; + var was_buf: [names.len][4096:0]u8 = undefined; + var was: [names.len]?[:0]const u8 = undefined; + for (names, &was, &was_buf) |name, *w, *b| w.* = if (libc.getenv(name)) |v| try std.fmt.bufPrintSentinel(b, "{s}", .{std.mem.span(v)}, 0) else null; + defer for (names, was) |name, w| { + _ = if (w) |v| host_io.Shell.setenv(name, v.ptr, 1) else host_io.testUnsetenv(name); + }; + _ = host_io.Shell.setenv("PARDES_LSP_PY", "/nonexistent/pyright-langserver", 1); + _ = host_io.Shell.setenv("PARDES_LSP_OPEN", "on", 1); + const Said = struct { + var n: usize = 0; + fn post(_: ?*anyopaque, _: []const u8) void { + n += 1; + } + }; + Said.n = 0; + // A word said before is never said twice in a row (`post`): forgotten. + sink_last_len[si] = 0; + setStatusSink(null, Said.post); + defer setStatusSink(null, null); + c.state = .off; + var arena: std.heap.ArenaAllocator = .init(std.testing.allocator); + defer arena.deinit(); + for ([_][]const u8{ "/x/a.py", "/x/b.py" }) |path| { + try open(io, arena.allocator(), .{ .kind = .definition, .path = path, .source = "", .offset = 0, .root = "/x" }); + try std.testing.expectEqual(State.disabled, c.state); + } + try std.testing.expectEqual(@as(usize, 0), Said.n); + var buf: [256]u8 = undefined; + var out: std.Io.Writer = .fixed(&buf); + try query(io, arena.allocator(), .{ .kind = .hover, .path = "/x/a.py", .source = "", .offset = 0 }, &out); + try std.testing.expectEqualStrings("@none language server for .py not found\n", out.buffered()); +} + test "Lspinfo before any query says a server is not started yet, not off" { var out: std.Io.Writer.Allocating = .init(std.testing.allocator); defer out.deinit(); try status(std.testing.io, "/x/notes.txt", &out.writer); - try std.testing.expect(std.mem.indexOf(u8, out.written(), "not started yet (its first query starts it)") != null); + try std.testing.expect(std.mem.indexOf(u8, out.written(), "not started yet (a file of its opened starts it)") != null); } test "a server that failed a moment ago is said to have failed, and when it is tried again, not to be missing" { diff --git a/dev/tui/tui.zig b/dev/tui/tui.zig index 835fda6d..8cb06b05 100644 --- a/dev/tui/tui.zig +++ b/dev/tui/tui.zig @@ -1328,6 +1328,7 @@ const Shell = struct { .open_link = openLink, .start = host_io.startDetached, .lsp = lsp, + .lsp_open = lspOpen, .pipe = pipe, .search = search, .job = job, @@ -2047,6 +2048,13 @@ const Shell = struct { s.core.reportError(req.pane, "lsp", error.WorkersUnavailable); } + /// Not held for `threads_ok`: the boot's file and a restored + /// session's are opened before `start`. + fn lspOpen(ctx: ?*anyopaque, pane: pardes.Pane.Id) void { + const s = of(ctx); + s.ptys.queue.openLsp(s.core, pane); + } + fn pipe(ctx: ?*anyopaque, id: u32) void { const s = of(ctx); if (!s.threads_ok) { @@ -3353,13 +3361,14 @@ test "a terminal client's view, opened from a window's, wraps a tag at its own w if (region.kind != .tag) continue; for (region.rect.y..region.rect.y + region.rect.h) |y| { for (s.cells[y * s.cols ..][region.rect.x..][0..region.rect.w]) |cell| try shown.appendSlice(gpa, if (cell.len == 0) " " else cell.grapheme()); - try shown.append(gpa, '\n'); } } // Each of its words shows: wrapped at its rows' width, none lost - // between a row cut short and the next. + // between a row cut short and the next (its rows read on, as a word + // the wrap cuts runs on to the next). + errdefer std.debug.print("{s}\n", .{shown.items}); for (&words) |*w| if (std.mem.indexOf(u8, shown.items, w) == null) { - std.debug.print("{s} is not shown in the tag:\n{s}\n", .{ w, shown.items }); + std.debug.print("{s} is not shown in the tag\n", .{w}); return error.TestUnexpectedResult; }; } diff --git a/docs/typ/README b/docs/typ/README index 88f24343..0f82ae98 100644 --- a/docs/typ/README +++ b/docs/typ/README @@ -65,8 +65,8 @@ new function instead. chord(..bs) a chord: the first button held, each next clicked. #chord("B2", "B1") #chord("B1", "B2", "B3") tag(words, path:) - a whole default tagline; words must be a default tag. - #tag("Save Term Collapse Del", path: "/home/me/notes.txt") + a whole tagline at rest; words must be a tag's own. + #tag("Save Undo Del", path: "/home/me/notes.txt") addr(a) a look address. #addr("file:12:5") file(p) a 9P path. #file("pane/N/addr") cmd(c) a shell line, as a block. #cmd("echo Save > $m/pane/$n/ctl") diff --git a/docs/typ/builtins-gui.json b/docs/typ/builtins-gui.json index 7897295d..02981259 100644 --- a/docs/typ/builtins-gui.json +++ b/docs/typ/builtins-gui.json @@ -9,7 +9,7 @@ {"name": "Callers", "leader": "SPC l c", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "List the functions that call the one under the cursor, one level up; a single one is a jump.", "text": "List the functions that call the one under the cursor, one level up; a single one is a jump."}, {"name": "Callstack", "leader": "SPC l b", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Show the callers of the function under the cursor as a tree, outermost first, in a +Callstack.", "text": "Show the callers of the function under the cursor as a tree, outermost first, in a +Callstack.\nEach caller with its place to open and its signature, the line of each call under it; callers named for tests after the rest, a recursion marked `↻`. CallstackDepth sets how many levels (8 by default); a deeper tree says where to go on from. `g c` does the same."}, {"name": "CallstackDepth", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": null, "doc": "Caller levels collected by Callstack, 1 through 64; default 8.", "text": "Caller levels collected by Callstack, 1 through 64; default 8. Bare, it says the current limit."}, - {"name": "Changelog", "leader": "SPC h c", "also": ["topbar"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Show this build's version and what changed to reach it, in a +Changelog.", "text": "Show this build's version and what changed to reach it, in a +Changelog."}, + {"name": "Changelog", "leader": "SPC h c", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Show this build's version and what changed to reach it, in a +Changelog.", "text": "Show this build's version and what changed to reach it, in a +Changelog."}, {"name": "Changes", "leader": "SPC t c", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Draw jj's changes to this file on its own pane: a lane each, and what they took away.", "text": "Draw jj's changes to this file on its own pane: a lane each, and what they took away.\n`Changes <revset>` pins the revset's changes that touched the file on its pane, or a revision's (`notes.md@main`), and shows them in every view of it: `Changes @-::@`, `Changes trunk()..@`. One set a pane: a later Changes or Compare replaces it. Bare: hidden, or shown again; with none pinned yet, `@`.\nEach change gets a lane after the line number. What the file no longer has stands where it stood as lines of the pane's text with no number, read-only: the cursor, a selection, a search, B2 and B3 work there, and an edit that touches one is refused. After a change's last line comes its description, `id title author age`, its lane ending in an arrow at it; a long one wraps. `] g` and `[ g` step through the changes; B3 on a description's id opens that change's patch at that line (`Diff <id> <path>:<line>`)."}, {"name": "Churn", "leader": "SPC t u", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Show how many changes touched each declaration of this file, as a heat lane.", "text": "Show how many changes touched each declaration of this file, as a heat lane.\n`Churn <window>`: a revset, or a span of time back from now (`3d`, `2w`, `6m`, `1y`). In this view a cell after the line number, from the line numbers' grey to the theme's red on a log scale, and a strip by the scroll thumb. Bare: hidden in this view or shown again; with none counted yet, the file's whole history."}, {"name": "ClipPaste", "leader": "SPC p", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Paste the system clipboard after the selection.", "text": "Paste the system clipboard after the selection."}, @@ -20,9 +20,9 @@ {"name": "CodeAction", "leader": "SPC l a", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "List the language server's code actions for the cursor, to apply one.", "text": "List the language server's code actions for the cursor, to apply one.\nTyped where jumps walk, they are a picker in the pane's tag, the one under the cursor shown as its edit, applied by Enter or its digit; else a +Lsp lists them."}, {"name": "Collapse", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Fold this pane to its tag, or give it its share of the column again.", "text": "Fold this pane to its tag, or give it its share of the column again."}, {"name": "Compare", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Draw the file's difference between each two jj revisions as one change, as Changes draws one.", "text": "Draw the file's difference between each two jj revisions as one change, as Changes draws one.\n`Compare <rev> <rev> [<rev> ...]`: two points or more in their order, each one revision (a commit or change id, a bookmark, `master@origin`, `@`): `Compare 9ef6312813 ea63317630 master@origin`. A pair is drawn as one change however many lie between its points; after its last line, its row: the two points, how many changes lie between them, their first and last days. One set a pane: a later Changes or Compare replaces it. Bare: as bare Changes."}, - {"name": "Config", "leader": "SPC f c", "also": ["topbar"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Open the startup file, `init` in the configuration directory, in a pane.", "text": "Open the startup file, `init` in the configuration directory, in a pane.\nIts pane when it is open, else the file; not there yet, a pane of that name, which Save makes, its directory too."}, + {"name": "Config", "leader": "SPC f c", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Open the startup file, `init` in the configuration directory, in a pane.", "text": "Open the startup file, `init` in the configuration directory, in a pane.\nIts pane when it is open, else the file; not there yet, a pane of that name, which Save makes, its directory too."}, {"name": "CursorBlink", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": "on, off", "doc": "The cursor blinks, solid while typing, on or off.", "text": "The cursor blinks, solid while typing, on or off."}, - {"name": "Debug", "leader": "SPC t d", "also": ["topbar"], "arg": true, "scope": "root", "setting": true, "choices": "on, off", "doc": "A small box of frame statistics at the top right, on or off.", "text": "A small box of frame statistics at the top right, on or off."}, + {"name": "Debug", "leader": "SPC t d", "also": [], "arg": true, "scope": "root", "setting": true, "choices": "on, off", "doc": "A small box of frame statistics at the top right, on or off.", "text": "A small box of frame statistics at the top right, on or off."}, {"name": "Def", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Go to the definition of the symbol under the cursor.", "text": "Go to the definition of the symbol under the cursor.\nWith an argument (a 2-1 chord's selection), of that symbol, asked at its occurrence nearest the cursor. One answer is a jump; several open a list, the keyboard on its current row; none says so. `g d` does the same."}, {"name": "Del", "leader": "SPC d", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Close the pane.", "text": "Close the pane.\n`Del k` gives its rows to the pane above it, `Del j` to the one below, each falling back to the other side; bare, from the keyboard between two panes, it asks k or j on the pane's notice band. A docked pane's rows go back to the pane it answers for. Refused once while the pane holds unsaved text (listed in +Unsaved); Del again, nothing edited since, closes it."}, {"name": "DelAbove", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Close the pane, giving its rows to the pane above it, as `Del k` does.", "text": "Close the pane, giving its rows to the pane above it, as `Del k` does."}, @@ -32,7 +32,7 @@ {"name": "Diagnostics", "leader": "SPC l d", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "List this file's diagnostics in a +Search.", "text": "List this file's diagnostics in a +Search.\n`] d` and `[ d` step through them in the text, `] D` and `[ D` to the last and the first."}, {"name": "Diff", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Show a diff's hunks stacked in a +Diff, each under its place, as a diff viewer shows them.", "text": "Show a diff's hunks stacked in a +Diff, each under its place, as a diff viewer shows them.\nBare, on a diff (a .diff, a .patch, a +Pager holding one): its hunks stacked; on a +Diff: the diff itself, as text. `Diff <file>`: that .diff's or .patch's hunks. `Diff <hash>` (7 to 40 hex digits): `git show` of that commit, in its own `+Diff-<hash>`. `Diff <change> [path[:line]]` (a jj change id): its patch, its header and whole message on top, the cursor at that place. `Diff <from>..<to> [path[:line]]`: the difference between two points, the changes between them on top.\nEach hunk stands under its `path:line` and the declarations around it, a + or - before each line, the words a changed line changed tinted. `SPC j n` and `SPC j p` step through the hunks; B3 on a place opens it."}, {"name": "Down", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Move the keyboard to the pane below, or off a tag onto the pane under it.", "text": "Move the keyboard to the pane below, or off a tag onto the pane under it."}, - {"name": "Dump", "leader": "SPC s d", "also": ["topbar"], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "Write the session's panes and layout to the state file, for Restore.", "text": "Write the session's panes and layout to the state file, for Restore.\n`Dump export <path>` writes them to a file of their own instead (`~` the home directory). The workspace tag then holds a `Restore <path>` word that brings them back."}, + {"name": "Dump", "leader": "SPC s d", "also": [], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "Write the session's panes and layout to the state file, for Restore.", "text": "Write the session's panes and layout to the state file, for Restore.\n`Dump export <path>` writes them to a file of their own instead (`~` the home directory). The workspace tag then holds a `Restore <path>` word that brings them back."}, {"name": "DumpConfig", "leader": null, "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Show the settings in effect in a +DumpConfig, as lines the startup file takes.", "text": "Show the settings in effect in a +DumpConfig, as lines the startup file takes.\nThe startup file's path with them; a line run there is that setting."}, {"name": "DumpDir", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": null, "doc": "The directory of the state file, where Dump writes and Recent is kept.", "text": "The directory of the state file, where Dump writes and Recent is kept. A relative Restore name is looked for there too; bare, the default."}, {"name": "DumpThemes", "leader": null, "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Write the bundled themes into the configuration directory's themes, to edit.", "text": "Write the bundled themes into the configuration directory's themes, to edit.\nThemeFile loads one back."}, @@ -43,18 +43,18 @@ {"name": "Find", "leader": "SPC f f", "also": ["topbar"], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "List the files below this pane's directory whose names match its argument.", "text": "List the files below this pane's directory whose names match its argument.\nA query pane under this pane, its line 1 `Find <name>`, the files under it by a fuzzy match of their names: with a word, listed, the keyboard left where it was; bare (`SPC f f`), typed into. Enter or B3 on a row opens that file. A script's Find that finds nothing fails, `not found`."}, {"name": "Follow", "leader": "SPC c f", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Show one text across a chain of panes as consecutive pages, scrolled as one.", "text": "Show one text across a chain of panes as consecutive pages, scrolled as one.\nAs Emacs's follow-mode: each page goes on where the one before ends. Each Follow adds a page, a Zerox of the text, at the end of the column right of the chain's last, or in a new column there; its tag has Unfollow."}, {"name": "Font", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": null, "doc": "The body font, by name or path, and its size after a colon: `Font Mono:14`.", "text": "The body font, by name or path, and its size after a colon: `Font Mono:14`. Fonts lists them."}, - {"name": "Fonts", "leader": "SPC t f", "also": ["topbar"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "List this machine's fonts in a +Fonts, each a `Font <name>` line to run.", "text": "List this machine's fonts in a +Fonts, each a `Font <name>` line to run."}, + {"name": "Fonts", "leader": "SPC t f", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "List this machine's fonts in a +Fonts, each a `Font <name>` line to run.", "text": "List this machine's fonts in a +Fonts, each a `Font <name>` line to run."}, {"name": "Forward", "leader": "SPC j i", "also": ["C-i"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Go one step forward again in the jump history, up to where Back started.", "text": "Go one step forward again in the jump history, up to where Back started."}, {"name": "Get", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Read this pane's file again from disk; refused once over unsaved edits, as Del is.", "text": "Read this pane's file again from disk; refused once over unsaved edits, as Del is.\n`Get <file>` loads that file into the pane instead, the pane taking its name. In a directory's pane, it reads the directory again."}, {"name": "Grep", "leader": "SPC f g", "also": ["topbar"], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "List the lines of the files below this pane's directory that hold its argument.", "text": "List the lines of the files below this pane's directory that hold its argument.\nThe text is matched as it is, not as a pattern, in a query pane under this pane, its line 1 `Grep <text>`: with a word, listed, the keyboard left where it was; bare (`SPC f g`), typed into. Past 2000 lines it stops, and More goes on. A script's Grep that finds nothing fails, `not found`."}, {"name": "GripWidth", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": null, "doc": "The grip and scrollbar width, as a percent of the theme's rail.", "text": "The grip and scrollbar width, as a percent of the theme's rail."}, {"name": "Help", "leader": "SPC ?", "also": ["topbar"], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "Show every builtin with its keys and documentation, or one builtin's alone.", "text": "Show every builtin with its keys and documentation, or one builtin's alone.\n`Help <name>`: that builtin alone, its keys spelled out, what it acts on and its line for a shell (`Help Diff`); a setting or an addon's word the same. `Help <keys>`: the builtins under SPC and those keys (`Help l`, as `SPC l ?` shows them). Each fills the one +Help: a second Help replaces its text."}, - {"name": "History", "leader": "SPC f h", "also": ["topbar"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "List the state file's dumps, newest first, each with the Restore that brings it back.", "text": "List the state file's dumps, newest first, each with the Restore that brings it back.\nThose Dump made and those every session's end left, in a +History: each a `Restore <label>` line, its date, size and pane count, the panes' names indented under it. B2 on the Restore, or a Look at its line, is that Restore."}, + {"name": "History", "leader": "SPC f h", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "List the state file's dumps, newest first, each with the Restore that brings it back.", "text": "List the state file's dumps, newest first, each with the Restore that brings it back.\nThose Dump made and those every session's end left, in a +History: each a `Restore <label>` line, its date, size and pane count, the panes' names indented under it. B2 on the Restore, or a Look at its line, is that Restore."}, {"name": "Hover", "leader": "SPC l k", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Ask the language server about the symbol under the cursor, its answer in a +Hover.", "text": "Ask the language server about the symbol under the cursor, its answer in a +Hover."}, {"name": "InactiveDim", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": null, "doc": "Fade the unfocused panes' text by a percentage, 0 through 100, 0 off.", "text": "Fade the unfocused panes' text by a percentage, 0 through 100, 0 off."}, {"name": "Incl", "leader": null, "also": [], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "Add directories where a Look tries a name it finds nowhere else (`stdio.h`, `<foo.h>`).", "text": "Add directories where a Look tries a name it finds nowhere else (`stdio.h`, `<foo.h>`).\n`Incl <dir> ...` adds them, each absolute or from `~`; bare, it lists them; `Incl -` empties the list. The list is the session's."}, {"name": "Index", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Run the file's language indexer at its project root, writing its index.scip.", "text": "Run the file's language indexer at its project root, writing its index.scip.\nThe language words ask the nearest index.scip above a file first, and its language server only when the index has nothing to say; an index older than the file still answers, and says so once."}, - {"name": "Joincol", "leader": "SPC c j", "also": ["topbar"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Fold the keyboard's column into the one on its right, keeping its panes.", "text": "Fold the keyboard's column into the one on its right, keeping its panes.\nRefused for the last column, and where the joined column could not give each pane its tag and 2 rows."}, + {"name": "Joincol", "leader": "SPC c j", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Fold the keyboard's column into the one on its right, keeping its panes.", "text": "Fold the keyboard's column into the one on its right, keeping its panes.\nRefused for the last column, and where the joined column could not give each pane its tag and 2 rows."}, {"name": "JumpTrail", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": "on, off", "doc": "A jump of the cursor leaves a short trail that fades, on or off.", "text": "A jump of the cursor leaves a short trail that fades, on or off."}, {"name": "Jumplist", "leader": "SPC j l", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "List the places jumped from in a +Jumps, each a place to go.", "text": "List the places jumped from in a +Jumps, each a place to go."}, {"name": "Jumps", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": "walk, new-pane", "doc": "A jump steps its pane or that pane's reader (walk), or opens a pane for each file (new-pane).", "text": "A jump steps its pane or that pane's reader (walk), or opens a pane for each file (new-pane)."}, @@ -108,10 +108,10 @@ {"name": "Term", "leader": "SPC n t", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Open a terminal below this pane, in its directory, raw: its keys the shell's at once.", "text": "Open a terminal below this pane, in its directory, raw: its keys the shell's at once.\n`Term fish` runs that shell instead of the Shell setting's, as a terminal's own tag word `Term+fish` says; a shell that is not there is said. A directory that is not there makes no terminal."}, {"name": "Theme", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": null, "doc": "Switch to the theme named: `Theme atelier`.", "text": "Switch to the theme named: `Theme atelier`. Themes lists them, NextColor steps through them."}, {"name": "ThemeFile", "leader": null, "also": [], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "Load a theme from a .zon file: `ThemeFile ~/themes/mine.zon`.", "text": "Load a theme from a .zon file: `ThemeFile ~/themes/mine.zon`.\nDumpThemes writes the bundled ones out to start from."}, - {"name": "Themes", "leader": "SPC t t", "also": ["topbar"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "List the bundled themes in a +Themes, each a `Theme <name>` line to run.", "text": "List the bundled themes in a +Themes, each a `Theme <name>` line to run."}, + {"name": "Themes", "leader": "SPC t t", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "List the bundled themes in a +Themes, each a `Theme <name>` line to run.", "text": "List the bundled themes in a +Themes, each a `Theme <name>` line to run."}, {"name": "Togglettymode", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Switch this terminal between raw mode, its keys the program's, and normal mode.", "text": "Switch this terminal between raw mode, its keys the program's, and normal mode."}, {"name": "TreeContext", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Show, at the pane's head, the declarations its top row is in.", "text": "Show, at the pane's head, the declarations its top row is in.\n`TreeContext on` or `off` sets it; bare, it flips. Only a source file the parser knows has them."}, - {"name": "Tutor", "leader": "SPC h t", "also": ["topbar"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Open the tutor, a document to work through.", "text": "Open the tutor, a document to work through."}, + {"name": "Tutor", "leader": "SPC h t", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Open the tutor, a document to work through.", "text": "Open the tutor, a document to work through."}, {"name": "Undo", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Step the pane's text back one edit.", "text": "Step the pane's text back one edit.\nWith no step left, it says so and changes nothing (a ctl write of it still succeeds, as acme's Undo is silent there). A file keeps 256 steps."}, {"name": "Undock", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Undock a pane from the pane it answers for: it stays where it is, a pane of its own.", "text": "Undock a pane from the pane it answers for: it stays where it is, a pane of its own.\nThe next search from that pane opens another under it."}, {"name": "Unfollow", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Take this pane out of its Follow chain.", "text": "Take this pane out of its Follow chain.\nIt stays, a Zerox twin with the scroll it has, and the chain closes up behind it."}, diff --git a/docs/typ/builtins-tui.json b/docs/typ/builtins-tui.json index 91757231..e73396ae 100644 --- a/docs/typ/builtins-tui.json +++ b/docs/typ/builtins-tui.json @@ -9,7 +9,7 @@ {"name": "Callers", "leader": "SPC l c", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "List the functions that call the one under the cursor, one level up; a single one is a jump.", "text": "List the functions that call the one under the cursor, one level up; a single one is a jump."}, {"name": "Callstack", "leader": "SPC l b", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Show the callers of the function under the cursor as a tree, outermost first, in a +Callstack.", "text": "Show the callers of the function under the cursor as a tree, outermost first, in a +Callstack.\nEach caller with its place to open and its signature, the line of each call under it; callers named for tests after the rest, a recursion marked `↻`. CallstackDepth sets how many levels (8 by default); a deeper tree says where to go on from. `g c` does the same."}, {"name": "CallstackDepth", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": null, "doc": "Caller levels collected by Callstack, 1 through 64; default 8.", "text": "Caller levels collected by Callstack, 1 through 64; default 8. Bare, it says the current limit."}, - {"name": "Changelog", "leader": "SPC h c", "also": ["topbar"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Show this build's version and what changed to reach it, in a +Changelog.", "text": "Show this build's version and what changed to reach it, in a +Changelog."}, + {"name": "Changelog", "leader": "SPC h c", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Show this build's version and what changed to reach it, in a +Changelog.", "text": "Show this build's version and what changed to reach it, in a +Changelog."}, {"name": "Changes", "leader": "SPC t c", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Draw jj's changes to this file on its own pane: a lane each, and what they took away.", "text": "Draw jj's changes to this file on its own pane: a lane each, and what they took away.\n`Changes <revset>` pins the revset's changes that touched the file on its pane, or a revision's (`notes.md@main`), and shows them in every view of it: `Changes @-::@`, `Changes trunk()..@`. One set a pane: a later Changes or Compare replaces it. Bare: hidden, or shown again; with none pinned yet, `@`.\nEach change gets a lane after the line number. What the file no longer has stands where it stood as lines of the pane's text with no number, read-only: the cursor, a selection, a search, B2 and B3 work there, and an edit that touches one is refused. After a change's last line comes its description, `id title author age`, its lane ending in an arrow at it; a long one wraps. `] g` and `[ g` step through the changes; B3 on a description's id opens that change's patch at that line (`Diff <id> <path>:<line>`)."}, {"name": "Churn", "leader": "SPC t u", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Show how many changes touched each declaration of this file, as a heat lane.", "text": "Show how many changes touched each declaration of this file, as a heat lane.\n`Churn <window>`: a revset, or a span of time back from now (`3d`, `2w`, `6m`, `1y`). In this view a cell after the line number, from the line numbers' grey to the theme's red on a log scale, and a strip by the scroll thumb. Bare: hidden in this view or shown again; with none counted yet, the file's whole history."}, {"name": "ClipPaste", "leader": "SPC p", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Paste the system clipboard after the selection.", "text": "Paste the system clipboard after the selection."}, @@ -20,8 +20,8 @@ {"name": "CodeAction", "leader": "SPC l a", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "List the language server's code actions for the cursor, to apply one.", "text": "List the language server's code actions for the cursor, to apply one.\nTyped where jumps walk, they are a picker in the pane's tag, the one under the cursor shown as its edit, applied by Enter or its digit; else a +Lsp lists them."}, {"name": "Collapse", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Fold this pane to its tag, or give it its share of the column again.", "text": "Fold this pane to its tag, or give it its share of the column again."}, {"name": "Compare", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Draw the file's difference between each two jj revisions as one change, as Changes draws one.", "text": "Draw the file's difference between each two jj revisions as one change, as Changes draws one.\n`Compare <rev> <rev> [<rev> ...]`: two points or more in their order, each one revision (a commit or change id, a bookmark, `master@origin`, `@`): `Compare 9ef6312813 ea63317630 master@origin`. A pair is drawn as one change however many lie between its points; after its last line, its row: the two points, how many changes lie between them, their first and last days. One set a pane: a later Changes or Compare replaces it. Bare: as bare Changes."}, - {"name": "Config", "leader": "SPC f c", "also": ["topbar"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Open the startup file, `init` in the configuration directory, in a pane.", "text": "Open the startup file, `init` in the configuration directory, in a pane.\nIts pane when it is open, else the file; not there yet, a pane of that name, which Save makes, its directory too."}, - {"name": "Debug", "leader": "SPC t d", "also": ["topbar"], "arg": true, "scope": "root", "setting": true, "choices": "on, off", "doc": "A small box of frame statistics at the top right, on or off.", "text": "A small box of frame statistics at the top right, on or off."}, + {"name": "Config", "leader": "SPC f c", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Open the startup file, `init` in the configuration directory, in a pane.", "text": "Open the startup file, `init` in the configuration directory, in a pane.\nIts pane when it is open, else the file; not there yet, a pane of that name, which Save makes, its directory too."}, + {"name": "Debug", "leader": "SPC t d", "also": [], "arg": true, "scope": "root", "setting": true, "choices": "on, off", "doc": "A small box of frame statistics at the top right, on or off.", "text": "A small box of frame statistics at the top right, on or off."}, {"name": "Def", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Go to the definition of the symbol under the cursor.", "text": "Go to the definition of the symbol under the cursor.\nWith an argument (a 2-1 chord's selection), of that symbol, asked at its occurrence nearest the cursor. One answer is a jump; several open a list, the keyboard on its current row; none says so. `g d` does the same."}, {"name": "Del", "leader": "SPC d", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Close the pane.", "text": "Close the pane.\n`Del k` gives its rows to the pane above it, `Del j` to the one below, each falling back to the other side; bare, from the keyboard between two panes, it asks k or j on the pane's notice band. A docked pane's rows go back to the pane it answers for. Refused once while the pane holds unsaved text (listed in +Unsaved); Del again, nothing edited since, closes it."}, {"name": "DelAbove", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Close the pane, giving its rows to the pane above it, as `Del k` does.", "text": "Close the pane, giving its rows to the pane above it, as `Del k` does."}, @@ -31,7 +31,7 @@ {"name": "Diagnostics", "leader": "SPC l d", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "List this file's diagnostics in a +Search.", "text": "List this file's diagnostics in a +Search.\n`] d` and `[ d` step through them in the text, `] D` and `[ D` to the last and the first."}, {"name": "Diff", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Show a diff's hunks stacked in a +Diff, each under its place, as a diff viewer shows them.", "text": "Show a diff's hunks stacked in a +Diff, each under its place, as a diff viewer shows them.\nBare, on a diff (a .diff, a .patch, a +Pager holding one): its hunks stacked; on a +Diff: the diff itself, as text. `Diff <file>`: that .diff's or .patch's hunks. `Diff <hash>` (7 to 40 hex digits): `git show` of that commit, in its own `+Diff-<hash>`. `Diff <change> [path[:line]]` (a jj change id): its patch, its header and whole message on top, the cursor at that place. `Diff <from>..<to> [path[:line]]`: the difference between two points, the changes between them on top.\nEach hunk stands under its `path:line` and the declarations around it, a + or - before each line, the words a changed line changed tinted. `SPC j n` and `SPC j p` step through the hunks; B3 on a place opens it."}, {"name": "Down", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Move the keyboard to the pane below, or off a tag onto the pane under it.", "text": "Move the keyboard to the pane below, or off a tag onto the pane under it."}, - {"name": "Dump", "leader": "SPC s d", "also": ["topbar"], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "Write the session's panes and layout to the state file, for Restore.", "text": "Write the session's panes and layout to the state file, for Restore.\n`Dump export <path>` writes them to a file of their own instead (`~` the home directory). The workspace tag then holds a `Restore <path>` word that brings them back."}, + {"name": "Dump", "leader": "SPC s d", "also": [], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "Write the session's panes and layout to the state file, for Restore.", "text": "Write the session's panes and layout to the state file, for Restore.\n`Dump export <path>` writes them to a file of their own instead (`~` the home directory). The workspace tag then holds a `Restore <path>` word that brings them back."}, {"name": "DumpConfig", "leader": null, "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Show the settings in effect in a +DumpConfig, as lines the startup file takes.", "text": "Show the settings in effect in a +DumpConfig, as lines the startup file takes.\nThe startup file's path with them; a line run there is that setting."}, {"name": "DumpDir", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": null, "doc": "The directory of the state file, where Dump writes and Recent is kept.", "text": "The directory of the state file, where Dump writes and Recent is kept. A relative Restore name is looked for there too; bare, the default."}, {"name": "DumpThemes", "leader": null, "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Write the bundled themes into the configuration directory's themes, to edit.", "text": "Write the bundled themes into the configuration directory's themes, to edit.\nThemeFile loads one back."}, @@ -45,12 +45,12 @@ {"name": "Get", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Read this pane's file again from disk; refused once over unsaved edits, as Del is.", "text": "Read this pane's file again from disk; refused once over unsaved edits, as Del is.\n`Get <file>` loads that file into the pane instead, the pane taking its name. In a directory's pane, it reads the directory again."}, {"name": "Grep", "leader": "SPC f g", "also": ["topbar"], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "List the lines of the files below this pane's directory that hold its argument.", "text": "List the lines of the files below this pane's directory that hold its argument.\nThe text is matched as it is, not as a pattern, in a query pane under this pane, its line 1 `Grep <text>`: with a word, listed, the keyboard left where it was; bare (`SPC f g`), typed into. Past 2000 lines it stops, and More goes on. A script's Grep that finds nothing fails, `not found`."}, {"name": "Help", "leader": "SPC ?", "also": ["topbar"], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "Show every builtin with its keys and documentation, or one builtin's alone.", "text": "Show every builtin with its keys and documentation, or one builtin's alone.\n`Help <name>`: that builtin alone, its keys spelled out, what it acts on and its line for a shell (`Help Diff`); a setting or an addon's word the same. `Help <keys>`: the builtins under SPC and those keys (`Help l`, as `SPC l ?` shows them). Each fills the one +Help: a second Help replaces its text."}, - {"name": "History", "leader": "SPC f h", "also": ["topbar"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "List the state file's dumps, newest first, each with the Restore that brings it back.", "text": "List the state file's dumps, newest first, each with the Restore that brings it back.\nThose Dump made and those every session's end left, in a +History: each a `Restore <label>` line, its date, size and pane count, the panes' names indented under it. B2 on the Restore, or a Look at its line, is that Restore."}, + {"name": "History", "leader": "SPC f h", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "List the state file's dumps, newest first, each with the Restore that brings it back.", "text": "List the state file's dumps, newest first, each with the Restore that brings it back.\nThose Dump made and those every session's end left, in a +History: each a `Restore <label>` line, its date, size and pane count, the panes' names indented under it. B2 on the Restore, or a Look at its line, is that Restore."}, {"name": "Hover", "leader": "SPC l k", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Ask the language server about the symbol under the cursor, its answer in a +Hover.", "text": "Ask the language server about the symbol under the cursor, its answer in a +Hover."}, {"name": "InactiveDim", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": null, "doc": "Fade the unfocused panes' text by a percentage, 0 through 100, 0 off.", "text": "Fade the unfocused panes' text by a percentage, 0 through 100, 0 off."}, {"name": "Incl", "leader": null, "also": [], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "Add directories where a Look tries a name it finds nowhere else (`stdio.h`, `<foo.h>`).", "text": "Add directories where a Look tries a name it finds nowhere else (`stdio.h`, `<foo.h>`).\n`Incl <dir> ...` adds them, each absolute or from `~`; bare, it lists them; `Incl -` empties the list. The list is the session's."}, {"name": "Index", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Run the file's language indexer at its project root, writing its index.scip.", "text": "Run the file's language indexer at its project root, writing its index.scip.\nThe language words ask the nearest index.scip above a file first, and its language server only when the index has nothing to say; an index older than the file still answers, and says so once."}, - {"name": "Joincol", "leader": "SPC c j", "also": ["topbar"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Fold the keyboard's column into the one on its right, keeping its panes.", "text": "Fold the keyboard's column into the one on its right, keeping its panes.\nRefused for the last column, and where the joined column could not give each pane its tag and 2 rows."}, + {"name": "Joincol", "leader": "SPC c j", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Fold the keyboard's column into the one on its right, keeping its panes.", "text": "Fold the keyboard's column into the one on its right, keeping its panes.\nRefused for the last column, and where the joined column could not give each pane its tag and 2 rows."}, {"name": "JumpTrail", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": "on, off", "doc": "A jump of the cursor leaves a short trail that fades, on or off.", "text": "A jump of the cursor leaves a short trail that fades, on or off."}, {"name": "Jumplist", "leader": "SPC j l", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "List the places jumped from in a +Jumps, each a place to go.", "text": "List the places jumped from in a +Jumps, each a place to go."}, {"name": "Jumps", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": "walk, new-pane", "doc": "A jump steps its pane or that pane's reader (walk), or opens a pane for each file (new-pane).", "text": "A jump steps its pane or that pane's reader (walk), or opens a pane for each file (new-pane)."}, @@ -102,10 +102,10 @@ {"name": "Term", "leader": "SPC n t", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Open a terminal below this pane, in its directory, raw: its keys the shell's at once.", "text": "Open a terminal below this pane, in its directory, raw: its keys the shell's at once.\n`Term fish` runs that shell instead of the Shell setting's, as a terminal's own tag word `Term+fish` says; a shell that is not there is said. A directory that is not there makes no terminal."}, {"name": "Theme", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": null, "doc": "Switch to the theme named: `Theme atelier`.", "text": "Switch to the theme named: `Theme atelier`. Themes lists them, NextColor steps through them."}, {"name": "ThemeFile", "leader": null, "also": [], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "Load a theme from a .zon file: `ThemeFile ~/themes/mine.zon`.", "text": "Load a theme from a .zon file: `ThemeFile ~/themes/mine.zon`.\nDumpThemes writes the bundled ones out to start from."}, - {"name": "Themes", "leader": "SPC t t", "also": ["topbar"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "List the bundled themes in a +Themes, each a `Theme <name>` line to run.", "text": "List the bundled themes in a +Themes, each a `Theme <name>` line to run."}, + {"name": "Themes", "leader": "SPC t t", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "List the bundled themes in a +Themes, each a `Theme <name>` line to run.", "text": "List the bundled themes in a +Themes, each a `Theme <name>` line to run."}, {"name": "Togglettymode", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Switch this terminal between raw mode, its keys the program's, and normal mode.", "text": "Switch this terminal between raw mode, its keys the program's, and normal mode."}, {"name": "TreeContext", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Show, at the pane's head, the declarations its top row is in.", "text": "Show, at the pane's head, the declarations its top row is in.\n`TreeContext on` or `off` sets it; bare, it flips. Only a source file the parser knows has them."}, - {"name": "Tutor", "leader": "SPC h t", "also": ["topbar"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Open the tutor, a document to work through.", "text": "Open the tutor, a document to work through."}, + {"name": "Tutor", "leader": "SPC h t", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Open the tutor, a document to work through.", "text": "Open the tutor, a document to work through."}, {"name": "Undo", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Step the pane's text back one edit.", "text": "Step the pane's text back one edit.\nWith no step left, it says so and changes nothing (a ctl write of it still succeeds, as acme's Undo is silent there). A file keeps 256 steps."}, {"name": "Undock", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Undock a pane from the pane it answers for: it stays where it is, a pane of its own.", "text": "Undock a pane from the pane it answers for: it stays where it is, a pane of its own.\nThe next search from that pane opens another under it."}, {"name": "Unfollow", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Take this pane out of its Follow chain.", "text": "Take this pane out of its Follow chain.\nIt stays, a Zerox twin with the scroll it has, and the chain closes up behind it."}, diff --git a/docs/typ/cheatsheet.typ b/docs/typ/cheatsheet.typ index ba65fcad..2307db2c 100644 --- a/docs/typ/cheatsheet.typ +++ b/docs/typ/cheatsheet.typ @@ -24,11 +24,13 @@ Over a program that takes the mouse, Shift swaps: #btn("B1", shift: true) select One button: Alt/Option-click is #btn("B2"), Cmd/Super-click #btn("B3"), sweeps too (a terminal passes only Alt); Ctrl-click is a definition; a program that takes the mouse gets the plain click. == Tags -#tag("Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Fonts Config History Debug Exit") -#tag("New Term Find Grep Joincol Delcol") -#tag("Save Term Collapse Follow Del", path: "/home/me/notes.txt") -#tag("Term+bash Save Mode Filter Collapse Del", path: "/home/me/src") -#tag("Term PdfSections PdfTint PdfFit Collapse Del", path: "[1/12] … manual.pdf") +#tag("Find Grep Newcol Help Exit") +#tag("New Term Joincol Delcol") +#tag("Save Undo Del", path: "/home/me/notes.txt") +#tag("Del Term+bash", path: "/home/me/src") +#tag("PdfSections PdfTint PdfFit Del", path: "[1/12] … manual.pdf") +- A tag's first words act now (#word("Save") and #word("Undo") once the text changes); what you type goes after them. The rest of its kind's words run from `:`, listed for this pane, and typed anywhere. +- One column: its #word("New") #word("Term") sit at the window row's left; a second column brings the column tags' row. - #word("Del") over unsaved text refuses once; again discards. #word("Del") `j`: rows below. #key("SPC d") between two panes takes #key("k") (rows above) or #key("j") (below), asking only if you pause. - #word("Undo") #word("Redo") #word("Edit") #word("Mode") work typed anywhere. #doc("tags") @@ -116,7 +118,7 @@ Helix-style: motions *select*, then an edit acts on the selection. Mode box: bla == Terminals and commands - #key("Ctrl-b"): raw (`$`) or normal. #word("Mode") cycles raw, normal, insert. #word("Filter"), #word("Term+bash"). -- #btn("B2") on a non-builtin line runs it in a *command pane*: #tag("Kill Save Collapse Del", path: "/home/me/src (make) exit 0") +- #btn("B2") on a non-builtin line runs it in a *command pane*: #tag("Del", path: "/home/me/src (make) exit 0") - #word("Kill") `make` stops it; #word("Exit") quits. #word("Repl") `python`: `.py` clicks go to it. == Reviewing diffs diff --git a/docs/typ/guide.typ b/docs/typ/guide.typ index 66d3bb00..6d14c97c 100644 --- a/docs/typ/guide.typ +++ b/docs/typ/guide.typ @@ -103,13 +103,18 @@ the registers. #key("SPC y") and #key("SPC p") use the system clipboard. = Tags <tags> -#tag("Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Fonts Config History Debug Exit") -#tag("New Term Find Grep Joincol Delcol") -#tag("Save Term Collapse Follow Del", path: "/home/me/notes.txt") +#tag("Find Grep Newcol Help Exit") +#tag("New Term Joincol Delcol") +#tag("Save Undo Del", path: "/home/me/notes.txt") -A tag is text with undo. Type `make` into one and #word("Exec") it, or -delete the words you never use. Any word runs from any tag: #word("Exit") -in a pane's tag quits too. +A tag is text with undo. Its first words are the ones that act now, made +again as the pane changes: #word("Save") and #word("Undo") come with an +edit, #word("Keep") while a file reads. What you type goes after them and +stays: type `make` into one and #word("Exec") it. Any word runs from any +tag: #word("Exit") in a pane's tag quits too. The words a tag does not +show run from `:`, listed for this pane, and typed anywhere. With one +column its #word("New") #word("Term") sit at the window row's left; a +second column brings a row of column tags. #pairs( [#key(":")], [the keyboard to the tag, on #word("Save") the first time; #key("Tab") runs it, #key(":") comes back], @@ -136,7 +141,7 @@ A file's text and tag run in its directory: `make` from `README` at the project root is right, from `src/main.c` it is not. The keyboard stays where it was. The command pane's tag ends in `running`, then `exit N`: -#tag("Kill Save Collapse Del", path: "/home/me/src (make) exit 0") +#tag("Del", path: "/home/me/src (make) exit 0") Click into the command pane: #key("n") selects the next `file:line`, #key("Enter") opens it, and #key("n") from there goes on to the next error. @@ -207,7 +212,7 @@ Line 1's first word names what it searches, and editing the word changes it: [`Grep text`], [the lines of those files holding `text`, literally (#key("SPC f g"), #word("Grep")); past 2000 lines #word("More") goes on], [`Recent name`], [the files opened lately, in any window (#key("SPC f r"), #word("Recent"))], [`Panes name`], [the open panes, then the ones closed this session, `(closed)` and dimmer: #key("Enter") (or a #word("Look") at its `@pN`) brings one back where it was, its text with it (#key("SPC b b"), #word("Panes"))], - [`Symbols name`], [the text's declarations (#key("SPC s s"))], + [`Symbols name`], [the text's symbols, a row each: its kind's mark (`t` type, `f` function, `m` field, `c` const, `v` var, `n` module, `·` other), its name in the ones it is in (`Counts.lines`), what its line says after the name; types, functions, fields, then the rest, each in the text's order, and so while typed, the best match current (#key("SPC s s"))], [`All pat`], [every open pane's text, its rows under each pane (#key("SPC /"))], [`Refs`, `Def`, `Impl`, `Diagnostics`], [the language server's lists (#key("g r"), #key("g d"), #key("g i"), #key("SPC l d")): one answer is a jump, none a message; several open the list with the keyboard on its current row in normal mode (#keys("j", "k", "n", "N") step it, #key("Enter") lands, #key("Esc") goes back), the diagnostics' keeping it in the text for `]d`; their places in the text tinted as a `/`'s are], ) @@ -242,7 +247,7 @@ do nothing. = Terminals <terminals> -#tag("Term+bash Save Mode Filter Collapse Del", path: "/home/me/src") +#tag("Del Term+bash", path: "/home/me/src") - #word("Term") opens a terminal in the pane's directory, #key("Alt-n") one in the session's directory; #word("Term+bash") picks the shell. diff --git a/docs/typ/reference.typ b/docs/typ/reference.typ index 42b44fc9..126330fa 100644 --- a/docs/typ/reference.typ +++ b/docs/typ/reference.typ @@ -290,12 +290,13 @@ A line written to #file("exec") is #word("Exec"): runtime depth (1–64, default 8) for subsequent queries. #word("Callers") and #word("Callees") keep their short lists and single-result jumps. - #word("Diagnostics") and #word("Symbols") list the file's in `+Search`; + #word("Diagnostics") and #word("Symbols") list the file's in `+Search` + (its symbols marked and in the order #key("SPC s s") lists them); #word("Lspinfo") fills `+Lsp`, the pane its write answers, with the index the file asks (`scip: <path>, <size>, <documents>, <symbols>, indexed <when>, <n> files newer`, or `scip: no index.scip above <dir>; Index runs <indexer>`), which server serves it and its state (`not - started yet` until its first query starts it, `<server> failed recently; + started yet` until a file of its opened starts it, `<server> failed recently; retry in Ns` while it backs off), and what answered each query lately (`scip`, or the server); #word("Lspwhy") narrates the last query step by step (in `+Lsp`). The @@ -958,7 +959,10 @@ at 200, ending in `…`. Control characters become spaces. - #file("/kbdin") (write only), rio's: each rune written is a key typed at the pane with the keyboard, done before the write is answered, so a - script that writes keys then reads a file sees what they did. Control + script that writes keys then reads a file sees what they did. What they + start on a worker, as the keyboard's keys do, comes after the answer: a + picker's listing or search, a file's declarations, a language server's + answer; a script reads again until it is there. Control runes are Ctrl and a letter, but for Plan 9's keys (`keyboard.h`): `\n` or `\r` #key("Enter"), `\t` #key("Tab"), `\b` Backspace, `0x7f` Delete, `0x1b` #key("Esc"), and the diff --git a/docs/typ/setup.typ b/docs/typ/setup.typ index c9556c61..3ef67da5 100644 --- a/docs/typ/setup.typ +++ b/docs/typ/setup.typ @@ -119,8 +119,10 @@ script on that `PATH` is a word you can click. = Language servers <language-servers> -pardes starts a language server for a file it knows, searching `PATH` first -and then `~/.local/bin` (desktop launchers may leave it out of `PATH`): +pardes starts a language server when a file it knows opens in a pane (a +picker's preview starts none), searching `PATH` first and then +`~/.local/bin` (desktop launchers may leave it out of `PATH`), so the +file's first question finds it ready: #pairs( [`.zig`], [`zls` (`PARDES_LSP_ZIG`)], diff --git a/runtime/macos.zig b/runtime/macos.zig index 0e47fb02..afce23ee 100644 --- a/runtime/macos.zig +++ b/runtime/macos.zig @@ -1614,6 +1614,7 @@ const vtable: pardes.Host.VTable = .{ .open_link = openLink, .start = host_io.startDetached, .lsp = lspRequest, + .lsp_open = lspOpen, .pipe = pipeRequest, }; @@ -1626,6 +1627,11 @@ fn lspRequest(ctx: ?*anyopaque, req: host_io.Lsp.Request) void { st.inbox.startLsp(st.core, req); } +fn lspOpen(ctx: ?*anyopaque, pane: pardes.Pane.Id) void { + const st = hostState(ctx); + st.inbox.openLsp(st.core, pane); +} + fn pipeRequest(ctx: ?*anyopaque, id: u32) void { const st = hostState(ctx); selection_pipe.start(st.io, st.gpa, st.core, &st.pipe_tasks, id, &st.inbox, Inbox.pushPipe); diff --git a/test/behaviour/addons.zig b/test/behaviour/addons.zig index ce3c7b02..0b0555c2 100644 --- a/test/behaviour/addons.zig +++ b/test/behaviour/addons.zig @@ -371,3 +371,162 @@ test "addons: an image pane whose file changes on disk shows the new picture, un try std.testing.expectEqual(n, try s.focused()); try std.testing.expect(has(try s.read("/screen"), "\"src\":[0,0,3,1]")); } + +/// A tmp directory's real path, kept in the session's arena. +fn dirOf(s: *Session, tmp: *std.testing.TmpDir) ![]const u8 { + var buf: [4096]u8 = undefined; + return s.arena.allocator().dupe(u8, buf[0..try tmp.dir.realPath(std.testing.io, &buf)]); +} + +test "addons: a picker shows a file of an addon's kind through its kind in the pane it lands in, Esc puts that pane back as it was, and Enter lands as a Look does" { + var tmp = std.testing.tmpDir(.{}); + defer tmp.cleanup(); + // A work tree of its own: Find searches it, not the one the test runs in. + try tmp.dir.createDir(std.testing.io, ".git", .default_dir); + try tmp.dir.writeFile(std.testing.io, .{ .sub_path = "notes.txt", .data = "the notes\n" }); + try tmp.dir.writeFile(std.testing.io, .{ .sub_path = "seven.fake", .data = "1234567" }); + var s = try Session.initFile(std.testing.allocator, "x\n"); + defer s.deinit(); + try load(&s, fake.ok); + defer unload(&s, "fake"); + const dir = try dirOf(&s, &tmp); + const pane = try s.lookFile(s.at("{s}/notes.txt", .{dir})); + const body = s.at("/pane/{d}/body", .{pane}); + const a = s.arena.allocator(); + const screen = try a.dupe(u8, try s.screen()); + const index = try a.dupe(u8, try s.read("/index")); + // Its kind's paint in the reading pane's body (the fake counts the + // file's 7 bytes), not the pane's own text, nor the file's bytes. + try s.keys(" ffseven"); + s.tick(); + const shown = try s.screen(); + try std.testing.expect(has(shown, "count 7")); + try std.testing.expect(!has(shown, "the notes") and !has(shown, "1234567")); + // Esc: the pane exactly as it was, and no pane more or less. + try s.keys("\x1b"); + s.tick(); + // (The notice row says the Find ran: the session's, not the pane's.) + const after = try s.screen(); + try std.testing.expectEqualStrings(screen[0..std.mem.lastIndexOfScalar(u8, screen, '\n').?], after[0..std.mem.lastIndexOfScalar(u8, after, '\n').?]); + try s.expect(body, "the notes\n"); + try std.testing.expectEqualStrings(index, try s.read("/index")); + // Enter: the kind's pane where a Look puts it; the reading pane keeps + // its text. (The listing is the next frame's, as for the keyboard.) + try s.keys(" ffseven"); + s.tick(); + try s.keys("\n"); + s.tick(); + const opened = try paneOf(&s, "fake"); + try std.testing.expect(opened != pane); + try s.expect(body, "the notes\n"); + try std.testing.expect(has(try s.screen(), "count 7")); +} + +test "addons: a picker's row of a file no kind takes and not text shows one line naming it, and the row before's file never stays in the body" { + var tmp = std.testing.tmpDir(.{}); + defer tmp.cleanup(); + // A work tree of its own: Find searches it, not the one the test runs in. + try tmp.dir.createDir(std.testing.io, ".git", .default_dir); + try tmp.dir.writeFile(std.testing.io, .{ .sub_path = "notes.txt", .data = "the notes\n" }); + try tmp.dir.writeFile(std.testing.io, .{ .sub_path = "other.txt", .data = "other text\n" }); + try tmp.dir.writeFile(std.testing.io, .{ .sub_path = "seven.fake", .data = "1234567" }); + var blob: [3000]u8 = undefined; + for (&blob, 0..) |*b, i| b.* = @truncate(i *% 7); + try tmp.dir.writeFile(std.testing.io, .{ .sub_path = "blob.bin", .data = &blob }); + var s = try Session.initFile(std.testing.allocator, "x\n"); + defer s.deinit(); + try load(&s, fake.ok); + defer unload(&s, "fake"); + const dir = try dirOf(&s, &tmp); + const pane = try s.lookFile(s.at("{s}/notes.txt", .{dir})); + try s.keys(" ffother"); + s.tick(); + try std.testing.expect(has(try s.screen(), "other text")); + // Onto the binary: its one line, never its bytes, nor other.txt. + try s.keys("\x08\x08\x08\x08\x08blob"); + s.tick(); + var shown = try s.screen(); + try std.testing.expect(has(shown, "blob.bin · binary · 3.0 kB")); + try std.testing.expect(!has(shown, "other text")); + // Onto a kind's file: its kind's paint, not the binary's line. + try s.keys("\x08\x08\x08\x08seven"); + s.tick(); + shown = try s.screen(); + try std.testing.expect(has(shown, "count 7")); + try std.testing.expect(!has(shown, "blob.bin · binary")); + // Back onto text, then Esc: the pane's own. + try s.keys("\x08\x08\x08\x08\x08other"); + s.tick(); + shown = try s.screen(); + try std.testing.expect(has(shown, "other text") and !has(shown, "count 7")); + try s.keys("\x1b"); + s.tick(); + try s.expect(s.at("/pane/{d}/body", .{pane}), "the notes\n"); + try std.testing.expect(has(try s.screen(), "the notes")); +} + +test "addons: moving the cursor over pictures in a picker draws only the one it rests on, and a draw of one passed by is dropped whenever it comes back" { + var tmp = std.testing.tmpDir(.{}); + defer tmp.cleanup(); + // A work tree of its own: Find searches it, not the one the test runs in. + try tmp.dir.createDir(std.testing.io, ".git", .default_dir); + const png = "\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00\x01\x00\x00\x00\x01\x08\x02\x00\x00\x00\x90wS\xde\x00\x00\x00\x0cIDATx\x9cc\xf8\xcf\xc0\x00\x00\x03\x01\x01\x00\xc9\xfe\x92\xef\x00\x00\x00\x00IEND\xaeB`\x82"; + try tmp.dir.writeFile(std.testing.io, .{ .sub_path = "notes.txt", .data = "the notes\n" }); + try tmp.dir.writeFile(std.testing.io, .{ .sub_path = "pic1.png", .data = png }); + try tmp.dir.writeFile(std.testing.io, .{ .sub_path = "pic2.png", .data = png }); + try tmp.dir.writeFile(std.testing.io, .{ .sub_path = "pic3.ppm", .data = "P6\n2 1\n255\n\x0d\x4d\xe7\x0d\x4d\xe7" }); + var s = try Session.initFile(std.testing.allocator, "x\n"); + defer s.deinit(); + s.graphics(); + try load(&s, Session.image_addon); + defer unload(&s, "image"); + const dir = try dirOf(&s, &tmp); + const pane = try s.lookFile(s.at("{s}/notes.txt", .{dir})); + s.holdJobs(); + try s.keys(" ffpic"); + s.tick(); + // Until its picture is drawn, one line names it. + const first = try s.screen(); + try std.testing.expect(has(first, " · image · ")); + try std.testing.expectEqual(1, s.held.items.len); + // Two rows down with no frame between: only the row it rests on draws. + try s.keys("\u{F800}\u{F800}"); + s.tick(); + _ = try s.screen(); + try std.testing.expectEqual(2, s.held.items.len); + const rested = if (has(try s.screen(), "▶ pic3.ppm")) "\"src\":[0,0,2,1]" else "\"src\":[0,0,1,1]"; + const passed = if (std.mem.eql(u8, rested, "\"src\":[0,0,2,1]")) "\"src\":[0,0,1,1]" else "\"src\":[0,0,2,1]"; + // The rested one's answer first, the passed one's after: dropped. + std.mem.reverse(@TypeOf(s.held.items[0]), s.held.items); + s.releaseJobs(); + const screen = try s.read("/screen"); + try std.testing.expect(has(screen, s.at("\"serial\":{d},", .{pane})) and has(screen, rested)); + try std.testing.expect(!has(screen, passed)); +} + +test "addons: Enter on a picture in a picker opens its kind's pane, never its bytes as text in the reading pane (the user's report)" { + var tmp = std.testing.tmpDir(.{}); + defer tmp.cleanup(); + // A work tree of its own: Find searches it, not the one the test runs in. + try tmp.dir.createDir(std.testing.io, ".git", .default_dir); + try tmp.dir.writeFile(std.testing.io, .{ .sub_path = "notes.txt", .data = "the notes\n" }); + try tmp.dir.writeFile(std.testing.io, .{ .sub_path = "pic.ppm", .data = "P6\n2 1\n255\n\x0d\x4d\xe7\x0d\x4d\xe7" }); + var s = try Session.initFile(std.testing.allocator, "x\n"); + defer s.deinit(); + s.graphics(); + try load(&s, Session.image_addon); + defer unload(&s, "image"); + const dir = try dirOf(&s, &tmp); + const pane = try s.lookFile(s.at("{s}/notes.txt", .{dir})); + // The listing is the next frame's, as for the keyboard. + try s.keys(" ffpic"); + s.tick(); + try s.keys("\n"); + s.tick(); + try s.expect(s.at("/pane/{d}/body", .{pane}), "the notes\n"); + const image = try paneOf(&s, "image"); + try std.testing.expect(image != pane); + const screen = try s.read("/screen"); + try std.testing.expect(has(screen, s.at("\"serial\":{d},", .{image})) and has(screen, "\"src\":[0,0,2,1]")); + try std.testing.expect(!has(try s.screen(), "1 P6")); +} diff --git a/test/behaviour/addons_pdf.zig b/test/behaviour/addons_pdf.zig index 0c7982d1..7df5d5ee 100644 --- a/test/behaviour/addons_pdf.zig +++ b/test/behaviour/addons_pdf.zig @@ -45,10 +45,10 @@ test "addons: a PDF is the pdf addon's pane, its pages pictures, its page in its const first = try shown(&s, n); try std.testing.expect(first.len >= 1); // Its tag: its page, then the core's art words (it placed a picture), - // its path and its kind's words. + // its path and its kind's words, then Del (UX K'3). const tag = try s.read(s.at("/pane/{d}/tag", .{n})); try std.testing.expect(std.mem.startsWith(u8, tag, "[1/16] petscii:off palette:commodore ascii:on /")); - try std.testing.expect(has(tag, "/docs/design.pdf Term PdfSections PdfTint PdfFit Collapse Del")); + try std.testing.expect(has(tag, "/docs/design.pdf PdfSections PdfTint PdfFit Del")); try std.testing.expect(has(try ctlOf(&s, n), " fit:width tint:filtered mode:normal ")); // The words: bare they step, given a value they take it, any other // value refused; another pane's is refused and leaves the PDF alone. @@ -299,3 +299,33 @@ test "addons: a PDF whose file changes on disk while a page of it renders: the p try s.keys("0"); try std.testing.expect((try shown(&s, n)).len >= 1); } + +test "addons: a PDF under a picker's cursor shows through the pdf addon in the pane it lands in, never its bytes as text, and Esc puts the pane's own text back" { + var s = try Session.initFile(std.testing.allocator, "x\n"); + defer s.deinit(); + s.graphics(); + try s.loadPdf(); + var tmp = std.testing.tmpDir(.{}); + defer tmp.cleanup(); + // A work tree of its own: Find searches it, not the one the test runs in. + try tmp.dir.createDir(std.testing.io, ".git", .default_dir); + const pdf = try std.Io.Dir.cwd().readFileAlloc(std.testing.io, "docs/design.pdf", s.arena.allocator(), .limited(4 << 20)); + try tmp.dir.writeFile(std.testing.io, .{ .sub_path = "paper.pdf", .data = pdf }); + try tmp.dir.writeFile(std.testing.io, .{ .sub_path = "notes.txt", .data = "the notes\n" }); + var buf: [4096]u8 = undefined; + const dir = buf[0..try tmp.dir.realPath(std.testing.io, &buf)]; + const pane = try s.lookFile(s.at("{s}/notes.txt", .{dir})); + try s.keys(" ffpaper"); + // (Its kind told its view at the frame after the one that opened it.) + s.tick(); + s.tick(); + const screen = try s.screen(); + try std.testing.expect(!has(screen, "%PDF") and !has(screen, "the notes")); + // Its pages pictures in that pane's body, as a PDF's pane shows them. + try std.testing.expect((try shown(&s, pane)).len > 0); + try s.keys("\x1b"); + s.tick(); + try s.expect(s.at("/pane/{d}/body", .{pane}), "the notes\n"); + try std.testing.expectEqual(0, (try shown(&s, pane)).len); + try std.testing.expect(has(try s.screen(), "the notes")); +} diff --git a/test/behaviour/columns_and_tags.zig b/test/behaviour/columns_and_tags.zig index 9abe64f4..4ca6f7b3 100644 --- a/test/behaviour/columns_and_tags.zig +++ b/test/behaviour/columns_and_tags.zig @@ -129,9 +129,12 @@ test "columns-and-tags: Delcol on the last column leaves the window, drawn and t try s.write(s.at("/col/{d}/ctl", .{try s.column(0)}), "Delcol\n"); try expectEqualStrings("", try s.columns()); try s.expect("/index", ""); - // Drawn, and keys go to the workspace tag. + // Drawn, its words at the window row's right end (UX K'2), and keys go + // to the workspace tag. try s.keys("x\n"); - try std.testing.expect(std.mem.startsWith(u8, try s.screen(), " Newcol ")); + const screen = try s.screen(); + const first = std.mem.trimEnd(u8, screen[0..std.mem.indexOfScalar(u8, screen, '\n').?], " "); + try std.testing.expect(std.mem.endsWith(u8, first, "Find Grep Newcol Help Exit")); try s.write("/ctl", "Newcol\n"); try s.write(s.at("/col/{d}/ctl", .{try s.column(0)}), "New\n"); try expectEqualStrings(s.at("{d}:{d}", .{ try s.column(0), try s.focused() }), try s.columns()); @@ -162,7 +165,8 @@ test "columns-and-tags: New is a column tag's word, in no pane's tag nor the wor var words = std.mem.tokenizeScalar(u8, tag, ' '); while (words.next()) |word| try std.testing.expect(!std.mem.eql(u8, word, "New")); } - try expectEqualStrings("New Term Find Grep Joincol Delcol", try s.read(s.at("/col/{d}/tag", .{try s.column(0)}))); + // A lone column's words (UX K'2), and no text of the user's. + try expectEqualStrings("New Term ", try s.read(s.at("/col/{d}/tag", .{try s.column(0)}))); } test "columns-and-tags: a click past a column tag's text types after it, a newline typed there a space, and a long tag scrolls to its caret" { @@ -171,18 +175,20 @@ test "columns-and-tags: a click past a column tag's text types after it, a newli // A held pane (Keep): its tag as it was before the walk, no `Keep` word (SPEC §6.5). try s.write(s.at("/pane/{d}/exec", .{try s.focused()}), "Keep\n"); const tag = s.at("/col/{d}/tag", .{try s.column(0)}); - // Its row, then the pane's tag: the column's stays one row. - const rows = " New Term Find Grep Joincol Delcol"; - try std.testing.expect(std.mem.indexOf(u8, try s.screen(), rows ++ " ") != null); - try s.click("Delcol", 20, 1); - // A clicked tag is in normal mode: `i` types where it was clicked. + // A lone column's tag is at the window row's left (UX K'2). + try std.testing.expect(std.mem.startsWith(u8, try s.screen(), " New Term ")); + // Past its text, on its caret's cell. A clicked tag is in normal mode: + // `i` types where it was clicked, after its computed words. + try s.click("Term", 5, 1); try s.keys("i\nSnarf"); - try expectEqualStrings("New Term Find Grep Joincol Delcol Snarf", try s.read(tag)); - try std.testing.expect(std.mem.indexOf(u8, try s.screen(), rows ++ " Snarf ") != null); - // The pane's tag on the row right under it: the column's is one row. - try std.testing.expectEqual((try s.where(rows))[1] + 1, (try s.where("/test.txt Save"))[1]); + try expectEqualStrings("New Term Snarf", try s.read(tag)); + // The user's text brings the column row, one row under the window's, + // and the pane's tag on the row right under it. + const rows = " New Term Snarf"; + try std.testing.expectEqual(@as(usize, 1), (try s.where(rows ++ " "))[1]); + try std.testing.expectEqual((try s.where(rows))[1] + 1, (try s.where("/test.txt Del"))[1]); // Wider than the screen: the tag scrolls to keep its caret drawn. - try s.keys(" 界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界"); + try s.keys(" 界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界"); const col, const row = (try s.cursor()).?; try std.testing.expectEqual(@as(usize, 1), row); try std.testing.expect(col < 80); @@ -204,9 +210,9 @@ test "columns-and-tags: Enter in a tag in normal mode runs the word under its cu try s.expect("/focus", ""); try s.keys("iMine\x1b"); try std.testing.expect(std.mem.indexOf(u8, try s.read(s.at("/col/{d}/tag", .{try s.column(1)})), "Mine") != null); - try s.click("Tutor", 1, 1); + try s.click("Help", 1, 1); try s.keys("\t"); - try std.testing.expect(std.mem.endsWith(u8, try s.read(s.at("/pane/{d}/name", .{try s.focused()})), "/+Tutor\n")); + try std.testing.expect(std.mem.endsWith(u8, try s.read(s.at("/pane/{d}/name", .{try s.focused()})), "/+Help\n")); } test "columns-and-tags: a tag write refuses NUL and the other control characters, the workspace's, a column's and a pane's" { @@ -279,14 +285,18 @@ test "columns-and-tags: a column tag lights the word under the mouse, is clicked try s.write("/mousein", s.at("m {d} 1 1\nm {d} 1 0\n", .{ x + 3, x + 3 })); for (0..4) |k| try expectEqualStrings(lit, try s.bg(x + k, 1)); try std.testing.expect(!std.mem.eql(u8, lit, try s.bg(x + 4, 1))); - // A clicked tag is in normal mode: `i` types at its caret. - try s.keys("\u{F00D}iHelp "); - try std.testing.expect(std.mem.startsWith(u8, try s.read(tag), "Help New Term")); - try std.testing.expectEqual(x + 5, (try s.cursor()).?[0]); + // A clicked tag is in normal mode: `i` types at its caret, after its + // computed words (UX K'1). + const lead = "New Term Joincol Delcol ".len; + try s.keys("\u{F00D}"); + try s.write("/mousein", s.at("m {d} 1 1\nm {d} 1 0\n", .{ x + lead, x + lead })); + try s.keys("iHelp "); + try expectEqualStrings("New Term Joincol Delcol Help ", try s.read(tag)); + try std.testing.expectEqual(x + lead + 5, (try s.cursor()).?[0]); // A tag one short of its room: its caret at the end is drawn on the // last cell, and one more letter scrolls the text, never the caret. const as: [80]u8 = @splat('a'); - const row = as[0 .. width - 1]; + const row = as[0 .. width - 1 - lead]; try s.replace(tag, row); try s.keys("\u{F018}"); try std.testing.expectEqual(x + width - 1, (try s.cursor()).?[0]); diff --git a/test/behaviour/keys.zig b/test/behaviour/keys.zig index c5dccb1e..241468ac 100644 --- a/test/behaviour/keys.zig +++ b/test/behaviour/keys.zig @@ -14,7 +14,7 @@ test "keys: a prompt's entry and cancellation leave the tag, the body and its cu const n = try s.focused(); const tag = s.at("/pane/{d}/tag", .{n}); const dot = s.at("/pane/{d}/dot", .{n}); - try s.replace(tag, " keep"); + try s.replace(tag, "keep"); for ([_]struct { keys: []const u8, shown: []const u8 }{ .{ .keys = "s", .shown = " s zq" }, .{ .keys = "|", .shown = " | zq" }, @@ -34,14 +34,15 @@ test "keys: a prompt's entry and cancellation leave the tag, the body and its cu try s.keys("\x1b"); try std.testing.expectError(error.NotOnScreen, s.where(case.shown)); try std.testing.expect(std.mem.endsWith(u8, try s.read(s.at("/pane/{d}/ctl", .{n})), " mode:normal ")); - try std.testing.expectEqualStrings("/test.txt keep", try s.read(tag)); + try std.testing.expectEqualStrings("/test.txt Del keep", try s.read(tag)); try std.testing.expectEqual(.{ 6, 6 }, try s.range(dot)); try s.expect(s.at("/pane/{d}/body", .{n}), "one\ntwo\n"); } - // Save on a scratch asks for a path, starting from its directory. + // Save on a scratch (SPC f s: no word of its tag, UX K'3) asks for a + // path, starting from its directory. const scratch = try s.newPane(); const scratch_tag = try s.read(s.at("/pane/{d}/tag", .{scratch})); - try s.keys("::\tzq"); + try s.keys(" fszq"); _ = try s.where("/zq"); try s.expect(s.at("/pane/{d}/tag", .{scratch}), scratch_tag); try s.keys("\x1b"); @@ -124,7 +125,7 @@ test "keys: a count or a prefix a click or a change of pane cancels leaves nothi .body => try s.click("abcdefghij", 3, 1), .tag => { // A clicked tag is in normal mode: `:` goes back. - try s.click("/test.txt Save", "/test.txt ".len + 3, 1); + try s.click("/test.txt Del", "/test.txt ".len + 2, 1); try s.keys(":"); }, .focus, .last => { @@ -273,7 +274,8 @@ test "keys: Save's prompt on a scratch starts from the scratch's directory, one // New from the file's pane: a scratch in its directory. try s.write(s.at("/pane/{d}/exec", .{n}), "New\n"); try std.testing.expect(try s.focused() != n); - try s.keys("::\tzq"); + // SPC f s: Save is no word of a scratch's tag (UX K'3). + try s.keys(" fszq"); _ = try s.where(c[1]); try s.keys("\x1b"); } @@ -412,11 +414,12 @@ test "keys: zz and zc put the cursor's line in the middle row of an odd view, as for (&lines, 0..) |*l, i| _ = try std.fmt.bufPrint(l, "l{d:0>2}\n", .{i}); var s = try Session.initFile(std.testing.allocator, std.mem.asBytes(&lines)); defer s.deinit(); - s.resize(80, 25); + s.resize(80, 24); for ([_][]const u8{ "15jzz", "ztzc" }) |keys| { try s.keys(keys); - // 80x25 gives the pane 21 rows (the notice row under it): l05 to - // l25, l15 the eleventh + // 80x24 gives the pane 21 rows (the window row and its tag above + // them, the notice row under them; one column, no column row): + // l05 to l25, l15 the eleventh const top = (try s.where("l05"))[1]; try std.testing.expectEqual(top + 10, (try s.where("l15"))[1]); try std.testing.expectEqual(top + 20, (try s.where("l25"))[1]); diff --git a/test/behaviour/language_servers.zig b/test/behaviour/language_servers.zig index 13e42fa6..d1b160ee 100644 --- a/test/behaviour/language_servers.zig +++ b/test/behaviour/language_servers.zig @@ -206,7 +206,7 @@ test "language-servers: Symbols lists the file's definitions by name, a local's try s.write(s.at("/pane/{d}/look", .{main}), s.at("{s}/lib.rs\n", .{std.fs.path.dirname(std.mem.trimEnd(u8, try s.read(s.at("/pane/{d}/name", .{main})), "\n")).?})); try s.write(s.at("/pane/{d}/ctl", .{try s.focused()}), "Symbols\n"); const rows = try bodyOf(&s, "+Search"); - for ([_][]const u8{ "lib.rs:1:11-15\nShape\n", "lib.rs:2:8-11\narea\n", "lib.rs:5:8-10\nadd\n", "lib.rs:8:12-17\nSquare\n", "lib.rs:10:8-11\narea\n" }) |row| + for ([_][]const u8{ "lib.rs:1:11-15 Shape\n", "lib.rs:2:8-11 area\n", "lib.rs:5:8-10 add\n", "lib.rs:8:12-17 Square\n", "lib.rs:10:8-11 area\n" }) |row| try std.testing.expect(has(rows, row)); try std.testing.expect(!has(rows, "lib.rs:5:12")); } @@ -323,3 +323,83 @@ test "language-servers: SPC l a lists the server's code actions in the pane's ta try s.keys("u"); try s.expect(body, before); } + +test "language-servers: a server's Symbols are the Symbols picker's rows: types, functions, fields, then the rest, each its kind's mark and its name in the ones it is in (UX DESIGN N)" { + var tmp = std.testing.tmpDir(.{}); + defer tmp.cleanup(); + var s = try Session.initLanguage(std.testing.allocator); + defer s.deinit(); + try s.write("/ctl", "Jumps new-pane\n"); + // No index: the server is asked. + try tmp.dir.writeFile(std.testing.io, .{ .sub_path = "shapes.rs", .data = "const LIMIT: u32 = 4;\n\nfn main() {}\npub struct Shape {\n side: u32,\n fn area() {}\n}\nenum Kind {\n Round,\n}\nmod lib;\n" }); + var buf: [4096]u8 = undefined; + const dir = buf[0..try tmp.dir.realPath(std.testing.io, &buf)]; + const shapes = try s.lookFile(s.at("{s}/shapes.rs:1:1", .{dir})); + try s.write(s.at("/pane/{d}/ctl", .{shapes}), "Symbols\n"); + const rows = try bodyOf(&s, "+Search"); + var at: usize = 0; + for ([_][]const u8{ "shapes.rs:4:12-16 t Shape\n", "shapes.rs:8:6-9 t Kind\n", "shapes.rs:3:4-7 f main\n", "shapes.rs:6:8-11 f Shape.area\n", "shapes.rs:5:5-8 m Shape.side\n", "shapes.rs:9:5-9 m Kind.Round\n", "shapes.rs:1:7-11 c LIMIT\n", "shapes.rs:11:5-7 n lib\n" }) |row| { + const found = std.mem.indexOfPos(u8, rows, at, row) orelse { + std.debug.print("{s} not after {d} in\n{s}\n", .{ row, at, rows }); + return error.TestUnexpectedResult; + }; + at = found + row.len; + } +} + +extern "c" fn setenv(name: [*:0]const u8, value: [*:0]const u8, overwrite: c_int) c_int; + +/// The row of Lspinfo's report on the server `name` (`zls`), asked of the +/// pane with the keyboard, and how many queries its client has answered. +fn serverRow(s: *Session, name: []const u8) !struct { []const u8, []const u8 } { + try s.write(s.at("/pane/{d}/ctl", .{try s.focused()}), "Lspinfo\n"); + const info = try bodyOf(s, "+Lsp"); + const at = (std.mem.indexOf(u8, info, s.at("\n {s} ", .{name})) orelse return error.NoSuchServer) + 1; + const row = info[at .. std.mem.indexOfScalarPos(u8, info, at, '\n') orelse info.len]; + const log = std.mem.indexOf(u8, info, "client queries (") orelse return error.NoQueryLog; + return .{ row, info[log .. std.mem.indexOfPos(u8, info, log, " total") orelse return error.NoQueryLog] }; +} + +test "language-servers: a file of a server's language opened in a pane starts that server and tells it of the file, with no query asked; a picker's preview of one starts none, a second file no second server, and a server not installed is found silently" { + const io = std.testing.io; + var tmp = std.testing.tmpDir(.{}); + defer tmp.cleanup(); + // A work tree of its own: Find searches it, not the one the test runs in. + try tmp.dir.createDir(io, ".git", .default_dir); + try tmp.dir.writeFile(io, .{ .sub_path = "a.zig", .data = "const a = 1;\n" }); + try tmp.dir.writeFile(io, .{ .sub_path = "b.zig", .data = "const b = 2;\n" }); + try tmp.dir.writeFile(io, .{ .sub_path = "c.py", .data = "c = 3\n" }); + try tmp.dir.writeFile(io, .{ .sub_path = "d.py", .data = "d = 4\n" }); + try tmp.dir.writeFile(io, .{ .sub_path = "notes.txt", .data = "the notes\n" }); + var buf: [4096]u8 = undefined; + const dir = buf[0..try tmp.dir.realPath(io, &buf)]; + var s = try Session.initLanguage(std.testing.allocator); + defer s.deinit(); + _ = try s.lookFile(s.at("{s}/notes.txt", .{dir})); + // a.zig previewed by Find's picker (the session's jumps walk): its text + // shown, its server (the scripted one, the session's zls) not started. + try s.keys(" ffa.zig"); + s.tick(); + try std.testing.expect(has(try s.screen(), "const a = 1;")); + try s.keys("\x1b"); + const before, const asked = try serverRow(&s, "zls"); + try std.testing.expect(has(before, "not started yet")); + // Opened: started and told of a.zig, no query asked of it. + _ = try s.lookFile(s.at("{s}/a.zig", .{dir})); + const opened, const asked_open = try serverRow(&s, "zls"); + try std.testing.expect(has(opened, "ready") and has(opened, "docs 1")); + try std.testing.expectEqualStrings(asked, asked_open); + // A second file: the same server told of it too (a second would know one). + _ = try s.lookFile(s.at("{s}/b.zig", .{dir})); + const second, _ = try serverRow(&s, "zls"); + try std.testing.expect(has(second, "ready") and has(second, "docs 2")); + // Not installed: the language's server disabled at the first file's + // open, with no word at either (its first query says it is not found). + _ = setenv("PARDES_LSP_PY", "/nonexistent/pyright-langserver", 1); + _ = try s.lookFile(s.at("{s}/c.py", .{dir})); + _ = try s.lookFile(s.at("{s}/d.py", .{dir})); + const missing, const asked_missing = try serverRow(&s, "pyright"); + try std.testing.expect(has(missing, "disabled")); + try std.testing.expectEqualStrings(asked, asked_missing); + try std.testing.expect(!has(try s.screen(), "not found")); +} diff --git a/test/behaviour/modes.zig b/test/behaviour/modes.zig index 0f7c9d26..39bb66c8 100644 --- a/test/behaviour/modes.zig +++ b/test/behaviour/modes.zig @@ -98,7 +98,8 @@ test "modes: Esc back into a file leaves its view where it was, and a look centr // The other arm still centres: a look's `:NN`. const line = 60; try s.write(s.at("/pane/{d}/look", .{doc}), s.at(":{d}\n", .{line})); - const rows = (try s.where("Term Save Mode"))[1] - (try s.where("/test.txt"))[1] - 1; + // (The shell's tag: its computed Del, then its own text, Term.) + const rows = (try s.where("Del Term"))[1] - (try s.where("/test.txt"))[1] - 1; // Drawn mid-pane, a row either way. const drawn_at = line - try topLine(&s, "/test.txt"); try std.testing.expect(drawn_at + 1 >= rows / 2 and drawn_at <= rows / 2 + 1); @@ -163,7 +164,7 @@ test "modes: Ctrl-w outlines a pane, h j k l move the outline, and Enter, Esc, : // `:` gives the outlined pane's tag the keyboard. try s.keys("\x17l:"); try expectEqual(b, try s.focused()); - try expectEqual((try s.where("/b.txt Save"))[1], (try s.cursor()).?[1]); + try expectEqual((try s.where("/b.txt Del"))[1], (try s.cursor()).?[1]); try s.keys("\x1b"); // A letter goes straight there. try s.keys("\x17a"); @@ -190,11 +191,11 @@ test "modes: in window mode d deletes the outlined pane, asking k or j between t try s.write(s.at("/pane/{d}/name", .{mid}), "/mid\n"); try s.write(s.at("/pane/{d}/name", .{low}), "/low\n"); const names = &[_][]const u8{ "/test.txt", "/mid", "/low" }; - const row_top = (try s.where("/test.txt Save"))[1]; - const row_mid = (try s.where("/mid Save"))[1]; - const row_low = (try s.where("/low Save"))[1]; + const row_top = (try s.where("/test.txt Del"))[1]; + const row_mid = (try s.where("/mid Del"))[1]; + const row_low = (try s.where("/low Del"))[1]; // From the bottom pane, the outline up to the middle one. - const mx, const my = try s.where("/mid Save"); + const mx, const my = try s.where("/mid Del"); const plain = try s.bg(mx, my); try s.keys("\x17k"); const lit = try s.bg(mx, my); @@ -217,7 +218,7 @@ test "modes: in window mode d deletes the outlined pane, asking k or j between t // j: the pane below takes the rows, and the outline goes with them. try s.keys("dj"); try std.testing.expect(!try listed(&s, mid)); - try expectEqual(row_top, (try s.where("/test.txt Save"))[1]); + try expectEqual(row_top, (try s.where("/test.txt Del"))[1]); try expectEqual(row_mid, (try s.where("/low "))[1]); try std.testing.expectEqualStrings("/low", try outlined(&s, lit, &.{ "/test.txt", "/low" })); // With one neighbour nothing is asked: d closes it, the outline on the @@ -248,10 +249,12 @@ test "modes: window keys walk from a pane up through its column's tag and the wo try std.testing.expect(x0 < right); const tag = s.at("/col/{d}/tag", .{try s.column(0)}); const words = try s.read(tag); - try s.keys("w"); + // On its user's text, after its computed words (UX K'1): `b` moves + // back onto them. + try s.keys("b"); try s.expect(tag, words); const remembered = (try s.cursor()).?; - try std.testing.expect(remembered[0] > x0); + try std.testing.expect(remembered[0] < x0); // Across to the right column's tag, and back to where the caret was. try s.keys("\x17l"); try std.testing.expect((try s.cursor()).?[0] >= right); @@ -461,7 +464,7 @@ test "modes: hopping between two panes by Esc, window mode or a click makes no p try expectEqual(want, try s.focused()); } const doc_row = (try s.where("row"))[1]; - const shell_row = (try s.where("Term Save Mode"))[1] + 1; + const shell_row = (try s.where("Del Term"))[1] + 1; for (0..8) |_| { const other = if (try s.focused() == doc) shell else doc; const row = if (other == doc) doc_row else shell_row; diff --git a/test/behaviour/mouse.zig b/test/behaviour/mouse.zig index 951ab493..0e22416f 100644 --- a/test/behaviour/mouse.zig +++ b/test/behaviour/mouse.zig @@ -25,9 +25,10 @@ test "mouse: a double-click selects a word, a line, a bracketed or quoted text, try s.click(w.at, w.into, 1); try s.expect(sel, ""); } - // In the tag too: what it selected is what a yank takes. - try s.click("Follow Del", "Follow D".len, 1); - try s.click("Follow Del", "Follow D".len, 1); + // In the tag too: what it selected is what a yank takes (its computed + // Del, after Keep: the file is reading). + try s.click("Keep Del", "Keep D".len, 1); + try s.click("Keep Del", "Keep D".len, 1); try s.keys("\x1by:ggP"); try s.expect(s.at("/pane/{d}/body", .{n}), "Delcall foo_bar(a, b)\nsay \"hi there\"\n"); } @@ -120,13 +121,15 @@ test "mouse: a B1 sweep over several lines is a stream, as acme's, in a body and // Upward, the same text. try mouse(&s, "m {d} {d} 1\nm {d} {d} 1\nm {d} {d} 3\nm {d} {d} 0\n", .{ x + 1, y + 2, x + 2, y, x + 2, y, x + 2, y }); try s.expect(body, "alarlie\n"); - // A tag of several rows sweeps the same way. + // A tag of several rows sweeps the same way, in its own text (its + // computed words are read-only, UX K'1). const tag = s.at("/pane/{d}/tag", .{n}); - try s.write(tag, "\nLook Edit"); + try s.write(tag, "Collapse\nLook Edit"); + const was = try s.read(tag); const tx, const ty = try s.where("Collapse"); const lx, const ly = try s.where("Look Edit"); try mouse(&s, "m {d} {d} 1\nm {d} {d} 1\nm {d} {d} 3\nm {d} {d} 0\n", .{ tx + 3, ty, lx + 1, ly, lx + 1, ly, lx + 1, ly }); - try s.expect(tag, "/test.txt Save Term Colok Edit"); + try s.expect(tag, s.at("{s}Colok Edit", .{was[0 .. was.len - "Collapse\nLook Edit".len]})); } test "mouse: a click on either half of a wide character lands before it, in the text and on a tag's path, and the caret steps over it whole" { @@ -157,7 +160,7 @@ test "mouse: a click on either half of a wide character lands before it, in the // Typed past the tag's words, a two-byte λ goes in and one backspace // takes it out whole. const tag = try s.read(s.at("/pane/{d}/tag", .{n})); - try s.click("Follow Del", "Follow Del".len + 1, 1); + try s.click("Keep Del", "Keep Del".len + 1, 1); const caret = (try s.cursor()).?; // A clicked tag is in normal mode: `i` types at the caret. try s.keys("iλ"); diff --git a/test/behaviour/other_files.zig b/test/behaviour/other_files.zig index e6c104c3..95d4de6d 100644 --- a/test/behaviour/other_files.zig +++ b/test/behaviour/other_files.zig @@ -25,6 +25,8 @@ test "other-files: kbdin types at the pane with the keyboard and mousein clicks, test "other-files: kbdin's keys are the user's: SPC f f opens Find's picker in the pane's tag where jumps walk, not the +Search a script's Find opens" { var tmp = std.testing.tmpDir(.{}); defer tmp.cleanup(); + // A work tree of its own: Find searches it, not the one the test runs in. + try tmp.dir.createDir(std.testing.io, ".git", .default_dir); try tmp.dir.writeFile(std.testing.io, .{ .sub_path = "a.txt", .data = "a\n" }); try tmp.dir.writeFile(std.testing.io, .{ .sub_path = "b.txt", .data = "b\n" }); var s = try Session.initFile(std.testing.allocator, "x\n"); @@ -33,7 +35,9 @@ test "other-files: kbdin's keys are the user's: SPC f f opens Find's picker in t _ = try s.lookFile(s.at("{s}/a.txt", .{buf[0..try tmp.dir.realPath(std.testing.io, &buf)]})); try s.keys(" ff"); try std.testing.expect(std.mem.indexOf(u8, try s.read("/index"), "+Search") == null); - // Its rows under the tag of the pane typed at, the cursor on the first. + // Its rows under the tag of the pane typed at, the cursor on the first, + // the next frame, as the keyboard's: the listing is not the write's. + s.tick(); _ = try s.where("▶ a.txt"); _ = try s.where(" b.txt"); } diff --git a/test/behaviour/panes.zig b/test/behaviour/panes.zig index 4c76df25..11c2a0e6 100644 --- a/test/behaviour/panes.zig +++ b/test/behaviour/panes.zig @@ -167,7 +167,7 @@ test "panes: a second lock is refused until the holder unlocks or closes, and bi s.clunk(e); } -test "panes: an unsaved file's tag is its name alone, its dirty file says it is unsaved" { +test "panes: an unsaved file's tag marks nothing on its name, Save and Undo come into its words, its dirty file says it is unsaved" { var s = try Session.initFile(std.testing.allocator, "before\n"); defer s.deinit(); // A held pane (Keep): its tag as it was before the walk, no `Keep` word (SPEC §6.5). @@ -175,9 +175,13 @@ test "panes: an unsaved file's tag is its name alone, its dirty file says it is const n = try s.focused(); const tag = s.at("/pane/{d}/tag", .{n}); const clean = try s.read(tag); + try std.testing.expectEqualStrings("/test.txt Del ", clean); try s.write(s.at("/pane/{d}/body", .{n}), "after\n"); - try std.testing.expectEqualStrings(clean, try s.read(tag)); - try std.testing.expect(std.mem.indexOf(u8, clean, " *") == null); + // Its words say what acts now, Save and Undo (UX K'3); no mark after + // the name. + const unsaved = try s.read(tag); + try std.testing.expectEqualStrings("/test.txt Save Undo Del ", unsaved); + try std.testing.expect(std.mem.indexOf(u8, unsaved, " *") == null); try s.expect(s.at("/pane/{d}/dirty", .{n}), "1\n"); } @@ -237,14 +241,19 @@ test "panes: Collapse keeps the text and folds the pane to its tag, and again re var t = try Session.initTerm(std.testing.allocator); defer t.deinit(); const n = try s.focused(); + // Collapse is no word of a tag (UX K'3), a file's, a scratch's or a + // terminal's: its keys are C-w c and SPC w c, and it runs from ctl. for ([_][]const u8{ try s.read(s.at("/pane/{d}/tag", .{n})), try s.read(s.at("/pane/{d}/tag", .{try s.newPane()})), - }) |tag| try std.testing.expect(std.mem.endsWith(u8, tag, " Collapse Follow Del")); - try std.testing.expect(std.mem.endsWith(u8, try t.read(t.at("/pane/{d}/tag", .{try t.focused()})), " Collapse Del")); + try t.read(t.at("/pane/{d}/tag", .{try t.focused()})), + }) |tag| try std.testing.expect(std.mem.indexOf(u8, tag, "Collapse") == null); try s.write(s.at("/pane/{d}/ctl", .{try s.focused()}), "Del\n"); const ctl = s.at("/pane/{d}/ctl", .{n}); - try s.write(ctl, "Collapse\n"); + // C-w c folds the outlined pane, the keyboard's; Esc leaves window + // mode on it. + try std.testing.expectEqual(n, try s.focused()); + try s.keys("\x17c\x1b"); // Folded to its tag: no text drawn, no cursor in it, the text kept. try std.testing.expect(std.mem.indexOf(u8, try s.read(ctl), " collapsed ") != null); try std.testing.expect(std.mem.indexOf(u8, try s.screen(), "keep this text") == null); @@ -321,7 +330,7 @@ test "panes: PdfTint steps a PDF's tint, read in its ctl and never in its tag, a const n = try s.lookFile("docs/design.pdf"); const ctl = s.at("/pane/{d}/ctl", .{n}); const tag = try s.read(s.at("/pane/{d}/tag", .{n})); - try std.testing.expect(std.mem.endsWith(u8, tag, " PdfSections PdfTint PdfFit Collapse Del")); + try std.testing.expect(std.mem.endsWith(u8, tag, " PdfSections PdfTint PdfFit Del ")); for ([_][]const u8{ "full", "disabled", "filtered" }) |want| { try std.testing.expect(std.mem.indexOf(u8, try s.read(ctl), "fit:width ") != null); try s.write(ctl, "PdfTint\n"); diff --git a/test/behaviour/placement.zig b/test/behaviour/placement.zig index 467afd1b..c0bf6305 100644 --- a/test/behaviour/placement.zig +++ b/test/behaviour/placement.zig @@ -25,9 +25,10 @@ test "placement: an empty active column takes the new pane whole, a look from an try std.testing.expectEqualStrings(s.at("{d}:{d} {d}:{d}", .{ try s.column(0), first, try s.column(1), made }), try s.columns()); } -/// The screen row the tag starting `name` is drawn on. +/// The screen row the tag starting `name` is drawn on: the name, then a +/// blank before its computed words (Del at least, UX K'3). fn tagRow(s: *Session, name: []const u8) !usize { - return (try s.where(s.at("{s} Save", .{name})))[1]; + return (try s.where(s.at("{s} ", .{name})))[1]; } test "placement: New and 9P's new take the bottom half of the column's last pane" { diff --git a/test/behaviour/tags.zig b/test/behaviour/tags.zig index c8de115b..fcef9fd3 100644 --- a/test/behaviour/tags.zig +++ b/test/behaviour/tags.zig @@ -25,10 +25,11 @@ test "tags: s and S in a tag answer for the tag's own text; / still searches the // A held pane (Keep): its tag as it was before the walk, no `Keep` word (SPEC §6.5). try s.write(s.at("/pane/{d}/exec", .{try s.focused()}), "Keep\n"); const n = try s.focused(); - try s.replace(s.at("/pane/{d}/tag", .{n}), " Save Del Snarf"); + // Its own text, after its computed Del (UX K'1). + try s.replace(s.at("/pane/{d}/tag", .{n}), "Save Del Snarf"); // The tag's line, its S's selected, then changed: both are the tag's. try s.keys("::xsS\ncZ\x1b"); - try std.testing.expectEqualStrings("/test.txt Zave Del Znarf", try tag(&s, n)); + try std.testing.expectEqualStrings("/test.txt Del Zave Del Znarf", try tag(&s, n)); try s.expect(s.at("/pane/{d}/body", .{n}), "Some body\n"); // `/` from the tag is the body's search, as acme's Look from a tag is. // Its places list the body's match. @@ -42,10 +43,12 @@ test "tags: ms and md edit a tag's own text, and the text the edit made is read // A held pane (Keep): its tag as it was before the walk, no `Keep` word (SPEC §6.5). try s.write(s.at("/pane/{d}/exec", .{try s.focused()}), "Keep\n"); const n = try s.focused(); + // Its own text after its computed Del (UX K'1), where `:` lands. + try s.write(s.at("/pane/{d}/tag", .{n}), "Save Term"); try s.keys("::miwms("); - try std.testing.expectEqualStrings("/test.txt (Save) Term Collapse Follow Del", try tag(&s, n)); + try std.testing.expectEqualStrings("/test.txt Del (Save) Term", try tag(&s, n)); try s.keys("md("); - try std.testing.expectEqualStrings("/test.txt Save Term Collapse Follow Del", try tag(&s, n)); + try std.testing.expectEqualStrings("/test.txt Del Save Term", try tag(&s, n)); } test "tags: the keyboard reaches a tag's path, which it can select and yank but not edit" { @@ -70,27 +73,29 @@ test "tags: the keyboard reaches a tag's path, which it can select and yank but try s.expect(s.at("/pane/{d}/name", .{n}), "/test.txt\n"); // After the path, the text is the tag's own to edit. try s.keys("::A!\x1b"); - try std.testing.expectEqualStrings("/test.txt Save Term Collapse Follow Del!", try tag(&s, n)); + try std.testing.expectEqualStrings("/test.txt Del !", try tag(&s, n)); // What it yanked was the path. try s.keys(":P"); try s.expect(s.at("/pane/{d}/body", .{n}), "/test.txtbody\n"); } -test "tags: a tag remembers its cursor, starts on Save, and a click moves it" { +test "tags: a tag remembers its cursor, starts on its own text, and a click moves it" { var s = try Session.initFile(std.testing.allocator, "body\n"); defer s.deinit(); // A held pane (Keep): its tag as it was before the walk, no `Keep` word (SPEC §6.5). try s.write(s.at("/pane/{d}/exec", .{try s.focused()}), "Keep\n"); const first = try s.focused(); + // Its own text, after its computed Del (UX K'1). + try s.write(s.at("/pane/{d}/tag", .{first}), "Save Term"); try s.write("/ctl", "Newcol\n"); const second = try s.newPane(); try s.write(s.at("/pane/{d}/name", .{second}), "/second.txt"); const focus = s.at("{d}", .{first}); const other = s.at("{d}", .{second}); try s.write("/focus", focus); - // Nothing to remember yet: `:` lands on Save. + // Nothing to remember yet: `:` lands on its own text. try s.keys("::"); - try std.testing.expectEqual(@as(usize, "/test.txt ".len), try tagCol(&s, "/test.txt")); + try std.testing.expectEqual(@as(usize, "/test.txt Del ".len), try tagCol(&s, "/test.txt")); // Home is the line's start, the path's: the keyboard reaches it. try s.keys(home ++ right ++ right ++ right); try std.testing.expectEqual(@as(usize, 3), try tagCol(&s, "/test.txt")); @@ -110,11 +115,11 @@ test "tags: a tag remembers its cursor, starts on Save, and a click moves it" { // A click in the tag puts its cursor there, the pane's keyboard with it. try s.click("Save Term", 6, 1); try std.testing.expectEqual(first, try s.focused()); - try std.testing.expectEqual(@as(usize, "/test.txt Save T".len), try tagCol(&s, "/test.txt")); + try std.testing.expectEqual(@as(usize, "/test.txt Del Save T".len), try tagCol(&s, "/test.txt")); // A prompt opened and left from the body leaves it there (a clicked // tag is in normal mode: `:` goes back to the body). try s.keys(":/\x1b::"); - try std.testing.expectEqual(@as(usize, "/test.txt Save T".len), try tagCol(&s, "/test.txt")); + try std.testing.expectEqual(@as(usize, "/test.txt Del Save T".len), try tagCol(&s, "/test.txt")); try s.keys(":"); try s.expect(s.at("/pane/{d}/body", .{first}), "body\n"); } @@ -125,16 +130,19 @@ test "tags: executing a word from the tag runs it and gives the keyboard back to defer s.deinit(); const n = try s.focused(); try s.keys("ix\x1b"); - // `:` lands on Save; the execute key runs it, the look key looks - // it up. Either way the tag lets go of the keyboard first. + // Save typed into the tag's own text, where `:` lands (UX K'1); + // the execute key runs it, the look key looks it up. Either way + // the tag lets go of the keyboard first. + try s.write(s.at("/pane/{d}/tag", .{n}), "Save"); try s.keys("::"); try s.keys(chord); try std.testing.expectEqual(@as(usize, if (chord[0] == '\t') 1 else 0), s.saved); try s.keys("iQ\x1b"); try s.expect(s.at("/pane/{d}/body", .{n}), "xQbody\n"); - // ...and the tag still knows where it was. + // ...and the tag still knows where it was: on that Save, after the + // computed words the save changed. try s.keys("::"); - try std.testing.expectEqual(@as(usize, "/test.txt ".len), try tagCol(&s, "/test.txt")); + try std.testing.expectEqual((try tag(&s, n)).len - "Save".len, try tagCol(&s, "/test.txt")); } } @@ -144,15 +152,15 @@ test "tags: a renamed path moves the tag's cursor with the text after it and a s // A held pane (Keep): its tag as it was before the walk, no `Keep` word (SPEC §6.5). try s.write(s.at("/pane/{d}/exec", .{try s.focused()}), "Keep\n"); const n = try s.focused(); - try s.keys(":::"); // `::` on Save, and `:` back + try s.keys(":::"); // `::` on its own text, after Del, and `:` back try s.write(s.at("/pane/{d}/name", .{n}), "/界.zig"); try s.keys("::"); - try std.testing.expectEqual(@as(usize, "/界.zig ".len - 1), try tagCol(&s, "/界")); + try std.testing.expectEqual(@as(usize, "/界.zig Del ".len - 1), try tagCol(&s, "/界")); try s.keys(":"); try s.replace(s.at("/pane/{d}/tag", .{n}), "é"); try s.keys("::"); - // `/界.zig é`: the cursor is pulled back onto the last character. - try std.testing.expectEqual(@as(usize, "/界.zig ".len - 1), try tagCol(&s, "/界")); + // `/界.zig Del é`: the cursor is pulled back onto the last character. + try std.testing.expectEqual(@as(usize, "/界.zig Del ".len - 1), try tagCol(&s, "/界")); try s.expect(s.at("/pane/{d}/body", .{n}), "body\n"); } @@ -192,7 +200,7 @@ test "tags: a tag's normal mode is the body's: motions stay in the tag and inser try s.keys(window ++ "h\n"); try std.testing.expectEqual(first, try s.focused()); try s.keys("::i\u{F018}hjklHJKL:"); - try std.testing.expectEqualStrings("/test.txt Save Term Collapse Follow DelhjklHJKL:", try tag(&s, first)); + try std.testing.expectEqualStrings("/test.txt Del hjklHJKL:", try tag(&s, first)); try std.testing.expect(std.mem.endsWith(u8, try s.read(s.at("/pane/{d}/ctl", .{first})), " mode:normal ")); try s.expect(s.at("/pane/{d}/body", .{first}), "body\n"); try std.testing.expectEqual(first, try s.focused()); @@ -206,7 +214,7 @@ test "tags: a tag with a newline in it is as tall as its lines, and each line is const n = try s.focused(); // Insert mode in a tag is a body's: Enter is a new line. try s.keys("::A\nSecond"); - try std.testing.expectEqualStrings("/test.txt Save Term Collapse Follow Del\nSecond", try tag(&s, n)); + try std.testing.expectEqualStrings("/test.txt Del \nSecond", try tag(&s, n)); const x, const y = try s.where("/test.txt"); try std.testing.expectEqual(.{ x, y + 1 }, try s.where("Second")); // The caret is on the second line, after what was typed. @@ -220,7 +228,7 @@ test "tags: a tag with a newline in it is as tall as its lines, and each line is try std.testing.expectEqual(.{ x + 2, y + 1 }, (try s.cursor()).?); // A clicked tag is in normal mode: `i` types where it was clicked. try s.keys("iX"); - try std.testing.expectEqualStrings("/test.txt Save Term Collapse Follow Del\nSeXcond", try tag(&s, n)); + try std.testing.expectEqualStrings("/test.txt Del \nSeXcond", try tag(&s, n)); try s.expect(s.at("/pane/{d}/body", .{n}), "body\n"); } @@ -247,12 +255,13 @@ test "tags: a tag with more lines than rows scrolls to keep its caret in view" { try s.keys("\x1bgg"); try std.testing.expectEqual(.{ x, y }, try s.where("/test.txt")); try std.testing.expectEqual(y, (try s.cursor()).?[1]); - // A column tag is one row, as acme's: its lines are joined. + // A column tag is one row, as acme's: its lines are joined. Its user's + // text brings the column row (UX K'2): the pane one row lower, no more. var layout = std.mem.tokenizeScalar(u8, try s.read("/layout"), ' '); const col_tag = s.at("/col/{s}/tag", .{layout.next().?}); try s.replace(col_tag, "New\nC1\nC2"); try std.testing.expect(std.mem.indexOfScalar(u8, try s.read(col_tag), '\n') == null); - try std.testing.expectEqual(y, (try s.where("/test.txt"))[1]); + try std.testing.expectEqual(y + 1, (try s.where("/test.txt"))[1]); } test "tags: a long pane tag wraps onto rows, and a click on a wrapped row maps to the whole tag's address" { @@ -310,20 +319,20 @@ test "tags: a name drafted in the tag commits with Enter, cancels with two Escs, try s.write(s.at("/pane/{d}/exec", .{try s.focused()}), "Keep\n"); const n = try s.focused(); const name = s.at("/pane/{d}/name", .{n}); - try s.write(s.at("/pane/{d}/tag", .{n}), " JumpTrail"); + try s.write(s.at("/pane/{d}/tag", .{n}), "JumpTrail"); for ([_]bool{ false, true }) |commit| { const path = std.mem.trimEnd(u8, try s.read(name), "\n"); try clickPathEnd(&s, path); try s.keys("\x15/new name.zig"); try s.expect(name, s.at("{s}\n", .{path})); - _ = try s.where("/new name.zig Save Term Collapse Follow Del JumpTrail"); + _ = try s.where("/new name.zig Del JumpTrail"); try s.expect(s.at("/pane/{d}/body", .{n}), "original body\n"); // Esc keeps the draft pending; a second drops it. try s.keys(if (commit) "\n" else "\x1b\x1b"); try s.expect(name, if (commit) "/new name.zig\n" else "/test.txt\n"); - try std.testing.expectEqualStrings(s.at("{s} Save Term Collapse Follow Del JumpTrail", .{if (commit) "/new name.zig" else "/test.txt"}), try tag(&s, n)); + try std.testing.expectEqualStrings(s.at("{s} Del JumpTrail", .{if (commit) "/new name.zig" else "/test.txt"}), try tag(&s, n)); // The keyboard is the body's again. - try std.testing.expect((try s.cursor()).?[1] != (try s.where("Save Term"))[1]); + try std.testing.expect((try s.cursor()).?[1] != (try s.where("Del JumpTrail"))[1]); } try std.testing.expectEqual(@as(usize, 0), s.saved); // A name alone is no edit: the pane stays clean. @@ -338,9 +347,9 @@ test "tags: a drafted name's edits are by grapheme, and an empty one is not comm const n = try s.focused(); try clickPathEnd(&s, "/test.txt"); try s.keys("\x15/café界\x08"); - _ = try s.where("/café Save"); + _ = try s.where("/café Del"); try s.keys("\x08"); - _ = try s.where("/caf Save"); + _ = try s.where("/caf Del"); // (The tag, not the screen: the notice row says where the caret is.) const tagfile = s.at("/pane/{d}/tag", .{n}); try s.keys("\x15\n"); @@ -374,11 +383,13 @@ test "tags: middle clicking Save commits the drafted name before saving" { // A held pane (Keep): its tag as it was before the walk, no `Keep` word (SPEC §6.5). try s.write(s.at("/pane/{d}/exec", .{try s.focused()}), "Keep\n"); const n = try s.focused(); + // Save typed into its own text: a clean file's tag has no Save (UX K'3). + try s.write(s.at("/pane/{d}/tag", .{n}), "Save"); try clickPathEnd(&s, "/test.txt"); try s.keys("\x15/renamed.txt"); - try s.click("Save Term", 0, 2); + try s.click("Del Save", "Del ".len, 2); try s.expect(s.at("/pane/{d}/name", .{n}), "/renamed.txt\n"); - try std.testing.expectEqualStrings("/renamed.txt Save Term Collapse Follow Del", try tag(&s, n)); + try std.testing.expectEqualStrings("/renamed.txt Del Save", try tag(&s, n)); try s.expect(s.at("/pane/{d}/body", .{n}), "untouched\n"); try std.testing.expectEqual(@as(usize, 1), s.saved); } @@ -415,6 +426,8 @@ test "tags: a click on a tag puts its cursor there in normal mode: a letter is a var s = try Session.initFile(std.testing.allocator, "body\n"); defer s.deinit(); const n = try s.focused(); + // Its own text, after its computed words (UX K'1). + try s.write(s.at("/pane/{d}/tag", .{n}), "Save Term"); const was = try tag(&s, n); try s.click("Save", 0, 1); // `w` moves to the next word, as in a body's normal mode: nothing typed. @@ -459,16 +472,16 @@ test "tags: truncating a tag clears its own text, u in the tag undoes it, and > try s.truncate(h); try std.testing.expect(std.mem.indexOf(u8, try tag(&s, n), "Mine") == null); s.clunk(h); - try std.testing.expectEqualStrings("/test.txt", std.mem.trimEnd(u8, try tag(&s, n), " ")); + try std.testing.expectEqualStrings("/test.txt Del", std.mem.trimEnd(u8, try tag(&s, n), " ")); // The tag keeps its undo: undoing in it brings back what was cleared. try s.keys("::u:"); try std.testing.expect(std.mem.endsWith(u8, try tag(&s, n), " Mine")); // Written back without a leading space, the text still stands apart - // from the path, and a click on its first letter lands on it. + // from the computed words, and a click on its first letter lands on it. try s.replace(path, "Get"); - try std.testing.expectEqualStrings("/test.txt Get", try tag(&s, n)); + try std.testing.expectEqualStrings("/test.txt Del Get", try tag(&s, n)); try s.click("Get", 0, 1); - try std.testing.expectEqual(@as(usize, "/test.txt ".len), try tagCol(&s, "/test.txt")); + try std.testing.expectEqual(@as(usize, "/test.txt Del ".len), try tagCol(&s, "/test.txt")); // `echo Make > tag`: the newline ending the truncating write's text is // dropped, one only; a newline between its writes stays. const m = try s.hold(path, 1); @@ -476,10 +489,10 @@ test "tags: truncating a tag clears its own text, u in the tag undoes it, and > _ = try s.writeFid(m, "Make\n"); _ = try s.writeFid(m, "More\n\n"); s.clunk(m); - try std.testing.expectEqualStrings("/test.txt Make\nMore\n", try tag(&s, n)); + try std.testing.expectEqualStrings("/test.txt Del Make\nMore\n", try tag(&s, n)); // `>>` keeps what it is given. try s.write(path, " Tail\n"); - try std.testing.expectEqualStrings("/test.txt Make\nMore\n Tail\n", try tag(&s, n)); + try std.testing.expectEqualStrings("/test.txt Del Make\nMore\n Tail\n", try tag(&s, n)); } test "tags: a pane tag's file name is tinted, its directory, dirty marker and words not" { diff --git a/test/behaviour/terminals.zig b/test/behaviour/terminals.zig index f6bbdfa0..a2f7e951 100644 --- a/test/behaviour/terminals.zig +++ b/test/behaviour/terminals.zig @@ -13,7 +13,11 @@ test "terminals: Togglettymode and Ctrl-B share the mode's transitions, from the defer s.deinit(); const n = try s.focused(); const ctl = s.at("/pane/{d}/ctl", .{n}); - try std.testing.expect(std.mem.indexOf(u8, try s.read(s.at("/pane/{d}/tag", .{n})), " Mode ") != null); + // Mode is a word of its kind's, not its tag's (UX K'3): the tag is + // Del, then its own text, Term. + const tag = try s.read(s.at("/pane/{d}/tag", .{n})); + try std.testing.expect(std.mem.indexOf(u8, tag, " Mode ") == null); + try std.testing.expect(std.mem.indexOf(u8, tag, " Del Term") != null); try s.write(s.at("/pane/{d}/tag", .{n}), " Togglettymode"); try std.testing.expectEqualStrings("tty", try mode(&s, n)); try s.write(ctl, "Togglettymode\n"); diff --git a/test/column_drag.zig b/test/column_drag.zig index a12ca16f..31d4366d 100644 --- a/test/column_drag.zig +++ b/test/column_drag.zig @@ -38,7 +38,7 @@ fn expectOrder(p: *Pardes, before: []const Snapshot, order: []const usize) !void try std.testing.expectEqual(saved.serial, v.cols[column].serial); try std.testing.expectEqual(saved.count, v.cols[column].n); try std.testing.expectEqualSlices(usize, saved.panes[0..saved.count], v.cols[column].panes[0..p.view().cols[column].n]); - try std.testing.expectEqualStrings(saved.tag, pardes.tagline.columnTag(p, column)); + try std.testing.expectEqualStrings(saved.tag, p.view().col_tags[column].own.?); } } @@ -66,7 +66,7 @@ test "column grip drag moves only its interval and keeps tag caret with the colu _ = try p.render(frame.allocator()); var before: [4]Snapshot = undefined; for (&before, 0..) |*saved, column| { - saved.* = .{ .weight = p.view().cols[column].weight, .serial = p.view().cols[column].serial, .count = p.view().cols[column].n, .tag = pardes.tagline.columnTag(p, column) }; + saved.* = .{ .weight = p.view().cols[column].weight, .serial = p.view().cols[column].serial, .count = p.view().cols[column].n, .tag = p.view().col_tags[column].own.? }; @memcpy(saved.panes[0..saved.count], p.view().cols[column].panes[0..saved.count]); } const layer = try tagLayer(p, 1); diff --git a/test/daemon.py b/test/daemon.py index 3dfb0710..95a4da75 100644 --- a/test/daemon.py +++ b/test/daemon.py @@ -92,6 +92,9 @@ def base_env(): of the user's) or a pager; under `--with-pair`, PARDES_PAIR set in it, as for a user who exported it: every mode run with the variable.""" env = {k: v for k, v in os.environ.items() if not k.startswith('PARDES_') and 'PAGER' not in k} + # No language server starts at a file's open (lsp_client.open): none of + # this machine's. + env['PARDES_LSP_OPEN'] = 'off' if WITH_PAIR: env['PARDES_PAIR'] = '1' return env @@ -32,6 +32,8 @@ def session(binary, root, name, *options, socket_name=None, file=None, tty=False env.update(inherited or {}) for language in ['RS', 'C', 'GO', 'TS', 'PY']: env['PARDES_LSP_' + language] = '' + # No server starts at a file's open (lsp_client.open): none of this machine's. + env['PARDES_LSP_OPEN'] = 'off' fixture = root / (name + '.txt') fixture.write_bytes(b'initial\n') address = root / ('pardes-9p-' + (socket_name or name) + '.sock') diff --git a/test/hxdiff.zig b/test/hxdiff.zig index 67b4e777..2409cbb7 100644 --- a/test/hxdiff.zig +++ b/test/hxdiff.zig @@ -327,11 +327,11 @@ fn runCase(arena: std.mem.Allocator, case: Case, pane_kind: []const u8) !Result const core = try pardes.Pardes.init(gpa, .{ .tty_only = true }); defer core.deinit(); // helix's harness runs at 80x24, a view of 22 text rows under its - // status and command lines; pardes's chrome (the workspace and column - // tags, the pane's tag and the notice row) takes two rows more, so 26 - // rows give its pane the same 22 that every page, half page and gb - // counts in - core.update(.{ .resize = .{ .cols = 80, .rows = 26 } }); + // status and command lines; pardes's chrome (the window row, the pane's + // tag and the notice row; a lone column has no column row, UX K'2) + // takes one row more, so 25 rows give its pane the same 22 that every + // page, half page and gb counts in + core.update(.{ .resize = .{ .cols = 80, .rows = 25 } }); pump(core); if (std.mem.eql(u8, pane_kind, "file")) { diff --git a/test/lspmock.zig b/test/lspmock.zig index 0fd34677..6f52f568 100644 --- a/test/lspmock.zig +++ b/test/lspmock.zig @@ -257,8 +257,15 @@ fn handle(a: std.mem.Allocator, raw: []const u8) void { } else if (std.mem.eql(u8, method, "textDocument/hover")) { reply(a, rid, "{{\"contents\":{{\"kind\":\"markdown\",\"value\":\"mock hover: pub fn add\"}}}}", .{}); } else if (std.mem.eql(u8, method, "textDocument/documentSymbol")) { - reply(a, rid, "[{{\"name\":\"main\",\"kind\":12,\"range\":{s},\"selectionRange\":{s}}}]", .{ - range(a, 2, 0, 11), range(a, 2, 3, 7), + // Nested and in no kind's order: a const, a function, a struct + // with a field and a method, an enum with a member, a module. + reply(a, rid, "[{{\"name\":\"LIMIT\",\"kind\":14,\"range\":{s},\"selectionRange\":{s}}},{{\"name\":\"main\",\"kind\":12,\"range\":{s},\"selectionRange\":{s}}}," ++ + "{{\"name\":\"Shape\",\"kind\":23,\"range\":{s},\"selectionRange\":{s},\"children\":[{{\"name\":\"side\",\"kind\":8,\"range\":{s},\"selectionRange\":{s}}},{{\"name\":\"area\",\"kind\":6,\"range\":{s},\"selectionRange\":{s}}}]}}," ++ + "{{\"name\":\"Kind\",\"kind\":10,\"range\":{s},\"selectionRange\":{s},\"children\":[{{\"name\":\"Round\",\"kind\":22,\"range\":{s},\"selectionRange\":{s}}}]}},{{\"name\":\"lib\",\"kind\":2,\"range\":{s},\"selectionRange\":{s}}}]", .{ + range(a, 0, 0, 21), range(a, 0, 6, 11), range(a, 2, 0, 11), range(a, 2, 3, 7), + range(a, 3, 0, 18), range(a, 3, 11, 16), range(a, 4, 4, 14), range(a, 4, 4, 8), + range(a, 5, 4, 16), range(a, 5, 7, 11), range(a, 7, 0, 11), range(a, 7, 5, 9), + range(a, 8, 4, 10), range(a, 8, 4, 9), range(a, 10, 0, 8), range(a, 10, 4, 7), }); } else if (std.mem.eql(u8, method, "workspace/symbol")) { const q = str(get(params, "query")) orelse ""; diff --git a/test/mode.zig b/test/mode.zig index 1f21c7db..a7538dff 100644 --- a/test/mode.zig +++ b/test/mode.zig @@ -31,7 +31,11 @@ test "Mode cycles terminal modes and keeps legacy toggle and custom tags" { while (p.nextEffect()) |_| {} const pane = p.panes[0].?; try std.testing.expectEqual(panes.Text.Mode.tty, pane.body.mode); - try std.testing.expect(std.mem.indexOf(u8, try pardes.tagline.tagText(p, p.scratch.allocator(), pane), " Mode") != null); + // Mode is a word of its kind's (`:`'s, UX K'4), not of its tag's: typed + // into the tag's own text, it runs from there as B2 runs it. + try std.testing.expect(std.mem.indexOf(u8, pardes.tagline.kindTail(pane), " Mode") != null); + try std.testing.expect(std.mem.indexOf(u8, try pardes.tagline.tagText(p, p.scratch.allocator(), pane), " Mode") == null); + try customTag(pane, "Mode"); try mode(p, 0, .normal); try mode(p, 0, .insert); // A clicked tag is in normal mode, where its execute key is, as a diff --git a/test/panes.zig b/test/panes.zig index 8f0a352c..7b34192f 100644 --- a/test/panes.zig +++ b/test/panes.zig @@ -117,10 +117,13 @@ const TagLayerTests = struct { for ([_]Kind{ .workspace, .column }) |kind| { const id: usize = if (kind == .column) 1 else 0; const header = try findLayer(p, kind, id); - const x = @as(f32, @floatFromInt(header.viewport.x)) * 10 + 62.5 * 5; + // The own text after the header's computed words and a blank + // (UX K'2). + const lead: f32 = @floatFromInt(pardes.tagline.headerWords(p, if (kind == .column) .column else .workspace).len + 1); + const x = @as(f32, @floatFromInt(header.viewport.x)) * 10 + (lead + 62.5) * 5; p.update(.{ .mouse = mouse(header, x, .press) }); p.update(.{ .mouse = mouse(header, x, .release) }); - try std.testing.expectEqual(@as(i32, 63), pardes.tagline.focusedHeader(p).?.cur_col); + try std.testing.expectEqual(@as(i32, @intFromFloat(lead + 63)), pardes.tagline.focusedHeader(p).?.cur_col); if (kind == .column) try std.testing.expectEqual(@as(?usize, 1), p.headerColumn()) else try std.testing.expect(p.headerColumn() == null); p.update(.{ .key = .{ .cp = Key.escape } }); } @@ -2266,7 +2269,7 @@ const ImageTests = struct { pardes.layout.placeNew(p, 0, 0, id, .doc); _ = try p.render(p.scratch.allocator()); pane.addon.?.art = .{ .glyph = true, .palette = .terminal, .ascii = false }; - try std.testing.expectEqualStrings("img petscii:on palette:terminal ascii:off /tmp/picture.ppm", try pardes.tagline.tagPrefix(p, pane)); + try std.testing.expectEqualStrings("img petscii:on palette:terminal ascii:off /tmp/picture.ppm", try pardes.tagline.pathPrefix(p, p.scratch.allocator(), pane)); } test "an image's dump keeps its path, its renderer choices and its tag's tail, and reopens from the file; a file gone waits as a placeholder saying so" { diff --git a/test/process.zig b/test/process.zig index 791a5b8e..fe5d97f0 100644 --- a/test/process.zig +++ b/test/process.zig @@ -960,9 +960,12 @@ pub const Child = struct { // never the user's: the dumps a test makes there would push the // user's out. if (root_z != null) _ = unsetenv("XDG_DATA_HOME"); + // No language server starts at a file's open (lsp_client.open): + // the `lsp` cases' zls is this machine's, started by their + // first query as before. for ([_][2][*:0]const u8{ .{ "PARDES_DAEMON", "off" }, .{ "PARDES_LSP_RS", "" }, .{ "PARDES_LSP_C", "" }, .{ "PARDES_LSP_GO", "" }, - .{ "PARDES_LSP_TS", "" }, .{ "PARDES_LSP_PY", "" }, + .{ "PARDES_LSP_TS", "" }, .{ "PARDES_LSP_PY", "" }, .{ "PARDES_LSP_OPEN", "off" }, }) |kv| if (setenv(kv[0], kv[1], 1) != 0) _exit(126); if (opts.pty != null and setenv("TERM", "xterm-256color", 1) != 0) _exit(126); // No test reaches the user's display: a window any of them diff --git a/test/process/other_files.zig b/test/process/other_files.zig index 69f65884..48ba06d0 100644 --- a/test/process/other_files.zig +++ b/test/process/other_files.zig @@ -8,6 +8,8 @@ pub const cases = .{ .{ "other-files: a held connection lists a directory, stats a file, writes and reads, is refused in words and removes a pane", heldConnection }, .{ "other-files: a file opened and closed is in /recent closed, and still is in the next session; Recent's row opens it again", recentSurvivesRestart }, .{ "other-files: two sessions share Recent: a file opened in one is in the other's /recent, a Del'd pane comes back from @p only where it was", recentShared }, + .{ "other-files: kbdin's SPC f f over a work tree of 20,000 files is answered before the listing, which a worker runs as the keyboard's, its rows after", findOnWorker }, + .{ "other-files: kbdin's SPC s s lists the declarations of a file over 64 KB, parsed on a worker as the keyboard's are", symbolsOnWorker }, }; extern "c" fn system(cmd: [*:0]const u8) c_int; @@ -185,3 +187,61 @@ fn recentShared(gpa: std.mem.Allocator, exe: [:0]const u8) !void { } try std.testing.expect(stateExists(root)); } + +/// A kbdin `SPC f f` over a work tree of 20,000 files: the keys handled and +/// the write answered, the listing run on a worker as the keyboard's is, +/// its rows on the screen after. (Before, the listing ran on the loop in the +/// write: over V8's 18,441 files a script's `SPC f g` held the session past +/// its client's timeout.) +fn findOnWorker(gpa: std.mem.Allocator, exe: [:0]const u8) !void { + var d = try process.Detached.start(gpa, exe, "kbdfind", .{}); + defer d.deinit(); + const f = &d.files; + const eh = @import("../e2e_harness.zig"); + var buf: [4096]u8 = undefined; + const tree = f.at("{s}/tree", .{d.root()}); + for ([_][]const u8{ "", "/.git" }) |sub| _ = std.c.mkdir(try std.fmt.bufPrintSentinel(&buf, "{s}{s}", .{ tree, sub }, 0), 0o755); + for (0..200) |dir| { + _ = std.c.mkdir(try std.fmt.bufPrintSentinel(&buf, "{s}/d{d:0>3}", .{ tree, dir }, 0), 0o755); + for (0..100) |i| try eh.writeFile(try std.fmt.bufPrintSentinel(&buf, "{s}/d{d:0>3}/f{d:0>3}.txt", .{ tree, dir, i }, 0), ""); + } + try eh.writeFile(try std.fmt.bufPrintSentinel(&buf, "{s}/zzlast.txt", .{tree}, 0), "last\n"); + try eh.writeFile(try std.fmt.bufPrintSentinel(&buf, "{s}/notes.txt", .{tree}, 0), "notes\n"); + try f.write("/look", f.at("{s}/notes.txt\n", .{tree})); + const t0 = process.nowMs(); + try f.keys(" ffzzlast"); + const answered = process.nowMs() - t0; + const listed = while (true) { + if (has(try f.screen(), "zzlast.txt")) break process.nowMs() - t0; + if (process.nowMs() - t0 > 30_000) return error.RowsNeverCame; + process.nap(5); + }; + try process.check(answered * 3 < listed, "kbdin's SPC f f answered after {d} ms, its row there after {d} ms: the listing ran in the write", .{ answered, listed }); + try f.keys("\x1b"); +} + +/// kbdin's `SPC s s` over a file of more than 64 KB: its declarations +/// parsed on a worker, as the keyboard's are, and listed. (Before, the +/// keys ran as a script's write, whose parse has no worker and leaves a +/// text this big unparsed: the picker listed nothing.) +fn symbolsOnWorker(gpa: std.mem.Allocator, exe: [:0]const u8) !void { + var d = try process.Detached.start(gpa, exe, "kbdsym", .{}); + defer d.deinit(); + const f = &d.files; + var text: std.ArrayList(u8) = .empty; + defer text.deinit(gpa); + // Two lines each: a declaration on one line is none (syntax.contextSpan). + for (0..4000) |i| try text.print(gpa, "fn f{d:0>4}() void {{\n}}\n", .{i}); + try text.appendSlice(gpa, "fn zzlastfn() void {\n}\n"); + try process.check(text.items.len > 64 << 10, "{d} bytes", .{text.items.len}); + var buf: [4096]u8 = undefined; + try @import("../e2e_harness.zig").writeFile(try std.fmt.bufPrintSentinel(&buf, "{s}/big.zig", .{d.root()}, 0), text.items); + try f.write("/look", f.at("{s}/big.zig\n", .{d.root()})); + try f.keys(" sszzlast"); + const t0 = process.nowMs(); + while (!has(try f.screen(), "zzlastfn")) { + if (process.nowMs() - t0 > 20_000) return process.check(false, "kbdin's SPC s s over big.zig listed nothing", .{}); + process.nap(10); + } + try f.keys("\x1b"); +} diff --git a/test/process/tty_boot.zig b/test/process/tty_boot.zig index 2680a499..2a4fea00 100644 --- a/test/process/tty_boot.zig +++ b/test/process/tty_boot.zig @@ -45,7 +45,7 @@ fn argv(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.stable(700, 10000); try t.snap("noargs"); try t.start(31, 100, &.{"notes.txt:3"}); - try t.wait(8000, "Newcol Joincol"); + try t.wait(8000, "Newcol Help Exit"); try t.wait(8000, "line 3"); try t.stable(700, 20000); try t.snap("filearg"); @@ -53,14 +53,14 @@ fn argv(gpa: std.mem.Allocator, exe: [:0]const u8) !void { // `-n 3` boots the very same single pane (it always did — the file arm never // looked at the count; before this it merely also stapled a shell to the right) try t.start(31, 100, &.{ "-n", "3", "notes.txt" }); - try t.wait(8000, "Newcol Joincol"); + try t.wait(8000, "Newcol Help Exit"); try t.wait(8000, "line 1"); try t.stable(700, 20000); try t.snap("filearg-n3"); try t.dir("sub"); try t.file("sub/inside.txt", "marker"); try t.start(31, 100, &.{"sub"}); - try t.wait(8000, "Newcol Joincol"); + try t.wait(8000, "Newcol Help Exit"); try t.wait(8000, "inside.txt"); try t.stable(700, 20000); try t.snap("dirarg"); @@ -77,14 +77,14 @@ fn badutf(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.file("bad.txt", "hello \xff\xfe world\nlatin-1 caf\xe9 tail\ntruncated \xe6\x97 here\nend\n"); try t.file("wide.txt", "日本語 日本語 日本語 日本語 日本語 日本語 日本語 tail\nsecond line\n"); try t.start(31, 100, &.{"bad.txt"}); - try t.wait(8000, "Newcol Joincol"); + try t.wait(8000, "Newcol Help Exit"); try t.stable(700, 20000); try t.snap("badbytes"); // 50 columns, not 100: a FILE boots alone and fills the window, and at 100 the // whole line fits, so `$` scrolls nowhere. This is // the width the left column used to be, i.e. the pane this case was written for try t.start(31, 50, &.{"wide.txt"}); - try t.wait(8000, "Newcol Joincol"); + try t.wait(8000, "Newcol Help Exit"); try t.stable(700, 20000); // SPC t w turns soft wrap OFF: hscroll is the other half of this case and a // wrapped body has nothing to scroll sideways. The unwrapped view must keep the @@ -103,7 +103,7 @@ fn boot(gpa: std.mem.Allocator, exe: [:0]const u8) !void { defer t.deinit(); try t.file("hello.txt", "marker-content"); try t.start(31, 100, &.{ "-n", "1" }); - try t.wait(8000, "Newcol Joincol"); + try t.wait(8000, "Newcol Help Exit"); try t.wait(8000, "hello.txt"); try t.stable(700, 20000); try t.snap("boot"); @@ -144,20 +144,20 @@ fn builtins(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.key("space j n space j n space j n"); try t.wait(10000, "Look enter, right-click"); try t.wait(10000, "Look at its argument as B3 does"); - try sweepHelp(&t, "@Help#1", 4); + try sweepHelp(&t, "@Help#1", 3); try t.wait(10000, "under SPC c"); try t.wait(10000, "Joincol"); try t.stable(700, 15000); try t.snap("column-group"); - try sweepHelp(&t, "@Help#2", 4); + try sweepHelp(&t, "@Help#2", 3); try t.wait(10000, "Tutor"); try t.stable(700, 15000); try t.snap("docs-group"); // Tutor's row, under the documentation of the four before it (Keys, // describe-key, is SPC h k; Messages' runs to three rows) - try t.press("middle", "@Tutor", 32); - try t.release("middle", "@Tutor", 32); + try t.press("middle", "@Tutor", 31); + try t.release("middle", "@Tutor", 31); try t.wait(10000, "PARDES TUTOR"); try t.stable(700, 15000); try t.snap("tutor-from-index"); @@ -182,6 +182,14 @@ fn dump(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.key("esc"); try t.settle(100); try t.stable(400, 5000); + // Dump left the window row (UX K'4): typed into its own text, after its + // words (A appends at the line's end), and run there by B2 + try t.press("left", "@Find", 1); + try t.release("left", "@Find", 1); + try t.key("A"); + try t.send("Dump"); + try t.key("esc"); + try t.settle(100); try t.press("middle", "@Dump", 1); try t.release("middle", "@Dump", 1); try t.stable(600, 8000); @@ -213,6 +221,14 @@ fn load(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.wheel("up", "10", 8); try t.wheel("up", "10", 8); try t.stable(500, 8000); + // Dump left the window row (UX K'4): typed into its own text, after its + // words (A appends at the line's end), and run there by B2 + try t.press("left", "@Find", 1); + try t.release("left", "@Find", 1); + try t.key("A"); + try t.send("Dump"); + try t.key("esc"); + try t.settle(100); try t.press("middle", "@Dump", 1); try t.release("middle", "@Dump", 1); try t.stable(600, 8000); @@ -233,7 +249,7 @@ fn restore(gpa: std.mem.Allocator, exe: [:0]const u8) !void { defer t.deinit(); t.privateDaemon(); try t.start(31, 100, &.{ "-n", "1" }); - try t.wait(8000, "Newcol Joincol"); + try t.wait(8000, "Newcol Help Exit"); try t.stable(700, 20000); try t.key("c-b"); try t.stable(600, 8000); @@ -241,6 +257,14 @@ fn restore(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.key("enter"); try t.wait(8000, "KEEPME"); try t.stable(700, 10000); + // Dump left the window row (UX K'4): typed into its own text, after its + // words (A appends at the line's end), and run there by B2 + try t.press("left", "@Find", 1); + try t.release("left", "@Find", 1); + try t.key("A"); + try t.send("Dump"); + try t.key("esc"); + try t.settle(100); try t.press("middle", "@Dump", 1); try t.release("middle", "@Dump", 1); try t.stable(700, 10000); @@ -288,10 +312,11 @@ fn headersweep(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.wait(8000, "EPT-COL) exit 0"); try t.stable(700, 15000); try t.snap("col-swept"); - // the workspace tag, the same - try t.press("left", "110", 1); - try t.release("left", "110", 1); - try t.key("i"); + // the workspace tag, the same: its own text after its words (UX K'1; + // A appends at the line's end) + try t.press("left", "@Find", 1); + try t.release("left", "@Find", 1); + try t.key("A"); try t.key("space"); try t.send("echo SW''EPT-WS"); try t.key("esc"); @@ -304,9 +329,9 @@ fn headersweep(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.snap("ws-swept"); // a right sweep over part of a word looks for the part: `hay.txt` opens, // where a click would look for all of `xxhay.txtxx` - try t.press("left", "118", 1); - try t.release("left", "118", 1); - try t.key("i"); + try t.press("left", "@Find", 1); + try t.release("left", "@Find", 1); + try t.key("A"); try t.key("space"); try t.send("xxhay.txtxx"); try t.key("esc"); @@ -327,9 +352,9 @@ fn headersweep(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.snap("cancelled"); // for comparison, a select sweep over the second column's tag selects, in // the tag's selection colours, and runs nothing - try t.press("left", "@Find#2", 2); - try t.drag("left", "@Grep#2+4", 2); - try t.release("left", "@Grep#2+4", 2); + try t.press("left", "@New#2", 2); + try t.drag("left", "@Term#2+4", 2); + try t.release("left", "@Term#2+4", 2); try t.stable(700, 15000); try t.style("selected"); try t.done(); @@ -345,6 +370,14 @@ fn headersweep_restored(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.start(21, 120, &.{ "-n", "3" }); try t.wait(8000, "Newcol"); try t.stable(700, 20000); + // Dump left the window row (UX K'4): typed into its own text, after its + // words (A appends at the line's end), and run there by B2 + try t.press("left", "@Find", 1); + try t.release("left", "@Find", 1); + try t.key("A"); + try t.send("Dump"); + try t.key("esc"); + try t.settle(100); try t.press("middle", "@Dump", 1); try t.release("middle", "@Dump", 1); try t.stable(700, 10000); @@ -367,9 +400,9 @@ fn headersweep_restored(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.wait(8000, "-COL) exit 0"); try t.stable(700, 15000); try t.snap("col-swept"); - try t.press("left", "118", 1); - try t.release("left", "118", 1); - try t.key("i"); + try t.press("left", "@Find", 1); + try t.release("left", "@Find", 1); + try t.key("A"); try t.key("space"); try t.send("echo RE''STORED-WS"); try t.key("esc"); @@ -397,7 +430,7 @@ fn logquiet(gpa: std.mem.Allocator, exe: [:0]const u8) !void { var t = try Tty.init(gpa, exe, "logquiet"); defer t.deinit(); try t.start(31, 100, &.{ "-n", "1" }); - try t.wait(8000, "Newcol Joincol"); + try t.wait(8000, "Newcol Help Exit"); try t.stable(700, 20000); try t.key("c-b"); try t.stable(600, 8000); @@ -413,8 +446,16 @@ fn tutor(gpa: std.mem.Allocator, exe: [:0]const u8) !void { var t = try Tty.init(gpa, exe, "tutor"); defer t.deinit(); try t.start(31, 150, &.{ "-n", "3" }); - try t.wait(8000, "Newcol Joincol"); + try t.wait(8000, "Newcol Help Exit"); try t.stable(700, 20000); + // Tutor left the window row (UX K'4): typed into its own text, after its + // words (A appends at the line's end), and run there by B2 + try t.press("left", "@Find", 1); + try t.release("left", "@Find", 1); + try t.key("A"); + try t.send("Tutor"); + try t.key("esc"); + try t.settle(100); try t.press("middle", "@Tutor", 1); try t.release("middle", "@Tutor", 1); try t.stable(700, 15000); @@ -446,6 +487,15 @@ fn topbarexec(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.start(21, 90, &.{ "-n", "3" }); try t.wait(8000, "zmarkfile.txt"); try t.stable(700, 20000); + // Debug left the window row (UX K'4): typed into its own text, after its + // words (A appends at the line's end), and run there by B2 + try t.press("left", "@Find", 1); + try t.release("left", "@Find", 1); + try t.key("A"); + try t.send("Debug"); + try t.key("esc"); + try t.settle(100); + try t.stable(400, 8000); // sweep `zmarkfile.txt` out of the shell's own greeting: an ordinary left drag, // and the kind of stale highlight that is simply lying around in real use try t.press("left", "3", 6); @@ -482,7 +532,7 @@ fn leader(gpa: std.mem.Allocator, exe: [:0]const u8) !void { // §4.5): the +Help index for a group is the word's, `Help h` swept here. try t.file("cmds.txt", "Help Help h Help t Help c Help l"); try t.start(41, 100, &.{"cmds.txt"}); - try t.wait(8000, "Newcol Joincol"); + try t.wait(8000, "Newcol Help Exit"); try t.wait(8000, "cmds.txt"); try t.stable(700, 20000); @@ -510,11 +560,11 @@ fn leader(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.stable(400, 5000); // Executing Help as text opens the full index, not a filtered group. - try t.press("middle", "@Help", 4); - try t.release("middle", "@Help", 4); + try t.press("middle", "@Help", 3); + try t.release("middle", "@Help", 3); try t.wait(10000, "pardes builtins: each one's keys and its name"); try t.wait(10000, "ClipPasteBefore"); - try sweepHelp(&t, "@Help#2", 4); + try sweepHelp(&t, "@Help#2", 3); try t.wait(10000, "under SPC h"); try t.stable(700, 15000); try t.snap("help-group"); @@ -534,24 +584,24 @@ fn leader(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.key("space d"); try t.stable(700, 15000); - try t.press("middle", "@Help", 4); - try t.release("middle", "@Help", 4); + try t.press("middle", "@Help", 3); + try t.release("middle", "@Help", 3); try t.wait(10000, "pardes builtins: each one's keys and its name"); try t.wait(10000, "ClipPasteBefore"); // PDF commands depend on the build; these toggles do not. - try sweepHelp(&t, "@Help#3", 4); + try sweepHelp(&t, "@Help#3", 3); try t.wait(10000, "under SPC t"); // its first rows: each word's documentation under it, the rest below try t.wait(10000, "SPC t a Ascii"); try t.wait(10000, "SPC t c Changes"); // SPC w is Window itself now, not a group; the column group stands in - try sweepHelp(&t, "@Help#4", 4); + try sweepHelp(&t, "@Help#4", 3); try t.wait(10000, "under SPC c"); try t.wait(10000, "Joincol"); try t.stable(700, 15000); try t.snap("help-column"); - try sweepHelp(&t, "@Help#5", 4); + try sweepHelp(&t, "@Help#5", 3); try t.wait(10000, "WsDiagnostics"); try t.stable(700, 15000); try t.snap("help-language"); @@ -579,8 +629,8 @@ fn mini(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.start(23, 90, &.{"commands.txt"}); try t.wait(8000, "Mini demo.zig"); try t.stable(400, 10000); - try t.press("middle", "@Mini", 4); - try t.release("middle", "@Mini", 4); + try t.press("middle", "@Mini", 3); + try t.release("middle", "@Mini", 3); try t.wait(8000, "/Mini demo.zig"); try t.stable(500, 10000); try t.snap("opened"); @@ -754,7 +804,7 @@ fn msg(gpa: std.mem.Allocator, exe: [:0]const u8) !void { defer t.deinit(); try t.lines("a.txt", 6, ""); try t.start(15, 70, &.{"a.txt"}); - try t.wait(8000, "Newcol Joincol"); + try t.wait(8000, "Newcol Help Exit"); try t.wait(8000, "a.txt"); try t.stable(700, 20000); try t.snap("opened"); @@ -885,7 +935,7 @@ fn savepane(gpa: std.mem.Allocator, exe: [:0]const u8) !void { var t = try Tty.init(gpa, exe, "savepane"); defer t.deinit(); try t.start(31, 100, &.{ "-n", "1" }); - try t.wait(8000, "Newcol Joincol"); + try t.wait(8000, "Newcol Help Exit"); try t.stable(700, 20000); // a scratch of our own, with something in it to save try t.key("space f n"); @@ -944,26 +994,26 @@ fn filewatch(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.wait(8000, "w.txt"); try t.stable(700, 20000); // open w.txt as a file pane: type the name into the shell, right-click it - try t.press("left", "5", 9); - try t.release("left", "5", 9); + try t.press("left", "5", 8); + try t.release("left", "5", 8); try t.stable(400, 5000); try t.key("i"); try t.send("w.txt"); try t.key("esc"); try t.settle(100); - try t.press("right", "6", 9); - try t.release("right", "6", 9); + try t.press("right", "6", 8); + try t.release("right", "6", 8); try t.wait(10000, "line 4"); try t.stable(700, 15000); // ...and open sub/s.txt from the path sitting on line 3 of that pane, so the // second watched pane is in a DIFFERENT directory from the first - try t.press("right", "20", 10); - try t.release("right", "20", 10); + try t.press("right", "20", 9); + try t.release("right", "20", 9); try t.wait(10000, "line 8"); try t.stable(700, 15000); // an UNSAVED edit on line 1 of w.txt - try t.press("left", "10", 8); - try t.release("left", "10", 8); + try t.press("left", "10", 7); + try t.release("left", "10", 7); try t.stable(400, 5000); try t.key("i"); try t.send("MYEDIT"); diff --git a/test/process/tty_editing.zig b/test/process/tty_editing.zig index a5d58906..862897e7 100644 --- a/test/process/tty_editing.zig +++ b/test/process/tty_editing.zig @@ -300,12 +300,12 @@ fn yankpaste(gpa: std.mem.Allocator, exe: [:0]const u8) !void { defer t.deinit(); try t.lines("f.txt", 5, ""); try t.start(31, 100, &.{"f.txt"}); - try t.wait(8000, "Newcol Joincol"); + try t.wait(8000, "Newcol Help Exit"); try t.wait(8000, "line 5"); try t.stable(700, 20000); // linewise: x-select line 2, yank, move down, paste below line 3 - try t.press("left", "8", 5); - try t.release("left", "8", 5); + try t.press("left", "8", 4); + try t.release("left", "8", 4); try t.stable(400, 5000); try t.key("x y j p"); try t.stable(400, 5000); @@ -315,8 +315,8 @@ fn yankpaste(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.stable(400, 5000); try t.snap("linewise-above"); // charwise: v-select two chars of line 1, yank, paste splices after them - try t.press("left", "8", 4); - try t.release("left", "8", 4); + try t.press("left", "8", 3); + try t.release("left", "8", 3); try t.stable(400, 5000); try t.key("v l y p"); try t.stable(400, 5000); @@ -392,42 +392,42 @@ fn chordcut(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.stable(700, 15000); try t.snap("opened"); // 1-2 Cut: left-drag over "line" on line 2, tap middle while holding - try t.press("left", "8", 10); - try t.drag("left", "11", 10); - try t.press("middle", "11", 10); - try t.release("middle", "11", 10); - try t.release("left", "11", 10); + try t.press("left", "8", 8); + try t.drag("left", "11", 8); + try t.press("middle", "11", 8); + try t.release("middle", "11", 8); + try t.release("left", "11", 8); try t.stable(400, 5000); try t.snap("cut"); // 1-2 then 1-3 in one hold = copy: line 3 keeps its text, register loaded - try t.press("left", "8", 11); - try t.drag("left", "11", 11); - try t.press("middle", "11", 11); - try t.release("middle", "11", 11); - try t.press("right", "11", 11); - try t.release("right", "11", 11); - try t.release("left", "11", 11); + try t.press("left", "8", 9); + try t.drag("left", "11", 9); + try t.press("middle", "11", 9); + try t.release("middle", "11", 9); + try t.press("right", "11", 9); + try t.release("right", "11", 9); + try t.release("left", "11", 9); try t.stable(400, 5000); try t.snap("copied"); // 1-3 at a bare click point: hold left past the end of line 4, tap right — // the register splices in at the click - try t.press("left", "14", 12); - try t.press("right", "14", 12); - try t.release("right", "14", 12); - try t.release("left", "14", 12); + try t.press("left", "14", 10); + try t.press("right", "14", 10); + try t.release("right", "14", 10); + try t.release("left", "14", 10); try t.stable(400, 5000); try t.snap("pointpaste"); // 1-3 over a fresh selection replaces it with the register - try t.press("left", "9", 13); - try t.drag("left", "11", 13); - try t.press("right", "11", 13); - try t.release("right", "11", 13); - try t.release("left", "11", 13); + try t.press("left", "9", 11); + try t.drag("left", "11", 11); + try t.press("right", "11", 11); + try t.release("right", "11", 11); + try t.release("left", "11", 11); try t.stable(400, 5000); try t.snap("replaced"); // arm the cancel tests: append `echo B''OO g.txt` to line 2 - try t.press("left", "10", 10); - try t.release("left", "10", 10); + try t.press("left", "10", 8); + try t.release("left", "10", 8); try t.stable(400, 5000); try t.key("i"); try t.send("echo B''OO g.txt"); @@ -436,56 +436,56 @@ fn chordcut(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.stable(400, 5000); // 2-3 cancel (acme textselect2): tap right during the middle execute-drag // over `echo B''OO` — the command never runs (no BOO anywhere) - try t.press("middle", "10", 10); - try t.drag("middle", "19", 10); - try t.press("right", "19", 10); - try t.release("right", "19", 10); - try t.release("middle", "19", 10); + try t.press("middle", "10", 8); + try t.drag("middle", "19", 8); + try t.press("right", "19", 8); + try t.release("right", "19", 8); + try t.release("middle", "19", 8); try t.stable(700, 8000); try t.snap("cancelexec"); // the same drag released clean proves the word was live: BOO appears - try t.press("middle", "10", 10); - try t.drag("middle", "19", 10); - try t.release("middle", "19", 10); + try t.press("middle", "10", 8); + try t.drag("middle", "19", 8); + try t.release("middle", "19", 8); try t.wait(10000, "BOO"); try t.stable(700, 10000); try t.snap("execafter"); // 3-1 cancel (acme textselect3): tap left during the right look-drag over // g.txt — no pane opens - try t.press("right", "21", 10); - try t.drag("right", "25", 10); - try t.press("left", "25", 10); - try t.release("left", "25", 10); - try t.release("right", "25", 10); + try t.press("right", "21", 8); + try t.drag("right", "25", 8); + try t.press("left", "25", 8); + try t.release("left", "25", 8); + try t.release("right", "25", 8); try t.stable(700, 8000); try t.snap("cancellook"); // the same look released clean opens g.txt - try t.press("right", "21", 10); - try t.drag("right", "25", 10); - try t.release("right", "25", 10); + try t.press("right", "21", 8); + try t.drag("right", "25", 8); + try t.release("right", "25", 8); try t.wait(10000, "line 2"); try t.stable(700, 10000); try t.snap("lookafter"); // a fresh left click dismisses the chord's leftover selection instead of // dragging the anchored span to the click: copy `line` on g.txt line 1 // (styled snap shows the selection), then click the next row (it's gone) - try t.press("left", "8", 24); - try t.drag("left", "11", 24); - try t.press("middle", "11", 24); - try t.release("middle", "11", 24); - try t.press("right", "11", 24); - try t.release("right", "11", 24); - try t.release("left", "11", 24); + try t.press("left", "8", 23); + try t.drag("left", "11", 23); + try t.press("middle", "11", 23); + try t.release("middle", "11", 23); + try t.press("right", "11", 23); + try t.release("right", "11", 23); + try t.release("left", "11", 23); try t.stable(400, 5000); try t.style("chordsel"); - try t.press("left", "8", 25); - try t.release("left", "8", 25); + try t.press("left", "8", 24); + try t.release("left", "8", 24); try t.stable(400, 5000); try t.style("clickdismiss"); // g.txt opened under the lower shell's text and left it three rows: close it, // and the shell grows back into its rows, for what follows to run in - try t.press("middle", "59", 23); - try t.release("middle", "59", 23); + try t.press("middle", "@Del", 22); + try t.release("middle", "@Del", 22); try t.stable(700, 15000); // tty paste chord: over a mouse-listening app B1 is the app's, so the // chord's B1 holds Shift (B3 is pardes's either way); the app gets a click @@ -554,31 +554,31 @@ fn selarg(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.key("c-b"); try t.stable(600, 8000); // keep a left selection over ZZARG in pane A (this also focuses A) - try t.press("left", "3", 5); - try t.drag("left", "7", 5); - try t.release("left", "7", 5); + try t.press("left", "3", 4); + try t.drag("left", "7", 4); + try t.release("left", "7", 4); try t.stable(400, 5000); try t.snap("kept"); // chord in pane B: middle on ./c.sh + left tap (B has NO selection: the // argument comes from pane A's kept left selection) + middle release runs - try t.press("middle", "55", 5); - try t.press("left", "55", 5); - try t.release("middle", "55", 5); - try t.release("left", "55", 5); + try t.press("middle", "55", 4); + try t.press("left", "55", 4); + try t.release("middle", "55", 4); + try t.release("left", "55", 4); try t.wait(10000, "CHORDARG:ZZARG"); try t.stable(700, 10000); try t.snap("crosspane"); // now an explicit modal selection: plain-click ZZVEE in A (drops A's kept // left selection), select it with v e, chord in B again - try t.press("left", "9", 5); - try t.release("left", "9", 5); + try t.press("left", "9", 4); + try t.release("left", "9", 4); try t.stable(400, 5000); try t.send("ve"); try t.stable(400, 5000); - try t.press("middle", "55", 5); - try t.press("left", "55", 5); - try t.release("middle", "55", 5); - try t.release("left", "55", 5); + try t.press("middle", "55", 4); + try t.press("left", "55", 4); + try t.release("middle", "55", 4); + try t.release("left", "55", 4); try t.wait(10000, "CHORDARG:ZZVEE"); try t.stable(700, 10000); try t.snap("vselarg"); @@ -637,8 +637,8 @@ fn find(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.stable(700, 15000); try t.snap("promoted"); // a second Find from here.txt reuses its query pane; nothing found is 0 - try t.press("left", "8", 4); - try t.release("left", "8", 4); + try t.press("left", "8", 3); + try t.release("left", "8", 3); try t.stable(400, 5000); try t.key("space"); try t.key("f"); @@ -653,9 +653,9 @@ fn find(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.snap("cancel"); // B2 on Find with `zqm` selected in here.txt: the query pane under it, the // keyboard still in here.txt - try t.press("left", "13", 4); - try t.drag("left", "15", 4); - try t.release("left", "15", 4); + try t.press("left", "13", 3); + try t.drag("left", "15", 3); + try t.release("left", "15", 3); try t.stable(400, 5000); try t.press("middle", "@Find", 1); try t.release("middle", "@Find", 1); @@ -1061,14 +1061,14 @@ fn lookpanes(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.stable(400, 5000); // an ordinary dir look on the shell's own ls output: alpha's directory pane, // split below it, which takes the keyboard - try t.press("right", "@alpha", 6); - try t.release("right", "@alpha", 6); + try t.press("right", "@alpha", 5); + try t.release("right", "@alpha", 5); try t.wait(10000, "amark.txt"); try t.stable(700, 20000); // type the words to look into what is left of the workdir shell (past its own // ls output, on the same row: its last row is the resize handle) - try t.press("left", "95", 5); - try t.release("left", "95", 5); + try t.press("left", "95", 4); + try t.release("left", "95", 4); try t.stable(400, 5000); try t.key("i"); try t.send("zqonly.txt pick.txt twin.txt"); @@ -1077,42 +1077,42 @@ fn lookpanes(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.stable(400, 5000); try t.snap("shells"); // make the beta pane the most recently focused, so the walk has to pass it - try t.press("left", "10", 5); - try t.release("left", "10", 5); + try t.press("left", "10", 4); + try t.release("left", "10", 4); try t.stable(700, 10000); // zqonly.txt is only under alpha: the clicked shell's cwd fails, beta fails, // alpha's directory pane answers. Before, this word became a search. - try t.press("right", "@zqonly.txt", 5); - try t.release("right", "@zqonly.txt", 5); + try t.press("right", "@zqonly.txt", 4); + try t.release("right", "@zqonly.txt", 4); try t.wait(10000, "ONLY-IN-ALPHA"); try t.stable(700, 20000); try t.snap("other-dir"); // both.txt is in BOTH dirs and alpha is now the most recent (its file pane // just opened), but the CLICK still wins: looked inside the beta pane it // opens beta's copy - try t.press("right", "10", 5); - try t.release("right", "10", 5); + try t.press("right", "10", 4); + try t.release("right", "10", 4); try t.wait(10000, "BOTH-FROM-BETA"); try t.stable(700, 20000); try t.snap("clicked-wins"); // from a pane whose own dir holds neither copy the access order decides: // focus alpha's directory pane (a click on its first row), look pick.txt (in // both dirs) from the workdir shell -> alpha's - try t.press("left", "@amark.txt", 9); - try t.release("left", "@amark.txt", 9); + try t.press("left", "@amark.txt", 8); + try t.release("left", "@amark.txt", 8); try t.stable(700, 10000); - try t.press("right", "@pick.txt", 5); - try t.release("right", "@pick.txt", 5); + try t.press("right", "@pick.txt", 4); + try t.release("right", "@pick.txt", 4); try t.wait(10000, "PICK-FROM-ALPHA"); try t.stable(700, 20000); try t.snap("mru-alpha"); // focus the beta pane instead and the same look flips: twin.txt is in both // dirs, beta is most recent, beta's copy opens - try t.press("left", "10", 5); - try t.release("left", "10", 5); + try t.press("left", "10", 4); + try t.release("left", "10", 4); try t.stable(700, 10000); - try t.press("right", "@twin.txt", 5); - try t.release("right", "@twin.txt", 5); + try t.press("right", "@twin.txt", 4); + try t.release("right", "@twin.txt", 4); try t.wait(10000, "TWIN-FROM-BETA"); try t.stable(700, 20000); try t.snap("mru-beta"); @@ -1151,30 +1151,30 @@ fn lookrange(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.snap("opened"); // --- form 1: whole lines. r.txt opens BELOW look.txt (an ordinary look) with // lines 3, 4 and 5 selected whole, terminators included — helix's own `x`. - try t.press("right", "10", 4); - try t.release("right", "10", 4); + try t.press("right", "10", 3); + try t.release("right", "10", 3); try t.wait(10000, "cccc dccc"); try t.stable(700, 15000); try t.snap("wholelines"); try t.style("wholelines"); // --- form 2: one line, a column span. r.txt is open now, so this re-uses that // pane (focusPaneByPath) — the same route a `/` result row takes. - try t.press("right", "12", 5); - try t.release("right", "12", 5); + try t.press("right", "12", 4); + try t.release("right", "12", 4); try t.stable(700, 15000); try t.snap("onelinespan"); try t.style("onelinespan"); // --- form 3: the general one, across both lines and columns - try t.press("right", "12", 6); - try t.release("right", "12", 6); + try t.press("right", "12", 5); + try t.release("right", "12", 5); try t.stable(700, 15000); try t.snap("fullspan"); try t.style("fullspan"); // --- a STALE range: line 99 of a nine-line file, which is what a result row // looks like once the file has changed underneath it. It must CLAMP — no crash, // no garbage highlight — landing on the last cell that really exists. - try t.press("right", "12", 7); - try t.release("right", "12", 7); + try t.press("right", "12", 6); + try t.release("right", "12", 6); try t.stable(700, 15000); try t.snap("stale"); try t.style("stale"); @@ -1358,29 +1358,29 @@ fn cmdword(gpa: std.mem.Allocator, exe: [:0]const u8) !void { // verbs are what is under test here, not the announcement. try t.config("Verbose off"); try t.start(31, 120, &.{"cmds.txt"}); - try t.wait(8000, "Newcol Joincol"); + try t.wait(8000, "Newcol Help Exit"); try t.wait(8000, "cmds.txt"); try t.stable(700, 20000); try t.snap("opened"); // a single middle CLICK inside the run (col 11 is inside `echo`) expands to the // whole `@`echo ZZ''E`` and runs it as a command pane; focus stays on the file - try t.press("middle", "11", 4); - try t.release("middle", "11", 4); + try t.press("middle", "11", 3); + try t.release("middle", "11", 3); try t.wait(10000, "ZZE"); try t.stable(700, 15000); try t.snap("atexec"); // LOOK on the second one (col 24, inside its `echo`) runs it too, in the same // command pane now its first is done, below it, AND focuses it — that is the // whole difference between the two verbs - try t.press("right", "24", 4); - try t.release("right", "24", 4); + try t.press("right", "24", 3); + try t.release("right", "24", 3); try t.wait(10000, "ZZL"); try t.stable(700, 15000); try t.snap("atlook"); // `Look p.txt` middle-dragged: the builtin by NAME, with an argument - try t.press("middle", "36", 4); - try t.drag("middle", "45", 4); - try t.release("middle", "45", 4); + try t.press("middle", "36", 3); + try t.drag("middle", "45", 3); + try t.release("middle", "45", 3); try t.wait(10000, "just text"); try t.stable(700, 15000); try t.snap("lookword"); @@ -1388,8 +1388,8 @@ fn cmdword(gpa: std.mem.Allocator, exe: [:0]const u8) !void { // Look builtin with an argument, and Look opens the directory: a pane named // for it with a trailing /, listing it (zzmark.txt is only ever in that // listing: no pane here shows it otherwise), which takes the keyboard - try t.press("middle", "49", 4); - try t.release("middle", "49", 4); + try t.press("middle", "49", 3); + try t.release("middle", "49", 3); try t.wait(10000, "zzmark.txt"); try t.stable(700, 15000); try t.snap("nested"); @@ -1449,8 +1449,8 @@ fn lsp(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.stable(700, 20000); try t.snap("opened"); // park the cursor inside the CALL `helper(41)` (file line 8, grid row 9) - try t.press("left", "18", 11); - try t.release("left", "18", 11); + try t.press("left", "18", 10); + try t.release("left", "18", 10); try t.stable(400, 5000); try t.snap("cursor"); // gd on a call: exactly one location comes back, so it JUMPS rather than @@ -1482,8 +1482,8 @@ fn lsp(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.snap("step"); // gd on something with no declaration behind it (a keyword) answers nothing, // and nothing is a legal answer: no buffer opens, no error is rendered. - try t.press("left", "8", 6); - try t.release("left", "8", 6); + try t.press("left", "8", 5); + try t.release("left", "8", 5); try t.key("g"); try t.key("d"); try t.stable(700, 10000); @@ -1511,8 +1511,8 @@ fn lsp_client(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.wait(8000, "add(1, 2)"); try t.stable(700, 20000); // cursor into the first `add` call, then helix's goto-definition - try t.press("left", "13", 6); - try t.release("left", "13", 6); + try t.press("left", "13", 5); + try t.release("left", "13", 5); try t.key("g"); try t.key("d"); try t.wait(10000, "pub fn add"); @@ -1669,8 +1669,8 @@ fn lspcomplete(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.snap("opened"); // Tab with no dot before it is still Tab: line 10 is the closing `}`, and this // is the plain insert_tab path putting spaces in front of it. - try t.press("left", "8", 13); - try t.release("left", "8", 13); + try t.press("left", "8", 12); + try t.release("left", "8", 12); try t.key("i"); try t.key("tab"); try t.stable(400, 5000); @@ -1683,8 +1683,8 @@ fn lspcomplete(gpa: std.mem.Allocator, exe: [:0]const u8) !void { // retroactively when the empty answer arrives (lspResponse), on the condition // that the cursor has not moved meanwhile. Four spaces go in after `// note.` // and the keystroke is not eaten, which is the whole contract. - try t.press("left", "16", 15); - try t.release("left", "16", 15); + try t.press("left", "16", 14); + try t.release("left", "16", 14); try t.stable(400, 5000); try t.key("i"); try t.key("tab"); @@ -1694,8 +1694,8 @@ fn lspcomplete(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.settle(100); // Line 8 (grid row 9, 1-based click row 10) is the switch's empty body. End // puts the cursor past its indent, and then the dot is typed. - try t.press("left", "8", 11); - try t.release("left", "8", 11); + try t.press("left", "8", 10); + try t.release("left", "8", 10); try t.stable(400, 5000); try t.key("i"); try t.key("end"); @@ -1744,8 +1744,8 @@ fn lspcomplete(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.start(41, 120, &.{"notes.txt"}); try t.wait(8000, "abc.def"); try t.stable(700, 20000); - try t.press("left", "12", 4); - try t.release("left", "12", 4); + try t.press("left", "12", 3); + try t.release("left", "12", 3); try t.key("i"); try t.key("tab"); try t.stable(400, 5000); @@ -1763,8 +1763,8 @@ fn lspcomplete(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.start(19, 100, &.{"c.zig"}); try t.wait(8000, "nosemi"); try t.stable(700, 20000); - try t.press("left", "8", 10); - try t.release("left", "8", 10); + try t.press("left", "8", 9); + try t.release("left", "8", 9); try t.stable(400, 5000); try t.key("i"); try t.key("end"); @@ -1784,8 +1784,8 @@ fn lspcomplete(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.start(19, 100, &.{"d.zig"}); try t.wait(8000, "nobrace"); try t.stable(700, 20000); - try t.press("left", "8", 11); - try t.release("left", "8", 11); + try t.press("left", "8", 10); + try t.release("left", "8", 10); try t.stable(400, 5000); try t.key("i"); try t.key("end"); @@ -1821,8 +1821,8 @@ fn lspcompletemoved(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.start(21, 120, &.{"a.zig"}); try t.wait(8000, "verdigris"); try t.stable(700, 20000); - try t.press("left", "16", 15); - try t.release("left", "16", 15); + try t.press("left", "16", 14); + try t.release("left", "16", 14); try t.stable(400, 5000); try t.key("i"); try t.key("tab"); @@ -1851,12 +1851,12 @@ fn lspdebug(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.snap("opened"); // Ctrl-click jumps to the definition; plain click only moves the cursor. - try t.press("ctrl-left", "22", 11); - try t.release("ctrl-left", "22", 11); + try t.press("ctrl-left", "22", 10); + try t.release("ctrl-left", "22", 10); try t.stable(700, 15000); try t.snap("ctrlclick"); - try t.press("left", "22", 11); - try t.release("left", "22", 11); + try t.press("left", "22", 10); + try t.release("left", "22", 10); try t.stable(700, 15000); try t.snap("plainclick"); @@ -1927,8 +1927,8 @@ fn lsprelpath(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.start(35, 100, &.{"sub/parent.zig"}); try t.wait(8000, "fn pick"); try t.stable(700, 20000); - try t.press("left", "31", 6); - try t.release("left", "31", 6); + try t.press("left", "31", 5); + try t.release("left", "31", 5); try t.stable(400, 5000); try t.key("g"); try t.key("r"); @@ -1950,8 +1950,8 @@ fn lsprelpath(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.start(35, 100, &.{"sub/subdir.zig"}); try t.wait(8000, "fn hue"); try t.stable(700, 20000); - try t.press("left", "29", 6); - try t.release("left", "29", 6); + try t.press("left", "29", 5); + try t.release("left", "29", 5); try t.stable(400, 5000); try t.key("g"); try t.key("r"); @@ -1965,8 +1965,8 @@ fn lsprelpath(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.stable(700, 15000); try t.snap("sublook"); try t.style("sublook"); - try t.press("right", "12", 13); - try t.release("right", "12", 13); + try t.press("right", "12", 12); + try t.release("right", "12", 12); try t.stable(700, 15000); try t.snap("clicked"); try t.done(); @@ -1983,8 +1983,8 @@ fn lsp_rename(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.wait(8000, "helper(41)"); try t.stable(700, 20000); // Put the cursor inside the top-level call, then use the helix rename binding. - try t.press("left", "18", 11); - try t.release("left", "18", 11); + try t.press("left", "18", 10); + try t.release("left", "18", 10); try t.key("space"); try t.key("l"); try t.key("r"); @@ -2023,14 +2023,14 @@ fn lsp_rename_files(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.start(25, 100, &.{"lib.rs"}); try t.wait(8000, "pub fn add"); try t.stable(700, 20000); - try t.press("right", "@main.rs", 4); - try t.release("right", "@main.rs", 4); + try t.press("right", "@main.rs", 3); + try t.release("right", "@main.rs", 3); try t.wait(8000, "let x = add"); try t.stable(700, 15000); try t.snap("opened"); // into lib.rs's `add`, and rename it from there - try t.press("left", "@add", 5); - try t.release("left", "@add", 5); + try t.press("left", "@add", 4); + try t.release("left", "@add", 4); try t.stable(400, 5000); try t.key("space"); try t.key("l"); @@ -2085,12 +2085,12 @@ fn diffview(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.file("src/shape.zig", "const std = @import(\"std\");\n\npub const Shape = union(enum) {\n circle: f32,\n square: f32,\n triangle: struct { base: f32, height: f32 },\n\n const note =\n \\\\areas, defer\n \\\\summed\n ;\n};\n"); try t.file("change.diff", "diff --git a/src/shape.zig b/src/shape.zig\nindex 1111111..2222222 100644\n--- a/src/shape.zig\n+++ b/src/shape.zig\n@@ -1,10 +1,12 @@\n const std = @import(\"std\");\n \n pub const Shape = union(enum) {\n circle: f32,\n- square: u8 = 7,\n+ square: f32,\n+ triangle: struct { base: f32, height: f32 },\n \n const note =\n- \\\\areas\n+ \\\\areas, defer\n+ \\\\summed\n ;\n };\n"); try t.start(31, 100, &.{"change.diff"}); - try t.wait(8000, "Newcol Joincol"); + try t.wait(8000, "Newcol Help Exit"); try t.stable(700, 20000); try t.snap("diff-pane"); try t.style("diff-colours"); - try t.press("right", "8", 15); - try t.release("right", "8", 15); + try t.press("right", "8", 14); + try t.release("right", "8", 14); try t.stable(700, 15000); try t.snap("look-added-line"); // The same diff printed by a command (`git diff`, here `cat`) into a command @@ -2100,9 +2100,9 @@ fn diffview(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.start(31, 100, &.{"cmds.txt"}); try t.wait(8000, "cmds.txt"); try t.stable(700, 20000); - try t.press("middle", "7", 4); - try t.drag("middle", "22", 4); - try t.release("middle", "22", 4); + try t.press("middle", "7", 3); + try t.drag("middle", "22", 3); + try t.release("middle", "22", 3); try t.wait(10000, "exit 0"); try t.stable(700, 15000); try t.snap("command-pane"); @@ -2156,14 +2156,14 @@ fn dirpane(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.start(24, 80, &.{"top.txt"}); try t.wait(8000, "top.txt"); try t.stable(700, 20000); - try t.press("right", "@sub", 4); - try t.release("right", "@sub", 4); + try t.press("right", "@sub", 3); + try t.release("right", "@sub", 3); try t.wait(8000, "inner.txt"); try t.stable(700, 20000); try t.snap("dir-open"); // an entry, by its name alone: sub's inner.txt - try t.press("right", "@inner.txt", 7); - try t.release("right", "@inner.txt", 7); + try t.press("right", "@inner.txt", 6); + try t.release("right", "@inner.txt", 6); try t.wait(8000, "inner-marker"); try t.stable(700, 20000); try t.snap("entry-open"); @@ -2183,12 +2183,12 @@ fn scrolloff(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.stable(700, 20000); // right-click the g.txt name in the greeting ls -> file pane under the shell's // text, 9 body rows - try t.press("right", "4", 5); - try t.release("right", "4", 5); + try t.press("right", "4", 4); + try t.release("right", "4", 4); try t.wait(10000, "line 3"); try t.stable(700, 15000); - try t.press("left", "10", 9); - try t.release("left", "10", 9); + try t.press("left", "10", 8); + try t.release("left", "10", 8); try t.stable(400, 5000); // (b) gg: cursor CAN sit on the top body row, no forced scroll try t.key("g g"); @@ -2245,7 +2245,7 @@ fn wrap(gpa: std.mem.Allocator, exe: [:0]const u8) !void { // 48 columns: the 2-column chrome gutter, the 5-column line-number gutter and // the 1 column the `↩` sits in leave 40 for content. try t.start(15, 48, &.{"long.txt"}); - try t.wait(8000, "Newcol Joincol"); + try t.wait(8000, "Newcol Help Exit"); try t.stable(700, 20000); // the default: five rows for line 1 (200 bytes / 40), the four continuations // gutterless and starting at `4` `8` `C` `G` — the columns 40, 80, 120, 160 — @@ -2301,7 +2301,7 @@ fn wrap(gpa: std.mem.Allocator, exe: [:0]const u8) !void { // 128 columns: 120 for content, and the break is at the `C` — column 120, the // window's own width. The old 100-column cap would have broken at the `A`. try t.start(15, 128, &.{"long.txt"}); - try t.wait(8000, "Newcol Joincol"); + try t.wait(8000, "Newcol Help Exit"); try t.stable(700, 20000); try t.snap("on-wide"); try t.done(); @@ -2390,8 +2390,10 @@ fn follow(gpa: std.mem.Allocator, exe: [:0]const u8) !void { // `:` — vim's command line with acme's vocabulary. It focuses the pane's OWN // tag in NORMAL mode (block cursor; the layout box shows the pane's BODY mode, // which for this file pane is normal either way). The tag remembers where its -// cursor was; the first time there is nothing to remember and it starts on -// Save. The tag's normal mode is the body's: w selects the "Save" span exactly +// cursor was; the first time there is nothing to remember and it starts at +// the start of the tag's own text, after the computed words (`Save Undo Del` +// on this edited file). The tag's normal mode is the body's: b steps back +// over the words onto Save, w selects the "Save" span exactly // as a body word motion does, and the execute key runs the word under the // cursor and hands the body back — same keys as the body, so Tab by default // (see config.look_key/exec_key). `:` again backs out instead, leaving the tag @@ -2401,7 +2403,7 @@ fn tagcmd(gpa: std.mem.Allocator, exe: [:0]const u8) !void { defer t.deinit(); try t.lines("c.txt", 6, ""); try t.start(31, 100, &.{"c.txt"}); - try t.wait(8000, "Newcol Joincol"); + try t.wait(8000, "Newcol Help Exit"); try t.wait(8000, "c.txt"); try t.stable(700, 20000); // edit line 1 so Save has something to write @@ -2411,10 +2413,12 @@ fn tagcmd(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.settle(100); try t.stable(400, 5000); try t.snap("edited"); - // `:` -> the tag, in normal mode, cursor on Save + // `:` -> the tag, in normal mode, cursor at its own text try t.key(": :"); try t.stable(400, 5000); try t.snap("colon"); + // b three times: back over Del and Undo onto Save; `;` keeps the cursor alone + try t.key("b b b ;"); // w -> the "Save" span (selected, like the body's word motion) try t.key("w"); try t.stable(400, 5000); @@ -2439,7 +2443,7 @@ fn tagcmd(gpa: std.mem.Allocator, exe: [:0]const u8) !void { // there are no tag-only hops. `:` is the one key a tag and a body do not // share: from the body it focuses the pane's own tag, from the tag it hands the // keyboard back to the body. Each tag remembers its cursor; the first time -// there is nothing to remember and it starts on Save. +// there is nothing to remember and it starts at the start of the tag's own text. // // Evidence is the `cursor=` header (the ACTIVE pane's cursor, which while a tag // is focused sits on THAT pane's tag row) plus each pane's layout box, which @@ -2454,7 +2458,7 @@ fn tagnav(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.config("Jumps new-pane"); try t.file("w.txt", "alpha\nbeta\ngamma"); try t.start(31, 100, &.{"w.txt"}); - try t.wait(8000, "Newcol Joincol"); + try t.wait(8000, "Newcol Help Exit"); try t.wait(8000, "w.txt"); try t.stable(700, 20000); // A FILE boots alone, so the launch shell is opened here: Alt-n opens it and @@ -2472,12 +2476,13 @@ fn tagnav(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.key("space w k enter"); try t.stable(400, 5000); try t.snap("start"); - // `:` -> the file's OWN tagline, normal mode, on Save + // `:` -> the file's OWN tagline, normal mode, at its own text try t.key(": :"); try t.stable(400, 5000); try t.snap("colon"); - // w selects in the tag the way it selects in a body - try t.key("w"); + // w selects in the tag the way it selects in a body: from the tag's start + // (`0`; the cursor starts after the computed words, here the tag's end) + try t.key("0 w"); try t.stable(400, 5000); try t.snap("word"); // l is a motion in the tag, not a hop to the next pane @@ -2489,7 +2494,7 @@ fn tagnav(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.key("c-w l enter"); try t.stable(400, 5000); try t.snap("right"); - // `:` there -> that pane's own tag, on its Save the first time + // `:` there -> that pane's own tag, at its own text the first time try t.key(": :"); try t.stable(400, 5000); try t.snap("right-tag"); @@ -2511,8 +2516,8 @@ fn tagnav(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.key("c-b"); try t.stable(700, 15000); try t.snap("tty-on"); - try t.press("left", "@Mode", 3); - try t.release("left", "@Mode", 3); + try t.press("left", "@Term+bash", 3); + try t.release("left", "@Term+bash", 3); try t.stable(400, 5000); try t.snap("tty-tag"); try t.key(":"); @@ -2528,21 +2533,29 @@ fn tagnav(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.key("c-w k"); try t.stable(400, 5000); try t.snap("column-tag"); - try t.key("w"); + // On its own text, after its computed words (UX K'1): b moves back onto + // them as in a body. + try t.key("b"); try t.stable(400, 5000); try t.snap("column-word"); try t.key("c-w k"); try t.stable(400, 5000); try t.snap("workspace-tag"); - // `$` is the last cell; five long-word steps back land on `Dump`, and the - // execute key runs it and gives the keyboard back to the body FIRST -- `Exit` - // lives up here too, so a builtin that frees the session must never return - // into a focused header. Dump grows a `Restore <path>` word, which is also the - // case where the line gets longer than the column you were parked on. + // Dump left the window's words (UX K'4): typed into its own text, where + // the keyboard starts (K'1), a word like any other. `$` is the last cell; + // a long-word step back lands on `Dump`, and the execute key runs it and + // gives the keyboard back to the body FIRST -- `Exit` lives up here too, + // so a builtin that frees the session must never return into a focused + // header. Dump grows a `Restore <path>` word, which is also the case where + // the line gets longer than the column you were parked on. + try t.key("i"); + try t.send("Dump"); + try t.key("esc"); + try t.settle(100); try t.key("g l"); try t.stable(400, 5000); try t.snap("topbar-dollar"); - try t.key("B B B B B"); + try t.key("B"); try t.stable(400, 5000); try t.snap("topbar-dump-word"); try t.key("tab"); @@ -2550,12 +2563,13 @@ fn tagnav(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.snap("topbar-exec"); // THE DELETION HAZARD, from the bar itself: `Restore` frees every pane and // swaps the core out from under the caller. Walk back up onto the word the - // Dump just grew -- B twice off the tail, because the LONG word motions are the - // ones that step over a path in one go -- and run it. + // Dump just grew -- B three times off the tail (`Dump`, the path, `Restore`), + // because the LONG word motions are the ones that step over a path in one + // go -- and run it. try t.key("c-w k"); try t.key("c-w k"); try t.stable(400, 5000); - try t.key("g l B B"); + try t.key("g l B B B"); try t.stable(400, 5000); try t.snap("topbar-restore-word"); try t.key("tab"); @@ -2573,7 +2587,7 @@ fn tagpath(gpa: std.mem.Allocator, exe: [:0]const u8) !void { defer t.deinit(); try t.lines("c.txt", 4, ""); try t.start(31, 100, &.{"c.txt"}); - try t.wait(8000, "Newcol Joincol"); + try t.wait(8000, "Newcol Help Exit"); try t.wait(8000, "c.txt"); try t.stable(700, 20000); try t.snap("start"); @@ -2594,10 +2608,10 @@ fn tagpath(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.stable(400, 5000); try t.snap("yanked-path"); // Sweep across the path / command boundary without injected padding. - try t.press("left", "12", 3); - try t.drag("left", "30", 3); - try t.drag("left", "42", 3); - try t.release("left", "42", 3); + try t.press("left", "12", 2); + try t.drag("left", "30", 2); + try t.drag("left", "42", 2); + try t.release("left", "42", 2); try t.stable(400, 5000); try t.snap("drag-cross"); try t.style("drag-cross"); @@ -2638,13 +2652,12 @@ fn tag(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.start(31, 150, &.{ "-n", "3" }); try t.wait(8000, "t.txt"); try t.stable(700, 20000); - // Click the one editable separator before Save, directly after the cwd. - // The former generated alignment gap no longer exists. - // The layout box shows + // Click just past the end of the tag's own text (Term+bash, after the + // computed words). The layout box shows // the pane's BODY mode, not the tag's; `i` then types into the tag where it // was clicked. - try t.press("left", "@Save-1", 3); - try t.release("left", "@Save-1", 3); + try t.press("left", "@Term+bash+9", 3); + try t.release("left", "@Term+bash+9", 3); try t.stable(400, 5000); try t.snap("tag-focus"); try t.key("i"); diff --git a/test/process/tty_images.zig b/test/process/tty_images.zig index 9c37a40d..bb9da072 100644 --- a/test/process/tty_images.zig +++ b/test/process/tty_images.zig @@ -8,7 +8,7 @@ pub const cases = .{ // image panes: right-click a .ppm opens petscii glyph art (no kitty in the // harness). The tag starts with the renderer's plain state fields followed by -// its path and `Term Del`; the fields are display-only, while their toggles are +// its path and `Del`; the fields are display-only, while their toggles are // builtins under SPC t (the old clickable tag words sat past the pane's right // edge, so clicking them only ever hit the neighbouring shell's tag). fn images(gpa: std.mem.Allocator, exe: [:0]const u8) !void { @@ -53,12 +53,13 @@ fn images(gpa: std.mem.Allocator, exe: [:0]const u8) !void { // prefix is wider than this source-local column, so widen the grid for this // final assertion. (A column grip drag intentionally takes width from only // one neighbour, which cannot expose this 82-column prefix.) Then click the - // visible tail itself, at its `Term`. This proves the image tag is an ordinary - // editor rather than accidentally typing at a clipped read-only path. + // visible tail itself, past its `Del`, where its own text starts. This proves + // the image tag is an ordinary editor rather than accidentally typing at a + // clipped read-only path. try t.resize(31, 400); try t.stable(400, 5000); - try t.press("left", "@Term", 7); - try t.release("left", "@Term", 7); + try t.press("left", "@Del+4", 7); + try t.release("left", "@Del+4", 7); try t.stable(400, 5000); try t.key("i"); try t.send("Zork "); diff --git a/test/process/tty_layout.zig b/test/process/tty_layout.zig index 00197a5c..77acd71e 100644 --- a/test/process/tty_layout.zig +++ b/test/process/tty_layout.zig @@ -25,7 +25,7 @@ fn colgrip(gpa: std.mem.Allocator, exe: [:0]const u8) !void { defer t.deinit(); try t.file("w.txt", "x"); try t.start(24, 100, &.{"w.txt"}); - try t.wait(8000, "Newcol Joincol"); + try t.wait(8000, "Newcol Help Exit"); try t.wait(8000, "w.txt"); try t.stable(700, 20000); try t.key("a-n"); @@ -56,7 +56,9 @@ fn colgrip(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.done(); } -// A default pane-tag command collapses to one row and restores the body. +// A pane-tag command collapses to one row and restores the body. Collapse +// and Save are no computed words of a clean file's tag (UX K'1), so they are +// typed into the tag's own text first, where a click runs them as before. // Exercise real middle clicks twice, then the tag's own execute key twice: a // click types into the tag, Esc is its normal mode, and Tab executes there. fn collapse(gpa: std.mem.Allocator, exe: [:0]const u8) !void { @@ -66,29 +68,35 @@ fn collapse(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.start(25, 160, &.{"kept.txt"}); try t.wait(8000, "KEEP-THIRD"); try t.stable(500, 15000); + try t.key(": : i"); + try t.send("Collapse Save"); + try t.key("esc"); + try t.settle(100); + try t.key(":"); + try t.stable(400, 5000); try t.snap("before"); - try t.press("middle", "@Collapse", 3); - try t.release("middle", "@Collapse", 3); + try t.press("middle", "@Collapse", 2); + try t.release("middle", "@Collapse", 2); try t.stable(500, 8000); try t.snap("middle-collapsed"); // The terminal remembers its last cursor position even when hidden. The core // screen explicitly reports null, guarding against a leaked body caret. try t.snap9p("middle-collapsed-cursor"); - try t.press("middle", "@Collapse", 3); - try t.release("middle", "@Collapse", 3); + try t.press("middle", "@Collapse", 2); + try t.release("middle", "@Collapse", 2); try t.wait(8000, "KEEP-THIRD"); try t.stable(500, 8000); try t.snap("middle-restored"); - try t.press("left", "@Collapse", 3); - try t.release("left", "@Collapse", 3); + try t.press("left", "@Collapse", 2); + try t.release("left", "@Collapse", 2); try t.key("esc"); try t.settle(100); try t.key("tab"); try t.stable(500, 8000); try t.snap("tab-collapsed"); try t.snap9p("tab-collapsed-cursor"); - try t.press("left", "@Collapse", 3); - try t.release("left", "@Collapse", 3); + try t.press("left", "@Collapse", 2); + try t.release("left", "@Collapse", 2); try t.key("esc"); try t.settle(100); try t.key("tab"); @@ -96,8 +104,8 @@ fn collapse(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.stable(500, 8000); try t.snap("tab-restored"); // Save via the visible tag; the original bytes must survive all four toggles. - try t.press("middle", "@Save", 3); - try t.release("middle", "@Save", 3); + try t.press("middle", "@Save", 2); + try t.release("middle", "@Save", 2); try t.stable(500, 8000); try t.snapFile("unchanged", "kept.txt"); try t.done(); @@ -163,22 +171,22 @@ fn delask(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.settle(100); try t.stable(400, 5000); try t.snap("typed"); - try t.press("middle", "@DelBelow", 21); - try t.release("middle", "@DelBelow", 21); + try t.press("middle", "@DelBelow", 20); + try t.release("middle", "@DelBelow", 20); try t.stable(700, 10000); try t.snap("below-took-click"); // a fresh pane at the foot of the column (acme's New takes the bottom half of // the last pane), and the third one, now between the file and it, closed by a // middle click on its tag's Del: no question, and the rows go up as they // always have - try t.press("left", "10", 5); - try t.release("left", "10", 5); + try t.press("left", "10", 4); + try t.release("left", "10", 4); try t.stable(400, 5000); try t.key("space f n"); try t.stable(400, 5000); try t.snap("four"); - try t.press("middle", "@Del", 20); - try t.release("middle", "@Del", 20); + try t.press("middle", "@Del", 19); + try t.release("middle", "@Del", 19); try t.stable(700, 10000); try t.snap("mouse-del"); try t.done(); @@ -335,9 +343,9 @@ fn layout_open(gpa: std.mem.Allocator, exe: [:0]const u8) !void { // execute the file's command (middle drag over line 1): it runs as a command // pane for sub/, forked at the bottom of the rightmost column, splitting only // the pane above it - try t.press("middle", "8", 25); - try t.drag("middle", "19", 25); - try t.release("middle", "19", 25); + try t.press("middle", "8", 23); + try t.drag("middle", "19", 23); + try t.release("middle", "19", 23); try t.wait(10000, "TTYOK"); try t.motion("40", 27); try t.stable(700, 10000); @@ -369,7 +377,7 @@ fn shrinktag(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.stable(400, 5000); try t.snap("before"); // drag the lower pane's grip up under pane 0's tag row: it keeps 2 body rows - try t.press("left", "1", 18); + try t.press("left", "1", 17); try t.drag("left", "1", 3); try t.release("left", "1", 3); try t.motion("40", 25); @@ -386,15 +394,15 @@ fn shrinktag(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.stable(400, 5000); // re-enlarge: the lower pane's grip, now under pane 0's 2 body rows, pulled // back down - try t.press("left", "1", 7); - try t.drag("left", "1", 18); - try t.release("left", "1", 18); + try t.press("left", "1", 6); + try t.drag("left", "1", 17); + try t.release("left", "1", 17); try t.motion("40", 25); try t.stable(500, 8000); try t.snap("restored"); // the bottom pane stops at ITS tag and 2 rows too: its grip dragged past the // bottom - try t.press("left", "1", 18); + try t.press("left", "1", 17); try t.drag("left", "1", 31); try t.release("left", "1", 31); try t.motion("40", 25); @@ -411,7 +419,7 @@ fn tagalign(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.dir("deep/nested-project-directory"); try t.file("deep/nested-project-directory/document.txt", "alpha\nbeta\ngamma"); try t.start(31, 100, &.{"deep/nested-project-directory/document.txt"}); - try t.wait(8000, "Newcol Joincol"); + try t.wait(8000, "Newcol Help Exit"); try t.wait(8000, "document.txt"); try t.stable(700, 20000); try t.key("a-n"); @@ -426,8 +434,8 @@ fn tagalign(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.snap("overby1"); try t.resize(31, 100); try t.stable(700, 15000); - try t.press("left", "12", 3); - try t.release("left", "12", 3); + try t.press("left", "12", 2); + try t.release("left", "12", 2); try t.stable(400, 5000); try t.snap("clicked"); // The click was on the path, so it drafted a name; Esc keeps it pending and @@ -443,8 +451,8 @@ fn tagalign(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.key("A"); try t.stable(400, 5000); try t.snap("revealed"); - try t.press("middle", "@Del", 4); - try t.release("middle", "@Del", 4); + try t.press("middle", "@Del", 3); + try t.release("middle", "@Del", 3); try t.stable(700, 15000); try t.snap("alone"); try t.done(); @@ -458,7 +466,7 @@ fn tagalign2col(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.dir("deep/proj"); try t.file("deep/proj/document.txt", "alpha\nbeta\ngamma"); try t.start(31, 160, &.{"deep/proj/document.txt"}); - try t.wait(8000, "Newcol Joincol"); + try t.wait(8000, "Newcol Help Exit"); try t.wait(8000, "document.txt"); try t.stable(700, 20000); // A shell in a separate right-hand column. @@ -497,7 +505,7 @@ fn windownav(gpa: std.mem.Allocator, exe: [:0]const u8) !void { defer t.deinit(); try t.file("w.txt", "alpha\nbeta\ngamma"); try t.start(31, 100, &.{"w.txt"}); - try t.wait(8000, "Newcol Joincol"); + try t.wait(8000, "Newcol Help Exit"); try t.wait(8000, "w.txt"); try t.stable(700, 20000); // A FILE boots alone now, so the terminal every hop below needs is opened here: @@ -578,9 +586,9 @@ fn windowops(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.motion("20", 16); try t.stable(400, 5000); try t.snap("hover-h"); - // resize the left pair by the lower pane's grip, 4 rows up (a terminal has no + // resize the left pair by the lower pane's grip, 3 rows up (a terminal has no // rule between panes; pane 0's last row is now 13) - try t.press("left", "1", 18); + try t.press("left", "1", 17); try t.drag("left", "1", 14); try t.release("left", "1", 14); try t.stable(500, 8000); @@ -604,7 +612,15 @@ fn windowops(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.key("c-w l enter"); try t.stable(400, 5000); try t.snap("focus-right"); - // Debug overlay on (topbar middle-click on Debug), then off + // Debug overlay on, then off: B2 on Debug, a word that left the window + // row (UX K'4), typed into its own text after its words (A appends at + // the line's end) + try t.press("left", "@Find", 1); + try t.release("left", "@Find", 1); + try t.key("A"); + try t.send("Debug"); + try t.key("esc"); + try t.stable(400, 8000); try t.press("middle", "@Debug", 1); try t.release("middle", "@Debug", 1); try t.stable(400, 8000); diff --git a/test/process/tty_terminals.zig b/test/process/tty_terminals.zig index a49d3696..1b14a72f 100644 --- a/test/process/tty_terminals.zig +++ b/test/process/tty_terminals.zig @@ -125,8 +125,8 @@ fn ttyedit(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.key("c-b"); try t.stable(600, 8000); // click into the middle of the first output row - try t.press("left", "8", 9); - try t.release("left", "8", 9); + try t.press("left", "8", 8); + try t.release("left", "8", 8); try t.stable(400, 5000); try t.snap("before"); // Enter splits the row there: "one t" stays, "wo three" becomes a real line @@ -214,7 +214,7 @@ fn ttyhelp(gpa: std.mem.Allocator, exe: [:0]const u8) !void { var t = try Tty.init(gpa, exe, "ttyhelp"); defer t.deinit(); try t.start(31, 100, &.{}); - try t.wait(8000, "Newcol Joincol"); + try t.wait(8000, "Newcol Help Exit"); try t.stable(700, 20000); try t.snap("boot"); try t.press("middle", "@Help", 1); @@ -303,8 +303,8 @@ fn ttylook(gpa: std.mem.Allocator, exe: [:0]const u8) !void { // selection: the cursor word expands): the click puts it on the ls command // line's `ls`, a word no file names, which a terminal lists in a +Search, // its row the place in that terminal (@p1:1:1-2) - try t.press("left", "4", 5); - try t.release("left", "4", 5); + try t.press("left", "4", 4); + try t.release("left", "4", 4); try t.stable(400, 5000); try t.key("enter"); try t.wait(10000, "@p1:1:1-2"); @@ -483,7 +483,7 @@ fn psearch(gpa: std.mem.Allocator, exe: [:0]const u8) !void { var t = try Tty.init(gpa, exe, "psearch"); defer t.deinit(); try t.start(31, 140, &.{}); - try t.wait(8000, "Newcol Joincol"); + try t.wait(8000, "Newcol Help Exit"); try t.stable(700, 20000); // print something to search (a bare boot starts in tty mode; the marker is // split so the echoed command line, which normal mode hides anyway, can never @@ -539,20 +539,20 @@ fn psearch(gpa: std.mem.Allocator, exe: [:0]const u8) !void { // The left click first is the price of the step above: it left the cursor in // the results buffer, and c-b is read by the ACTIVE pane — there is no tty // behind a +Search to toggle. - try t.press("left", "5", 5); - try t.release("left", "5", 5); + try t.press("left", "5", 4); + try t.release("left", "5", 4); try t.stable(400, 5000); try t.key("c-b"); try t.stable(600, 8000); - try t.press("right", "5", 5); - try t.release("right", "5", 5); + try t.press("right", "5", 4); + try t.release("right", "5", 4); try t.stable(700, 10000); try t.snap("ttyinert"); // back in normal mode the same click searches for MARK try t.key("c-b"); try t.stable(600, 8000); - try t.press("right", "5", 5); - try t.release("right", "5", 5); + try t.press("right", "5", 4); + try t.release("right", "5", 4); try t.wait(10000, "@p1:2:3"); try t.stable(700, 15000); try t.snap("rightsearch"); @@ -593,12 +593,12 @@ fn respawn(gpa: std.mem.Allocator, exe: [:0]const u8) !void { defer t.deinit(); // A row more than its panes take: the notice row under them. try t.start(32, 140, &.{ "-n", "3" }); - try t.wait(8000, "Newcol Joincol"); + try t.wait(8000, "Newcol Help Exit"); try t.stable(700, 20000); // middle-click Del on the lower-left pane's tag: the pane id is freed while // its shell process stays alive in the slot - try t.press("middle", "@Collapse+9", 18); - try t.release("middle", "@Collapse+9", 18); + try t.press("middle", "@Del", 18); + try t.release("middle", "@Del", 18); try t.stable(700, 10000); // Alt-n reuses the freed id -> spawn effect lands on the occupied slot try t.key("a-n"); @@ -665,9 +665,9 @@ fn cmdexit(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.stable(700, 20000); try t.snap("opened"); // line 1: `sleep 30` keeps the pty, and the pane says exit 0 regardless - try t.press("middle", "7", 4); - try t.drag("middle", "34", 4); - try t.release("middle", "34", 4); + try t.press("middle", "7", 3); + try t.drag("middle", "34", 3); + try t.release("middle", "34", 3); try t.wait(10000, "exit 0"); try t.stable(700, 15000); try t.snap("background"); @@ -675,9 +675,9 @@ fn cmdexit(gpa: std.mem.Allocator, exe: [:0]const u8) !void { // `sleep 30` lives on (job control gives it its own group) and still holds // that pane's pty; here the end of file comes at once, and the exit a second // later, from `false` - try t.press("middle", "7", 5); - try t.drag("middle", "54", 5); - try t.release("middle", "54", 5); + try t.press("middle", "7", 4); + try t.drag("middle", "54", 4); + try t.release("middle", "54", 4); try t.wait(10000, "exit 1"); try t.stable(700, 15000); try t.snap("letgo"); @@ -707,17 +707,17 @@ fn look_fd_deep(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.send("cd a && ls && fd"); try t.key("enter"); try t.wait(8000, "c.txt"); - try t.wait(8000, "cwd/a Term"); + try t.wait(8000, "cwd/a Del Term"); try t.stable(700, 20000); try t.snap("listed"); - try t.press("right", "6", 8); - try t.release("right", "6", 8); + try t.press("right", "6", 7); + try t.release("right", "6", 7); try t.wait(10000, "deep-marker"); try t.stable(700, 15000); try t.snap("fd-path-looked"); // the ls name, from the shell's directory - try t.press("right", "8", 6); - try t.release("right", "8", 6); + try t.press("right", "8", 5); + try t.release("right", "8", 5); try t.wait(10000, "top-marker"); try t.stable(700, 15000); try t.snap("ls-name-looked"); @@ -752,10 +752,10 @@ fn ghostty_mid(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.key("c-b"); try t.stable(600, 8000); try t.send("\x1b[I"); - try t.send("\x1b[<35;10;10M\x1b[<35;7;8M\x1b[<35;4;6M"); - try t.send("\x1b[<1;4;6M"); - try t.send("\x1b[<1;4;6m"); - try t.send("\x1b[<35;6;6M"); + try t.send("\x1b[<35;10;9M\x1b[<35;7;7M\x1b[<35;4;5M"); + try t.send("\x1b[<1;4;5M"); + try t.send("\x1b[<1;4;5m"); + try t.send("\x1b[<35;6;5M"); try t.wait(10000, "GHOSTOK"); try t.stable(700, 10000); try t.snap("ghostty-mid"); diff --git a/test/selfmount.py b/test/selfmount.py index 61d32523..aa4540b0 100644 --- a/test/selfmount.py +++ b/test/selfmount.py @@ -81,6 +81,8 @@ def run(binary): env.update(PARDES_NOTIME='1', TERM='xterm-256color', PARDES_DUMP=f'/tmp/{name}.dump.zon') for language in ['RS', 'C', 'GO', 'TS', 'PY']: env['PARDES_LSP_' + language] = '' + # No server starts at a file's open (lsp_client.open): none of this machine's. + env['PARDES_LSP_OPEN'] = 'off' pid, master = pty.fork() if pid == 0: os.execve(ns, ['9ns', '--mntgen', '--', binary, '--tty', '--9p=' + name, str(fixture)], env) diff --git a/test/session.zig b/test/session.zig index d437ecf2..9285c13b 100644 --- a/test/session.zig +++ b/test/session.zig @@ -38,6 +38,8 @@ pub const Session = struct { /// What the language words' questions are asked of their servers /// through (initLanguage); none, and they go unanswered. languages: ?std.Io = null, + /// The server start a file's opening asks for (`languages`'s). + opener: pardes.host_io.Lsp.Opener = .{}, /// Kinds' jobs taken as a host's worker takes them and held, not run, /// until `releaseJobs`: a job under way across what a test does /// meanwhile (a reload). @@ -62,12 +64,19 @@ pub const Session = struct { } /// A session showing one scratch pane that asks language servers as a - /// host does, a `.rs` file's the scripted one (test/lspmock.zig, which - /// answers over a main.rs and the lib.rs beside it). + /// host does, a `.rs` and a `.zig` file's the scripted one + /// (test/lspmock.zig, which answers over a main.rs and the lib.rs beside + /// it), every other language's none: no test starts a server of this + /// machine's. pub fn initLanguage(gpa: std.mem.Allocator) !Session { var s = try initFile(gpa, "x\n"); const mock = try std.Io.Dir.cwd().realPathFileAlloc(std.testing.io, @import("session_options").lspmock, s.arena.allocator()); _ = setenv("PARDES_LSP_RS", mock, 1); + _ = setenv("PARDES_LSP_ZIG", mock, 1); + for ([_][*:0]const u8{ "PARDES_LSP_C", "PARDES_LSP_GO", "PARDES_LSP_TS", "PARDES_LSP_PY" }) |v| _ = setenv(v, "", 1); + // A test binary's opened files start their servers where it says + // so (lsp_client.open): here, the mock. + _ = setenv("PARDES_LSP_OPEN", "on", 1); s.languages = std.testing.io; return s; } @@ -295,6 +304,12 @@ pub const Session = struct { // held while a test holds them (`hold_jobs`). .job => |j| if (!s.hold_jobs) pardesOf(s).perform(e) else if (pardes.host_io.KindJob.take(pardesOf(s), j.pane.index(), j.serial, j.token)) |taken| s.held.append(pardesOf(s).gpa, taken) catch taken.drop(), .lsp => |q| if (s.languages) |io| s.askServer(io, .{ .id = q.id, .kind = q.kind, .pane = q.pane, .offset = q.offset, .arg = q.arg.slice() }), + // A file's server started as a host starts it, and waited for. + .lsp_open => |o| if (s.languages) |io| { + pardes.host_io.Lsp.open(io, pardesOf(s).gpa, pardesOf(s), &s.opener, o.pane); + if (s.opener.future) |*f| f.await(io); + s.opener.future = null; + }, .watch => |w| { if (s.watch_fd < 0) s.watch_fd = pardes.file_watch.init(true); if (s.watch_fd >= 0) _ = pardes.file_watch.applyEffect(pardesOf(s), std.Io.Threaded.global_single_threaded.io(), s.watch_fd, &s.watches, w.pane.index(), w.on, w.mode); @@ -316,6 +331,14 @@ pub const Session = struct { return true; } + /// A frame of the host's loop (its tick): what waits for the frame + /// after the keys that asked it is done (a picker's preview of the row + /// its cursor rests on). + pub fn tick(s: *Session) void { + pardesOf(s).update(.tick); + s.drain(); + } + /// Kinds' jobs and draws held from now on (`hold_jobs`), until /// `releaseJobs`. pub fn holdJobs(s: *Session) void { diff --git a/test/snapshots/argv.golden b/test/snapshots/argv.golden index 67bf7c16..3c6e8515 100644 --- a/test/snapshots/argv.golden +++ b/test/snapshots/argv.golden @@ -1,7 +1,6 @@ -== snap noargs grid=100x31 cursor=4,5 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -|$ /tmp/pardes-snap/argv/cwd Term+bash Save Mode Filter Collapse Del +== snap noargs grid=100x31 cursor=4,4 +| New Term Find Grep Newcol Help Exit +|$ /tmp/pardes-snap/argv/cwd Del Term+bash | $ echo ARGV''TTY | ARGVTTY | $ @@ -20,7 +19,7 @@ | | | -| /tmp/pardes-snap/argv/cwd/+New Save Term Collapse Follow Del +| /tmp/pardes-snap/argv/cwd/+New Del | 1 | | @@ -29,11 +28,11 @@ | | | +| | /tmp/pardes-snap/argv/cwd -== snap filearg grid=100x31 cursor=7,3 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/argv/cwd/notes.txt Keep Save Term Collapse Follow Del +== snap filearg grid=100x31 cursor=7,2 +| New Term Find Grep Newcol Help Exit +| /tmp/pardes-snap/argv/cwd/notes.txt Keep Del | 3 line 3 | 4 line 4 | 5 line 5 @@ -61,11 +60,11 @@ | | | +| | /tmp/pardes-snap/argv/cwd/notes.txt:3 -== snap filearg-n3 grid=100x31 cursor=7,3 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/argv/cwd/notes.txt Keep Save Term Collapse Follow Del +== snap filearg-n3 grid=100x31 cursor=7,2 +| New Term Find Grep Newcol Help Exit +| /tmp/pardes-snap/argv/cwd/notes.txt Keep Del | 1 line 1 | 2 line 2 | 3 line 3 @@ -93,11 +92,11 @@ | | | +| | /tmp/pardes-snap/argv/cwd/notes.txt:1 -== snap dirarg grid=100x31 cursor=4,5 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/argv/cwd/sub Term+bash Save Mode Filter Collapse Del +== snap dirarg grid=100x31 cursor=4,4 +| New Term Find Grep Newcol Help Exit +| /tmp/pardes-snap/argv/cwd/sub Del Term+bash | ls | inside.txt | @@ -125,4 +124,5 @@ | | | +| | /tmp/pardes-snap/argv/cwd/sub diff --git a/test/snapshots/badutf.golden b/test/snapshots/badutf.golden index fc04cca5..95992dcc 100644 --- a/test/snapshots/badutf.golden +++ b/test/snapshots/badutf.golden @@ -1,7 +1,6 @@ -== snap badbytes grid=100x31 cursor=7,3 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/badutf/cwd/bad.txt Keep Save Term Collapse Follow Del +== snap badbytes grid=100x31 cursor=7,2 +| New Term Find Grep Newcol Help Exit +| /tmp/pardes-snap/badutf/cwd/bad.txt Keep Del | 1 hello �� world | 2 latin-1 caf� tail | 3 truncated �� here @@ -29,12 +28,11 @@ | | | +| | /tmp/pardes-snap/badutf/cwd/bad.txt:1 -== snap hscroll-midglyph grid=50x31 cursor=46,4 -| Newcol Joincol Find Grep Help Changelog Tutor Du -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/badutf/cwd/wide.txt Keep Save T -| erm Collapse Follow Del +== snap hscroll-midglyph grid=50x31 cursor=46,2 +| New Term Find Grep Newcol Help Exit +| /tmp/pardes-snap/badutf/cwd/wide.txt Keep Del | 1 日本語 日本語 日本語 日本語 日本語 tail | 2 | ~ @@ -61,4 +59,6 @@ | | | +| +| | ✓ …adutf/cwd/wide.txt Wrap 1 message · SPC h m diff --git a/test/snapshots/boot.golden b/test/snapshots/boot.golden index 70880904..19c7e6c4 100644 --- a/test/snapshots/boot.golden +++ b/test/snapshots/boot.golden @@ -1,7 +1,6 @@ -== snap boot grid=100x31 cursor=4,5 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/boot/cwd Term+bash Save Mode Filter Collapse Del +== snap boot grid=100x31 cursor=4,4 +| New Term Find Grep Newcol Help Exit +| /tmp/pardes-snap/boot/cwd Del Term+bash | ls | hello.txt | @@ -29,13 +28,14 @@ | | | +| | /tmp/pardes-snap/boot/cwd == style boot grid=100x31 |0: 0-1 d,#1d2824, 2-99 #b2c3b8,#1d2824, -|1: 0-1 d,#504733, 2-99 #becfc4,#314738, -|2: 0-1 d,#add38a, 2-27 #becfc4,#314738, 28-37 #ecc8f2,#314738, 38-99 #becfc4,#314738, +|1: 0-1 d,#add38a, 2-31 #becfc4,#314738, 32-99 #ecc8f2,#314738, +|2: 0-0 d,#608269, 1-1 d,#0d1410, 2-99 #e5eee5,#0d1410, |3: 0-0 d,#608269, 1-1 d,#0d1410, 2-99 #e5eee5,#0d1410, -|4: 0-0 d,#608269, 1-1 d,#0d1410, 2-99 #e5eee5,#0d1410, +|4: 0-0 d,#608269, 1-99 d,#0d1410, |5: 0-0 d,#608269, 1-99 d,#0d1410, |6: 0-0 d,#608269, 1-99 d,#0d1410, |7: 0-0 d,#608269, 1-99 d,#0d1410, diff --git a/test/snapshots/builtins.golden b/test/snapshots/builtins.golden index fa94bcc0..357acd11 100644 --- a/test/snapshots/builtins.golden +++ b/test/snapshots/builtins.golden @@ -1,7 +1,6 @@ -== snap boot grid=120x67 cursor=7,3 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/builtins/cwd/notes.txt Keep Save Term Collapse Follow Del +== snap boot grid=120x67 cursor=7,2 +| New Term Find Grep Newcol Help Exit +| /tmp/pardes-snap/builtins/cwd/notes.txt Keep Del | 1 Help c Help h | 2 line 2 | 3 line 3 @@ -65,87 +64,89 @@ | | | +| | /tmp/pardes-snap/builtins/cwd/notes.txt:1 -== snap column-group grid=120x67 cursor=7,10 -|9: /^ +Look / –/0 › /tmp/pardes-snap/builtins/cwd/+Help Save Term Collapse Follow Del -|10: 1 pardes builtins under SPC c -|11: 2 -|12: 3 SPC c d Delcol -|13: 4 Close this column and its panes. -|14: 5 The column is the one whose tag it ran from, else the pane's. Refused once while a pane in it holds unsaved text↩ -|15: , the notice saying how many; Delcol again, nothing edited since, closes them. -|16: 6 -|17: 7 SPC c f Follow -|18: 8 Show one text across a chain of panes as consecutive pages, scrolled as one. -|19: 9 As Emacs's follow-mode: each page goes on where the one before ends. Each Follow adds a page, a Zerox of the tex↩ -|20: t, at the end of the column right of the chain's last, or in a new column there; its tag has Unfollow. -|21: 10 -|22: 11 SPC c j Joincol topbar -|23: 12 Fold the keyboard's column into the one on its right, keeping its panes. -|24: 13 Refused for the last column, and where the joined column could not give each pane its tag and 2 rows. -|25: 14 -|26: 15 SPC c n Newcol topbar -|27: 16 Make an empty column right of the keyboard's, its tag taking the keyboard. -|28: 17 The next pane made from there goes in it. Refused, saying why, when no column fits. -|29: 18 -|30: ~ +== snap column-group grid=120x67 cursor=7,9 +|8: /^ +Look / –/0 › /tmp/pardes-snap/builtins/cwd/+Help Del +|9: 1 pardes builtins under SPC c +|10: 2 +|11: 3 SPC c d Delcol +|12: 4 Close this column and its panes. +|13: 5 The column is the one whose tag it ran from, else the pane's. Refused once while a pane in it holds unsaved text↩ +|14: , the notice saying how many; Delcol again, nothing edited since, closes them. +|15: 6 +|16: 7 SPC c f Follow +|17: 8 Show one text across a chain of panes as consecutive pages, scrolled as one. +|18: 9 As Emacs's follow-mode: each page goes on where the one before ends. Each Follow adds a page, a Zerox of the tex↩ +|19: t, at the end of the column right of the chain's last, or in a new column there; its tag has Unfollow. +|20: 10 +|21: 11 SPC c j Joincol +|22: 12 Fold the keyboard's column into the one on its right, keeping its panes. +|23: 13 Refused for the last column, and where the joined column could not give each pane its tag and 2 rows. +|24: 14 +|25: 15 SPC c n Newcol topbar +|26: 16 Make an empty column right of the keyboard's, its tag taking the keyboard. +|27: 17 The next pane made from there goes in it. Refused, saying why, when no column fits. +|28: 18 +|29: ~ |66: ✓ /tmp/pardes-snap/builtins/cwd/notes.txt Help 3 messages · SPC h m -== snap docs-group grid=120x67 cursor=7,10 -|10: 1 pardes builtins under SPC h -|12: 3 SPC h b Build -|13: 4 Show this build in a +Build: its version, compiler, optimize mode, target and dependencies. -|14: 5 A stamped build's (a release, or the ~/.local install) commit, jj change and build time too, its platform, its g↩ -|15: rammars, and whether the addons are compiled in. -|17: 7 SPC h c Changelog topbar -|18: 8 Show this build's version and what changed to reach it, in a +Changelog. -|19: 9 -|20: 10 SPC h k Keys -|21: 11 Show what a key sequence runs: the next keys typed are replayed in the tag. -|22: 12 The tag shows `Keys` and the keys as they are typed; a sequence that reaches a leaf unrolls its level under the ↩ -|23: tag with the leaf on the cursor and its documentation beside it, and Enter runs it. Every root answers: SPC, g, ↩ -|24: m, z, Z, [, ], window mode's C-w. A sequence nothing is bound to is shown struck, `runs nothing`. Esc leaves it. -|25: 13 -|26: 14 SPC h m Messages -|27: 15 Show the messages said so far, the newest first, an error's places under it. -|28: 16 Where jumps walk, a list in the pane's tag: Enter Looks a row (a message's cause, a place), C-q keeps it as a +M↩ -|29: essages; else the +Messages. -|30: 17 -|31: 18 SPC h t Tutor topbar -|32: 19 Open the tutor, a document to work through. -|33: 20 -|34: ~ +== snap docs-group grid=120x67 cursor=7,9 +|9: 1 pardes builtins under SPC h +|11: 3 SPC h b Build +|12: 4 Show this build in a +Build: its version, compiler, optimize mode, target and dependencies. +|13: 5 A stamped build's (a release, or the ~/.local install) commit, jj change and build time too, its platform, its g↩ +|14: rammars, and whether the addons are compiled in. +|16: 7 SPC h c Changelog +|17: 8 Show this build's version and what changed to reach it, in a +Changelog. +|18: 9 +|19: 10 SPC h k Keys +|20: 11 Show what a key sequence runs: the next keys typed are replayed in the tag. +|21: 12 The tag shows `Keys` and the keys as they are typed; a sequence that reaches a leaf unrolls its level under the ↩ +|22: tag with the leaf on the cursor and its documentation beside it, and Enter runs it. Every root answers: SPC, g, ↩ +|23: m, z, Z, [, ], window mode's C-w. A sequence nothing is bound to is shown struck, `runs nothing`. Esc leaves it. +|24: 13 +|25: 14 SPC h m Messages +|26: 15 Show the messages said so far, the newest first, an error's places under it. +|27: 16 Where jumps walk, a list in the pane's tag: Enter Looks a row (a message's cause, a place), C-q keeps it as a +M↩ +|28: essages; else the +Messages. +|29: 17 +|30: 18 SPC h t Tutor +|31: 19 Open the tutor, a document to work through. +|32: 20 +|33: ~ |66: ✓ /tmp/pardes-snap/builtins/cwd/notes.txt Help 5 messages · SPC h m -== snap tutor-from-index grid=120x67 cursor=7,35 -|34: /tmp/pardes-snap/builtins/cwd/+Tutor Keep Save Term Collapse Follow Del -|35: 1 -|36: 2 PARDES TUTOR -|37: 3 -|38: 4 This pane is +Tutor, a copy: edit it freely; there is no need to -|39: 5 Save it (a bare Save asks for a path to write a copy to). -|40: 6 `Del` in its tag closes it; once you have edited it, `Del` refuses -|41: 7 once and the second `Del` discards. `Tutor` or SPC h t opens a -|42: 8 fresh copy. -|43: 9 -|44: 10 The guide (docs/typ/guide.typ) explains; this is the hands-on part. -|45: 11 Each lesson is a few things to do, then names its guide section. -|46: 12 Words in backticks, like `Save`, are builtins. -|47: 13 `Exec` (B2) runs the builtin a word names, or else runs it as a -|48: 14 shell line; `Look` (B3) opens what the text names, or else finds -|49: 15 it. Type a builtin in any tag and `Exec` it. Lines starting with -|50: 16 "| " are tags. -|51: 17 -|52: 18 Press j until you reach part 1. -|53: 19 -|54: 20 -|55: 21 ================================================================= -|56: 22 = PART 1 — MODES = -|57: 23 ================================================================= -|58: 24 -|59: 25 1. The box left of this pane's tag is blank, so you are in -|60: 26 NORMAL mode. Press i: it shows ^ (INSERT). Type a word, then -|61: 27 Esc: blank again. -|62: 28 2. Press Esc once more, in NORMAL: the keyboard goes back to the -|63: 29 pane you were in before (not what helix does). Come back with -|64: 30 Esc again. -|65: 31 3. Press Alt-n: a terminal opens, in NORMAL mode, and pardes types +== snap tutor-from-index grid=120x67 cursor=7,34 +|33: /tmp/pardes-snap/builtins/cwd/+Tutor Keep Del +|34: 1 +|35: 2 PARDES TUTOR +|36: 3 +|37: 4 This pane is +Tutor, a copy: edit it freely; there is no need to +|38: 5 Save it (a bare Save asks for a path to write a copy to). +|39: 6 `Del` in its tag closes it; once you have edited it, `Del` refuses +|40: 7 once and the second `Del` discards. `Tutor` or SPC h t opens a +|41: 8 fresh copy. +|42: 9 +|43: 10 The guide (docs/typ/guide.typ) explains; this is the hands-on part. +|44: 11 Each lesson is a few things to do, then names its guide section. +|45: 12 Words in backticks, like `Save`, are builtins. +|46: 13 `Exec` (B2) runs the builtin a word names, or else runs it as a +|47: 14 shell line; `Look` (B3) opens what the text names, or else finds +|48: 15 it. Type a builtin in any tag and `Exec` it. Lines starting with +|49: 16 "| " are tags. +|50: 17 +|51: 18 Press j until you reach part 1. +|52: 19 +|53: 20 +|54: 21 ================================================================= +|55: 22 = PART 1 — MODES = +|56: 23 ================================================================= +|57: 24 +|58: 25 1. The box left of this pane's tag is blank, so you are in +|59: 26 NORMAL mode. Press i: it shows ^ (INSERT). Type a word, then +|60: 27 Esc: blank again. +|61: 28 2. Press Esc once more, in NORMAL: the keyboard goes back to the +|62: 29 pane you were in before (not what helix does). Come back with +|63: 30 Esc again. +|64: 31 3. Press Alt-n: a terminal opens, in NORMAL mode, and pardes types +|65: 32 ls at its first prompt. Press Ctrl-b: its box shows $ (RAW), and |66: ✓ /tmp/pardes-snap/builtins/cwd/+Help Tutor 7 messages · SPC h m diff --git a/test/snapshots/callstack.golden b/test/snapshots/callstack.golden index 19f832a7..744da7d5 100644 --- a/test/snapshots/callstack.golden +++ b/test/snapshots/callstack.golden @@ -1,7 +1,6 @@ -== snap hierarchy grid=110x40 cursor=7,11 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/callstack/cwd/main.rs Keep Save Term Collapse Follow TreeContext Def Refs Del +== snap hierarchy grid=110x40 cursor=7,10 +| New Term Find Grep Newcol Help Exit ⋯ lsp rust-analyzer: ready +| /tmp/pardes-snap/callstack/cwd/main.rs Keep Del | 1 mod lib; | 2 | 3 fn main() { @@ -9,7 +8,7 @@ | 5 let y = add(3, 4); | 6 let _ = x + y; | 7 } -| /tmp/pardes-snap/callstack/cwd/+Callstack Save Term Collapse Follow Del +| /tmp/pardes-snap/callstack/cwd/+Callstack Del | 1 ╰──┬ main.rs:3:4-7 | 2 │ fn main() { | 3 ├─ main.rs:4:13-15 @@ -38,32 +37,33 @@ | | | +| | ✓ /tmp/pardes-snap/callstack/cwd/main.rs Callstack 1 message · SPC h m == style hierarchy grid=110x40 -|0: 0-1 d,#1d2824, 2-109 #b2c3b8,#1d2824, -|1: 0-1 d,#504733, 2-109 #becfc4,#314738, -|2: 0-1 d,#465a43, 2-32 #b2c3b8,#2c2c0f, 33-40 #d3b0d9,#2c2c0f, 41-109 #b2c3b8,#2c2c0f, -|3: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-10 #c9a7ed,#0d1410, 11-109 #e5eee5,#0d1410, -|4: 0-0 d,#608269, 1-4 d,#0d1410, 5-109 #59675c,#0d1410, -|5: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-9 #c9a7ed,#0d1410, 10-109 #e5eee5,#0d1410, +|0: 0-1 d,#1d2824, 2-82 #b2c3b8,#1d2824, 83-109 #b7cb98,#1d2824, +|1: 0-1 d,#465a43, 2-32 #b2c3b8,#2c2c0f, 33-40 #d3b0d9,#2c2c0f, 41-109 #b2c3b8,#2c2c0f, +|2: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-10 #c9a7ed,#0d1410, 11-109 #e5eee5,#0d1410, +|3: 0-0 d,#608269, 1-4 d,#0d1410, 5-109 #59675c,#0d1410, +|4: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-9 #c9a7ed,#0d1410, 10-109 #e5eee5,#0d1410, +|5: 0-0 d,#608269, 1-4 d,#0d1410, 5-10 #59675c,#0d1410, 11-14 #c9a7ed,#0d1410, 15-109 #e5eee5,#0d1410, |6: 0-0 d,#608269, 1-4 d,#0d1410, 5-10 #59675c,#0d1410, 11-14 #c9a7ed,#0d1410, 15-109 #e5eee5,#0d1410, |7: 0-0 d,#608269, 1-4 d,#0d1410, 5-10 #59675c,#0d1410, 11-14 #c9a7ed,#0d1410, 15-109 #e5eee5,#0d1410, -|8: 0-0 d,#608269, 1-4 d,#0d1410, 5-10 #59675c,#0d1410, 11-14 #c9a7ed,#0d1410, 15-109 #e5eee5,#0d1410, -|9: 0-0 d,#152019, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-109 #e5eee5,#0d1410, -|10: 0-1 d,#add38a, 2-32 #becfc4,#314738, 33-43 #ecc8f2,#314738, 44-109 #becfc4,#314738, -|11: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-11 #666f68,#0d1410, 12-109 #59675c,#0d1410, -|12: 0-0 d,#608269, 1-4 d,#0d1410, 5-9 #59675c,#0d1410, 10-11 #666f68,#0d1410, 12-14 #c9a7ed,#0d1410, 15-109 #e5eee5,#0d1410, -|13: 0-0 d,#608269, 1-4 d,#0d1410, 5-9 #59675c,#0d1410, 10-12 #666f68,#0d1410, 13-109 #59675c,#0d1410, -|14: 0-0 d,#608269, 1-4 d,#0d1410, 5-9 #59675c,#0d1410, 10-12 #666f68,#0d1410, 13-16 #c9a7ed,#0d1410, 17-109 #e5eee5,#0d1410, -|15: 0-0 d,#608269, 1-4 d,#0d1410, 5-9 #59675c,#0d1410, 10-12 #666f68,#0d1410, 13-109 #59675c,#0d1410, -|16: 0-0 d,#608269, 1-4 d,#0d1410, 5-9 #59675c,#0d1410, 10-12 #666f68,#0d1410, 13-16 #c9a7ed,#0d1410, 17-109 #e5eee5,#0d1410, -|17: 0-0 d,#608269, 1-4 d,#0d1410, 5-9 #59675c,#0d1410, 10-14 #666f68,#0d1410, 15-109 #59675c,#0d1410, -|18: 0-0 d,#608269, 1-4 d,#0d1410, 5-12 #59675c,#0d1410, 13-14 #666f68,#0d1410, 15-17 #c9a7ed,#0d1410, 18-109 #e5eee5,#0d1410, -|19: 0-0 d,#608269, 1-4 d,#0d1410, 5-12 #59675c,#0d1410, 13-15 #666f68,#0d1410, 16-109 #59675c,#0d1410, -|20: 0-0 d,#608269, 1-3 d,#0d1410, 4-12 #59675c,#0d1410, 13-15 #666f68,#0d1410, 16-19 #c9a7ed,#0d1410, 20-23 #e5eee5,#0d1410, 24-26 #e5eee5,#5e4923, 27-109 #e5eee5,#0d1410, -|21: 0-0 d,#608269, 1-3 d,#0d1410, 4-12 #59675c,#0d1410, 13-15 #666f68,#0d1410, 16-109 #59675c,#0d1410, -|22: 0-0 d,#608269, 1-3 d,#0d1410, 4-15 #59675c,#0d1410, 16-19 #c9a7ed,#0d1410, 20-23 #e5eee5,#0d1410, 24-26 #e5eee5,#5e4923, 27-109 #e5eee5,#0d1410, -|23: 0-0 d,#608269, 1-4 d,#0d1410, 5-109 #59675c,#0d1410, +|8: 0-0 d,#152019, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-109 #e5eee5,#0d1410, +|9: 0-1 d,#add38a, 2-32 #becfc4,#314738, 33-43 #ecc8f2,#314738, 44-109 #becfc4,#314738, +|10: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-11 #666f68,#0d1410, 12-109 #59675c,#0d1410, +|11: 0-0 d,#608269, 1-4 d,#0d1410, 5-9 #59675c,#0d1410, 10-11 #666f68,#0d1410, 12-14 #c9a7ed,#0d1410, 15-109 #e5eee5,#0d1410, +|12: 0-0 d,#608269, 1-4 d,#0d1410, 5-9 #59675c,#0d1410, 10-12 #666f68,#0d1410, 13-109 #59675c,#0d1410, +|13: 0-0 d,#608269, 1-4 d,#0d1410, 5-9 #59675c,#0d1410, 10-12 #666f68,#0d1410, 13-16 #c9a7ed,#0d1410, 17-109 #e5eee5,#0d1410, +|14: 0-0 d,#608269, 1-4 d,#0d1410, 5-9 #59675c,#0d1410, 10-12 #666f68,#0d1410, 13-109 #59675c,#0d1410, +|15: 0-0 d,#608269, 1-4 d,#0d1410, 5-9 #59675c,#0d1410, 10-12 #666f68,#0d1410, 13-16 #c9a7ed,#0d1410, 17-109 #e5eee5,#0d1410, +|16: 0-0 d,#608269, 1-4 d,#0d1410, 5-9 #59675c,#0d1410, 10-14 #666f68,#0d1410, 15-109 #59675c,#0d1410, +|17: 0-0 d,#608269, 1-4 d,#0d1410, 5-12 #59675c,#0d1410, 13-14 #666f68,#0d1410, 15-17 #c9a7ed,#0d1410, 18-109 #e5eee5,#0d1410, +|18: 0-0 d,#608269, 1-4 d,#0d1410, 5-12 #59675c,#0d1410, 13-15 #666f68,#0d1410, 16-109 #59675c,#0d1410, +|19: 0-0 d,#608269, 1-3 d,#0d1410, 4-12 #59675c,#0d1410, 13-15 #666f68,#0d1410, 16-19 #c9a7ed,#0d1410, 20-23 #e5eee5,#0d1410, 24-26 #e5eee5,#5e4923, 27-109 #e5eee5,#0d1410, +|20: 0-0 d,#608269, 1-3 d,#0d1410, 4-12 #59675c,#0d1410, 13-15 #666f68,#0d1410, 16-109 #59675c,#0d1410, +|21: 0-0 d,#608269, 1-3 d,#0d1410, 4-15 #59675c,#0d1410, 16-19 #c9a7ed,#0d1410, 20-23 #e5eee5,#0d1410, 24-26 #e5eee5,#5e4923, 27-109 #e5eee5,#0d1410, +|22: 0-0 d,#608269, 1-4 d,#0d1410, 5-109 #59675c,#0d1410, +|23: 0-0 d,#608269, 1-109 d,#0d1410, |24: 0-0 d,#608269, 1-109 d,#0d1410, |25: 0-0 d,#608269, 1-109 d,#0d1410, |26: 0-0 d,#608269, 1-109 d,#0d1410, @@ -81,7 +81,7 @@ |38: 0-0 d,#608269, 1-109 d,#0d1410, |39: 0-1 d,#1d2824, 2-109 #6f7d75,#1d2824, == snap caller grid=110x40 cursor=13,27 -|24: ‹@p2 › /tmp/pardes-snap/callstack/cwd/main.rs Keep Save Term Collapse Follow TreeContext Def Refs Del +|24: ‹@p2 › /tmp/pardes-snap/callstack/cwd/main.rs Keep Del |25: 1 mod lib; |26: 2 |27: 3 fn main() { diff --git a/test/snapshots/chordcut.golden b/test/snapshots/chordcut.golden index 2bf28748..5c2083d9 100644 --- a/test/snapshots/chordcut.golden +++ b/test/snapshots/chordcut.golden @@ -1,13 +1,11 @@ -== snap opened grid=120x32 cursor=7,9 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/chordcut/cwd Term+bash Save Mode Filter C /tmp/pardes-snap/chordcut/cwd Term+bash Save Mode Filter C -| ollapse Del ollapse Del +== snap opened grid=120x32 cursor=7,7 +| Find Grep Newcol Help Exit +| New Term Joincol Delcol New Term Joincol Delcol +| /tmp/pardes-snap/chordcut/cwd Del Term+bash /tmp/pardes-snap/chordcut/cwd Del Term+bash | ls ls | f.txt g.txt f.txt g.txt | -| /tmp/pardes-snap/chordcut/cwd/f.txt Save Term Collapse Fol -| low Del +| /tmp/pardes-snap/chordcut/cwd/f.txt Del | 1 line 1 | 2 line 2 | 3 line 3 @@ -16,8 +14,9 @@ | ~ | | -| /tmp/pardes-snap/chordcut/cwd Term+bash Save Mode Filter C -| ollapse Del +| +| +| /tmp/pardes-snap/chordcut/cwd Del Term+bash | ls | f.txt g.txt | @@ -30,75 +29,75 @@ | | | +| | · @p1 a copy of the terminal's text: Tab or B2 runs it; what the program draws next replaces it… 1 message · SPC h m -== snap cut grid=120x32 cursor=7,9 -|7: */tmp/pardes-snap/chordcut/cwd/f.txt Save Term Collapse Fol -|9: 1 1 -== snap copied grid=120x32 cursor=10,10 -== snap pointpaste grid=120x32 cursor=16,11 -|11: 3 line 3line -== snap replaced grid=120x32 cursor=11,12 -|12: 4 lline 4 -== snap cancelexec grid=120x32 cursor=25,9 -|9: 1 1echo B''OO g.txt -== snap execafter grid=120x32 cursor=25,9 -|17: /tmp/pardes-snap/chordcut/cwd Term+bash Save Mode Filter C /tmp/pardes-snap/chordcut/cwd (echo B''OO) exit 0 Kill Sav -|18: ollapse Del e Collapse Del -|19: ls % echo B''OO -|20: f.txt g.txt BOO -|21: exit 0 +== snap cut grid=120x32 cursor=7,7 +|6: */tmp/pardes-snap/chordcut/cwd/f.txt Save Undo Del +|7: 1 1 +== snap copied grid=120x32 cursor=10,8 +== snap pointpaste grid=120x32 cursor=16,9 +|9: 3 line 3line +== snap replaced grid=120x32 cursor=11,10 +|10: 4 lline 4 +== snap cancelexec grid=120x32 cursor=25,7 +|7: 1 1echo B''OO g.txt +== snap execafter grid=120x32 cursor=25,7 +|17: /tmp/pardes-snap/chordcut/cwd Del Term+bash /tmp/pardes-snap/chordcut/cwd (echo B''OO) exit 0 Del +|18: ls % echo B''OO +|19: f.txt g.txt BOO +|20: exit 0 |31: ✓ /tmp/pardes-snap/chordcut/cwd/f.txt Exec 2 messages · SPC h m -== snap cancellook grid=120x32 cursor=25,9 -== snap lookafter grid=120x32 cursor=7,24 -|22: /tmp/pardes-snap/chordcut/cwd/g.txt Save Term Collapse Fol -|23: low Del -|24: 1 line 1 -|25: 2 line 2 -|26: ~ +== snap cancellook grid=120x32 cursor=25,7 +== snap lookafter grid=120x32 cursor=7,22 +|21: /tmp/pardes-snap/chordcut/cwd/g.txt Del +|22: 1 line 1 +|23: 2 line 2 +|24: ~ == style chordsel grid=120x32 -|0: 0-1 d,#1d2824, 2-119 #b2c3b8,#1d2824, +|0: 0-91 d,#1d2824, 92-119 #b2c3b8,#1d2824, |1: 0-1 d,#504733, 2-59 #becfc4,#314738, 60-61 #becfc4,#504733, 62-119 #b2c3b8,#1d2824, -|2: 0-1 d,#465a43, 2-31 #b2c3b8,#1d2824, 32-41 #d3b0d9,#1d2824, 42-59 #b2c3b8,#1d2824, 60-61 #b2c3b8,#465a43, 62-91 #b2c3b8,#1d2824, 92-101 #d3b0d9,#1d2824, 102-119 #b2c3b8,#1d2824, -|3: 0-1 d,#1d2824, 2-119 #b2c3b8,#1d2824, +|2: 0-1 d,#465a43, 2-35 #b2c3b8,#1d2824, 36-59 #d3b0d9,#1d2824, 60-61 #d3b0d9,#465a43, 62-95 #b2c3b8,#1d2824, 96-119 #d3b0d9,#1d2824, +|3: 0-0 d,#608269, 1-1 d,#0d1410, 2-59 #e5eee5,#0d1410, 60-60 #e5eee5,#608269, 61-119 #e5eee5,#0d1410, |4: 0-0 d,#608269, 1-1 d,#0d1410, 2-59 #e5eee5,#0d1410, 60-60 #e5eee5,#608269, 61-119 #e5eee5,#0d1410, -|5: 0-0 d,#608269, 1-1 d,#0d1410, 2-59 #e5eee5,#0d1410, 60-60 #e5eee5,#608269, 61-119 #e5eee5,#0d1410, -|6: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, -|7: 0-0 d,#465a43, 1-1 #000000,#f9cb70,b 2-31 #b2c3b8,#1d2824, 32-37 #d3b0d9,#1d2824, 38-59 #b2c3b8,#1d2824, 60-60 #b2c3b8,#608269, 61-119 #b2c3b8,#0d1410, -|8: 0-1 d,#1d2824, 2-59 #b2c3b8,#1d2824, 60-60 #b2c3b8,#608269, 61-119 #b2c3b8,#0d1410, -|9: 0-0 d,#608269, 1-4 d,#0d1410, 5-7 #59675c,#0d1410, 8-59 #e5eee5,#0d1410, 60-60 #e5eee5,#608269, 61-119 #e5eee5,#0d1410, +|5: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, +|6: 0-0 d,#465a43, 1-1 #000000,#f9cb70,b 2-31 #b2c3b8,#1d2824, 32-37 #d3b0d9,#1d2824, 38-59 #b2c3b8,#1d2824, 60-60 #b2c3b8,#608269, 61-119 #b2c3b8,#0d1410, +|7: 0-0 d,#608269, 1-4 d,#0d1410, 5-7 #59675c,#0d1410, 8-59 #e5eee5,#0d1410, 60-60 #e5eee5,#608269, 61-119 #e5eee5,#0d1410, +|8: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-59 #e5eee5,#0d1410, 60-60 #e5eee5,#608269, 61-119 #e5eee5,#0d1410, +|9: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-59 #e5eee5,#0d1410, 60-60 #e5eee5,#608269, 61-119 #e5eee5,#0d1410, |10: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-59 #e5eee5,#0d1410, 60-60 #e5eee5,#608269, 61-119 #e5eee5,#0d1410, |11: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-59 #e5eee5,#0d1410, 60-60 #e5eee5,#608269, 61-119 #e5eee5,#0d1410, -|12: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-59 #e5eee5,#0d1410, 60-60 #e5eee5,#608269, 61-119 #e5eee5,#0d1410, -|13: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-59 #e5eee5,#0d1410, 60-60 #e5eee5,#608269, 61-119 #e5eee5,#0d1410, -|14: 0-0 d,#608269, 1-4 d,#0d1410, 5-59 #59675c,#0d1410, 60-60 #59675c,#608269, 61-119 #59675c,#0d1410, +|12: 0-0 d,#608269, 1-4 d,#0d1410, 5-59 #59675c,#0d1410, 60-60 #59675c,#608269, 61-119 #59675c,#0d1410, +|13: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, +|14: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, |15: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, |16: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, -|17: 0-1 d,#465a43, 2-31 #b2c3b8,#1d2824, 32-41 #d3b0d9,#1d2824, 42-59 #b2c3b8,#1d2824, 60-61 #b2c3b8,#465a43, 62-119 #b2c3b8,#1d2824, -|18: 0-1 d,#1d2824, 2-119 #b2c3b8,#1d2824, +|17: 0-1 d,#465a43, 2-35 #b2c3b8,#1d2824, 36-59 #d3b0d9,#1d2824, 60-61 #d3b0d9,#465a43, 62-119 #b2c3b8,#1d2824, +|18: 0-0 d,#608269, 1-1 d,#0d1410, 2-59 #e5eee5,#0d1410, 60-60 #e5eee5,#608269, 61-119 #e5eee5,#0d1410, |19: 0-0 d,#608269, 1-1 d,#0d1410, 2-59 #e5eee5,#0d1410, 60-60 #e5eee5,#608269, 61-119 #e5eee5,#0d1410, -|20: 0-0 d,#608269, 1-1 d,#0d1410, 2-59 #e5eee5,#0d1410, 60-60 #e5eee5,#608269, 61-119 #e5eee5,#0d1410, -|21: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-61 d,#0d1410, 62-119 #e5eee5,#0d1410, -|22: 0-1 d,#add38a, 2-31 #becfc4,#314738, 32-37 #ecc8f2,#314738, 38-59 #becfc4,#314738, 60-60 #becfc4,#608269, 61-119 #becfc4,#0d1410, -|23: 0-1 d,#314738, 2-6 #becfc4,#314738, 7-8 #f5f7ee,#3c614a, 9-59 #f5f7ee,#314738, 60-60 #f5f7ee,#608269, 61-119 #f5f7ee,#0d1410, -|24: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-59 #e5eee5,#0d1410, 60-60 #e5eee5,#608269, 61-119 #e5eee5,#0d1410, -|25: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-59 #e5eee5,#0d1410, 60-60 #e5eee5,#608269, 61-119 #e5eee5,#0d1410, -|26: 0-0 d,#608269, 1-4 d,#0d1410, 5-59 #59675c,#0d1410, 60-60 #59675c,#608269, 61-119 #59675c,#0d1410, +|20: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-61 d,#0d1410, 62-119 #e5eee5,#0d1410, +|21: 0-1 d,#add38a, 2-31 #becfc4,#314738, 32-37 #ecc8f2,#314738, 38-59 #becfc4,#314738, 60-60 #becfc4,#608269, 61-119 #becfc4,#0d1410, +|22: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-10 #f5f7ee,#3c614a, 11-11 #f5f7ee,#0d1410, 12-59 #e5eee5,#0d1410, 60-60 #e5eee5,#608269, 61-119 #e5eee5,#0d1410, +|23: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-59 #e5eee5,#0d1410, 60-60 #e5eee5,#608269, 61-119 #e5eee5,#0d1410, +|24: 0-0 d,#608269, 1-4 d,#0d1410, 5-59 #59675c,#0d1410, 60-60 #59675c,#608269, 61-119 #59675c,#0d1410, +|25: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, +|26: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, |27: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, |28: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, |29: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, |30: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, |31: 0-1 d,#1d2824, 2-119 #6f7d75,#1d2824, == style clickdismiss grid=120x32 -|23: 0-1 d,#314738, 2-59 #becfc4,#314738, 60-60 #becfc4,#608269, 61-119 #becfc4,#0d1410, -|24: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-59 #e5eee5,#0d1410, 60-60 #e5eee5,#608269, 61-119 #e5eee5,#0d1410, -== snap ttyprobe grid=120x32 cursor=22,24 -|22: /tmp/pardes-snap/chordcut/cwd/g.stty -icanon -echo; printf -|23: '\x1b[?2004h\x1b[?1000h\x1b[?1006h'; cat -vtxt Save Term -|24: Collapse Follow Delel -|25: 1 line 1 /tmp/pardes-snap/chordcut/cwd/g.stty -icanon -echo; printf -|26: 2 line 2 '\x1b[?2004h\x1b[?1000h\x1b[?1006h'; cat -vtxt Save Term -|27: ~ Collapse Follow Del Unfollow -|28: ~ -|31: ✓ /tmp/pardes-snap/chordcut/cwd/g.txt Follow 4 messages · SPC h m -== snap ttyprompt grid=120x32 cursor=24,24 -|24: Collapse Follow Delelel +|22: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-59 #e5eee5,#0d1410, 60-60 #e5eee5,#608269, 61-119 #e5eee5,#0d1410, +|23: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-59 #e5eee5,#0d1410, 60-60 #e5eee5,#608269, 61-119 #e5eee5,#0d1410, +== snap ttyprobe grid=120x32 cursor=42,22 +|17: $ /tmp/pardes-snap/chordcut/cwd Del Term+bash /tmp/pardes-snap/chordcut/cwd (echo B''OO) exit 0 Del +|18: $ ls % echo B''OO +|20: $ stty -icanon -echo; printf '\x1b[?2004h\x1b[?1000h\x1b[? exit 0 +|21: 1006h'; cat -v +|22: ^[[<0;38;7M^[[<0;38;7m^[[200~line^[[201~ +|23: +|24: +|31: ✓ /tmp/pardes-snap/chordcut/cwd/g.txt Del 4 messages · SPC h m +== snap ttyprompt grid=120x32 cursor=8,24 +|23: $ +|24: $ line diff --git a/test/snapshots/cmdexit.golden b/test/snapshots/cmdexit.golden index 99c7f513..8f1e9b53 100644 --- a/test/snapshots/cmdexit.golden +++ b/test/snapshots/cmdexit.golden @@ -1,7 +1,6 @@ -== snap opened grid=120x31 cursor=7,3 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/cmdexit/cwd/cmds.txt Keep Save Term Collapse Follow Del +== snap opened grid=120x31 cursor=7,2 +| New Term Find Grep Newcol Help Exit +| /tmp/pardes-snap/cmdexit/cwd/cmds.txt Keep Del | 1 sleep 30 & echo BG''STARTED | 2 exec </dev/null >/dev/null 2>&1; sleep 1; false | @@ -29,13 +28,14 @@ | | | +| | /tmp/pardes-snap/cmdexit/cwd/cmds.txt:1 -== snap background grid=120x31 cursor=7,3 -|16: /tmp/pardes-snap/cmdexit/cwd (sleep 30 & echo BG''STARTED) exit 0 Kill Save Collapse Del +== snap background grid=120x31 cursor=7,2 +|16: /tmp/pardes-snap/cmdexit/cwd (sleep 30 & echo BG''STARTED) exit 0 Del |17: % sleep 30 & echo BG''STARTED |18: BGSTARTED |19: exit 0 -== snap letgo grid=120x31 cursor=7,3 -|23: /tmp/pardes-snap/cmdexit/cwd (exec </dev/null >/dev/null 2>&1; sleep 1; false) exit 1 Kill Save Collapse Del +== snap letgo grid=120x31 cursor=7,2 +|23: /tmp/pardes-snap/cmdexit/cwd (exec </dev/null >/dev/null 2>&1; sleep 1; false) exit 1 Del |24: % exec </dev/null >/dev/null 2>&1; sleep 1; false |25: exit 1 diff --git a/test/snapshots/cmdword.golden b/test/snapshots/cmdword.golden index 67a51000..3c44e0b1 100644 --- a/test/snapshots/cmdword.golden +++ b/test/snapshots/cmdword.golden @@ -1,7 +1,6 @@ -== snap opened grid=120x31 cursor=7,3 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/cmdword/cwd/cmds.txt Save Term Collapse Follow Del +== snap opened grid=120x31 cursor=7,2 +| New Term Find Grep Newcol Help Exit +| /tmp/pardes-snap/cmdword/cwd/cmds.txt Del | 1 @`echo ZZ''E` @`echo ZZ''L` Look p.txt @`Look .` | | @@ -29,32 +28,33 @@ | | | +| | /tmp/pardes-snap/cmdword/cwd/cmds.txt:1 -== snap atexec grid=120x31 cursor=7,3 -|16: /tmp/pardes-snap/cmdword/cwd (echo ZZ''E) exit 0 Kill Save Collapse Del +== snap atexec grid=120x31 cursor=7,2 +|16: /tmp/pardes-snap/cmdword/cwd (echo ZZ''E) exit 0 Del |17: % echo ZZ''E |18: ZZE |19: exit 0 == snap atlook grid=120x31 cursor=2,23 -|16: /tmp/pardes-snap/cmdword/cwd (echo ZZ''L) exit 0 Kill Save Collapse Del +|16: /tmp/pardes-snap/cmdword/cwd (echo ZZ''L) exit 0 Del |20: % echo ZZ''L |21: ZZL |22: exit 0 |30: /tmp/pardes-snap/cmdword/cwd -== snap lookword grid=120x31 cursor=7,6 -|5: /tmp/pardes-snap/cmdword/cwd/p.txt Save Term Collapse Follow Del -|6: 1 just text +== snap lookword grid=120x31 cursor=7,5 +|4: /tmp/pardes-snap/cmdword/cwd/p.txt Del +|5: 1 just text |30: /tmp/pardes-snap/cmdword/cwd/p.txt:1 -== snap nested grid=120x31 cursor=7,9 -|8: /tmp/pardes-snap/cmdword/cwd/ Get Term Collapse Del -|9: 1 cmds.txt p.txt zzmark.txt -|10: ~ +== snap nested grid=120x31 cursor=7,8 +|7: /tmp/pardes-snap/cmdword/cwd/ Get Del +|8: 1 cmds.txt p.txt zzmark.txt +|9: ~ |30: /tmp/pardes-snap/cmdword/cwd/:1 -== snap execword grid=120x31 cursor=7,9 -|8: /tmp/pardes-snap/cmdword/cwd/ Get Term Collapse Del Exec -== snap tagcmd grid=120x31 cursor=7,9 -|8: /tmp/pardes-snap/cmdword/cwd/ Get Term Collapse Del Exec @`echo ZZ''T` -|16: /tmp/pardes-snap/cmdword/cwd (echo ZZ''T) exit 0 Kill Save Collapse Del +== snap execword grid=120x31 cursor=7,8 +|7: /tmp/pardes-snap/cmdword/cwd/ Get Del Exec +== snap tagcmd grid=120x31 cursor=7,8 +|7: /tmp/pardes-snap/cmdword/cwd/ Get Del Exec @`echo ZZ''T` +|16: /tmp/pardes-snap/cmdword/cwd (echo ZZ''T) exit 0 Del |23: % echo ZZ''T |24: ZZT |25: exit 0 diff --git a/test/snapshots/colgrip.golden b/test/snapshots/colgrip.golden index 3ee9fc47..07d1924a 100644 --- a/test/snapshots/colgrip.golden +++ b/test/snapshots/colgrip.golden @@ -1,10 +1,10 @@ == style rest grid=100x24 -|0: 0-1 d,#1d2824, 2-99 #b2c3b8,#1d2824, +|0: 0-71 d,#1d2824, 72-99 #b2c3b8,#1d2824, |1: 0-1 d,#504733, 2-49 #b2c3b8,#1d2824, 50-51 #b2c3b8,#504733, 52-99 #becfc4,#314738, -|2: 0-1 d,#465a43, 2-30 #b2c3b8,#2c2c0f, 31-36 #d3b0d9,#2c2c0f, 37-49 #b2c3b8,#2c2c0f, 50-51 #b2c3b8,#add38a, 52-80 #becfc4,#314738, 81-90 #ecc8f2,#314738, 91-99 #becfc4,#314738, -|3: 0-1 d,#2c2c0f, 2-49 #b2c3b8,#2c2c0f, 50-52 #b2c3b8,#314738, 53-99 #becfc4,#314738, -|4: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, -|5: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-51 d,#0d1410, 52-99 #e5eee5,#0d1410, +|2: 0-1 d,#465a43, 2-30 #b2c3b8,#2c2c0f, 31-36 #d3b0d9,#2c2c0f, 37-49 #b2c3b8,#2c2c0f, 50-51 #b2c3b8,#add38a, 52-84 #becfc4,#314738, 85-99 #ecc8f2,#314738, +|3: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, +|4: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-51 d,#0d1410, 52-99 #e5eee5,#0d1410, +|5: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, |6: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, |7: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, |8: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, @@ -25,11 +25,10 @@ |23: 0-1 d,#1d2824, 2-99 #b2c3b8,#1d2824, == style held grid=100x24 |1: 0-1 d,#504733, 2-49 #b2c3b8,#1d2824, 50-51 #b2c3b8,#f4c086, 52-99 #becfc4,#314738, -== snap resize-drag grid=100x24 cursor=54,6 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/colgrip/cwd/w.txt Keep Save Ter /tmp/pardes-snap/colgrip/cwd Term+bash Save Mode -| m Collapse Follow Del Filter Collapse Del +== snap resize-drag grid=100x24 cursor=54,5 +| Find Grep Newcol Help Exit +| New Term Joincol Delcol New Term Joincol Delcol +| /tmp/pardes-snap/colgrip/cwd/w.txt Keep Del /tmp/pardes-snap/colgrip/cwd Del Term+bash | 1 x ls | w.txt | @@ -49,21 +48,21 @@ | | | +| | /tmp/pardes-snap/colgrip/cwd == style resize-drag grid=100x24 -== snap resize-done grid=100x24 cursor=44,6 -|1: New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -|2: /tmp/pardes-snap/colgrip/cwd/w.txt Kee /tmp/pardes-snap/colgrip/cwd Term+bash Save Mode Filter Co -|3: p Save Term Collapse Follow Del llapse Del -|4: 1 x ls -|5: w.txt -== snap reorder-drag grid=100x24 cursor=44,6 +== snap resize-done grid=100x24 cursor=44,5 +|1: New Term Joincol Delcol New Term Joincol Delcol +|2: /tmp/pardes-snap/colgrip/cwd/w.txt Kee /tmp/pardes-snap/colgrip/cwd Del Term+bash +|3: p Del ls +|4: 1 x w.txt +== snap reorder-drag grid=100x24 cursor=44,5 == style reorder-drag grid=100x24 |1: 0-1 d,#504733, 2-39 #b2c3b8,#1d2824, 40-41 #b2c3b8,#f4c086, 42-99 #becfc4,#314738, -|2: 0-1 d,#465a43, 2-30 #b2c3b8,#2c2c0f, 31-36 #d3b0d9,#2c2c0f, 37-39 #b2c3b8,#2c2c0f, 40-41 #b2c3b8,#add38a, 42-70 #becfc4,#314738, 71-80 #ecc8f2,#314738, 81-99 #becfc4,#314738, -|3: 0-1 d,#2c2c0f, 2-39 #b2c3b8,#2c2c0f, 40-41 #b2c3b8,#314738, 42-99 #becfc4,#314738, +|2: 0-1 d,#465a43, 2-30 #b2c3b8,#2c2c0f, 31-36 #d3b0d9,#2c2c0f, 37-39 #b2c3b8,#2c2c0f, 40-41 #b2c3b8,#add38a, 42-74 #becfc4,#314738, 75-99 #ecc8f2,#314738, +|3: 0-1 d,#2c2c0f, 2-39 #b2c3b8,#2c2c0f, 40-40 #b2c3b8,#608269, 41-41 #b2c3b8,#0d1410, 42-99 #e5eee5,#0d1410, |4: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-39 #e5eee5,#0d1410, 40-40 #e5eee5,#608269, 41-99 #e5eee5,#0d1410, -|5: 0-0 d,#608269, 1-39 d,#0d1410, 40-40 d,#608269, 41-41 d,#0d1410, 42-99 #e5eee5,#0d1410, +|5: 0-0 d,#608269, 1-39 d,#0d1410, 40-40 d,#608269, 41-99 d,#0d1410, |6: 0-0 d,#608269, 1-39 d,#0d1410, 40-40 d,#608269, 41-99 d,#0d1410, |7: 0-0 d,#608269, 1-39 d,#0d1410, 40-40 d,#608269, 41-99 d,#0d1410, |8: 0-0 d,#608269, 1-39 d,#0d1410, 40-40 d,#608269, 41-99 d,#0d1410, @@ -81,9 +80,8 @@ |20: 0-0 d,#608269, 1-39 d,#0d1410, 40-40 d,#608269, 41-99 d,#0d1410, |21: 0-0 d,#608269, 1-39 d,#0d1410, 40-40 d,#608269, 41-99 d,#0d1410, |22: 0-0 d,#608269, 1-39 d,#0d1410, 40-40 d,#608269, 41-99 d,#0d1410, -== snap reorder-done grid=100x24 cursor=4,6 -|1: New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -|2: /tmp/pardes-snap/colgrip/cwd Term+bash Save Mode Filter Co /tmp/pardes-snap/colgrip/cwd/w.txt Kee -|3: llapse Del p Save Term Collapse Follow Del -|4: ls 1 x -|5: w.txt +== snap reorder-done grid=100x24 cursor=4,5 +|1: New Term Joincol Delcol New Term Joincol Delcol +|2: /tmp/pardes-snap/colgrip/cwd Del Term+bash /tmp/pardes-snap/colgrip/cwd/w.txt Kee +|3: ls p Del +|4: w.txt 1 x diff --git a/test/snapshots/collapse.golden b/test/snapshots/collapse.golden index fba84ab2..c0e74d14 100644 --- a/test/snapshots/collapse.golden +++ b/test/snapshots/collapse.golden @@ -1,7 +1,6 @@ -== snap before grid=160x25 cursor=7,3 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/collapse/cwd/kept.txt Keep Save Term Collapse Follow Del +== snap before grid=160x25 cursor=7,2 +| New Term Find Grep Newcol Help Exit +| /tmp/pardes-snap/collapse/cwd/kept.txt Keep Del Collapse Save | 1 KEEP-FIRST | 2 KEEP-SECOND | 3 KEEP-THIRD @@ -23,19 +22,20 @@ | | | +| | /tmp/pardes-snap/collapse/cwd/kept.txt:1 == snap middle-collapsed grid=160x25 cursor=hidden +|2: |3: |4: -|5: |24: ✓ /tmp/pardes-snap/collapse/cwd/kept.txt Collapse 2 messages · SPC h m == 9p middle-collapsed-cursor grid=160x25 cursor=none -|0: Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -@0: 0-84 #b2c3b8,#1d2824,,tagline 85-159 d,#1d2824,,tagline -|1: New Term Find Grep Joincol Delcol -@1: 0-1 #ffffff,#504733,,tagline 2-34 #becfc4,#314738,,tagline 35-159 d,#314738,,tagline -|2: /tmp/pardes-snap/collapse/cwd/kept.txt Keep Save Term Collapse Follow Del -@2: 0-1 #000000,#add38a,,tagline 2-31 #becfc4,#2c2c0f,,tagline 32-39 #ecc8f2,#2c2c0f,,tagline 40-74 #becfc4,#2c2c0f,,tagline 75-159 d,#2c2c0f,,tagline +|0: New Term Find Grep Newcol Help Exit +@0: 0-10 #b2c3b8,#1d2824,,tagline 11-11 d,#1d2824,,tagline 12-158 #b2c3b8,#1d2824,,tagline 159-159 d,#1d2824,,tagline +|1: /tmp/pardes-snap/collapse/cwd/kept.txt Keep Del Collapse Save +@1: 0-1 #000000,#add38a,,tagline 2-31 #becfc4,#2c2c0f,,tagline 32-39 #ecc8f2,#2c2c0f,,tagline 40-62 #becfc4,#2c2c0f,,tagline 63-159 d,#2c2c0f,,tagline +|2: +@2: 0-159 d,#486152,,body |3: @3: 0-159 d,#486152,,body |4: @@ -81,24 +81,24 @@ |24: ✓ /tmp/pardes-snap/collapse/cwd/kept.txt Collapse 2 messages · SPC h m +24: 2="✓" 150="·" @24: 0-1 d,#1d2824,,tagline 2-50 #6f7d75,#1d2824,,tagline 51-138 #b2c3b8,#1d2824,,tagline 139-158 #6f7d75,#1d2824,,tagline 159-159 d,#1d2824,,tagline -== snap middle-restored grid=160x25 cursor=7,3 -|3: 1 KEEP-FIRST -|4: 2 KEEP-SECOND -|5: 3 KEEP-THIRD +== snap middle-restored grid=160x25 cursor=7,2 +|2: 1 KEEP-FIRST +|3: 2 KEEP-SECOND +|4: 3 KEEP-THIRD |24: ✓ /tmp/pardes-snap/collapse/cwd/kept.txt Collapse 4 messages · SPC h m == snap tab-collapsed grid=160x25 cursor=hidden +|2: |3: |4: -|5: |24: ✓ /tmp/pardes-snap/collapse/cwd/kept.txt Collapse 7 messages · SPC h m == 9p tab-collapsed-cursor grid=160x25 cursor=none |24: ✓ /tmp/pardes-snap/collapse/cwd/kept.txt Collapse 7 messages · SPC h m +24: 2="✓" 150="·" @24: 0-1 d,#1d2824,,tagline 2-50 #6f7d75,#1d2824,,tagline 51-138 #b2c3b8,#1d2824,,tagline 139-158 #6f7d75,#1d2824,,tagline 159-159 d,#1d2824,,tagline -== snap tab-restored grid=160x25 cursor=7,3 -|3: 1 KEEP-FIRST -|4: 2 KEEP-SECOND -|5: 3 KEEP-THIRD +== snap tab-restored grid=160x25 cursor=7,2 +|2: 1 KEEP-FIRST +|3: 2 KEEP-SECOND +|4: 3 KEEP-THIRD |24: ✓ /tmp/pardes-snap/collapse/cwd/kept.txt Collapse 10 messages · SPC h m == file unchanged KEEP-FIRST diff --git a/test/snapshots/cursorline.golden b/test/snapshots/cursorline.golden index 34f50b42..684a3061 100644 --- a/test/snapshots/cursorline.golden +++ b/test/snapshots/cursorline.golden @@ -1,7 +1,7 @@ -== snap top grid=150x31 cursor=82,18 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/cursorline/cwd Term+bash Save Mode Filter Collapse Del /tmp/pardes-snap/cursorline/cwd Term+bash Save Mode Filter Collapse Del +== snap top grid=150x31 cursor=82,17 +| Find Grep Newcol Help Exit +| New Term Joincol Delcol New Term Joincol Delcol +| /tmp/pardes-snap/cursorline/cwd Del Term+bash /tmp/pardes-snap/cursorline/cwd Del Term+bash | ls ls | cur.txt cur.txt | @@ -15,10 +15,9 @@ | | | -| /tmp/pardes-snap/cursorline/cwd Term+bash Save Mode Filter Collapse Del ‹@p1 › /tmp/pardes-snap/cursorline/cwd/cur.txt Keep Save Term Collapse Fo -| ls llow Del -| cur.txt 1 line 1 -| 2 line 2 +| /tmp/pardes-snap/cursorline/cwd Del Term+bash ‹@p1 › /tmp/pardes-snap/cursorline/cwd/cur.txt Keep Del +| ls 1 line 1 +| cur.txt 2 line 2 | 3 line 3 | 4 line 4 | 5 line 5 @@ -29,11 +28,12 @@ | 10 line 10 | 11 line 11 | 12 line 12 +| 13 line 13 | · @p1 a copy of the terminal's text: Tab or B2 runs it; what the program draws next replaces it (Ctrl-b types to the program) 1 message · SPC h m == style top grid=150x31 -|0: 0-1 d,#1d2824, 2-149 #b2c3b8,#1d2824, +|0: 0-121 d,#1d2824, 122-149 #b2c3b8,#1d2824, |1: 0-1 d,#504733, 2-74 #b2c3b8,#1d2824, 75-76 #b2c3b8,#504733, 77-149 #becfc4,#314738, -|2: 0-1 d,#465a43, 2-33 #b2c3b8,#1d2824, 34-43 #d3b0d9,#1d2824, 44-74 #b2c3b8,#1d2824, 75-76 #b2c3b8,#465a43, 77-108 #b2c3b8,#1d2824, 109-118 #d3b0d9,#1d2824, 119-149 #b2c3b8,#1d2824, +|2: 0-1 d,#465a43, 2-37 #b2c3b8,#1d2824, 38-74 #d3b0d9,#1d2824, 75-76 #d3b0d9,#465a43, 77-112 #b2c3b8,#1d2824, 113-149 #d3b0d9,#1d2824, |3: 0-0 d,#608269, 1-1 d,#0d1410, 2-74 #e5eee5,#0d1410, 75-75 #e5eee5,#608269, 76-149 #e5eee5,#0d1410, |4: 0-0 d,#608269, 1-1 d,#0d1410, 2-74 #e5eee5,#0d1410, 75-75 #e5eee5,#608269, 76-149 #e5eee5,#0d1410, |5: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-149 d,#0d1410, @@ -47,22 +47,22 @@ |13: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-149 d,#0d1410, |14: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-149 d,#0d1410, |15: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-149 d,#0d1410, -|16: 0-1 d,#465a43, 2-33 #b2c3b8,#1d2824, 34-43 #d3b0d9,#1d2824, 44-74 #b2c3b8,#1d2824, 75-76 #b2c3b8,#add38a, 77-115 #becfc4,#2c2c0f, 116-123 #ecc8f2,#2c2c0f, 124-149 #becfc4,#2c2c0f, -|17: 0-0 d,#608269, 1-1 d,#0d1410, 2-74 #e5eee5,#0d1410, 75-76 #e5eee5,#2c2c0f, 77-149 #becfc4,#2c2c0f, -|18: 0-0 d,#608269, 1-1 d,#0d1410, 2-74 #e5eee5,#0d1410, 75-75 #e5eee5,#608269, 76-76 #e5eee5,#0d1410, 77-79 #e5eee5,#0d1410,b 80-81 #616f64,#0d1410,b 82-149 #e5eee5,#0d1410, +|16: 0-1 d,#465a43, 2-37 #b2c3b8,#1d2824, 38-74 #d3b0d9,#1d2824, 75-76 #d3b0d9,#add38a, 77-115 #becfc4,#2c2c0f, 116-123 #ecc8f2,#2c2c0f, 124-149 #becfc4,#2c2c0f, +|17: 0-0 d,#608269, 1-1 d,#0d1410, 2-74 #e5eee5,#0d1410, 75-75 #e5eee5,#608269, 76-76 #e5eee5,#0d1410, 77-79 #e5eee5,#0d1410,b 80-81 #616f64,#0d1410,b 82-149 #e5eee5,#0d1410, +|18: 0-0 d,#608269, 1-1 d,#0d1410, 2-74 #e5eee5,#0d1410, 75-75 #e5eee5,#608269, 76-79 #e5eee5,#0d1410, 80-81 #59675c,#0d1410, 82-149 #e5eee5,#0d1410, |19: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-79 d,#0d1410, 80-81 #59675c,#0d1410, 82-149 #e5eee5,#0d1410, |20: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-79 d,#0d1410, 80-81 #59675c,#0d1410, 82-149 #e5eee5,#0d1410, |21: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-79 d,#0d1410, 80-81 #59675c,#0d1410, 82-149 #e5eee5,#0d1410, |22: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-79 d,#0d1410, 80-81 #59675c,#0d1410, 82-149 #e5eee5,#0d1410, |23: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-79 d,#0d1410, 80-81 #59675c,#0d1410, 82-149 #e5eee5,#0d1410, -|24: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#152019, 76-79 d,#0d1410, 80-81 #59675c,#0d1410, 82-149 #e5eee5,#0d1410, +|24: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-79 d,#0d1410, 80-81 #59675c,#0d1410, 82-149 #e5eee5,#0d1410, |25: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#152019, 76-79 d,#0d1410, 80-81 #59675c,#0d1410, 82-149 #e5eee5,#0d1410, -|26: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#152019, 76-79 d,#0d1410, 80-81 #59675c,#0d1410, 82-149 #e5eee5,#0d1410, +|26: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#152019, 76-78 d,#0d1410, 79-81 #59675c,#0d1410, 82-149 #e5eee5,#0d1410, |27: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#152019, 76-78 d,#0d1410, 79-81 #59675c,#0d1410, 82-149 #e5eee5,#0d1410, |28: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#152019, 76-78 d,#0d1410, 79-81 #59675c,#0d1410, 82-149 #e5eee5,#0d1410, |29: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#152019, 76-78 d,#0d1410, 79-81 #59675c,#0d1410, 82-149 #e5eee5,#0d1410, |30: 0-1 d,#1d2824, 2-149 #6f7d75,#1d2824, -== snap down3 grid=150x31 cursor=82,21 +== snap down3 grid=150x31 cursor=82,20 == style down3 grid=150x31 -|18: 0-0 d,#608269, 1-1 d,#0d1410, 2-74 #e5eee5,#0d1410, 75-75 #e5eee5,#608269, 76-79 #e5eee5,#0d1410, 80-81 #59675c,#0d1410, 82-149 #e5eee5,#0d1410, -|21: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-76 d,#0d1410, 77-79 d,#0d1410,b 80-81 #616f64,#0d1410,b 82-149 #e5eee5,#0d1410, +|17: 0-0 d,#608269, 1-1 d,#0d1410, 2-74 #e5eee5,#0d1410, 75-75 #e5eee5,#608269, 76-79 #e5eee5,#0d1410, 80-81 #59675c,#0d1410, 82-149 #e5eee5,#0d1410, +|20: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-76 d,#0d1410, 77-79 d,#0d1410,b 80-81 #616f64,#0d1410,b 82-149 #e5eee5,#0d1410, diff --git a/test/snapshots/delask.golden b/test/snapshots/delask.golden index 3d4f924f..b4ab5a76 100644 --- a/test/snapshots/delask.golden +++ b/test/snapshots/delask.golden @@ -1,7 +1,6 @@ -== snap three grid=100x36 cursor=18,20 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/delask/cwd/top.txt Keep Save Term Collapse Follow Del +== snap three grid=100x36 cursor=18,19 +| New Term Find Grep Newcol Help Exit +| /tmp/pardes-snap/delask/cwd/top.txt Keep Del | 1 top-marker | | @@ -18,7 +17,7 @@ | | | -| */tmp/pardes-snap/delask/cwd/+New Save Term Collapse Follow Del +| */tmp/pardes-snap/delask/cwd/+New Undo Del | 1 middle-pane | | @@ -26,7 +25,8 @@ | | | -| */tmp/pardes-snap/delask/cwd/+New Save Term Collapse Follow Del +| +| */tmp/pardes-snap/delask/cwd/+New Undo Del | 1 bottom-pane | | @@ -35,31 +35,31 @@ | | | ✓ /tmp/pardes-snap/delask/cwd/+New Window 3 messages · SPC h m -== snap asked grid=100x36 cursor=18,20 -|20: 1 middle-pane Del: give space to k above j below +== snap asked grid=100x36 cursor=18,19 +|19: 1 middle-pane Del: give space to k above j below |35: /tmp/pardes-snap/delask/cwd/+New:1 4 messages · SPC h m -== snap kept grid=100x36 cursor=18,20 -|20: 1 middle-pane -== snap below-took grid=100x36 cursor=18,20 -|20: 1 bottom-pane +== snap kept grid=100x36 cursor=18,19 +|19: 1 middle-pane +== snap below-took grid=100x36 cursor=18,19 +|19: 1 bottom-pane |27: |28: |35: ✓ /tmp/pardes-snap/delask/cwd/+New Del 4 messages · SPC h m -== snap typed grid=100x36 cursor=27,20 -|20: 1 bottom-pane DelBelow -|27: */tmp/pardes-snap/delask/cwd/+New Save Term Collapse Follow Del +== snap typed grid=100x36 cursor=27,19 +|19: 1 bottom-pane DelBelow +|27: */tmp/pardes-snap/delask/cwd/+New Undo Del |28: 1 third-pane |35: ✓ /tmp/pardes-snap/delask/cwd/+New Window 6 messages · SPC h m -== snap below-took-click grid=100x36 cursor=17,20 -|20: 1 third-pane +== snap below-took-click grid=100x36 cursor=17,19 +|19: 1 third-pane |27: |28: |35: ✓ /tmp/pardes-snap/delask/cwd/+New DelBelow 8 messages · SPC h m == snap four grid=100x36 cursor=7,28 -|27: /tmp/pardes-snap/delask/cwd/+New Save Term Collapse Follow Del +|27: /tmp/pardes-snap/delask/cwd/+New Del |28: 1 |35: ✓ /tmp/pardes-snap/delask/cwd/top.txt New 9 messages · SPC h m == snap mouse-del grid=100x36 cursor=7,28 +|18: |19: -|20: |35: ✓ /tmp/pardes-snap/delask/cwd/+New Del 11 messages · SPC h m diff --git a/test/snapshots/diffstack.golden b/test/snapshots/diffstack.golden index c252dd40..92a86ddc 100644 --- a/test/snapshots/diffstack.golden +++ b/test/snapshots/diffstack.golden @@ -1,7 +1,6 @@ -== snap diff-stack grid=100x31 cursor=4,4 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -|$ /tmp/pardes-snap/diffstack/cwd Term+bash Save Mode Filter Collapse Del +== snap diff-stack grid=100x31 cursor=4,3 +| New Term Find Grep Newcol Help Exit +|$ /tmp/pardes-snap/diffstack/cwd Del Term+bash | $ cat change.patch | $(readlink /proc/$PPID/exe) - | $ | @@ -20,7 +19,7 @@ | | | -| /tmp/pardes-snap/diffstack/cwd/+Diff Save Term Diff Collapse LocationsConfig Del +| /tmp/pardes-snap/diffstack/cwd/+Diff Diff Del | a.zig:3 | const S = struct { | a.zig:5 * @@ -29,13 +28,14 @@ | + a(); | b(); | + log(); +| } | /tmp/pardes-snap/diffstack/cwd == style diff-stack-colours grid=100x31 |0: 0-1 d,#1d2824, 2-99 #b2c3b8,#1d2824, -|1: 0-1 d,#504733, 2-99 #becfc4,#314738, -|2: 0-1 #000000,#add38a, 2-32 #becfc4,#314738, 33-42 #ecc8f2,#314738, 43-99 #becfc4,#314738, +|1: 0-1 #000000,#add38a, 2-36 #becfc4,#314738, 37-99 #ecc8f2,#314738, +|2: 0-0 d,#608269, 1-1 d,#0d1410, 2-99 #e5eee5,#0d1410, |3: 0-0 d,#608269, 1-1 d,#0d1410, 2-99 #e5eee5,#0d1410, -|4: 0-0 d,#608269, 1-1 d,#0d1410, 2-99 #e5eee5,#0d1410, +|4: 0-0 d,#608269, 1-99 d,#0d1410, |5: 0-0 d,#608269, 1-99 d,#0d1410, |6: 0-0 d,#608269, 1-99 d,#0d1410, |7: 0-0 d,#608269, 1-99 d,#0d1410, @@ -51,14 +51,14 @@ |17: 0-0 d,#608269, 1-99 d,#0d1410, |18: 0-0 d,#608269, 1-99 d,#0d1410, |19: 0-0 d,#608269, 1-99 d,#0d1410, -|20: 0-0 d,#608269, 1-99 d,#0d1410, -|21: 0-1 d,#465a43, 2-32 #b2c3b8,#1d2824, 33-38 #d3b0d9,#1d2824, 39-99 #b2c3b8,#1d2824, -|22: 0-0 d,#608269, 1-1 d,#0d1410, 2-99 #59675c,#0d1410, -|23: 0-0 d,#608269, 1-2 d,#0d1410, 3-99 #59675c,#0d1410, -|24: 0-0 d,#608269, 1-1 d,#0d1410, 2-99 #59675c,#0d1410, -|25: 0-0 d,#608269, 1-6 d,#0d1410, 7-9 #c9a7ed,#0d1410, 10-99 #e5eee5,#0d1410, -|26: 0-0 d,#608269, 1-1 d,#0d1410, 2-2 #f1a39b,#0d1410,b 3-10 #f1a39b,#0d1410, 11-11 #e5eee5,#53251b, 12-99 #e5eee5,#0d1410, -|27: 0-0 d,#608269, 1-1 d,#0d1410, 2-2 #b6ce94,#0d1410,b 3-10 #b6ce94,#0d1410, 11-11 #e5eee5,#203900, 12-99 #e5eee5,#0d1410, -|28: 0-0 d,#152019, 1-10 d,#0d1410, 11-99 #e5eee5,#0d1410, -|29: 0-0 d,#152019, 1-1 d,#0d1410, 2-2 #b6ce94,#101c0b,b 3-10 #b6ce94,#101c0b, 11-99 #e5eee5,#101c0b, +|20: 0-1 d,#465a43, 2-32 #b2c3b8,#1d2824, 33-38 #d3b0d9,#1d2824, 39-99 #b2c3b8,#1d2824, +|21: 0-0 d,#608269, 1-1 d,#0d1410, 2-99 #59675c,#0d1410, +|22: 0-0 d,#608269, 1-2 d,#0d1410, 3-99 #59675c,#0d1410, +|23: 0-0 d,#608269, 1-1 d,#0d1410, 2-99 #59675c,#0d1410, +|24: 0-0 d,#608269, 1-6 d,#0d1410, 7-9 #c9a7ed,#0d1410, 10-99 #e5eee5,#0d1410, +|25: 0-0 d,#608269, 1-1 d,#0d1410, 2-2 #f1a39b,#0d1410,b 3-10 #f1a39b,#0d1410, 11-11 #e5eee5,#53251b, 12-99 #e5eee5,#0d1410, +|26: 0-0 d,#608269, 1-1 d,#0d1410, 2-2 #b6ce94,#0d1410,b 3-10 #b6ce94,#0d1410, 11-11 #e5eee5,#203900, 12-99 #e5eee5,#0d1410, +|27: 0-0 d,#608269, 1-10 d,#0d1410, 11-99 #e5eee5,#0d1410, +|28: 0-0 d,#608269, 1-1 d,#0d1410, 2-2 #b6ce94,#101c0b,b 3-10 #b6ce94,#101c0b, 11-99 #e5eee5,#101c0b, +|29: 0-0 d,#152019, 1-6 d,#0d1410, 7-99 #e5eee5,#0d1410, |30: 0-1 d,#1d2824, 2-99 #b2c3b8,#1d2824, diff --git a/test/snapshots/diffview.golden b/test/snapshots/diffview.golden index 6c16fd45..c56e5b30 100644 --- a/test/snapshots/diffview.golden +++ b/test/snapshots/diffview.golden @@ -1,7 +1,6 @@ -== snap diff-pane grid=100x31 cursor=7,3 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/diffview/cwd/change.diff Keep Save Term Diff Collapse Follow Del +== snap diff-pane grid=100x31 cursor=7,2 +| New Term Find Grep Newcol Help Exit +| /tmp/pardes-snap/diffview/cwd/change.diff Keep Diff Del | 1 diff --git a/src/shape.zig b/src/shape.zig | 2 index 1111111..2222222 100644 | 3 --- a/src/shape.zig @@ -29,31 +28,32 @@ | | | +| | /tmp/pardes-snap/diffview/cwd/change.diff:1 == style diff-colours grid=100x31 |0: 0-1 d,#1d2824, 2-99 #b2c3b8,#1d2824, -|1: 0-1 d,#504733, 2-99 #becfc4,#314738, -|2: 0-1 d,#add38a, 2-31 #becfc4,#2c2c0f, 32-43 #ecc8f2,#2c2c0f, 44-99 #becfc4,#2c2c0f, -|3: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-99 #b9f480,#0d1410, +|1: 0-1 d,#add38a, 2-31 #becfc4,#2c2c0f, 32-43 #ecc8f2,#2c2c0f, 44-99 #becfc4,#2c2c0f, +|2: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-99 #b9f480,#0d1410, +|3: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-99 #b9f480,#0d1410, |4: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-99 #b9f480,#0d1410, |5: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-99 #b9f480,#0d1410, -|6: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-99 #b9f480,#0d1410, -|7: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-99 #c9a7ed,#0d1410, -|8: 0-0 d,#608269, 1-4 d,#0d1410, 5-7 #59675c,#0d1410, 8-19 #e5eee5,#0d1410, 20-26 #c9a7ed,#0d1410, 27-27 #e5eee5,#0d1410, 28-32 #b8d88a,#0d1410, 33-99 #e5eee5,#0d1410, -|9: 0-0 d,#608269, 1-4 d,#0d1410, 5-99 #59675c,#0d1410, -|10: 0-0 d,#608269, 1-4 d,#0d1410, 5-7 #59675c,#0d1410, 8-25 #e5eee5,#0d1410, 26-30 #c9a7ed,#0d1410, 31-31 #e5eee5,#0d1410, 32-35 #c9a7ed,#0d1410, 36-99 #e5eee5,#0d1410, -|11: 0-0 d,#608269, 1-4 d,#0d1410, 5-11 #59675c,#0d1410, 12-99 #e5eee5,#0d1410, -|12: 0-0 d,#608269, 1-3 d,#0d1410, 4-6 #59675c,#0d1410, 7-7 #f1a39b,#331a12,b 8-11 #f1a39b,#331a12, 12-24 #e5eee5,#331a12, 25-25 #f8c082,#331a12, 26-99 #e5eee5,#331a12, -|13: 0-0 d,#608269, 1-3 d,#0d1410, 4-6 #59675c,#0d1410, 7-7 #b6ce94,#132503,b 8-11 #b6ce94,#132503, 12-99 #e5eee5,#132503, -|14: 0-0 d,#608269, 1-3 d,#0d1410, 4-6 #59675c,#0d1410, 7-7 #b6ce94,#132503,b 8-11 #b6ce94,#132503, 12-21 #e5eee5,#132503, 22-28 #c9a7ed,#132503, 29-99 #e5eee5,#132503, -|15: 0-0 d,#608269, 1-3 d,#0d1410, 4-99 #59675c,#0d1410, -|16: 0-0 d,#608269, 1-3 d,#0d1410, 4-11 #59675c,#0d1410, 12-99 #e5eee5,#0d1410, -|17: 0-0 d,#608269, 1-3 d,#0d1410, 4-6 #59675c,#0d1410, 7-7 #f1a39b,#331a12,b 8-15 #f1a39b,#331a12, 16-99 #b8d88a,#331a12, +|6: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-99 #c9a7ed,#0d1410, +|7: 0-0 d,#608269, 1-4 d,#0d1410, 5-7 #59675c,#0d1410, 8-19 #e5eee5,#0d1410, 20-26 #c9a7ed,#0d1410, 27-27 #e5eee5,#0d1410, 28-32 #b8d88a,#0d1410, 33-99 #e5eee5,#0d1410, +|8: 0-0 d,#608269, 1-4 d,#0d1410, 5-99 #59675c,#0d1410, +|9: 0-0 d,#608269, 1-4 d,#0d1410, 5-7 #59675c,#0d1410, 8-25 #e5eee5,#0d1410, 26-30 #c9a7ed,#0d1410, 31-31 #e5eee5,#0d1410, 32-35 #c9a7ed,#0d1410, 36-99 #e5eee5,#0d1410, +|10: 0-0 d,#608269, 1-4 d,#0d1410, 5-11 #59675c,#0d1410, 12-99 #e5eee5,#0d1410, +|11: 0-0 d,#608269, 1-3 d,#0d1410, 4-6 #59675c,#0d1410, 7-7 #f1a39b,#331a12,b 8-11 #f1a39b,#331a12, 12-24 #e5eee5,#331a12, 25-25 #f8c082,#331a12, 26-99 #e5eee5,#331a12, +|12: 0-0 d,#608269, 1-3 d,#0d1410, 4-6 #59675c,#0d1410, 7-7 #b6ce94,#132503,b 8-11 #b6ce94,#132503, 12-99 #e5eee5,#132503, +|13: 0-0 d,#608269, 1-3 d,#0d1410, 4-6 #59675c,#0d1410, 7-7 #b6ce94,#132503,b 8-11 #b6ce94,#132503, 12-21 #e5eee5,#132503, 22-28 #c9a7ed,#132503, 29-99 #e5eee5,#132503, +|14: 0-0 d,#608269, 1-3 d,#0d1410, 4-99 #59675c,#0d1410, +|15: 0-0 d,#608269, 1-3 d,#0d1410, 4-11 #59675c,#0d1410, 12-99 #e5eee5,#0d1410, +|16: 0-0 d,#608269, 1-3 d,#0d1410, 4-6 #59675c,#0d1410, 7-7 #f1a39b,#331a12,b 8-15 #f1a39b,#331a12, 16-99 #b8d88a,#331a12, +|17: 0-0 d,#608269, 1-3 d,#0d1410, 4-6 #59675c,#0d1410, 7-7 #b6ce94,#132503,b 8-15 #b6ce94,#132503, 16-99 #b8d88a,#132503, |18: 0-0 d,#608269, 1-3 d,#0d1410, 4-6 #59675c,#0d1410, 7-7 #b6ce94,#132503,b 8-15 #b6ce94,#132503, 16-99 #b8d88a,#132503, -|19: 0-0 d,#608269, 1-3 d,#0d1410, 4-6 #59675c,#0d1410, 7-7 #b6ce94,#132503,b 8-15 #b6ce94,#132503, 16-99 #b8d88a,#132503, -|20: 0-0 d,#608269, 1-3 d,#0d1410, 4-11 #59675c,#0d1410, 12-99 #e5eee5,#0d1410, -|21: 0-0 d,#608269, 1-3 d,#0d1410, 4-7 #59675c,#0d1410, 8-99 #e5eee5,#0d1410, -|22: 0-0 d,#608269, 1-4 d,#0d1410, 5-99 #59675c,#0d1410, +|19: 0-0 d,#608269, 1-3 d,#0d1410, 4-11 #59675c,#0d1410, 12-99 #e5eee5,#0d1410, +|20: 0-0 d,#608269, 1-3 d,#0d1410, 4-7 #59675c,#0d1410, 8-99 #e5eee5,#0d1410, +|21: 0-0 d,#608269, 1-4 d,#0d1410, 5-99 #59675c,#0d1410, +|22: 0-0 d,#608269, 1-99 d,#0d1410, |23: 0-0 d,#608269, 1-99 d,#0d1410, |24: 0-0 d,#608269, 1-99 d,#0d1410, |25: 0-0 d,#608269, 1-99 d,#0d1410, @@ -62,33 +62,31 @@ |28: 0-0 d,#608269, 1-99 d,#0d1410, |29: 0-0 d,#608269, 1-99 d,#0d1410, |30: 0-1 d,#1d2824, 2-99 #b2c3b8,#1d2824, -== snap look-added-line grid=100x31 cursor=55,9 -|2: change.diff:12 › /tmp/pardes-snap/diffview/cwd/src/shape.zig Keep Save Term Collapse Follow TreeCo -|3: ntext Def Refs Del -|4: 1 const std = @import("std"); -|5: 2 -|6: 3 pub const Shape = union(enum) { -|7: 4 circle: f32, -|8: 5 square: f32, -|9: 6 triangle: struct { base: f32, height: f32 }, -|10: 7 -|11: 8 const note = -|12: 9 \\areas, defer -|13: 10 \\summed -|14: 11 ; -|15: 12 }; -|16: ~ +== snap look-added-line grid=100x31 cursor=55,7 +|1: change.diff:12 › /tmp/pardes-snap/diffview/cwd/src/shape.zig Keep Del +|2: 1 const std = @import("std"); +|3: 2 +|4: 3 pub const Shape = union(enum) { +|5: 4 circle: f32, +|6: 5 square: f32, +|7: 6 triangle: struct { base: f32, height: f32 }, +|9: 8 const note = +|10: 9 \\areas, defer +|11: 10 \\summed +|12: 11 ; +|13: 12 }; +|14: ~ +|15: +|16: |17: |18: |19: |20: |21: -|22: |30: /tmp/pardes-snap/diffview/cwd/src/shape.zig:6 -== snap command-pane grid=100x31 cursor=7,3 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/diffview/cwd/cmds.txt Keep Save Term Collapse Follow Del +== snap command-pane grid=100x31 cursor=7,2 +| New Term Find Grep Newcol Help Exit +| /tmp/pardes-snap/diffview/cwd/cmds.txt Keep Del | 1 cat change.diff | ~ | @@ -102,7 +100,8 @@ | | | -| /tmp/pardes-snap/diffview/cwd (cat change.diff) exit 0 Kill Save Collapse Del +| +| /tmp/pardes-snap/diffview/cwd (cat change.diff) exit 0 Del | circle: f32, | - square: u8 = 7, | + square: f32, @@ -119,10 +118,10 @@ | ✓ /tmp/pardes-snap/diffview/cwd/cmds.txt Exec 1 message · SPC h m == style command-colours grid=100x31 |0: 0-1 d,#1d2824, 2-99 #b2c3b8,#1d2824, -|1: 0-1 d,#504733, 2-99 #becfc4,#314738, -|2: 0-1 d,#add38a, 2-31 #becfc4,#2c2c0f, 32-40 #ecc8f2,#2c2c0f, 41-99 #becfc4,#2c2c0f, -|3: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-99 #e5eee5,#0d1410, -|4: 0-0 d,#608269, 1-4 d,#0d1410, 5-99 #59675c,#0d1410, +|1: 0-1 d,#add38a, 2-31 #becfc4,#2c2c0f, 32-40 #ecc8f2,#2c2c0f, 41-99 #becfc4,#2c2c0f, +|2: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-99 #e5eee5,#0d1410, +|3: 0-0 d,#608269, 1-4 d,#0d1410, 5-99 #59675c,#0d1410, +|4: 0-0 d,#608269, 1-99 d,#0d1410, |5: 0-0 d,#608269, 1-99 d,#0d1410, |6: 0-0 d,#608269, 1-99 d,#0d1410, |7: 0-0 d,#608269, 1-99 d,#0d1410, @@ -149,17 +148,17 @@ |28: 0-0 d,#608269, 1-1 d,#0d1410, 2-99 #e5eee5,#0d1410, |29: 0-0 d,#152019, 1-99 d,#0d1410, |30: 0-1 d,#1d2824, 2-99 #6f7d75,#1d2824, -== snap command-look grid=100x31 cursor=55,28 +== snap command-look grid=100x31 cursor=55,27 |17: + \\areas, defer |18: + \\summed |19: ; |20: }; |21: exit 0 |22: -|23: ‹@p2 › /tmp/pardes-snap/diffview/cwd/src/shape.zig Keep Save Term Collapse Follow TreeContext Def -|24: Refs Del -|25: 3 pub const Shape = union(enum) { -|26: 4 circle: f32, -|27: 5 square: f32, -|28: 6 triangle: struct { base: f32, height: f32 }, -|29: 7 +|23: ‹@p2 › /tmp/pardes-snap/diffview/cwd/src/shape.zig Keep Del +|24: 3 pub const Shape = union(enum) { +|25: 4 circle: f32, +|26: 5 square: f32, +|27: 6 triangle: struct { base: f32, height: f32 }, +|28: 7 +|29: 8 const note = diff --git a/test/snapshots/dirpane.golden b/test/snapshots/dirpane.golden index c9251994..de1a16ed 100644 --- a/test/snapshots/dirpane.golden +++ b/test/snapshots/dirpane.golden @@ -1,10 +1,9 @@ -== snap dir-open grid=80x24 cursor=7,6 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/dirpane/cwd/top.txt Keep Save Term Collapse Follow Del +== snap dir-open grid=80x24 cursor=7,5 +| New Term Find Grep Newcol Help Exit +| /tmp/pardes-snap/dirpane/cwd/top.txt Keep Del | 1 sub | -| /tmp/pardes-snap/dirpane/cwd/sub/ Get Term Collapse Del +| /tmp/pardes-snap/dirpane/cwd/sub/ Get Del | 1 .hidden beta-gamma.txt inner.txt | 2 alpha.txt deeper/ zeta | ~ @@ -22,9 +21,9 @@ | | | +| | /tmp/pardes-snap/dirpane/cwd/sub/:1 -== snap entry-open grid=80x24 cursor=7,16 -|14: ‹@p2 › /tmp/pardes-snap/dirpane/cwd/sub/inner.txt Keep Save Term Collapse Foll -|15: ow Del -|16: 1 inner-marker +== snap entry-open grid=80x24 cursor=7,14 +|13: ‹@p2 › /tmp/pardes-snap/dirpane/cwd/sub/inner.txt Keep Del +|14: 1 inner-marker |23: /tmp/pardes-snap/dirpane/cwd/sub/inner.txt:1 diff --git a/test/snapshots/dump.golden b/test/snapshots/dump.golden index 8915ffe0..2399900f 100644 --- a/test/snapshots/dump.golden +++ b/test/snapshots/dump.golden @@ -1,13 +1,13 @@ == snap loaded grid=100x31 cursor=16,9 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/dump/cwd Term+bash Save Mode Fi /tmp/pardes-snap/dump/cwd Term+bash Save Mode Fi -| lter Collapse Del lter Collapse Del +| Find Grep Newcol Help Exit Dump +| New Term Joincol Delcol New Term Joincol Delcol +| /tmp/pardes-snap/dump/cwd Del Term+bash /tmp/pardes-snap/dump/cwd Del Term+bash | ls ls | d.txt d.txt | | ── restored history ── ── restored history ── | +| | typed-marker | | @@ -15,8 +15,7 @@ | | | -| /tmp/pardes-snap/dump/cwd Term+bash Save Mode Fi -| lter Collapse Del +| /tmp/pardes-snap/dump/cwd Del Term+bash | ls | d.txt | @@ -29,4 +28,5 @@ | | | +| | ✓ @p1 Dump 2 messages · SPC h m diff --git a/test/snapshots/edit.golden b/test/snapshots/edit.golden index b927b589..ed82cf97 100644 --- a/test/snapshots/edit.golden +++ b/test/snapshots/edit.golden @@ -1,22 +1,21 @@ == snap inserted grid=100x31 cursor=16,10 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/edit/cwd Term+bash Save Mode Fi /tmp/pardes-snap/edit/cwd Term+bash Save Mode Fi -| lter Collapse Del lter Collapse Del +| Find Grep Newcol Help Exit +| New Term Joincol Delcol New Term Joincol Delcol +| /tmp/pardes-snap/edit/cwd Del Term+bash /tmp/pardes-snap/edit/cwd Del Term+bash | ls ls | e.txt e.txt | | | | +| | hello-insert | | | | | -| /tmp/pardes-snap/edit/cwd Term+bash Save Mode Fi -| lter Collapse Del +| /tmp/pardes-snap/edit/cwd Del Term+bash | ls | e.txt | @@ -29,14 +28,15 @@ | | | +| | · @p1 a copy of the terminal's text: Tab or B2 runs it; what the program dr… 1 message · SPC h m == style inserted grid=100x31 -|0: 0-1 d,#1d2824, 2-99 #b2c3b8,#1d2824, +|0: 0-71 d,#1d2824, 72-99 #b2c3b8,#1d2824, |1: 0-1 d,#504733, 2-49 #becfc4,#314738, 50-51 #becfc4,#504733, 52-99 #b2c3b8,#1d2824, -|2: 0-1 d,#add38a, 2-27 #becfc4,#314738, 28-37 #ecc8f2,#314738, 38-49 #becfc4,#314738, 50-51 #becfc4,#465a43, 52-77 #b2c3b8,#1d2824, 78-87 #d3b0d9,#1d2824, 88-99 #b2c3b8,#1d2824, -|3: 0-1 d,#314738, 2-49 #becfc4,#314738, 50-51 #becfc4,#1d2824, 52-99 #b2c3b8,#1d2824, +|2: 0-1 d,#add38a, 2-31 #becfc4,#314738, 32-49 #ecc8f2,#314738, 50-51 #ecc8f2,#465a43, 52-81 #b2c3b8,#1d2824, 82-99 #d3b0d9,#1d2824, +|3: 0-0 d,#608269, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, |4: 0-0 d,#608269, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, -|5: 0-0 d,#608269, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, +|5: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, |6: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, |7: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, |8: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, @@ -47,10 +47,10 @@ |13: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, |14: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, |15: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, -|16: 0-1 d,#465a43, 2-27 #b2c3b8,#1d2824, 28-37 #d3b0d9,#1d2824, 38-49 #b2c3b8,#1d2824, 50-50 #b2c3b8,#608269, 51-99 #b2c3b8,#0d1410, -|17: 0-1 d,#1d2824, 2-49 #b2c3b8,#1d2824, 50-50 #b2c3b8,#608269, 51-99 #b2c3b8,#0d1410, +|16: 0-1 d,#465a43, 2-31 #b2c3b8,#1d2824, 32-49 #d3b0d9,#1d2824, 50-50 #d3b0d9,#608269, 51-99 #d3b0d9,#0d1410, +|17: 0-0 d,#608269, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, |18: 0-0 d,#608269, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, -|19: 0-0 d,#608269, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, +|19: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, |20: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, |21: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, |22: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, diff --git a/test/snapshots/emptycol.golden b/test/snapshots/emptycol.golden index f76f9c8c..04fd8aa8 100644 --- a/test/snapshots/emptycol.golden +++ b/test/snapshots/emptycol.golden @@ -1,8 +1,8 @@ -== snap newcol grid=100x24 cursor=52,1 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/emptycol/cwd/notes.txt Keep Sav -| e Term Collapse Follow Del +== snap newcol grid=100x24 cursor=76,1 +| Find Grep Newcol Help Exit +| New Term Joincol Delcol New Term Joincol Delcol +| /tmp/pardes-snap/emptycol/cwd/notes.txt Keep Del +| | 1 one | 2 two | @@ -23,15 +23,13 @@ | | | /tmp/pardes-snap/emptycol/cwd/notes.txt:1 -== snap filled grid=100x24 cursor=54,6 -|2: /tmp/pardes-snap/emptycol/cwd/notes.txt Keep Sav /tmp/pardes-snap/emptycol/cwd Term+bash Save Mod -|3: e Term Collapse Follow Del e Filter Collapse Del -|4: 1 one ls -|5: 2 two notes.txt +== snap filled grid=100x24 cursor=54,5 +|2: /tmp/pardes-snap/emptycol/cwd/notes.txt Keep Del /tmp/pardes-snap/emptycol/cwd Del Term+bash +|3: ls +|4: 1 one notes.txt |23: /tmp/pardes-snap/emptycol/cwd -== snap emptied grid=100x24 cursor=52,1 -|2: /tmp/pardes-snap/emptycol/cwd/notes.txt Keep Sav -|3: e Term Collapse Follow Del +== snap emptied grid=100x24 cursor=76,1 +|2: /tmp/pardes-snap/emptycol/cwd/notes.txt Keep Del +|3: |4: 1 one -|5: 2 two |23: /tmp/pardes-snap/emptycol/cwd/notes.txt:1 diff --git a/test/snapshots/exec-bigdrag.golden b/test/snapshots/exec-bigdrag.golden index 54015143..21e85720 100644 --- a/test/snapshots/exec-bigdrag.golden +++ b/test/snapshots/exec-bigdrag.golden @@ -1,7 +1,7 @@ == snap alive grid=200x61 cursor=119,38 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/exec-bigdrag/cwd Term+bash Save Mode Filter Collapse Del /tmp/pardes-snap/exec-bigdrag/cwd Term+bash Save Mode Filter Collapse Del +| Find Grep Newcol Help Exit +| New Term Joincol Delcol New Term Joincol Delcol +| /tmp/pardes-snap/exec-bigdrag/cwd Del Term+bash /tmp/pardes-snap/exec-bigdrag/cwd Del Term+bash | ls bash: 802line: command not found | big.txt 2813line 2814line 2815line 2816line 2817line 2818line 2819line 2820line 2821line 2822line 2823li | ne @@ -30,7 +30,7 @@ | 900line 2901line 2902line 2903line 2904line 2905line 2906line 2907line 2908line 2909line 2910lin | e | bash: 900line: command not found -| /tmp/pardes-snap/exec-bigdrag/cwd Term+bash Save Mode Filter Collapse Del 2911line 2912line 2913line 2914line 2915line 2916line 2917line 2918line 2919line 2920line 2921li +| /tmp/pardes-snap/exec-bigdrag/cwd Del Term+bash 2911line 2912line 2913line 2914line 2915line 2916line 2917line 2918line 2919line 2920line 2921li | ls ne | big.txt bash: 2911line: command not found | 2922line 2923line 2924line 2925line 2926line 2927line 2928line 2929line 2930line 2931line 2932l diff --git a/test/snapshots/exec.golden b/test/snapshots/exec.golden index b7d4f5e7..b65c6611 100644 --- a/test/snapshots/exec.golden +++ b/test/snapshots/exec.golden @@ -1,7 +1,7 @@ == snap exec grid=140x31 cursor=16,8 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/exec/cwd Term+bash Save Mode Filter Collapse Del /tmp/pardes-snap/exec/cwd Term+bash Save Mode Filter Collapse Del +| Find Grep Newcol Help Exit +| New Term Joincol Delcol New Term Joincol Delcol +| /tmp/pardes-snap/exec/cwd Del Term+bash /tmp/pardes-snap/exec/cwd Del Term+bash | ls ls | e.txt e.txt | @@ -15,7 +15,7 @@ | | | -| /tmp/pardes-snap/exec/cwd Term+bash Save Mode Filter Collapse Del +| /tmp/pardes-snap/exec/cwd Del Term+bash | ls | e.txt | diff --git a/test/snapshots/fileedit.golden b/test/snapshots/fileedit.golden index c4e0f145..81f0655b 100644 --- a/test/snapshots/fileedit.golden +++ b/test/snapshots/fileedit.golden @@ -1,7 +1,7 @@ == snap edited grid=150x31 cursor=17,7 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/fileedit/cwd Term+bash Save Mode Filter Collapse Del /tmp/pardes-snap/fileedit/cwd Term+bash Save Mode Filter Collapse Del +| Find Grep Newcol Help Exit +| New Term Joincol Delcol New Term Joincol Delcol +| /tmp/pardes-snap/fileedit/cwd Del Term+bash /tmp/pardes-snap/fileedit/cwd Del Term+bash | ls ls | f.txt f.txt | @@ -15,10 +15,9 @@ | | | -| /tmp/pardes-snap/fileedit/cwd Term+bash Save Mode Filter Collapse Del ‹@p1 › /tmp/pardes-snap/fileedit/cwd/f.txt Keep Save Term Collapse Follow -| ls Del -| f.txt 1 line 1 -| 2 line 2 +| /tmp/pardes-snap/fileedit/cwd Del Term+bash ‹@p1 › /tmp/pardes-snap/fileedit/cwd/f.txt Keep Del +| ls 1 line 1 +| f.txt 2 line 2 | 3 line 3 | 4 line 4 | 5 line 5 @@ -29,6 +28,7 @@ | 10 line 10 | 11 line 11 | 12 line 12 +| 13 line 13 | · @p1 a copy of the terminal's text: Tab or B2 runs it; what the program draws next replaces it (Ctrl-b types to the program) 1 message · SPC h m == snap deleted grid=150x31 cursor=2,8 |8: diff --git a/test/snapshots/filewatch.golden b/test/snapshots/filewatch.golden index dfac8cd6..b3d92e05 100644 --- a/test/snapshots/filewatch.golden +++ b/test/snapshots/filewatch.golden @@ -1,11 +1,10 @@ -== snap edited grid=210x31 cursor=15,7 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/filewatch/cwd Term+bash Save Mode Filter Collapse Del +== snap edited grid=210x31 cursor=15,6 +| New Term Find Grep Newcol Help Exit +| /tmp/pardes-snap/filewatch/cwd Del Term+bash | ls | sub w.txt | -| */tmp/pardes-snap/filewatch/cwd/w.txt Save Term Collapse Follow Del +| */tmp/pardes-snap/filewatch/cwd/w.txt Save Undo Del | 1 liMYEDITne 1 | 2 line 2 | 3 /tmp/pardes-snap/filewatch/cwd/sub/s.txt @@ -17,7 +16,8 @@ | 9 line 9 | 10 line 10 | 11 line 11 -| /tmp/pardes-snap/filewatch/cwd/sub/s.txt Save Term Collapse Follow Del +| 12 line 12 +| /tmp/pardes-snap/filewatch/cwd/sub/s.txt Del | 1 line 1 | 2 line 2 | 3 line 3 @@ -30,10 +30,11 @@ | | | · @p1 a copy of the terminal's text: Tab or B2 runs it; what the program draws next replaces it (Ctrl-b types to the program) 1 message · SPC h m -== snap kept grid=210x31 cursor=15,7 -|6: ?/tmp/pardes-snap/filewatch/cwd/w.txt changed on disk ▸ r Reload k Keep mine d Diff · SPC e to answer +== snap kept grid=210x31 cursor=15,6 +|5: ?/tmp/pardes-snap/filewatch/cwd/w.txt changed on disk ▸ r Reload k Keep mine d Diff · SPC e to answer |30: ? /tmp/pardes-snap/filewatch/cwd/w.txt changed on disk 1 question · SPC e -== snap reloaded_sub grid=210x31 cursor=15,7 +== snap reloaded_sub grid=210x31 cursor=15,6 +|18: /tmp/pardes-snap/filewatch/cwd/sub/s.txt Undo Del |19: 1 RENAMED |20: ~ |21: diff --git a/test/snapshots/find.golden b/test/snapshots/find.golden index 34333048..50b57e11 100644 --- a/test/snapshots/find.golden +++ b/test/snapshots/find.golden @@ -1,6 +1,5 @@ -== snap group grid=120x41 cursor=7,3 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol +== snap group grid=120x41 cursor=7,2 +| New Term Find Grep Newcol Help Exit | ␣ f ▸ c Config f Find g Grep h History l Lists n New r Recent s Save ↓ unroll · ? help | 1 Find zqm | @@ -39,60 +38,64 @@ | | | +| | /tmp/pardes-snap/find/cwd/here.txt:1 -== snap armed grid=120x41 cursor=11,2 -|2: ^ ␣ f Find 1/5 -|3: │ │ Walk Look Split Newcol Grep Edit Copy Keep Drop | Grep Recent Panes Symbols All Jumplist -|4: │ │ ▶ here.txt -|5: │ │ other.txt -|6: │ │ sub/ZQMARK-beta.txt -|7: │ │ sub/nest/zqmark-gamma.txt -|8: │ │ zqmark-alpha.txt -|9: 1▸Find zqm -|40: ⏎ lands here · its text is the preview · S-⏎ a new pane 1 message · SPC h m -== snap typing grid=120x41 cursor=14,2 -|2: ^ ␣ f Find zqm 1/3 -|4: │ │ ▶ zqmark-alpha.txt +== snap armed grid=120x41 cursor=11,1 +|1: ^ ␣ f Find 1/5 +|2: │ │ Walk Look Split Newcol Grep Edit Copy Keep Drop | Grep Recent Panes Symbols All Jumplist +|3: │ │ ▶ here.txt +|4: │ │ other.txt |5: │ │ sub/ZQMARK-beta.txt |6: │ │ sub/nest/zqmark-gamma.txt +|7: │ │ zqmark-alpha.txt +|8: 1▸Find zqm +|40: ⏎ lands here · its text is the preview · S-⏎ a new pane 1 message · SPC h m +== snap typing grid=120x41 cursor=14,1 +|1: ^ ␣ f Find zqm 1/3 +|3: │ │ ▶ zqmark-alpha.txt +|4: │ │ sub/ZQMARK-beta.txt +|5: │ │ sub/nest/zqmark-gamma.txt +|6: │ │ |7: │ │ -|8: │ │ -|9: 1▸alpha body -== snap next grid=120x41 cursor=14,2 -|2: ^ ␣ f Find zqm 2/3 -|4: │ │ zqmark-alpha.txt -|5: │ │ ▶ sub/ZQMARK-beta.txt -|9: 1▸beta body -== snap promoted grid=120x41 cursor=7,3 -|2: here.txt:1 › Find zqm 2/3 › /tmp/pardes-snap/find/cwd/sub/ZQMARK-beta.txt Keep Save Term Collapse Follow Del -|3: 1 beta body +|8: 1▸alpha body +== snap next grid=120x41 cursor=14,1 +|1: ^ ␣ f Find zqm 2/3 +|3: │ │ zqmark-alpha.txt +|4: │ │ ▶ sub/ZQMARK-beta.txt +|8: 1▸beta body +== snap promoted grid=120x41 cursor=7,2 +|1: here.txt:1 › Find zqm 2/3 › /tmp/pardes-snap/find/cwd/sub/ZQMARK-beta.txt Keep Del +|2: 1 beta body +|3: |4: |5: |6: |7: |8: -|9: |40: ✓ C-o back to Find zqm 2/3 1 message · SPC h m -== snap nomatch grid=120x41 cursor=30,2 -|2: ^ Find zqm 2/3 › ␣ f Find zzqq 0 -|3: │ │ Walk Look Split Newcol Grep Edit Copy Keep Drop | Grep Recent Panes Symbols All Jumplist -|4: │ │ nothing matches +== snap nomatch grid=120x41 cursor=30,1 +|1: ^ Find zqm 2/3 › ␣ f Find zzqq 0 +|2: │ │ Walk Look Split Newcol Grep Edit Copy Keep Drop | Grep Recent Panes Symbols All Jumplist +|3: │ │ nothing matches +|4: │ │ |5: │ │ |6: │ │ |7: │ │ |40: ⏎ lands here · its text is the preview · S-⏎ a new pane 1 message · SPC h m -== snap cancel grid=120x41 cursor=7,3 -|2: here.txt:1 › Find zqm 2/3 › /tmp/pardes-snap/find/cwd/sub/ZQMARK-beta.txt Keep Save Term Collapse Follow Del -|3: 1 beta body +== snap cancel grid=120x41 cursor=7,2 +|1: here.txt:1 › Find zqm 2/3 › /tmp/pardes-snap/find/cwd/sub/ZQMARK-beta.txt Keep Del +|2: 1 beta body +|3: |4: |5: |6: |7: |40: ✓ /tmp/pardes-snap/find/cwd/sub/ZQMARK-beta.txt Find 1 message · SPC h m -== snap topbar grid=120x41 cursor=29,2 -|2: ^ Find zqm 2/3 › ␣ f Find bod 0 -|3: │ │ Walk Look Split Newcol Grep Edit Copy Keep Drop | Grep Recent Panes Symbols All Jumplist -|4: │ │ nothing matches +== snap topbar grid=120x41 cursor=29,1 +|1: ^ Find zqm 2/3 › ␣ f Find bod 0 +|2: │ │ Walk Look Split Newcol Grep Edit Copy Keep Drop | Grep Recent Panes Symbols All Jumplist +|3: │ │ nothing matches +|4: │ │ |5: │ │ |6: │ │ |7: │ │ diff --git a/test/snapshots/follow.golden b/test/snapshots/follow.golden index 56de4eb4..7dd9ceaf 100644 --- a/test/snapshots/follow.golden +++ b/test/snapshots/follow.golden @@ -1,59 +1,59 @@ == snap three-pages grid=150x30 cursor=7,3 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/follow/cwd/big.txt Keep Save Term Collapse Follow Del /tmp/pardes-snap/follow/cwd/big.txt /tmp/pardes-snap/follow/cwd/big.txt -| 1 line 1 Keep Save Term Collapse Follow Del U Keep Save Term Collapse Follow Del -| 2 line 2 nfollow Unfollow -| 3 line 3 27 line 27 51 line 51 -| 4 line 4 28 line 28 52 line 52 -| 5 line 5 29 line 29 53 line 53 -| 6 line 6 30 line 30 54 line 54 -| 7 line 7 31 line 31 55 line 55 -| 8 line 8 32 line 32 56 line 56 -| 9 line 9 33 line 33 57 line 57 -| 10 line 10 34 line 34 58 line 58 -| 11 line 11 35 line 35 59 line 59 -| 12 line 12 36 line 36 60 line 60 -| 13 line 13 37 line 37 61 line 61 -| 14 line 14 38 line 38 62 line 62 -| 15 line 15 39 line 39 63 line 63 -| 16 line 16 40 line 40 64 line 64 -| 17 line 17 41 line 41 65 line 65 -| 18 line 18 42 line 42 66 line 66 -| 19 line 19 43 line 43 67 line 67 -| 20 line 20 44 line 44 68 line 68 -| 21 line 21 45 line 45 69 line 69 -| 22 line 22 46 line 46 70 line 70 -| 23 line 23 47 line 47 71 line 71 -| 24 line 24 48 line 48 72 line 72 -| 25 line 25 49 line 49 73 line 73 -| 26 line 26 50 line 50 74 line 74 +| Find Grep Newcol Help Exit +| New Term Joincol Delcol New Term Joincol Delcol New Term Joincol Delcol +| /tmp/pardes-snap/follow/cwd/big.txt Keep Del /tmp/pardes-snap/follow/cwd/big.txt /tmp/pardes-snap/follow/cwd/big.txt +| 1 line 1 Keep Del Unfollow Keep Del Unfollow +| 2 line 2 27 line 27 52 line 52 +| 3 line 3 28 line 28 53 line 53 +| 4 line 4 29 line 29 54 line 54 +| 5 line 5 30 line 30 55 line 55 +| 6 line 6 31 line 31 56 line 56 +| 7 line 7 32 line 32 57 line 57 +| 8 line 8 33 line 33 58 line 58 +| 9 line 9 34 line 34 59 line 59 +| 10 line 10 35 line 35 60 line 60 +| 11 line 11 36 line 36 61 line 61 +| 12 line 12 37 line 37 62 line 62 +| 13 line 13 38 line 38 63 line 63 +| 14 line 14 39 line 39 64 line 64 +| 15 line 15 40 line 40 65 line 65 +| 16 line 16 41 line 41 66 line 66 +| 17 line 17 42 line 42 67 line 67 +| 18 line 18 43 line 43 68 line 68 +| 19 line 19 44 line 44 69 line 69 +| 20 line 20 45 line 45 70 line 70 +| 21 line 21 46 line 46 71 line 71 +| 22 line 22 47 line 47 72 line 72 +| 23 line 23 48 line 48 73 line 73 +| 24 line 24 49 line 49 74 line 74 +| 25 line 25 50 line 50 75 line 75 +| 26 line 26 51 line 51 76 line 76 | ✓ /tmp/pardes-snap/follow/cwd/big.txt Follow ×2 1 message · SPC h m -== snap hop grid=150x30 cursor=82,6 -== snap wheel grid=150x30 cursor=82,5 -|3: 2 line 2 Keep Save Term Collapse Follow Del U Keep Save Term Collapse Follow Del -|4: 3 line 3 nfollow Unfollow -|5: 4 line 4 28 line 28 52 line 52 -|6: 5 line 5 29 line 29 53 line 53 -|7: 6 line 6 30 line 30 54 line 54 -|8: 7 line 7 31 line 31 55 line 55 -|9: 8 line 8 32 line 32 56 line 56 -|10: 9 line 9 33 line 33 57 line 57 -|11: 10 line 10 34 line 34 58 line 58 -|12: 11 line 11 35 line 35 59 line 59 -|13: 12 line 12 36 line 36 60 line 60 -|14: 13 line 13 37 line 37 61 line 61 -|15: 14 line 14 38 line 38 62 line 62 -|16: 15 line 15 39 line 39 63 line 63 -|17: 16 line 16 40 line 40 64 line 64 -|18: 17 line 17 41 line 41 65 line 65 -|19: 18 line 18 42 line 42 66 line 66 -|20: 19 line 19 43 line 43 67 line 67 -|21: 20 line 20 44 line 44 68 line 68 -|22: 21 line 21 45 line 45 69 line 69 -|23: 22 line 22 46 line 46 70 line 70 -|24: 23 line 23 47 line 47 71 line 71 -|25: 24 line 24 48 line 48 72 line 72 -|26: 25 line 25 49 line 49 73 line 73 -|27: 26 line 26 50 line 50 74 line 74 -|28: 27 line 27 51 line 51 75 line 75 +== snap hop grid=150x30 cursor=82,5 +== snap wheel grid=150x30 cursor=82,4 +|3: 2 line 2 Keep Del Unfollow Keep Del Unfollow +|4: 3 line 3 28 line 28 53 line 53 +|5: 4 line 4 29 line 29 54 line 54 +|6: 5 line 5 30 line 30 55 line 55 +|7: 6 line 6 31 line 31 56 line 56 +|8: 7 line 7 32 line 32 57 line 57 +|9: 8 line 8 33 line 33 58 line 58 +|10: 9 line 9 34 line 34 59 line 59 +|11: 10 line 10 35 line 35 60 line 60 +|12: 11 line 11 36 line 36 61 line 61 +|13: 12 line 12 37 line 37 62 line 62 +|14: 13 line 13 38 line 38 63 line 63 +|15: 14 line 14 39 line 39 64 line 64 +|16: 15 line 15 40 line 40 65 line 65 +|17: 16 line 16 41 line 41 66 line 66 +|18: 17 line 17 42 line 42 67 line 67 +|19: 18 line 18 43 line 43 68 line 68 +|20: 19 line 19 44 line 44 69 line 69 +|21: 20 line 20 45 line 45 70 line 70 +|22: 21 line 21 46 line 46 71 line 71 +|23: 22 line 22 47 line 47 72 line 72 +|24: 23 line 23 48 line 48 73 line 73 +|25: 24 line 24 49 line 49 74 line 74 +|26: 25 line 25 50 line 50 75 line 75 +|27: 26 line 26 51 line 51 76 line 76 +|28: 27 line 27 52 line 52 77 line 77 diff --git a/test/snapshots/fsearch.golden b/test/snapshots/fsearch.golden index af21d423..834c95af 100644 --- a/test/snapshots/fsearch.golden +++ b/test/snapshots/fsearch.golden @@ -1,7 +1,7 @@ == snap opened grid=180x31 cursor=97,17 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/fsearch/cwd Term+bash Save Mode Filter Collapse Del /tmp/pardes-snap/fsearch/cwd Term+bash Save Mode Filter Collapse Del +| Find Grep Newcol Help Exit +| New Term Joincol Delcol New Term Joincol Delcol +| /tmp/pardes-snap/fsearch/cwd Del Term+bash /tmp/pardes-snap/fsearch/cwd Del Term+bash | ls ls | g.txt g.txt | @@ -15,7 +15,7 @@ | | | -| /tmp/pardes-snap/fsearch/cwd Term+bash Save Mode Filter Collapse Del ‹@p1 › /tmp/pardes-snap/fsearch/cwd/g.txt Keep Save Term Collapse Follow Del +| /tmp/pardes-snap/fsearch/cwd Del Term+bash ‹@p1 › /tmp/pardes-snap/fsearch/cwd/g.txt Keep Del | ls 1 l1 | g.txt 2 MARK a | 3 l3 @@ -31,14 +31,14 @@ | | · @p1 a copy of the terminal's text: Tab or B2 runs it; what the program draws next replaces it (Ctrl-b types to the program) 1 message · SPC h m == snap slash grid=180x31 cursor=101,16 -|16: /tmp/pardes-snap/fsearch/cwd Term+bash Save Mode Filter Collapse Del ^ ‹@p1 › / ⏎ land · M-⏎ as a list · C-r history · esc +|16: /tmp/pardes-snap/fsearch/cwd Del Term+bash ^ ‹@p1 › / ⏎ land · M-⏎ as a list · C-r history · esc == snap typing grid=180x31 cursor=105,16 -|16: /tmp/pardes-snap/fsearch/cwd Term+bash Save Mode Filter Collapse Del ^ ‹@p1 › / MARK = Look /MARK/ 1/3 · 3 lines ⏎ land · M-⏎ as a list · C-r history · esc +|16: /tmp/pardes-snap/fsearch/cwd Del Term+bash ^ ‹@p1 › / MARK = Look /MARK/ 1/3 · 3 lines ⏎ land · M-⏎ as a list · C-r history · esc |18: g.txt 2▸MARK a == style typing grid=180x31 -|0: 0-1 d,#1d2824, 2-179 #b2c3b8,#1d2824, +|0: 0-151 d,#1d2824, 152-179 #b2c3b8,#1d2824, |1: 0-1 d,#504733, 2-89 #b2c3b8,#1d2824, 90-91 #b2c3b8,#504733, 92-179 #becfc4,#314738, -|2: 0-1 d,#465a43, 2-30 #b2c3b8,#1d2824, 31-40 #d3b0d9,#1d2824, 41-89 #b2c3b8,#1d2824, 90-91 #b2c3b8,#465a43, 92-120 #b2c3b8,#1d2824, 121-130 #d3b0d9,#1d2824, 131-179 #b2c3b8,#1d2824, +|2: 0-1 d,#465a43, 2-34 #b2c3b8,#1d2824, 35-89 #d3b0d9,#1d2824, 90-91 #d3b0d9,#465a43, 92-124 #b2c3b8,#1d2824, 125-179 #d3b0d9,#1d2824, |3: 0-0 d,#608269, 1-1 d,#0d1410, 2-89 #e5eee5,#0d1410, 90-90 #e5eee5,#608269, 91-179 #e5eee5,#0d1410, |4: 0-0 d,#608269, 1-1 d,#0d1410, 2-89 #e5eee5,#0d1410, 90-90 #e5eee5,#608269, 91-179 #e5eee5,#0d1410, |5: 0-0 d,#608269, 1-89 d,#0d1410, 90-90 d,#608269, 91-179 d,#0d1410, @@ -52,7 +52,7 @@ |13: 0-0 d,#608269, 1-89 d,#0d1410, 90-90 d,#608269, 91-179 d,#0d1410, |14: 0-0 d,#608269, 1-89 d,#0d1410, 90-90 d,#608269, 91-179 d,#0d1410, |15: 0-0 d,#608269, 1-89 d,#0d1410, 90-90 d,#608269, 91-179 d,#0d1410, -|16: 0-1 d,#465a43, 2-30 #b2c3b8,#1d2824, 31-40 #d3b0d9,#1d2824, 41-89 #b2c3b8,#1d2824, 90-91 #000000,#add38a, 92-98 #becfc4,#2c2c0f, 99-99 #bada9d,#2c2c0f,b 100-100 #bada9d,#2c2c0f, 101-106 #becfc4,#2c2c0f, 107-113 #79836f,#2c2c0f, 114-126 #becfc4,#2c2c0f, 127-179 #79836f,#2c2c0f, +|16: 0-1 d,#465a43, 2-34 #b2c3b8,#1d2824, 35-89 #d3b0d9,#1d2824, 90-91 #000000,#add38a, 92-98 #becfc4,#2c2c0f, 99-99 #bada9d,#2c2c0f,b 100-100 #bada9d,#2c2c0f, 101-106 #becfc4,#2c2c0f, 107-113 #79836f,#2c2c0f, 114-126 #becfc4,#2c2c0f, 127-179 #79836f,#2c2c0f, |17: 0-0 d,#608269, 1-1 d,#0d1410, 2-89 #e5eee5,#0d1410, 90-90 #e5eee5,#608269, 91-94 #e5eee5,#0d1410, 95-96 #59675c,#0d1410, 97-179 #e5eee5,#0d1410, |18: 0-0 d,#608269, 1-1 d,#0d1410, 2-89 #e5eee5,#0d1410, 90-90 #e5eee5,#e5eee5, 91-91 #e5eee5,#0d1410, 92-94 #e5eee5,#0d1410,b 95-95 #616f64,#0d1410,b 96-96 #add38a,#0d1410,b 97-100 #0d1410,#917a53, 101-101 #0d1410,#0d1410, 102-179 #e5eee5,#0d1410, |19: 0-0 d,#608269, 1-89 d,#0d1410, 90-90 d,#608269, 91-94 d,#0d1410, 95-96 #59675c,#0d1410, 97-179 #e5eee5,#0d1410, @@ -69,7 +69,7 @@ |30: 0-1 d,#1d2824, 2-179 #6f7d75,#1d2824, == snap list grid=180x31 cursor=110,15 |15: ^ ‹@p1 › ␣ l /MARK/ 1/3 -|16: /tmp/pardes-snap/fsearch/cwd Term+bash Save Mode Filter Collapse Del │ │ Walk Look Split Newcol Grep Edit Copy Keep Drop | Find Grep Recent Panes … +|16: /tmp/pardes-snap/fsearch/cwd Del Term+bash │ │ Walk Look Split Newcol Grep Edit Copy Keep Drop | Find Grep Recent Panes … |17: ls │ │ ▶ /tmp/pardes-snap/fsearch/cwd/g.txt:2:1: MARK a |18: g.txt │ │ /tmp/pardes-snap/fsearch/cwd/g.txt:6:1: MARK b |19: │ │ /tmp/pardes-snap/fsearch/cwd/g.txt:10:1: MARK c @@ -97,10 +97,26 @@ |27: 9 l9 |28: 10 MARK c |29: 11 l11 -== snap landed grid=180x31 cursor=97,22 +== snap landed grid=180x31 cursor=97,21 |15: -|16: /tmp/pardes-snap/fsearch/cwd Term+bash Save Mode Filter Collapse Del ‹@p1 › +1 › /MARK/ 2/3 › /tmp/pardes-snap/fsearch/cwd/g.txt Keep Save Term Collapse Foll -|17: ls ow Del +|16: /tmp/pardes-snap/fsearch/cwd Del Term+bash ‹@p1 › g.txt:1 › /MARK/ 2/3 › /tmp/pardes-snap/fsearch/cwd/g.txt Keep Del +|17: ls 2 MARK a +|18: g.txt 3 l3 +|19: 4 l4 +|20: 5 l5 +|21: 6 MARK b +|22: 7 l7 +|23: 8 l8 +|24: 9 l9 +|25: 10 MARK c +|26: 11 l11 +|27: 12 l12 +|28: +|29: +|30: ✓ C-o back to /MARK/ 2/3 1 message · SPC h m +== snap n grid=180x31 cursor=97,26 +|16: /tmp/pardes-snap/fsearch/cwd Del Term+bash ‹@p1 › g.txt:1 › /MARK/ 3/3 › /tmp/pardes-snap/fsearch/cwd/g.txt Keep Del +|17: ls 1 l1 |18: g.txt 2 MARK a |19: 3 l3 |20: 4 l4 @@ -112,25 +128,8 @@ |26: 10 MARK c |27: 11 l11 |28: 12 l12 -|29: -|30: ✓ C-o back to /MARK/ 2/3 1 message · SPC h m -== snap n grid=180x31 cursor=97,27 -|16: /tmp/pardes-snap/fsearch/cwd Term+bash Save Mode Filter Collapse Del ‹@p1 › +1 › /MARK/ 3/3 › /tmp/pardes-snap/fsearch/cwd/g.txt Keep Save Term Collapse Foll -|18: g.txt 1 l1 -|19: 2 MARK a -|20: 3 l3 -|21: 4 l4 -|22: 5 l5 -|23: 6 MARK b -|24: 7 l7 -|25: 8 l8 -|26: 9 l9 -|27: 10 MARK c -|28: 11 l11 -|29: 12 l12 -== snap N grid=180x31 cursor=97,23 -|16: /tmp/pardes-snap/fsearch/cwd Term+bash Save Mode Filter Collapse Del ‹@p1 › +1 › /MARK/ 2/3 › /tmp/pardes-snap/fsearch/cwd/g.txt Keep Save Term Collapse Foll -== snap cancel grid=180x31 cursor=97,23 +== snap N grid=180x31 cursor=97,22 +|16: /tmp/pardes-snap/fsearch/cwd Del Term+bash ‹@p1 › g.txt:1 › /MARK/ 2/3 › /tmp/pardes-snap/fsearch/cwd/g.txt Keep Del +== snap cancel grid=180x31 cursor=97,22 == snap nomatch grid=180x31 cursor=118,16 -|16: /tmp/pardes-snap/fsearch/cwd Term+bash Save Mode Filter Collapse Del ^ ‹@p1 › /MARK/ 2/3 › / zzqq = Look /zzqq/ 0 ⏎ land · M-⏎ as a list · C-r history · esc -|17: ls +|16: /tmp/pardes-snap/fsearch/cwd Del Term+bash ^ ‹@p1 › /MARK/ 2/3 › / zzqq = Look /zzqq/ 0 ⏎ land · M-⏎ as a list · C-r history · esc diff --git a/test/snapshots/ghostty-mid.golden b/test/snapshots/ghostty-mid.golden index 47c40260..aebaeb30 100644 --- a/test/snapshots/ghostty-mid.golden +++ b/test/snapshots/ghostty-mid.golden @@ -1,8 +1,7 @@ -== snap ghostty-mid grid=100x31 cursor=4,8 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/ghostty-mid/cwd Term+bash Save /tmp/pardes-snap/ghostty-mid/cwd Term+bash Save -| Mode Filter Collapse Del Mode Filter Collapse Del +== snap ghostty-mid grid=100x31 cursor=4,7 +| Find Grep Newcol Help Exit +| New Term Joincol Delcol New Term Joincol Delcol +| /tmp/pardes-snap/ghostty-mid/cwd Del Term+bash /tmp/pardes-snap/ghostty-mid/cwd Del Term+bash | ZZPAD ls | ./g.sh g.txt | ./g.sh @@ -15,8 +14,8 @@ | | | -| /tmp/pardes-snap/ghostty-mid/cwd Term+bash Save -| Mode Filter Collapse Del +| +| /tmp/pardes-snap/ghostty-mid/cwd Del Term+bash | ls | g.txt | @@ -29,4 +28,5 @@ | | | +| | ✓ @p1 Exec 1 message · SPC h m diff --git a/test/snapshots/grep.golden b/test/snapshots/grep.golden index 26fcb692..87a61cf1 100644 --- a/test/snapshots/grep.golden +++ b/test/snapshots/grep.golden @@ -1,7 +1,7 @@ == snap opened grid=180x31 cursor=7,21 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/grep/cwd Term+bash Save Mode Filter Collapse Del /tmp/pardes-snap/grep/cwd Term+bash Save Mode Filter Collapse Del +| Find Grep Newcol Help Exit +| New Term Joincol Delcol New Term Joincol Delcol +| /tmp/pardes-snap/grep/cwd Del Term+bash /tmp/pardes-snap/grep/cwd Del Term+bash | ls ls | a.txt noise.txt sub a.txt noise.txt sub | @@ -15,11 +15,11 @@ | | | -| /tmp/pardes-snap/grep/cwd Term+bash Save Mode Filter Collapse Del +| /tmp/pardes-snap/grep/cwd Del Term+bash | ls | a.txt noise.txt sub | -| /tmp/pardes-snap/grep/cwd/a.txt Save Term Collapse Follow Del +| /tmp/pardes-snap/grep/cwd/a.txt Del | 1 hello TARGET one | 2 nothing here | 3 last TARGET line @@ -47,7 +47,6 @@ |28: 2 TARGET inside sub == snap opened-hit grid=180x31 cursor=12,28 |23: +Search 3/3 Save Undock Del -|26: /tmp/pardes-snap/grep/cwd/sub/b.txt Save Term Collapse Follow Del == snap nomatch grid=180x31 cursor=11,28 |27: ^ +Search 0 Del |28: Grep zzqq diff --git a/test/snapshots/headersweep-restored.golden b/test/snapshots/headersweep-restored.golden index 4f8dda49..b52f6fcc 100644 --- a/test/snapshots/headersweep-restored.golden +++ b/test/snapshots/headersweep-restored.golden @@ -1,30 +1,29 @@ == style col-sweeping grid=120x21 -|0: 0-1 d,#1d2824, 2-119 #b2c3b8,#1d2824, -|1: 0-1 d,#504733, 2-35 #becfc4,#314738, 36-43 #e5eee5,#4c251b, 44-59 #becfc4,#314738, 60-61 #becfc4,#504733, 62-119 #b2c3b8,#1d2824, -|2: 0-1 d,#add38a, 2-43 #becfc4,#314738, 44-53 #ecc8f2,#314738, 54-59 #becfc4,#314738, 60-61 #becfc4,#465a43, 62-103 #b2c3b8,#1d2824, 104-113 #d3b0d9,#1d2824, 114-119 #b2c3b8,#1d2824, -|3: 0-1 d,#314738, 2-59 #becfc4,#314738, 60-61 #becfc4,#1d2824, 62-119 #b2c3b8,#1d2824, -|4: 0-0 d,#608269, 1-1 d,#0d1410, 2-59 #e5eee5,#0d1410, 60-60 #e5eee5,#608269, 61-119 #e5eee5,#0d1410, -|5: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, -|6: 0-0 d,#608269, 1-1 d,#0d1410, 2-59 #666f68,#0d1410, 60-60 #666f68,#608269, 61-119 #666f68,#0d1410, +|0: 0-32 d,#1d2824, 33-119 #b2c3b8,#1d2824, +|1: 0-1 d,#504733, 2-26 #becfc4,#314738, 27-34 #e5eee5,#4c251b, 35-59 #becfc4,#314738, 60-61 #becfc4,#504733, 62-119 #b2c3b8,#1d2824, +|2: 0-1 d,#add38a, 2-47 #becfc4,#314738, 48-59 #ecc8f2,#314738, 60-61 #ecc8f2,#465a43, 62-107 #b2c3b8,#1d2824, 108-119 #d3b0d9,#1d2824, +|3: 0-0 d,#608269, 1-1 d,#0d1410, 2-59 #e5eee5,#0d1410, 60-60 #e5eee5,#608269, 61-119 #e5eee5,#0d1410, +|4: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, +|5: 0-0 d,#608269, 1-1 d,#0d1410, 2-59 #666f68,#0d1410, 60-60 #666f68,#608269, 61-119 #666f68,#0d1410, +|6: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, |7: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, |8: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, |9: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, |10: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, -|11: 0-1 d,#465a43, 2-43 #b2c3b8,#1d2824, 44-53 #d3b0d9,#1d2824, 54-59 #b2c3b8,#1d2824, 60-60 #b2c3b8,#608269, 61-119 #b2c3b8,#0d1410, -|12: 0-1 d,#1d2824, 2-59 #b2c3b8,#1d2824, 60-60 #b2c3b8,#608269, 61-119 #b2c3b8,#0d1410, -|13: 0-0 d,#608269, 1-1 d,#0d1410, 2-59 #e5eee5,#0d1410, 60-60 #e5eee5,#608269, 61-119 #e5eee5,#0d1410, -|14: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, -|15: 0-0 d,#608269, 1-1 d,#0d1410, 2-59 #666f68,#0d1410, 60-60 #666f68,#608269, 61-119 #666f68,#0d1410, +|11: 0-1 d,#465a43, 2-47 #b2c3b8,#1d2824, 48-59 #d3b0d9,#1d2824, 60-60 #d3b0d9,#608269, 61-119 #d3b0d9,#0d1410, +|12: 0-0 d,#608269, 1-1 d,#0d1410, 2-59 #e5eee5,#0d1410, 60-60 #e5eee5,#608269, 61-119 #e5eee5,#0d1410, +|13: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, +|14: 0-0 d,#608269, 1-1 d,#0d1410, 2-59 #666f68,#0d1410, 60-60 #666f68,#608269, 61-119 #666f68,#0d1410, +|15: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, |16: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, |17: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, |18: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, |19: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, |20: 0-1 d,#1d2824, 2-119 #6f7d75,#1d2824, -== snap col-swept grid=120x21 cursor=4,7 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit Restore /tmp/pardes-snap/headerswe -| New Term Find Grep Joincol Delcol echo RE''STORED-COL New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/headersweep-restored/cwd Term+bash Save M /tmp/pardes-snap/headersweep-restored/cwd Term+bash Save M -| ode Filter Collapse Del ode Filter Collapse Del +== snap col-swept grid=120x21 cursor=4,6 +| Find Grep Newcol Help Exit Restore /tmp/pardes-snap/headersweep-restored/dump.zon Dump +| New Term Joincol Delcol echo RE''STORED-COL New Term Joincol Delcol +| /tmp/pardes-snap/headersweep-restored/cwd Del Term+bash /tmp/pardes-snap/headersweep-restored/cwd Del Term+bash | ls ls | | ── restored history ── ── restored history ── @@ -32,25 +31,23 @@ | | | -| /tmp/pardes-snap/headersweep-restored/cwd Term+bash Save M -| ode Filter Collapse Del +| +| /tmp/pardes-snap/headersweep-restored/cwd Del Term+bash +| ls | | ── restored history ── | | /tmp/pardes-snap/headersweep-restored/cwd (echo RE''STORED -| -COL) exit 0 Kill Save Collapse Del +| -COL) exit 0 Del | exit 0 | | ✓ @p1 Dump 1 message · SPC h m == style ws-sweeping grid=120x21 -|0: 0-1 d,#1d2824, 2-100 #b2c3b8,#1d2824, 101-108 #e5eee5,#4c251b, 109-119 #b2c3b8,#1d2824, +|0: 0-13 d,#1d2824, 14-100 #b2c3b8,#1d2824, 101-108 #e5eee5,#4c251b, 109-119 #b2c3b8,#1d2824, |1: 0-1 d,#504733, 2-59 #becfc4,#314738, 60-61 #becfc4,#504733, 62-119 #b2c3b8,#1d2824, -|13: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, -|14: 0-0 d,#608269, 1-1 d,#0d1410, 2-59 #666f68,#0d1410, 60-60 #666f68,#608269, 61-119 #666f68,#0d1410, -|15: 0-0 d,#152019, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, |16: 0-1 d,#465a43, 2-59 #b2c3b8,#1d2824, 60-60 #b2c3b8,#608269, 61-119 #b2c3b8,#0d1410, |17: 0-1 d,#1d2824, 2-59 #b2c3b8,#1d2824, 60-60 #b2c3b8,#608269, 61-119 #b2c3b8,#0d1410, |18: 0-0 d,#152019, 1-1 d,#0d1410, 2-59 #e5eee5,#0d1410, 60-60 #e5eee5,#608269, 61-119 #e5eee5,#0d1410, -== snap ws-swept grid=120x21 cursor=4,7 -|0: Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit Restore /tmp/pardes-snap/header ec -|17: -WS) exit 0 Kill Save Collapse Del +== snap ws-swept grid=120x21 cursor=4,6 +|0: Find Grep Newcol Help Exit Restore /tmp/pardes-snap/headersweep-restored/dump.zon Dump echo RE''STORED-WS +|17: -WS) exit 0 Del diff --git a/test/snapshots/headersweep.golden b/test/snapshots/headersweep.golden index 07712f53..073bbc2b 100644 --- a/test/snapshots/headersweep.golden +++ b/test/snapshots/headersweep.golden @@ -1,30 +1,29 @@ == style col-sweeping grid=120x21 -|0: 0-1 d,#1d2824, 2-119 #b2c3b8,#1d2824, -|1: 0-1 d,#504733, 2-35 #becfc4,#314738, 36-43 #e5eee5,#4c251b, 44-59 #becfc4,#314738, 60-61 #becfc4,#504733, 62-119 #b2c3b8,#1d2824, -|2: 0-1 d,#add38a, 2-34 #becfc4,#314738, 35-44 #ecc8f2,#314738, 45-59 #becfc4,#314738, 60-61 #becfc4,#465a43, 62-94 #b2c3b8,#1d2824, 95-104 #d3b0d9,#1d2824, 105-119 #b2c3b8,#1d2824, -|3: 0-1 d,#314738, 2-59 #becfc4,#314738, 60-61 #becfc4,#1d2824, 62-119 #b2c3b8,#1d2824, +|0: 0-91 d,#1d2824, 92-119 #b2c3b8,#1d2824, +|1: 0-1 d,#504733, 2-26 #becfc4,#314738, 27-34 #e5eee5,#4c251b, 35-59 #becfc4,#314738, 60-61 #becfc4,#504733, 62-119 #b2c3b8,#1d2824, +|2: 0-1 d,#add38a, 2-38 #becfc4,#314738, 39-59 #ecc8f2,#314738, 60-61 #ecc8f2,#465a43, 62-98 #b2c3b8,#1d2824, 99-119 #d3b0d9,#1d2824, +|3: 0-0 d,#608269, 1-1 d,#0d1410, 2-59 #e5eee5,#0d1410, 60-60 #e5eee5,#608269, 61-119 #e5eee5,#0d1410, |4: 0-0 d,#608269, 1-1 d,#0d1410, 2-59 #e5eee5,#0d1410, 60-60 #e5eee5,#608269, 61-119 #e5eee5,#0d1410, -|5: 0-0 d,#608269, 1-1 d,#0d1410, 2-59 #e5eee5,#0d1410, 60-60 #e5eee5,#608269, 61-119 #e5eee5,#0d1410, +|5: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, |6: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, |7: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, |8: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, |9: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, |10: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, -|11: 0-1 d,#465a43, 2-34 #b2c3b8,#1d2824, 35-44 #d3b0d9,#1d2824, 45-59 #b2c3b8,#1d2824, 60-60 #b2c3b8,#608269, 61-119 #b2c3b8,#0d1410, -|12: 0-1 d,#1d2824, 2-59 #b2c3b8,#1d2824, 60-60 #b2c3b8,#608269, 61-119 #b2c3b8,#0d1410, +|11: 0-1 d,#465a43, 2-38 #b2c3b8,#1d2824, 39-59 #d3b0d9,#1d2824, 60-60 #d3b0d9,#608269, 61-119 #d3b0d9,#0d1410, +|12: 0-0 d,#608269, 1-1 d,#0d1410, 2-59 #e5eee5,#0d1410, 60-60 #e5eee5,#608269, 61-119 #e5eee5,#0d1410, |13: 0-0 d,#608269, 1-1 d,#0d1410, 2-59 #e5eee5,#0d1410, 60-60 #e5eee5,#608269, 61-119 #e5eee5,#0d1410, -|14: 0-0 d,#608269, 1-1 d,#0d1410, 2-59 #e5eee5,#0d1410, 60-60 #e5eee5,#608269, 61-119 #e5eee5,#0d1410, +|14: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, |15: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, |16: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, |17: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, |18: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, |19: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, |20: 0-1 d,#1d2824, 2-119 #b2c3b8,#1d2824, -== snap col-swept grid=120x21 cursor=4,6 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol echo SW''EPT-COL New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/headersweep/cwd Term+bash Save Mode Filte /tmp/pardes-snap/headersweep/cwd Term+bash Save Mode Filte -| r Collapse Del r Collapse Del +== snap col-swept grid=120x21 cursor=4,5 +| Find Grep Newcol Help Exit +| New Term Joincol Delcol echo SW''EPT-COL New Term Joincol Delcol +| /tmp/pardes-snap/headersweep/cwd Del Term+bash /tmp/pardes-snap/headersweep/cwd Del Term+bash | ls ls | hay.txt hay.txt | @@ -32,35 +31,34 @@ | | | -| /tmp/pardes-snap/headersweep/cwd Term+bash Save Mode Filte -| r Collapse Del +| +| /tmp/pardes-snap/headersweep/cwd Del Term+bash | ls | hay.txt | +| | /tmp/pardes-snap/headersweep/cwd (echo SW''EPT-COL) exit 0 -| Kill Save Collapse Del +| Del | exit 0 | | /tmp/pardes-snap/headersweep/cwd -== snap ws-swept grid=120x21 cursor=4,6 -|0: Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit echo SW''EPT-WS +== snap ws-swept grid=120x21 cursor=4,5 +|0: Find Grep Newcol Help Exit echo SW''EPT-WS |16: /tmp/pardes-snap/headersweep/cwd (echo SW''EPT-WS) exit 0 -|17: Kill Save Collapse Del -== snap ws-looked grid=120x21 cursor=67,14 -|0: Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit echo SW''EPT-WS xxhay.txtxx -|12: r Collapse Del ‹@p1 › /tmp/pardes-snap/headersweep/cwd/hay.txt Keep Save -|13: ls Term Collapse Follow Del -|14: hay.txt 1 ZQNEEDLE +|17: Del +== snap ws-looked grid=120x21 cursor=67,12 +|0: Find Grep Newcol Help Exit echo SW''EPT-WS xxhay.txtxx +|11: /tmp/pardes-snap/headersweep/cwd Del Term+bash ‹@p1 › /tmp/pardes-snap/headersweep/cwd/hay.txt Keep Del +|12: ls 1 ZQNEEDLE |20: /tmp/pardes-snap/headersweep/cwd/hay.txt:1 -== snap cancelled grid=120x21 cursor=4,6 +== snap cancelled grid=120x21 cursor=4,5 |20: /tmp/pardes-snap/headersweep/cwd == style selected grid=120x21 -|1: 0-1 d,#504733, 2-59 #b2c3b8,#1d2824, 60-61 #b2c3b8,#504733, 62-70 #becfc4,#314738, 71-80 #f5f7ee,#3c614a, 81-119 #becfc4,#314738, -|2: 0-1 d,#465a43, 2-34 #b2c3b8,#1d2824, 35-44 #d3b0d9,#1d2824, 45-59 #b2c3b8,#1d2824, 60-61 #b2c3b8,#add38a, 62-94 #becfc4,#314738, 95-104 #ecc8f2,#314738, 105-119 #becfc4,#314738, -|3: 0-1 d,#1d2824, 2-59 #b2c3b8,#1d2824, 60-61 #b2c3b8,#314738, 62-119 #becfc4,#314738, -|12: 0-1 d,#1d2824, 2-59 #b2c3b8,#1d2824, 60-61 #b2c3b8,#465a43, 62-101 #b2c3b8,#2c2c0f, 102-109 #d3b0d9,#2c2c0f, 110-119 #b2c3b8,#2c2c0f, -|13: 0-0 d,#608269, 1-1 d,#0d1410, 2-59 #e5eee5,#0d1410, 60-61 #e5eee5,#2c2c0f, 62-119 #b2c3b8,#2c2c0f, -|14: 0-0 d,#608269, 1-1 d,#0d1410, 2-59 #e5eee5,#0d1410, 60-60 #e5eee5,#608269, 61-64 #e5eee5,#0d1410, 65-66 #59675c,#0d1410, 67-119 #e5eee5,#0d1410, +|0: 0-63 d,#1d2824, 64-119 #b2c3b8,#1d2824, +|1: 0-1 d,#504733, 2-59 #b2c3b8,#1d2824, 60-61 #b2c3b8,#504733, 62-70 #f5f7ee,#3c614a, 71-119 #becfc4,#314738, +|2: 0-1 d,#465a43, 2-38 #b2c3b8,#1d2824, 39-59 #d3b0d9,#1d2824, 60-61 #d3b0d9,#add38a, 62-98 #becfc4,#314738, 99-119 #ecc8f2,#314738, +|11: 0-1 d,#465a43, 2-38 #b2c3b8,#1d2824, 39-59 #d3b0d9,#1d2824, 60-61 #d3b0d9,#465a43, 62-101 #b2c3b8,#2c2c0f, 102-109 #d3b0d9,#2c2c0f, 110-119 #b2c3b8,#2c2c0f, +|12: 0-0 d,#608269, 1-1 d,#0d1410, 2-59 #e5eee5,#0d1410, 60-60 #e5eee5,#608269, 61-64 #e5eee5,#0d1410, 65-66 #59675c,#0d1410, 67-119 #e5eee5,#0d1410, |16: 0-1 d,#465a43, 2-59 #b2c3b8,#1d2824, 60-60 #b2c3b8,#608269, 61-119 #b2c3b8,#0d1410, |17: 0-1 d,#1d2824, 2-59 #b2c3b8,#1d2824, 60-60 #b2c3b8,#608269, 61-119 #b2c3b8,#0d1410, |18: 0-0 d,#152019, 1-1 d,#0d1410, 2-59 #e5eee5,#0d1410, 60-60 #e5eee5,#608269, 61-119 #e5eee5,#0d1410, diff --git a/test/snapshots/hscroll.golden b/test/snapshots/hscroll.golden index 7f4d0060..848740b5 100644 --- a/test/snapshots/hscroll.golden +++ b/test/snapshots/hscroll.golden @@ -1,12 +1,12 @@ -== snap opened grid=90x31 cursor=52,19 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/hscroll/cwd Term+bash Save /tmp/pardes-snap/hscroll/cwd Term+bash Save -| Mode Filter Collapse Del Mode Filter Collapse Del +== snap opened grid=90x31 cursor=52,18 +| Find Grep Newcol Help Exit +| New Term Joincol Delcol New Term Joincol Delcol +| /tmp/pardes-snap/hscroll/cwd Del Term+bash /tmp/pardes-snap/hscroll/cwd Del Term+bash | ls ls | wide.txt wide.txt | | +| | wide.txt | | @@ -15,9 +15,8 @@ | | | -| /tmp/pardes-snap/hscroll/cwd Term+bash Save -| Mode Filter Collapse Del ‹@p1 › /tmp/pardes-snap/hscroll/cwd/wide.tx -| ls t Keep Save Term Collapse Follow Del +| /tmp/pardes-snap/hscroll/cwd Del Term+bash ‹@p1 › /tmp/pardes-snap/hscroll/cwd/wide.tx +| ls t Keep Del | wide.txt 1 short1 END_A_MARKER_WAY_OUT_RIGHT_padp | | @@ -29,10 +28,11 @@ | | | +| | · @p1 a copy of the terminal's text: Tab or B2 runs it; what the… 2 messages · SPC h m -== snap wheeled grid=90x31 cursor=52,19 -== snap clamped grid=90x31 cursor=52,19 -== snap dollar grid=90x31 cursor=86,19 -|19: wide.txt 1 padpadpadpadpadpadpadpadpadpad_TAIL -== snap zero grid=90x31 cursor=52,19 -|19: wide.txt 1 short1 END_A_MARKER_WAY_OUT_RIGHT_padp +== snap wheeled grid=90x31 cursor=52,18 +== snap clamped grid=90x31 cursor=52,18 +== snap dollar grid=90x31 cursor=86,18 +|18: wide.txt 1 padpadpadpadpadpadpadpadpadpad_TAIL +== snap zero grid=90x31 cursor=52,18 +|18: wide.txt 1 short1 END_A_MARKER_WAY_OUT_RIGHT_padp diff --git a/test/snapshots/images.golden b/test/snapshots/images.golden index e135660c..ffc320a8 100644 --- a/test/snapshots/images.golden +++ b/test/snapshots/images.golden @@ -1,12 +1,12 @@ == snap img-open grid=150x32 cursor=hidden -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/images/cwd Term+bash Save Mode Filter Collapse Del /tmp/pardes-snap/images/cwd Term+bash Save Mode Filter Collapse Del +| Find Grep Newcol Help Exit +| New Term Joincol Delcol New Term Joincol Delcol +| /tmp/pardes-snap/images/cwd Del Term+bash /tmp/pardes-snap/images/cwd Del Term+bash | ls ls | pic.ppm pic.ppm | | img petscii:on palette:commodore ascii:on /tmp/pardes-snap/images/cwd/pic -| .ppm Term Collapse Del +| .ppm Del | x🬱\╲🬌\~▄🬥4▟g*🬺🬶_🬆🬻 | >A8🬌Cq&.\H&🬹🬜C▛🬻 | ><e'🬷y🬙▄Fso🬴🬆🬹 @@ -16,7 +16,7 @@ | @🬥🬺v🬆🬻 | g🬷🬆🬻 | 🬆🬻 -| /tmp/pardes-snap/images/cwd Term+bash Save Mode Filter Collapse Del +| /tmp/pardes-snap/images/cwd Del Term+bash | ls | pic.ppm | @@ -32,9 +32,9 @@ | | · @p1 a copy of the terminal's text: Tab or B2 runs it; what the program draws next replaces it (Ctrl-b types to the program) 1 message · SPC h m == style img-open grid=150x32 -|0: 0-1 d,#1d2824, 2-149 #b2c3b8,#1d2824, +|0: 0-121 d,#1d2824, 122-149 #b2c3b8,#1d2824, |1: 0-1 d,#504733, 2-74 #becfc4,#314738, 75-76 #becfc4,#504733, 77-149 #b2c3b8,#1d2824, -|2: 0-1 d,#465a43, 2-29 #b2c3b8,#1d2824, 30-39 #d3b0d9,#1d2824, 40-74 #b2c3b8,#1d2824, 75-76 #b2c3b8,#465a43, 77-104 #b2c3b8,#1d2824, 105-114 #d3b0d9,#1d2824, 115-149 #b2c3b8,#1d2824, +|2: 0-1 d,#465a43, 2-33 #b2c3b8,#1d2824, 34-74 #d3b0d9,#1d2824, 75-76 #d3b0d9,#465a43, 77-108 #b2c3b8,#1d2824, 109-149 #d3b0d9,#1d2824, |3: 0-0 d,#608269, 1-1 d,#0d1410, 2-74 #e5eee5,#0d1410, 75-75 #e5eee5,#608269, 76-149 #e5eee5,#0d1410, |4: 0-0 d,#608269, 1-1 d,#0d1410, 2-74 #e5eee5,#0d1410, 75-75 #e5eee5,#608269, 76-149 #e5eee5,#0d1410, |5: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-149 d,#0d1410, @@ -49,7 +49,7 @@ |14: 0-0 d,#152019, 1-28 d,#0d1410, 29-29 #959595,#6c6c6c, 30-32 #6c6c6c,#959595, 33-33 #959595,#6c5eb5, 34-34 #352879,#6c6c6c, 35-46 #352879,#352879, 47-74 #352879,#0d1410, 75-75 #352879,#608269, 76-149 #352879,#0d1410, |15: 0-0 d,#152019, 1-28 d,#0d1410, 29-30 #6c6c6c,#959595, 31-31 #6c6c6c,#6c5eb5, 32-32 #352879,#6c6c6c, 33-46 #352879,#352879, 47-74 #352879,#0d1410, 75-75 #352879,#608269, 76-149 #352879,#0d1410, |16: 0-0 d,#152019, 1-28 d,#0d1410, 29-29 #6c6c6c,#6c5eb5, 30-30 #352879,#6c6c6c, 31-46 #352879,#352879, 47-74 #352879,#0d1410, 75-75 #352879,#608269, 76-149 #352879,#0d1410, -|17: 0-1 d,#465a43, 2-29 #b2c3b8,#1d2824, 30-39 #d3b0d9,#1d2824, 40-74 #b2c3b8,#1d2824, 75-75 #b2c3b8,#608269, 76-149 #b2c3b8,#0d1410, +|17: 0-1 d,#465a43, 2-33 #b2c3b8,#1d2824, 34-74 #d3b0d9,#1d2824, 75-75 #d3b0d9,#608269, 76-149 #d3b0d9,#0d1410, |18: 0-0 d,#608269, 1-1 d,#0d1410, 2-74 #e5eee5,#0d1410, 75-75 #e5eee5,#608269, 76-149 #e5eee5,#0d1410, |19: 0-0 d,#608269, 1-1 d,#0d1410, 2-74 #e5eee5,#0d1410, 75-75 #e5eee5,#608269, 76-149 #e5eee5,#0d1410, |20: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-149 d,#0d1410, @@ -88,14 +88,14 @@ |15: 🬺█🬝🬵 |16: 🬝▄ |31: ✓ /tmp/pardes-snap/images/cwd/pic.ppm Ascii 3 messages · SPC h m -== snap tag-edit grid=400x31 cursor=85,6 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/images/cwd Term+bash Save Mode Filter Collapse Del /tmp/pardes-snap/images/cwd Term+bash Save Mode Filter Collapse Del +== snap tag-edit grid=400x31 cursor=89,6 +| Find Grep Newcol Help Exit +| New Term Joincol Delcol New Term Joincol Delcol +| /tmp/pardes-snap/images/cwd Del Term+bash /tmp/pardes-snap/images/cwd Del Term+bash | ls ls | pic.ppm pic.ppm | -| img petscii:on palette:terminal ascii:off /tmp/pardes-snap/images/cwd/pic.ppm Zork Term Collapse Del +| img petscii:on palette:terminal ascii:off /tmp/pardes-snap/images/cwd/pic.ppm Del Zork | ███╱█🬻██🬺██🬻███╱██🬴▄ | 🬬██╱███╱🬻🬝🬻🬬████🬝🬵█ | █╲█🬴████╲╱█🬝██▟▄█ @@ -106,7 +106,7 @@ | 🬜🬬██🬸▄╲ | 🬺█🬝🬵█ | 🬝▄ -| /tmp/pardes-snap/images/cwd Term+bash Save Mode Filter Collapse Del +| /tmp/pardes-snap/images/cwd Del Term+bash | ls | pic.ppm | diff --git a/test/snapshots/jumps.golden b/test/snapshots/jumps.golden index 06f2212b..1671f6e1 100644 --- a/test/snapshots/jumps.golden +++ b/test/snapshots/jumps.golden @@ -1,7 +1,6 @@ -== snap start grid=150x31 cursor=7,3 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/jumps/cwd/big.txt Save Term Collapse Follow Del +== snap start grid=150x31 cursor=7,2 +| New Term Find Grep Newcol Help Exit +| /tmp/pardes-snap/jumps/cwd/big.txt Del | 1 line 1 | 2 line 2 | 3 line 3 @@ -29,12 +28,39 @@ | 25 line 25 | 26 line 26 | 27 line 27 +| 28 line 28 | /tmp/pardes-snap/jumps/cwd/big.txt:1 == snap to-shell grid=150x31 cursor=79,5 -|1: New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -|2: /tmp/pardes-snap/jumps/cwd/big.txt Save Term Collapse Follow Del /tmp/pardes-snap/jumps/cwd Term+bash Save Mode Filter Collapse Del +|0: Find Grep Newcol Help Exit +|1: New Term Joincol Delcol New Term Joincol Delcol +|2: /tmp/pardes-snap/jumps/cwd/big.txt Del /tmp/pardes-snap/jumps/cwd Del Term+bash |3: 1 line 1 ls |4: 2 line 2 big.txt +|5: 3 line 3 +|6: 4 line 4 +|7: 5 line 5 +|8: 6 line 6 +|9: 7 line 7 +|10: 8 line 8 +|11: 9 line 9 +|12: 10 line 10 +|13: 11 line 11 +|14: 12 line 12 +|15: 13 line 13 +|16: 14 line 14 +|17: 15 line 15 +|18: 16 line 16 +|19: 17 line 17 +|20: 18 line 18 +|21: 19 line 19 +|22: 20 line 20 +|23: 21 line 21 +|24: 22 line 22 +|25: 23 line 23 +|26: 24 line 24 +|27: 25 line 25 +|28: 26 line 26 +|29: 27 line 27 |30: /tmp/pardes-snap/jumps/cwd == snap to-file grid=150x31 cursor=7,3 |30: ✓ @p2 Window 1 message · SPC h m @@ -133,13 +159,13 @@ == snap last-back grid=150x31 cursor=7,16 |30: ✓ @p2 Last 6 messages · SPC h m == snap jumplist grid=150x31 cursor=hidden -|16: /tmp/pardes-snap/jumps/cwd/+Jumps Save Term Collapse Follow LocationsConf -|17: ig Del -|18: 1 @p2:3:3 /tmp/pardes-snap/jumps/cwd -|19: 2 /tmp/pardes-snap/jumps/cwd/big.txt:1:1 line 1 -|20: 3 @p2:3:3 /tmp/pardes-snap/jumps/cwd -|21: 4 /tmp/pardes-snap/jumps/cwd/big.txt:100:1 line 100 -|22: ~ +|16: /tmp/pardes-snap/jumps/cwd/+Jumps Del +|17: 1 @p2:3:3 /tmp/pardes-snap/jumps/cwd +|18: 2 /tmp/pardes-snap/jumps/cwd/big.txt:1:1 line 1 +|19: 3 @p2:3:3 /tmp/pardes-snap/jumps/cwd +|20: 4 /tmp/pardes-snap/jumps/cwd/big.txt:100:1 line 100 +|21: ~ +|22: |23: |24: |25: @@ -150,9 +176,9 @@ |30: ✓ /tmp/pardes-snap/jumps/cwd/big.txt Jumplist 7 messages · SPC h m == snap step1-shell grid=150x31 cursor=79,5 == style step1-shell grid=150x31 -|0: 0-1 d,#1d2824, 2-149 #b2c3b8,#1d2824, +|0: 0-121 d,#1d2824, 122-149 #b2c3b8,#1d2824, |1: 0-1 d,#504733, 2-74 #b2c3b8,#1d2824, 75-76 #b2c3b8,#504733, 77-149 #becfc4,#314738, -|2: 0-1 d,#465a43, 2-28 #b2c3b8,#1d2824, 29-36 #d3b0d9,#1d2824, 37-74 #b2c3b8,#1d2824, 75-76 #b2c3b8,#add38a, 77-103 #becfc4,#314738, 104-113 #ecc8f2,#314738, 114-149 #becfc4,#314738, +|2: 0-1 d,#465a43, 2-28 #b2c3b8,#1d2824, 29-36 #d3b0d9,#1d2824, 37-74 #b2c3b8,#1d2824, 75-76 #b2c3b8,#add38a, 77-107 #becfc4,#314738, 108-149 #ecc8f2,#314738, |3: 0-0 d,#152019, 1-3 d,#0d1410, 4-6 #59675c,#0d1410, 7-74 #e5eee5,#0d1410, 75-75 #e5eee5,#608269, 76-149 #e5eee5,#0d1410, |4: 0-0 d,#152019, 1-3 d,#0d1410, 4-6 #59675c,#0d1410, 7-74 #e5eee5,#0d1410, 75-75 #e5eee5,#608269, 76-149 #e5eee5,#0d1410, |5: 0-0 d,#152019, 1-3 d,#0d1410, 4-6 #59675c,#0d1410, 7-74 #e5eee5,#0d1410, 75-75 #e5eee5,#608269, 76-149 #e5eee5,#0d1410, @@ -167,12 +193,12 @@ |14: 0-0 d,#152019, 1-3 d,#0d1410, 4-6 #59675c,#0d1410, 7-74 #e5eee5,#0d1410, 75-75 #e5eee5,#608269, 76-149 #e5eee5,#0d1410, |15: 0-0 d,#152019, 1-3 d,#0d1410, 4-6 #59675c,#0d1410, 7-74 #e5eee5,#0d1410, 75-75 #e5eee5,#608269, 76-149 #e5eee5,#0d1410, |16: 0-1 d,#465a43, 2-28 #b2c3b8,#1d2824, 29-35 #d3b0d9,#1d2824, 36-74 #b2c3b8,#1d2824, 75-75 #b2c3b8,#608269, 76-149 #b2c3b8,#0d1410, -|17: 0-1 d,#1d2824, 2-74 #b2c3b8,#1d2824, 75-75 #b2c3b8,#608269, 76-149 #b2c3b8,#0d1410, -|18: 0-0 d,#608269, 1-4 d,#0d1410, 5-14 #59675c,#0d1410, 15-74 #e5eee5,#0d1410, 75-75 #e5eee5,#608269, 76-149 #e5eee5,#0d1410, -|19: 0-0 d,#608269, 1-4 d,#0d1410, 5-45 #59675c,#0d1410, 46-74 #e5eee5,#0d1410, 75-75 #e5eee5,#608269, 76-149 #e5eee5,#0d1410, -|20: 0-0 d,#608269, 1-4 d,#0d1410, 5-14 #59675c,#0d1410, 15-74 #e5eee5,#0d1410, 75-75 #e5eee5,#608269, 76-149 #e5eee5,#0d1410, -|21: 0-0 d,#608269, 1-4 d,#0d1410, 5-47 #59675c,#0d1410, 48-74 #e5eee5,#0d1410, 75-75 #e5eee5,#608269, 76-149 #e5eee5,#0d1410, -|22: 0-0 d,#608269, 1-4 d,#0d1410, 5-74 #59675c,#0d1410, 75-75 #59675c,#608269, 76-149 #59675c,#0d1410, +|17: 0-0 d,#608269, 1-4 d,#0d1410, 5-14 #59675c,#0d1410, 15-74 #e5eee5,#0d1410, 75-75 #e5eee5,#608269, 76-149 #e5eee5,#0d1410, +|18: 0-0 d,#608269, 1-4 d,#0d1410, 5-45 #59675c,#0d1410, 46-74 #e5eee5,#0d1410, 75-75 #e5eee5,#608269, 76-149 #e5eee5,#0d1410, +|19: 0-0 d,#608269, 1-4 d,#0d1410, 5-14 #59675c,#0d1410, 15-74 #e5eee5,#0d1410, 75-75 #e5eee5,#608269, 76-149 #e5eee5,#0d1410, +|20: 0-0 d,#608269, 1-4 d,#0d1410, 5-47 #59675c,#0d1410, 48-74 #e5eee5,#0d1410, 75-75 #e5eee5,#608269, 76-149 #e5eee5,#0d1410, +|21: 0-0 d,#608269, 1-4 d,#0d1410, 5-74 #59675c,#0d1410, 75-75 #59675c,#608269, 76-149 #59675c,#0d1410, +|22: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-149 d,#0d1410, |23: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-149 d,#0d1410, |24: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-149 d,#0d1410, |25: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-149 d,#0d1410, @@ -210,7 +236,4 @@ |14: 105 line 105 |15: 106 line 106 == snap step-back grid=150x31 cursor=79,5 -== snap look-row grid=150x31 cursor=7,23 -|22: /tmp/pardes-snap/jumps/cwd/ Get Term Collapse Del -|23: 1 big.txt -|24: ~ +== snap look-row grid=150x31 cursor=7,9 diff --git a/test/snapshots/layout-close.golden b/test/snapshots/layout-close.golden index dfdd7f4d..583179a1 100644 --- a/test/snapshots/layout-close.golden +++ b/test/snapshots/layout-close.golden @@ -1,13 +1,11 @@ -== snap built grid=140x41 cursor=4,35 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/layout-close/cwd Term+bash Save Mode Filter Collaps /tmp/pardes-snap/layout-close/cwd Term+bash Save Mode Filter Collaps -| e Del e Del +== snap built grid=140x41 cursor=4,32 +| Find Grep Newcol Help Exit +| New Term Joincol Delcol New Term Joincol Delcol +| /tmp/pardes-snap/layout-close/cwd Del Term+bash /tmp/pardes-snap/layout-close/cwd Del Term+bash | ls ls | marker.txt marker.txt | -| /tmp/pardes-snap/layout-close/cwd Term+bash Save Mode Filter Collaps -| e Del +| /tmp/pardes-snap/layout-close/cwd Del Term+bash | ls | marker.txt | @@ -20,18 +18,17 @@ | | | -| /tmp/pardes-snap/layout-close/cwd Term+bash Save Mode Filter Collaps -| e Del +| +| +| /tmp/pardes-snap/layout-close/cwd Del Term+bash | ls | marker.txt | -| /tmp/pardes-snap/layout-close/cwd Term+bash Save Mode Filter Collaps -| e Del +| /tmp/pardes-snap/layout-close/cwd Del Term+bash | ls | marker.txt | -| /tmp/pardes-snap/layout-close/cwd Term+bash Save Mode Filter Collaps -| e Del +| /tmp/pardes-snap/layout-close/cwd Del Term+bash | ls | marker.txt | @@ -39,48 +36,43 @@ | | | +| +| +| | /tmp/pardes-snap/layout-close/cwd -== snap altc grid=140x41 cursor=39,7 -|1: New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -|2: /tmp/pardes-snap/layout-close/cwd /tmp/pardes-snap/layout-close/cwd /tmp/pardes-snap/layout-close/cwd Term+bash Save Mode Filter Collaps -|3: Term+bash Save Mode Filter Colla Term+bash Save Mode Filter Colla e Del -|4: pse Del pse Del ls -|5: marker.txt ls marker.txt -|6: marker.txt -|7: /tmp/pardes-snap/layout-close/cwd -|8: Term+bash Save Mode Filter Colla -|9: pse Del -|10: ls -|11: marker.txt +== snap altc grid=140x41 cursor=39,6 +|1: New Term Joincol Delcol New Term Joincol Delcol New Term Joincol Delcol +|2: /tmp/pardes-snap/layout-close/cwd /tmp/pardes-snap/layout-close/cwd /tmp/pardes-snap/layout-close/cwd Del Term+bash +|3: Del Term+bash Del Term+bash ls +|4: marker.txt ls marker.txt +|5: marker.txt +|6: /tmp/pardes-snap/layout-close/cwd +|7: Del Term+bash +|8: ls +|9: marker.txt |21: /tmp/pardes-snap/layout-close/cwd -|22: Term+bash Save Mode Filter Colla -|23: pse Del -|26: /tmp/pardes-snap/layout-close/cwd -|27: Term+bash Save Mode Filter Colla -|28: pse Del -|29: ls -|30: marker.txt +|22: Del Term+bash +|25: /tmp/pardes-snap/layout-close/cwd +|26: Del Term+bash +|27: ls +|28: marker.txt +|29: +|30: |31: -|32: -|33: -|34: == snap del grid=140x41 cursor=4,9 -|5: ls ls marker.txt -|6: marker.txt marker.txt +|4: ls ls marker.txt +|5: marker.txt marker.txt +|6: |7: |8: |9: -|10: -|11: |40: ✓ @p5 Del 1 message · SPC h m == snap exit grid=140x41 cursor=4,9 |21: |22: |23: -|24: -== snap colclose grid=140x41 cursor=37,1 -|2: /tmp/pardes-snap/layout-close/cwd /tmp/pardes-snap/layout-close/cwd Term+bash Save Mode Filter Collaps -|3: Term+bash Save Mode Filter Colla e Del -|4: pse Del ls -|5: ls marker.txt -|6: marker.txt +== snap colclose grid=140x41 cursor=61,1 +|2: /tmp/pardes-snap/layout-close/cwd /tmp/pardes-snap/layout-close/cwd Del Term+bash +|3: Del Term+bash ls +|4: ls marker.txt +|5: marker.txt diff --git a/test/snapshots/layout-open.golden b/test/snapshots/layout-open.golden index 45f05c4e..19500b97 100644 --- a/test/snapshots/layout-open.golden +++ b/test/snapshots/layout-open.golden @@ -1,12 +1,12 @@ == snap before grid=100x32 cursor=4,9 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/layout-open/cwd Term+bash Save /tmp/pardes-snap/layout-open/cwd Term+bash Save -| Mode Filter Collapse Del Mode Filter Collapse Del +| Find Grep Newcol Help Exit +| New Term Joincol Delcol New Term Joincol Delcol +| /tmp/pardes-snap/layout-open/cwd Del Term+bash /tmp/pardes-snap/layout-open/cwd Del Term+bash | ls ls | sub sub | | +| | echo one; echo two | | @@ -16,8 +16,7 @@ | | | -| /tmp/pardes-snap/layout-open/cwd Term+bash Save -| Mode Filter Collapse Del +| /tmp/pardes-snap/layout-open/cwd Del Term+bash | ls | sub | @@ -30,26 +29,24 @@ | | | +| | · @p1 a copy of the terminal's text: Tab or B2 runs it; what the program dr… 1 message · SPC h m -== snap altn-left grid=100x32 cursor=4,11 -|7: /tmp/pardes-snap/layout-open/cwd Term+bash Save -|8: Mode Filter Collapse Del -|9: ls -|10: sub -== snap altn-right grid=100x32 cursor=54,11 -|7: /tmp/pardes-snap/layout-open/cwd Term+bash Save /tmp/pardes-snap/layout-open/cwd Term+bash Save -|8: Mode Filter Collapse Del Mode Filter Collapse Del -|9: ls ls -|10: sub sub -== snap file-open grid=100x32 cursor=7,24 -|22: /tmp/pardes-snap/layout-open/cwd/sub/f.txt Save -|23: Term Collapse Follow Del -|24: 1 echo 'TTY'OK +== snap altn-left grid=100x32 cursor=4,9 +|6: /tmp/pardes-snap/layout-open/cwd Del Term+bash +|7: ls +|8: sub +== snap altn-right grid=100x32 cursor=54,9 +|6: /tmp/pardes-snap/layout-open/cwd Del Term+bash /tmp/pardes-snap/layout-open/cwd Del Term+bash +|7: ls ls +|8: sub sub +== snap file-open grid=100x32 cursor=7,22 +|21: /tmp/pardes-snap/layout-open/cwd/sub/f.txt Del +|22: 1 echo 'TTY'OK |31: · @p2 a copy of the terminal's text: Tab or B2 runs it; what the program d… 2 messages · SPC h m -== snap ttydir grid=100x32 cursor=7,24 -|20: sub /tmp/pardes-snap/layout-open/cwd/sub (echo 'TTY' -|21: OK) exit 0 Kill Save Collapse Del -|22: /tmp/pardes-snap/layout-open/cwd/sub/f.txt Save % echo 'TTY'OK -|23: Term Collapse Follow Del TTYOK -|24: 1 echo 'TTY'OK exit 0 +== snap ttydir grid=100x32 cursor=7,22 +|19: sub /tmp/pardes-snap/layout-open/cwd/sub (echo 'TTY' +|20: OK) exit 0 Del +|21: /tmp/pardes-snap/layout-open/cwd/sub/f.txt Del % echo 'TTY'OK +|22: 1 echo 'TTY'OK TTYOK +|23: exit 0 |31: ✓ /tmp/pardes-snap/layout-open/cwd/sub/f.txt Exec 3 messages · SPC h m diff --git a/test/snapshots/leader.golden b/test/snapshots/leader.golden index 5630219a..02cacea2 100644 --- a/test/snapshots/leader.golden +++ b/test/snapshots/leader.golden @@ -1,6 +1,5 @@ == snap spc grid=100x41 cursor=hidden -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol +| New Term Find Grep Newcol Help Exit | ␣ ▸ b buffer… c column… f file… h help… j jump… l lsp… n new… s session… t view… ' Resume | │ / All ? Help d Del e Message p ClipPaste P ClipPasteBefore q Exit R ClipReplace | │ w Window y ClipYank Y ClipYankMain ↓ unroll · ? help @@ -39,51 +38,52 @@ | | | +| | /tmp/pardes-snap/leader/cwd/cmds.txt:1 -== snap spc-h grid=100x41 cursor=7,3 -|2: ␣ h ▸ b Build c Changelog k Keys m Messages t Tutor ↓ unroll · ? help -|3: 1 Help Help h Help t Help c Help l -|4: -== snap abandoned grid=100x41 cursor=7,3 -|2: /tmp/pardes-snap/leader/cwd/cmds.txt Keep Save Term Collapse Follow Del +== snap spc-h grid=100x41 cursor=7,2 +|1: ␣ h ▸ b Build c Changelog k Keys m Messages t Tutor ↓ unroll · ? help +|2: 1 Help Help h Help t Help c Help l +|3: +== snap abandoned grid=100x41 cursor=7,2 +|1: /tmp/pardes-snap/leader/cwd/cmds.txt Keep Del == snap unmapped grid=100x41 cursor=hidden -|2: ␣ ▸ b buffer… c column… f file… h help… j jump… l lsp… n new… s session… t view… ' Resume -|3: │ / All ? Help d Del e Message p ClipPaste P ClipPasteBefore q Exit R ClipReplace -|4: │ w Window y ClipYank Y ClipYankMain x ↓ unroll · ? help -== snap help-group grid=100x41 cursor=7,6 -|2: /tmp/pardes-snap/leader/cwd/cmds.txt Keep Save Term Collapse Follow Del -|3: 1 Help Help h Help t Help c Help l -|4: -|5: /tmp/pardes-snap/leader/cwd/+Help Save Term Collapse Follow Del -|6: 1 pardes builtins under SPC h -|7: 2 -|8: 3 SPC h b Build -|9: 4 Show this build in a +Build: its version, compiler, optimize mode, target and dependencies. -|10: 5 A stamped build's (a release, or the ~/.local install) commit, jj change and build time too,↩ -|11: its platform, its grammars, and whether the addons are compiled in. -|12: 6 -|13: 7 SPC h c Changelog topbar -|14: 8 Show this build's version and what changed to reach it, in a +Changelog. -|15: 9 -|16: 10 SPC h k Keys -|17: 11 Show what a key sequence runs: the next keys typed are replayed in the tag. -|18: 12 The tag shows `Keys` and the keys as they are typed; a sequence that reaches a leaf unrolls ↩ -|19: its level under the tag with the leaf on the cursor and its documentation beside it, and Ent↩ -|20: er runs it. Every root answers: SPC, g, m, z, Z, [, ], window mode's C-w. A sequence nothing↩ -|21: is bound to is shown struck, `runs nothing`. Esc leaves it. -|22: 13 -|23: 14 SPC h m Messages -|24: 15 Show the messages said so far, the newest first, an error's places under it. -|25: 16 Where jumps walk, a list in the pane's tag: Enter Looks a row (a message's cause, a place), ↩ -|26: C-q keeps it as a +Messages; else the +Messages. -|27: 17 -|28: 18 SPC h t Tutor topbar -|29: 19 Open the tutor, a document to work through. -|30: 20 -|31: ~ +|1: ␣ ▸ b buffer… c column… f file… h help… j jump… l lsp… n new… s session… t view… ' Resume +|2: │ / All ? Help d Del e Message p ClipPaste P ClipPasteBefore q Exit R ClipReplace +|3: │ w Window y ClipYank Y ClipYankMain x ↓ unroll · ? help +== snap help-group grid=100x41 cursor=7,5 +|1: /tmp/pardes-snap/leader/cwd/cmds.txt Keep Del +|2: 1 Help Help h Help t Help c Help l +|3: +|4: /tmp/pardes-snap/leader/cwd/+Help Del +|5: 1 pardes builtins under SPC h +|6: 2 +|7: 3 SPC h b Build +|8: 4 Show this build in a +Build: its version, compiler, optimize mode, target and dependencies. +|9: 5 A stamped build's (a release, or the ~/.local install) commit, jj change and build time too,↩ +|10: its platform, its grammars, and whether the addons are compiled in. +|11: 6 +|12: 7 SPC h c Changelog +|13: 8 Show this build's version and what changed to reach it, in a +Changelog. +|14: 9 +|15: 10 SPC h k Keys +|16: 11 Show what a key sequence runs: the next keys typed are replayed in the tag. +|17: 12 The tag shows `Keys` and the keys as they are typed; a sequence that reaches a leaf unrolls ↩ +|18: its level under the tag with the leaf on the cursor and its documentation beside it, and Ent↩ +|19: er runs it. Every root answers: SPC, g, m, z, Z, [, ], window mode's C-w. A sequence nothing↩ +|20: is bound to is shown struck, `runs nothing`. Esc leaves it. +|21: 13 +|22: 14 SPC h m Messages +|23: 15 Show the messages said so far, the newest first, an error's places under it. +|24: 16 Where jumps walk, a list in the pane's tag: Enter Looks a row (a message's cause, a place), ↩ +|25: C-q keeps it as a +Messages; else the +Messages. +|26: 17 +|27: 18 SPC h t Tutor +|28: 19 Open the tutor, a document to work through. +|29: 20 +|30: ~ |40: ✓ /tmp/pardes-snap/leader/cwd/cmds.txt Help 4 messages · SPC h m == snap tutor grid=100x41 cursor=7,23 -|22: /tmp/pardes-snap/leader/cwd/+Tutor Keep Save Term Collapse Follow Del +|22: /tmp/pardes-snap/leader/cwd/+Tutor Keep Del |23: 1 |24: 2 PARDES TUTOR |25: 3 @@ -102,7 +102,8 @@ |38: 16 "| " are tags. |39: 17 |40: ✓ /tmp/pardes-snap/leader/cwd/+Help Tutor 5 messages · SPC h m -== snap deleted grid=100x41 cursor=7,3 +== snap deleted grid=100x41 cursor=7,2 +|4: |5: |6: |7: @@ -120,51 +121,52 @@ |19: |20: |21: -|22: -|23: /tmp/pardes-snap/leader/cwd/+Help Save Term Collapse Follow Del -|24: 1 pardes builtins under SPC h -|25: 2 -|26: 3 SPC h b Build -|27: 4 Show this build in a +Build: its version, compiler, optimize mode, target and dependencies. -|28: 5 A stamped build's (a release, or the ~/.local install) commit, jj change and build time too,↩ -|29: its platform, its grammars, and whether the addons are compiled in. -|30: 6 -|31: 7 SPC h c Changelog topbar -|32: 8 Show this build's version and what changed to reach it, in a +Changelog. -|33: 9 -|34: 10 SPC h k Keys -|35: 11 Show what a key sequence runs: the next keys typed are replayed in the tag. -|36: 12 The tag shows `Keys` and the keys as they are typed; a sequence that reaches a leaf unrolls ↩ -|37: its level under the tag with the leaf on the cursor and its documentation beside it, and Ent↩ -|38: er runs it. Every root answers: SPC, g, m, z, Z, [, ], window mode's C-w. A sequence nothing↩ -|39: is bound to is shown struck, `runs nothing`. Esc leaves it. +|22: /tmp/pardes-snap/leader/cwd/+Help Del +|23: 1 pardes builtins under SPC h +|24: 2 +|25: 3 SPC h b Build +|26: 4 Show this build in a +Build: its version, compiler, optimize mode, target and dependencies. +|27: 5 A stamped build's (a release, or the ~/.local install) commit, jj change and build time too,↩ +|28: its platform, its grammars, and whether the addons are compiled in. +|29: 6 +|30: 7 SPC h c Changelog +|31: 8 Show this build's version and what changed to reach it, in a +Changelog. +|32: 9 +|33: 10 SPC h k Keys +|34: 11 Show what a key sequence runs: the next keys typed are replayed in the tag. +|35: 12 The tag shows `Keys` and the keys as they are typed; a sequence that reaches a leaf unrolls ↩ +|36: its level under the tag with the leaf on the cursor and its documentation beside it, and Ent↩ +|37: er runs it. Every root answers: SPC, g, m, z, Z, [, ], window mode's C-w. A sequence nothing↩ +|38: is bound to is shown struck, `runs nothing`. Esc leaves it. +|39: 13 |40: ✓ /tmp/pardes-snap/leader/cwd/+Tutor Del 6 messages · SPC h m -== snap help-column grid=100x41 cursor=7,6 -|5: /tmp/pardes-snap/leader/cwd/+Help Save Term Collapse Follow Del -|6: 1 pardes builtins under SPC c -|7: 2 -|8: 3 SPC c d Delcol -|9: 4 Close this column and its panes. -|10: 5 The column is the one whose tag it ran from, else the pane's. Refused once while a pane in i↩ -|11: t holds unsaved text, the notice saying how many; Delcol again, nothing edited since, closes↩ -|12: them. -|13: 6 -|14: 7 SPC c f Follow -|15: 8 Show one text across a chain of panes as consecutive pages, scrolled as one. -|16: 9 As Emacs's follow-mode: each page goes on where the one before ends. Each Follow adds a page↩ -|17: , a Zerox of the text, at the end of the column right of the chain's last, or in a new colum↩ -|18: n there; its tag has Unfollow. -|19: 10 -|20: 11 SPC c j Joincol topbar -|21: 12 Fold the keyboard's column into the one on its right, keeping its panes. -|22: 13 Refused for the last column, and where the joined column could not give each pane its tag an↩ -|23: d 2 rows. -|24: 14 -|25: 15 SPC c n Newcol topbar -|26: 16 Make an empty column right of the keyboard's, its tag taking the keyboard. -|27: 17 The next pane made from there goes in it. Refused, saying why, when no column fits. -|28: 18 -|29: ~ +== snap help-column grid=100x41 cursor=7,5 +|4: /tmp/pardes-snap/leader/cwd/+Help Del +|5: 1 pardes builtins under SPC c +|6: 2 +|7: 3 SPC c d Delcol +|8: 4 Close this column and its panes. +|9: 5 The column is the one whose tag it ran from, else the pane's. Refused once while a pane in i↩ +|10: t holds unsaved text, the notice saying how many; Delcol again, nothing edited since, closes↩ +|11: them. +|12: 6 +|13: 7 SPC c f Follow +|14: 8 Show one text across a chain of panes as consecutive pages, scrolled as one. +|15: 9 As Emacs's follow-mode: each page goes on where the one before ends. Each Follow adds a page↩ +|16: , a Zerox of the text, at the end of the column right of the chain's last, or in a new colum↩ +|17: n there; its tag has Unfollow. +|18: 10 +|19: 11 SPC c j Joincol +|20: 12 Fold the keyboard's column into the one on its right, keeping its panes. +|21: 13 Refused for the last column, and where the joined column could not give each pane its tag an↩ +|22: d 2 rows. +|23: 14 +|24: 15 SPC c n Newcol topbar +|25: 16 Make an empty column right of the keyboard's, its tag taking the keyboard. +|26: 17 The next pane made from there goes in it. Refused, saying why, when no column fits. +|27: 18 +|28: ~ +|29: |30: |31: |32: @@ -176,42 +178,44 @@ |38: |39: |40: ✓ /tmp/pardes-snap/leader/cwd/cmds.txt Help 14 messages · SPC h m -== snap help-language grid=100x41 cursor=7,6 -|6: 1 pardes builtins under SPC l -|8: 3 SPC l C Callees -|9: 4 List the functions the one under the cursor calls, one level down; a single one is a jump. -|10: 5 -|11: 6 SPC l D WsDiagnostics -|12: 7 List the diagnostics of the whole workspace in a +Search. -|13: 8 -|14: 9 SPC l S WsSymbols -|15: 10 Search the workspace's symbols for its argument, in a +Search; bare, it asks for the name. -|16: 11 -|17: 12 SPC l T Subtypes -|18: 13 List the subtypes of the type under the cursor in a +Search; a single one is a jump. -|19: 14 -|20: 15 SPC l a CodeAction -|21: 16 List the language server's code actions for the cursor, to apply one. -|22: 17 Typed where jumps walk, they are a picker in the pane's tag, the one under the cursor shown ↩ -|23: as its edit, applied by Enter or its digit; else a +Lsp lists them. -|24: 18 -|25: 19 SPC l b Callstack -|26: 20 Show the callers of the function under the cursor as a tree, outermost first, in a +Callstac↩ -|27: k. -|28: 21 Each caller with its place to open and its signature, the line of each call under it; caller↩ -|29: s named for tests after the rest, a recursion marked `↻`. CallstackDepth sets how many level↩ -|30: s (8 by default); a deeper tree says where to go on from. `g c` does the same. -|31: 22 -|32: 23 SPC l c Callers -|33: 24 List the functions that call the one under the cursor, one level up; a single one is a jump. -|34: 25 -|35: 26 SPC l d Diagnostics -|36: 27 List this file's diagnostics in a +Search. -|37: 28 `] d` and `[ d` step through them in the text, `] D` and `[ D` to the last and the first. -|38: 29 -|39: 30 SPC l h SelectRefs +== snap help-language grid=100x41 cursor=7,5 +|5: 1 pardes builtins under SPC l +|7: 3 SPC l C Callees +|8: 4 List the functions the one under the cursor calls, one level down; a single one is a jump. +|9: 5 +|10: 6 SPC l D WsDiagnostics +|11: 7 List the diagnostics of the whole workspace in a +Search. +|12: 8 +|13: 9 SPC l S WsSymbols +|14: 10 Search the workspace's symbols for its argument, in a +Search; bare, it asks for the name. +|15: 11 +|16: 12 SPC l T Subtypes +|17: 13 List the subtypes of the type under the cursor in a +Search; a single one is a jump. +|18: 14 +|19: 15 SPC l a CodeAction +|20: 16 List the language server's code actions for the cursor, to apply one. +|21: 17 Typed where jumps walk, they are a picker in the pane's tag, the one under the cursor shown ↩ +|22: as its edit, applied by Enter or its digit; else a +Lsp lists them. +|23: 18 +|24: 19 SPC l b Callstack +|25: 20 Show the callers of the function under the cursor as a tree, outermost first, in a +Callstac↩ +|26: k. +|27: 21 Each caller with its place to open and its signature, the line of each call under it; caller↩ +|28: s named for tests after the rest, a recursion marked `↻`. CallstackDepth sets how many level↩ +|29: s (8 by default); a deeper tree says where to go on from. `g c` does the same. +|30: 22 +|31: 23 SPC l c Callers +|32: 24 List the functions that call the one under the cursor, one level up; a single one is a jump. +|33: 25 +|34: 26 SPC l d Diagnostics +|35: 27 List this file's diagnostics in a +Search. +|36: 28 `] d` and `[ d` step through them in the text, `] D` and `[ D` to the last and the first. +|37: 29 +|38: 30 SPC l h SelectRefs +|39: 31 Select every reference to the symbol under the cursor. |40: ✓ /tmp/pardes-snap/leader/cwd/cmds.txt Help 16 messages · SPC h m -== snap del-output grid=100x41 cursor=7,3 +== snap del-output grid=100x41 cursor=7,2 +|4: |5: |6: |7: diff --git a/test/snapshots/load.golden b/test/snapshots/load.golden index 7fcc38c9..46dc409d 100644 --- a/test/snapshots/load.golden +++ b/test/snapshots/load.golden @@ -1,12 +1,12 @@ == snap loaded grid=100x31 cursor=4,15 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/load/cwd Term+bash Save Mode Fi /tmp/pardes-snap/load/cwd Term+bash Save Mode Fi -| lter Collapse Del lter Collapse Del -| 29 ls -| 30 d.txt -| 31 -| 32 ── restored history ── +| Find Grep Newcol Help Exit Dump +| New Term Joincol Delcol New Term Joincol Delcol +| /tmp/pardes-snap/load/cwd Del Term+bash /tmp/pardes-snap/load/cwd Del Term+bash +| 28 ls +| 29 d.txt +| 30 +| 31 ── restored history ── +| 32 | 33 | 34 | 35 @@ -15,8 +15,7 @@ | 38 | 39 | 40 -| /tmp/pardes-snap/load/cwd Term+bash Save Mode Fi -| lter Collapse Del +| /tmp/pardes-snap/load/cwd Del Term+bash | ls | d.txt | @@ -29,30 +28,31 @@ | | | +| | ✓ @p1 Dump 1 message · SPC h m == style loaded grid=100x31 -|0: 0-1 d,#1d2824, 2-47 #b2c3b8,#1d2824, 48-51 #f5f7ee,#3c614a, 52-52 #f5f7ee,#1d2824, 53-99 #b2c3b8,#1d2824, +|0: 0-67 d,#1d2824, 68-94 #b2c3b8,#1d2824, 95-98 #f5f7ee,#3c614a, 99-99 #f5f7ee,#1d2824, |1: 0-1 d,#504733, 2-49 #becfc4,#314738, 50-51 #becfc4,#504733, 52-99 #b2c3b8,#1d2824, -|2: 0-1 d,#add38a, 2-27 #becfc4,#314738, 28-37 #ecc8f2,#314738, 38-49 #becfc4,#314738, 50-51 #becfc4,#465a43, 52-77 #b2c3b8,#1d2824, 78-87 #d3b0d9,#1d2824, 88-99 #b2c3b8,#1d2824, -|3: 0-1 d,#314738, 2-49 #becfc4,#314738, 50-51 #becfc4,#1d2824, 52-99 #b2c3b8,#1d2824, +|2: 0-1 d,#add38a, 2-31 #becfc4,#314738, 32-49 #ecc8f2,#314738, 50-51 #ecc8f2,#465a43, 52-81 #b2c3b8,#1d2824, 82-99 #d3b0d9,#1d2824, +|3: 0-0 d,#152019, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, |4: 0-0 d,#152019, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, |5: 0-0 d,#152019, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, -|6: 0-0 d,#152019, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, -|7: 0-0 d,#152019, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-51 #e5eee5,#0d1410, 52-99 #666f68,#0d1410, +|6: 0-0 d,#152019, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-51 #e5eee5,#0d1410, 52-99 #666f68,#0d1410, +|7: 0-0 d,#152019, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, |8: 0-0 d,#152019, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, |9: 0-0 d,#152019, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, |10: 0-0 d,#152019, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, -|11: 0-0 d,#152019, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, +|11: 0-0 d,#608269, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, |12: 0-0 d,#608269, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, |13: 0-0 d,#608269, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, -|14: 0-0 d,#608269, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, +|14: 0-0 d,#152019, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, |15: 0-0 d,#152019, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, -|16: 0-1 d,#465a43, 2-27 #b2c3b8,#1d2824, 28-37 #d3b0d9,#1d2824, 38-49 #b2c3b8,#1d2824, 50-50 #b2c3b8,#608269, 51-99 #b2c3b8,#0d1410, -|17: 0-1 d,#1d2824, 2-49 #b2c3b8,#1d2824, 50-50 #b2c3b8,#608269, 51-99 #b2c3b8,#0d1410, +|16: 0-1 d,#465a43, 2-31 #b2c3b8,#1d2824, 32-49 #d3b0d9,#1d2824, 50-50 #d3b0d9,#608269, 51-99 #d3b0d9,#0d1410, +|17: 0-0 d,#608269, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, |18: 0-0 d,#608269, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, -|19: 0-0 d,#608269, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, -|20: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, -|21: 0-0 d,#608269, 1-1 d,#0d1410, 2-49 #666f68,#0d1410, 50-50 #666f68,#608269, 51-99 #666f68,#0d1410, +|19: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, +|20: 0-0 d,#608269, 1-1 d,#0d1410, 2-49 #666f68,#0d1410, 50-50 #666f68,#608269, 51-99 #666f68,#0d1410, +|21: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, |22: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, |23: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, |24: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, diff --git a/test/snapshots/logquiet.golden b/test/snapshots/logquiet.golden index 6ec9e6e6..ea9de55e 100644 --- a/test/snapshots/logquiet.golden +++ b/test/snapshots/logquiet.golden @@ -1,7 +1,6 @@ -== snap quiet grid=100x31 cursor=62,5 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -|$ /tmp/pardes-snap/logquiet/cwd Term+bash Save Mode Filter Collapse Del +== snap quiet grid=100x31 cursor=62,4 +| New Term Find Grep Newcol Help Exit +|$ /tmp/pardes-snap/logquiet/cwd Del Term+bash | $ ls | $ printf '\033_Ga=q,i=1,s=1,v=1,f=24,t=d;AAAA\033\\\033[>0p' | $ '\033_Ga=q,i=1,s=1,v=1,f=24,t=d;AAAA\033\\\033[>0p'Gi=1;OK @@ -29,4 +28,5 @@ | | | +| | /tmp/pardes-snap/logquiet/cwd diff --git a/test/snapshots/look-center.golden b/test/snapshots/look-center.golden index f3b7aee6..7ad52aa9 100644 --- a/test/snapshots/look-center.golden +++ b/test/snapshots/look-center.golden @@ -1,7 +1,7 @@ == snap center-open grid=150x31 cursor=15,25 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/look-center/cwd Term+bash Save Mode Filter Collapse Del /tmp/pardes-snap/look-center/cwd Term+bash Save Mode Filter Collapse Del +| Find Grep Newcol Help Exit +| New Term Joincol Delcol New Term Joincol Delcol +| /tmp/pardes-snap/look-center/cwd Del Term+bash /tmp/pardes-snap/look-center/cwd Del Term+bash | ls ls | big.txt big.txt | @@ -15,11 +15,11 @@ | | | -| /tmp/pardes-snap/look-center/cwd Term+bash Save Mode Filter Collapse Del +| /tmp/pardes-snap/look-center/cwd Del Term+bash | ls | big.txt | -| /tmp/pardes-snap/look-center/cwd/big.txt Save Term Collapse Follow Del +| /tmp/pardes-snap/look-center/cwd/big.txt Del | 96 line 96 | 97 line 97 | 98 line 98 diff --git a/test/snapshots/look-fd-deep.golden b/test/snapshots/look-fd-deep.golden index 37fa9fe1..9b80b1c2 100644 --- a/test/snapshots/look-fd-deep.golden +++ b/test/snapshots/look-fd-deep.golden @@ -1,7 +1,6 @@ -== snap listed grid=100x31 cursor=4,9 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -|$ /tmp/pardes-snap/look-fd-deep/cwd/a Term+bash Save Mode Filter Collapse Del +== snap listed grid=100x31 cursor=4,8 +| New Term Find Grep Newcol Help Exit +|$ /tmp/pardes-snap/look-fd-deep/cwd/a Del Term+bash | $ exec timeout --foreground 600 bash -i | $ cd a && ls && fd | b top.txt @@ -20,7 +19,7 @@ | | | -| /tmp/pardes-snap/look-fd-deep/cwd/+New Save Term Collapse Follow Del +| /tmp/pardes-snap/look-fd-deep/cwd/+New Del | 1 | | @@ -29,12 +28,13 @@ | | | +| | /tmp/pardes-snap/look-fd-deep/cwd/a -== snap fd-path-looked grid=100x31 cursor=7,22 -|21: ‹@p1 › /tmp/pardes-snap/look-fd-deep/cwd/a/b/c.txt Keep Save Term Collapse Follow Del -|22: 1 deep-marker +== snap fd-path-looked grid=100x31 cursor=7,21 +|20: ‹@p1 › /tmp/pardes-snap/look-fd-deep/cwd/a/b/c.txt Keep Del +|21: 1 deep-marker |30: /tmp/pardes-snap/look-fd-deep/cwd/a/b/c.txt:1 -== snap ls-name-looked grid=100x31 cursor=7,22 -|21: ‹@p1 › c.txt:1 › /tmp/pardes-snap/look-fd-deep/cwd/a/top.txt Keep Save Term Collapse Follow Del -|22: 1 top-marker +== snap ls-name-looked grid=100x31 cursor=7,21 +|20: ‹@p1 › c.txt:1 › /tmp/pardes-snap/look-fd-deep/cwd/a/top.txt Keep Del +|21: 1 top-marker |30: /tmp/pardes-snap/look-fd-deep/cwd/a/top.txt:1 diff --git a/test/snapshots/look-file-1col.golden b/test/snapshots/look-file-1col.golden index 76f06237..a5821054 100644 --- a/test/snapshots/look-file-1col.golden +++ b/test/snapshots/look-file-1col.golden @@ -1,21 +1,21 @@ == snap file-open-1col grid=100x31 cursor=14,23 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/look-file-1col/cwd Term+bash Save Mode Filter Collapse Del +| New Term Find Grep Newcol Help Exit +| /tmp/pardes-snap/look-file-1col/cwd Del Term+bash | ls | big.txt | | | -| big.txt:40 | +| big.txt:40 | | | | | | -| ‹@p1 › /tmp/pardes-snap/look-file-1col/cwd/big.txt Keep Save Term Collapse Follow Del +| ‹@p1 › /tmp/pardes-snap/look-file-1col/cwd/big.txt Keep Del +| 33 line 33 | 34 line 34 | 35 line 35 | 36 line 36 diff --git a/test/snapshots/look-file.golden b/test/snapshots/look-file.golden index aff75acd..24653ea5 100644 --- a/test/snapshots/look-file.golden +++ b/test/snapshots/look-file.golden @@ -1,7 +1,7 @@ -== snap file-open grid=150x31 cursor=89,24 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/look-file/cwd Term+bash Save Mode Filter Collapse Del /tmp/pardes-snap/look-file/cwd Term+bash Save Mode Filter Collapse Del +== snap file-open grid=150x31 cursor=89,23 +| Find Grep Newcol Help Exit +| New Term Joincol Delcol New Term Joincol Delcol +| /tmp/pardes-snap/look-file/cwd Del Term+bash /tmp/pardes-snap/look-file/cwd Del Term+bash | ls ls | big.txt big.txt | @@ -15,10 +15,9 @@ | | | -| /tmp/pardes-snap/look-file/cwd Term+bash Save Mode Filter Collapse Del ‹@p1 › /tmp/pardes-snap/look-file/cwd/big.txt Keep Save Term Collapse Fol -| ls low Del -| big.txt 34 line 34 -| 35 line 35 +| /tmp/pardes-snap/look-file/cwd Del Term+bash ‹@p1 › /tmp/pardes-snap/look-file/cwd/big.txt Keep Del +| ls 34 line 34 +| big.txt 35 line 35 | 36 line 36 | 37 line 37 | 38 line 38 @@ -29,11 +28,12 @@ | 43 line 43 | 44 line 44 | 45 line 45 +| 46 line 46 | · @p1 a copy of the terminal's text: Tab or B2 runs it; what the program draws next replaces it (Ctrl-b types to the program) 1 message · SPC h m == style file-open grid=150x31 -|0: 0-1 d,#1d2824, 2-149 #b2c3b8,#1d2824, +|0: 0-121 d,#1d2824, 122-149 #b2c3b8,#1d2824, |1: 0-1 d,#504733, 2-74 #b2c3b8,#1d2824, 75-76 #b2c3b8,#504733, 77-149 #becfc4,#314738, -|2: 0-1 d,#465a43, 2-32 #b2c3b8,#1d2824, 33-42 #d3b0d9,#1d2824, 43-74 #b2c3b8,#1d2824, 75-76 #b2c3b8,#465a43, 77-107 #b2c3b8,#1d2824, 108-117 #d3b0d9,#1d2824, 118-149 #b2c3b8,#1d2824, +|2: 0-1 d,#465a43, 2-36 #b2c3b8,#1d2824, 37-74 #d3b0d9,#1d2824, 75-76 #d3b0d9,#465a43, 77-111 #b2c3b8,#1d2824, 112-149 #d3b0d9,#1d2824, |3: 0-0 d,#608269, 1-1 d,#0d1410, 2-74 #e5eee5,#0d1410, 75-75 #e5eee5,#608269, 76-149 #e5eee5,#0d1410, |4: 0-0 d,#608269, 1-1 d,#0d1410, 2-74 #e5eee5,#0d1410, 75-75 #e5eee5,#608269, 76-149 #e5eee5,#0d1410, |5: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-149 d,#0d1410, @@ -47,15 +47,15 @@ |13: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-149 d,#0d1410, |14: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-149 d,#0d1410, |15: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-149 d,#0d1410, -|16: 0-1 d,#465a43, 2-32 #b2c3b8,#1d2824, 33-42 #d3b0d9,#1d2824, 43-74 #b2c3b8,#1d2824, 75-76 #b2c3b8,#add38a, 77-114 #becfc4,#2c2c0f, 115-122 #ecc8f2,#2c2c0f, 123-149 #becfc4,#2c2c0f, -|17: 0-0 d,#608269, 1-1 d,#0d1410, 2-74 #e5eee5,#0d1410, 75-76 #e5eee5,#2c2c0f, 77-149 #becfc4,#2c2c0f, +|16: 0-1 d,#465a43, 2-36 #b2c3b8,#1d2824, 37-74 #d3b0d9,#1d2824, 75-76 #d3b0d9,#add38a, 77-114 #becfc4,#2c2c0f, 115-122 #ecc8f2,#2c2c0f, 123-149 #becfc4,#2c2c0f, +|17: 0-0 d,#608269, 1-1 d,#0d1410, 2-74 #e5eee5,#0d1410, 75-75 #e5eee5,#152019, 76-78 #e5eee5,#0d1410, 79-81 #59675c,#0d1410, 82-149 #e5eee5,#0d1410, |18: 0-0 d,#608269, 1-1 d,#0d1410, 2-74 #e5eee5,#0d1410, 75-75 #e5eee5,#152019, 76-78 #e5eee5,#0d1410, 79-81 #59675c,#0d1410, 82-149 #e5eee5,#0d1410, |19: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#152019, 76-78 d,#0d1410, 79-81 #59675c,#0d1410, 82-149 #e5eee5,#0d1410, |20: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#152019, 76-78 d,#0d1410, 79-81 #59675c,#0d1410, 82-149 #e5eee5,#0d1410, |21: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#152019, 76-78 d,#0d1410, 79-81 #59675c,#0d1410, 82-149 #e5eee5,#0d1410, |22: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#152019, 76-78 d,#0d1410, 79-81 #59675c,#0d1410, 82-149 #e5eee5,#0d1410, -|23: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#152019, 76-78 d,#0d1410, 79-81 #59675c,#0d1410, 82-149 #e5eee5,#0d1410, -|24: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-76 d,#0d1410, 77-78 d,#0d1410,b 79-81 #616f64,#0d1410,b 82-89 #f5f7ee,#3c614a, 90-149 #f5f7ee,#0d1410, +|23: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#152019, 76-76 d,#0d1410, 77-78 d,#0d1410,b 79-81 #616f64,#0d1410,b 82-89 #f5f7ee,#3c614a, 90-149 #f5f7ee,#0d1410, +|24: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-78 d,#0d1410, 79-81 #59675c,#0d1410, 82-149 #e5eee5,#0d1410, |25: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-78 d,#0d1410, 79-81 #59675c,#0d1410, 82-149 #e5eee5,#0d1410, |26: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#152019, 76-78 d,#0d1410, 79-81 #59675c,#0d1410, 82-149 #e5eee5,#0d1410, |27: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#152019, 76-78 d,#0d1410, 79-81 #59675c,#0d1410, 82-149 #e5eee5,#0d1410, diff --git a/test/snapshots/lookloaded.golden b/test/snapshots/lookloaded.golden index b406d639..05cfe77b 100644 --- a/test/snapshots/lookloaded.golden +++ b/test/snapshots/lookloaded.golden @@ -1,12 +1,12 @@ -== snap file-open grid=100x31 cursor=14,27 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/lookloaded/cwd Term+bash Save M /tmp/pardes-snap/lookloaded/cwd Term+bash Save M -| ode Filter Collapse Del ode Filter Collapse Del +== snap file-open grid=100x31 cursor=14,25 +| Find Grep Newcol Help Exit +| New Term Joincol Delcol New Term Joincol Delcol +| /tmp/pardes-snap/lookloaded/cwd Del Term+bash /tmp/pardes-snap/lookloaded/cwd Del Term+bash | ls ls | big.txt big.txt | | +| | big.txt:40 big.txt:10 | | @@ -15,13 +15,11 @@ | | | -| /tmp/pardes-snap/lookloaded/cwd Term+bash Save M -| ode Filter Collapse Del +| /tmp/pardes-snap/lookloaded/cwd Del Term+bash | ls | big.txt | -| /tmp/pardes-snap/lookloaded/cwd/big.txt Save Ter -| m Collapse Follow Del +| /tmp/pardes-snap/lookloaded/cwd/big.txt Del | 36 line 36 | 37 line 37 | 38 line 38 @@ -29,14 +27,26 @@ | 40 line 40 | 41 line 41 | 42 line 42 +| 43 line 43 +| 44 line 44 | · @p1 a copy of the terminal's text: Tab or B2 runs it; what the program dr… 1 message · SPC h m -== snap removed grid=100x31 cursor=54,8 -|6: rm big.txt; echo GO''NE -|7: GONE -|21: */tmp/pardes-snap/lookloaded/cwd/big.txt Save Ter +== snap removed grid=100x31 cursor=54,7 +|5: rm big.txt; echo GO''NE +|6: GONE +|20: */tmp/pardes-snap/lookloaded/cwd/big.txt Save Del +|21: +|22: 36 line 36 +|23: 37 line 37 +|24: 38 line 38 +|25: 39 line 39 +|26: 40 line 40 +|27: 41 line 41 +|28: 42 line 42 +|29: 43 line 43 |30: · …ardes-snap/lookloaded/cwd/big.txt deleted on disk (Save writes it again) 2 messages · SPC h m == snap look-noFS grid=100x31 cursor=14,26 |8: big.txt:40 big.txt:10 big.txt:10 +|22: 6 line 6 |23: 7 line 7 |24: 8 line 8 |25: 9 line 9 diff --git a/test/snapshots/lookpanes.golden b/test/snapshots/lookpanes.golden index 23cdc26a..8d2594a6 100644 --- a/test/snapshots/lookpanes.golden +++ b/test/snapshots/lookpanes.golden @@ -1,12 +1,11 @@ -== snap shells grid=130x51 cursor=122,4 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/lookpanes/cwd/beta/bmark.txt Keep Save Term Co /tmp/pardes-snap/lookpanes/cwd Term+bash Save Mode Filter Colla -| llapse Follow Del pse Del +== snap shells grid=130x51 cursor=122,3 +| Find Grep Newcol Help Exit +| New Term Joincol Delcol New Term Joincol Delcol +| /tmp/pardes-snap/lookpanes/cwd/beta/bmark.txt Keep Del /tmp/pardes-snap/lookpanes/cwd Del Term+bash | 1 both.txt ls zqonly.txt pick.txt twin.txt | 2 b-marker alpha beta zzboot.txt | -| /tmp/pardes-snap/lookpanes/cwd/alpha/ Get Term Collapse Del +| /tmp/pardes-snap/lookpanes/cwd/alpha/ Get Del | 1 amark.txt pick.txt zqonly.txt | 2 both.txt twin.txt | ~ @@ -49,36 +48,35 @@ | | | +| | · @p2 a copy of the terminal's text: Tab or B2 runs it; what the program draws next replaces it (Ctrl-b t… 1 message · SPC h m -== snap other-dir grid=130x51 cursor=7,29 -|27: ‹@p2 › /tmp/pardes-snap/lookpanes/cwd/alpha/zqonly.txt Keep Sav -|28: e Term Collapse Follow Del -|29: 1 ONLY-IN-ALPHA +== snap other-dir grid=130x51 cursor=7,28 +|26: ‹@p2 › /tmp/pardes-snap/lookpanes/cwd/alpha/zqonly.txt Keep Del +|28: 1 ONLY-IN-ALPHA == snap clicked-wins grid=130x51 cursor=7,4 -|2: bmark.txt:1 › /tmp/pardes-snap/lookpanes/cwd/beta/both.txt Keep /tmp/pardes-snap/lookpanes/cwd Term+bash Save Mode Filter Colla -|3: Save Term Collapse Follow Del pse Del -|4: 1 BOTH-FROM-BETA ls zqonly.txt pick.txt twin.txt -|5: alpha beta zzboot.txt -== snap mru-alpha grid=130x51 cursor=7,29 -|27: ‹@p2 › zqonly.txt:1 › /tmp/pardes-snap/lookpanes/cwd/alpha/pick -|28: .txt Keep Save Term Collapse Follow Del -|29: 1 PICK-FROM-ALPHA -== snap mru-beta grid=130x51 cursor=7,29 -|27: ‹@p2 › zqonly.txt:1 › pick.txt:1 › /tmp/pardes-snap/lookpanes/c -|28: wd/beta/twin.txt Keep Save Term Collapse Follow Del -|29: 1 TWIN-FROM-BETA +|2: bmark.txt:1 › /tmp/pardes-snap/lookpanes/cwd/beta/both.txt Keep /tmp/pardes-snap/lookpanes/cwd Del Term+bash +|3: Del ls zqonly.txt pick.txt twin.txt +|4: 1 BOTH-FROM-BETA alpha beta zzboot.txt +== snap mru-alpha grid=130x51 cursor=7,28 +|26: ‹@p2 › zqonly.txt:1 › /tmp/pardes-snap/lookpanes/cwd/alpha/pick +|27: .txt Keep Del +|28: 1 PICK-FROM-ALPHA +== snap mru-beta grid=130x51 cursor=7,28 +|26: ‹@p2 › +1 › pick.txt:1 › /tmp/pardes-snap/lookpanes/cwd/beta/tw +|27: in.txt Keep Del +|28: 1 TWIN-FROM-BETA == style mru-beta grid=130x51 -|0: 0-1 d,#1d2824, 2-129 #b2c3b8,#1d2824, +|0: 0-101 d,#1d2824, 102-129 #b2c3b8,#1d2824, |1: 0-1 d,#504733, 2-64 #becfc4,#314738, 65-66 #becfc4,#504733, 67-129 #b2c3b8,#1d2824, -|2: 0-1 d,#465a43, 2-51 #b2c3b8,#2c2c0f, 52-60 #d3b0d9,#2c2c0f, 61-64 #b2c3b8,#2c2c0f, 65-66 #b2c3b8,#465a43, 67-97 #b2c3b8,#1d2824, 98-107 #d3b0d9,#1d2824, 108-129 #b2c3b8,#1d2824, -|3: 0-2 d,#2c2c0f, 3-64 #b2c3b8,#2c2c0f, 65-129 #b2c3b8,#1d2824, +|2: 0-1 d,#465a43, 2-51 #b2c3b8,#2c2c0f, 52-60 #d3b0d9,#2c2c0f, 61-64 #b2c3b8,#2c2c0f, 65-66 #b2c3b8,#465a43, 67-101 #b2c3b8,#1d2824, 102-129 #d3b0d9,#1d2824, +|3: 0-2 d,#2c2c0f, 3-64 #b2c3b8,#2c2c0f, 65-65 #b2c3b8,#608269, 66-66 #b2c3b8,#0d1410, 67-129 #e5eee5,#0d1410, |4: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-64 #e5eee5,#0d1410, 65-65 #e5eee5,#608269, 66-129 #e5eee5,#0d1410, -|5: 0-0 d,#608269, 1-64 d,#0d1410, 65-65 d,#608269, 66-66 d,#0d1410, 67-129 #e5eee5,#0d1410, -|6: 0-0 d,#608269, 1-64 d,#0d1410, 65-65 d,#608269, 66-129 d,#0d1410, -|7: 0-0 d,#608269, 1-64 d,#0d1410, 65-66 d,#465a43, 67-129 #b2c3b8,#1d2824, +|5: 0-0 d,#608269, 1-64 d,#0d1410, 65-65 d,#608269, 66-129 d,#0d1410, +|6: 0-0 d,#608269, 1-64 d,#0d1410, 65-66 d,#465a43, 67-129 #b2c3b8,#1d2824, +|7: 0-0 d,#608269, 1-64 d,#0d1410, 65-65 d,#608269, 66-69 d,#0d1410, 70-71 #59675c,#0d1410, 72-129 #e5eee5,#0d1410, |8: 0-0 d,#608269, 1-64 d,#0d1410, 65-65 d,#608269, 66-69 d,#0d1410, 70-71 #59675c,#0d1410, 72-129 #e5eee5,#0d1410, -|9: 0-0 d,#608269, 1-64 d,#0d1410, 65-65 d,#608269, 66-69 d,#0d1410, 70-71 #59675c,#0d1410, 72-129 #e5eee5,#0d1410, -|10: 0-0 d,#608269, 1-64 d,#0d1410, 65-65 d,#608269, 66-69 d,#0d1410, 70-129 #59675c,#0d1410, +|9: 0-0 d,#608269, 1-64 d,#0d1410, 65-65 d,#608269, 66-69 d,#0d1410, 70-129 #59675c,#0d1410, +|10: 0-0 d,#608269, 1-64 d,#0d1410, 65-65 d,#608269, 66-129 d,#0d1410, |11: 0-0 d,#608269, 1-64 d,#0d1410, 65-65 d,#608269, 66-129 d,#0d1410, |12: 0-0 d,#608269, 1-64 d,#0d1410, 65-65 d,#608269, 66-129 d,#0d1410, |13: 0-0 d,#608269, 1-64 d,#0d1410, 65-65 d,#608269, 66-129 d,#0d1410, @@ -94,10 +92,10 @@ |23: 0-0 d,#608269, 1-64 d,#0d1410, 65-65 d,#608269, 66-129 d,#0d1410, |24: 0-0 d,#608269, 1-64 d,#0d1410, 65-65 d,#608269, 66-129 d,#0d1410, |25: 0-0 d,#608269, 1-64 d,#0d1410, 65-65 d,#608269, 66-129 d,#0d1410, -|26: 0-0 d,#608269, 1-64 d,#0d1410, 65-65 d,#608269, 66-129 d,#0d1410, -|27: 0-1 d,#add38a, 2-64 #becfc4,#2c2c0f, 65-65 #becfc4,#608269, 66-129 #becfc4,#0d1410, -|28: 0-1 d,#2c2c0f, 2-9 #becfc4,#2c2c0f, 10-18 #ecc8f2,#2c2c0f, 19-64 #becfc4,#2c2c0f, 65-65 #becfc4,#608269, 66-129 #becfc4,#0d1410, -|29: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-64 #e5eee5,#0d1410, 65-65 #e5eee5,#608269, 66-129 #e5eee5,#0d1410, +|26: 0-1 d,#add38a, 2-8 #becfc4,#2c2c0f, 9-11 #79836f,#2c2c0f, 12-62 #becfc4,#2c2c0f, 63-64 #ecc8f2,#2c2c0f, 65-65 #ecc8f2,#608269, 66-129 #ecc8f2,#0d1410, +|27: 0-1 d,#2c2c0f, 2-8 #ecc8f2,#2c2c0f, 9-64 #becfc4,#2c2c0f, 65-65 #becfc4,#608269, 66-129 #becfc4,#0d1410, +|28: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-64 #e5eee5,#0d1410, 65-65 #e5eee5,#608269, 66-129 #e5eee5,#0d1410, +|29: 0-0 d,#608269, 1-64 d,#0d1410, 65-65 d,#608269, 66-129 d,#0d1410, |30: 0-0 d,#608269, 1-64 d,#0d1410, 65-65 d,#608269, 66-129 d,#0d1410, |31: 0-0 d,#608269, 1-64 d,#0d1410, 65-65 d,#608269, 66-129 d,#0d1410, |32: 0-0 d,#608269, 1-64 d,#0d1410, 65-65 d,#608269, 66-129 d,#0d1410, diff --git a/test/snapshots/lookrange.golden b/test/snapshots/lookrange.golden index a63f027d..faaff3cc 100644 --- a/test/snapshots/lookrange.golden +++ b/test/snapshots/lookrange.golden @@ -1,7 +1,6 @@ -== snap opened grid=150x31 cursor=7,3 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/lookrange/cwd/look.txt Save Term Collapse Follow Del +== snap opened grid=150x31 cursor=7,2 +| New Term Find Grep Newcol Help Exit +| /tmp/pardes-snap/lookrange/cwd/look.txt Del | 1 r.txt:3-5 | 2 r.txt:7:4-9 | 3 r.txt:3:2-5:3 @@ -29,37 +28,38 @@ | | | +| | /tmp/pardes-snap/lookrange/cwd/look.txt:1 -== snap wholelines grid=150x31 cursor=11,12 -|7: /tmp/pardes-snap/lookrange/cwd/r.txt Save Term Collapse Follow Del -|8: 1 aaaa -|9: 2 bbbb -|10: 3 cccc dccc -|11: 4 dddd -|12: 5 eeee -|13: 6 ffff -|14: 7 gg NEEDLE gg -|15: 8 hhhh NEEDLE -|16: 9 iiii +== snap wholelines grid=150x31 cursor=11,11 +|6: /tmp/pardes-snap/lookrange/cwd/r.txt Del +|7: 1 aaaa +|8: 2 bbbb +|9: 3 cccc dccc +|10: 4 dddd +|11: 5 eeee +|12: 6 ffff +|13: 7 gg NEEDLE gg +|14: 8 hhhh NEEDLE +|15: 9 iiii |30: /tmp/pardes-snap/lookrange/cwd/r.txt:5 == style wholelines grid=150x31 |0: 0-1 d,#1d2824, 2-149 #b2c3b8,#1d2824, -|1: 0-1 d,#504733, 2-149 #becfc4,#314738, -|2: 0-1 d,#465a43, 2-32 #b2c3b8,#1d2824, 33-41 #d3b0d9,#1d2824, 42-149 #b2c3b8,#1d2824, +|1: 0-1 d,#465a43, 2-32 #b2c3b8,#1d2824, 33-41 #d3b0d9,#1d2824, 42-149 #b2c3b8,#1d2824, +|2: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-149 #e5eee5,#0d1410, |3: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-149 #e5eee5,#0d1410, |4: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-149 #e5eee5,#0d1410, |5: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-149 #e5eee5,#0d1410, -|6: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-149 #e5eee5,#0d1410, -|7: 0-1 d,#add38a, 2-32 #becfc4,#314738, 33-38 #ecc8f2,#314738, 39-149 #becfc4,#314738, +|6: 0-1 d,#add38a, 2-32 #becfc4,#314738, 33-38 #ecc8f2,#314738, 39-149 #becfc4,#314738, +|7: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-149 #e5eee5,#0d1410, |8: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-149 #e5eee5,#0d1410, -|9: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-149 #e5eee5,#0d1410, +|9: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-149 #f5f7ee,#3c614a, |10: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-149 #f5f7ee,#3c614a, -|11: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-149 #f5f7ee,#3c614a, -|12: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-11 #f5f7ee,#3c614a, 12-149 #f5f7ee,#0d1410, +|11: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-11 #f5f7ee,#3c614a, 12-149 #f5f7ee,#0d1410, +|12: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-149 #e5eee5,#0d1410, |13: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-149 #e5eee5,#0d1410, |14: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-149 #e5eee5,#0d1410, |15: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-149 #e5eee5,#0d1410, -|16: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-149 #e5eee5,#0d1410, +|16: 0-0 d,#608269, 1-149 d,#0d1410, |17: 0-0 d,#608269, 1-149 d,#0d1410, |18: 0-0 d,#608269, 1-149 d,#0d1410, |19: 0-0 d,#608269, 1-149 d,#0d1410, @@ -74,53 +74,53 @@ |28: 0-0 d,#608269, 1-149 d,#0d1410, |29: 0-0 d,#608269, 1-149 d,#0d1410, |30: 0-1 d,#1d2824, 2-149 #b2c3b8,#1d2824, -== snap onelinespan grid=150x31 cursor=15,14 +== snap onelinespan grid=150x31 cursor=15,13 |30: /tmp/pardes-snap/lookrange/cwd/r.txt:7 == style onelinespan grid=150x31 +|9: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-149 #e5eee5,#0d1410, |10: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-149 #e5eee5,#0d1410, |11: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-149 #e5eee5,#0d1410, -|12: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-149 #e5eee5,#0d1410, -|14: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-9 #e5eee5,#0d1410, 10-15 #f5f7ee,#3c614a, 16-16 #f5f7ee,#0d1410, 17-149 #e5eee5,#0d1410, -== snap fullspan grid=150x31 cursor=9,12 +|13: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-9 #e5eee5,#0d1410, 10-15 #f5f7ee,#3c614a, 16-16 #f5f7ee,#0d1410, 17-149 #e5eee5,#0d1410, +== snap fullspan grid=150x31 cursor=9,11 |30: /tmp/pardes-snap/lookrange/cwd/r.txt:5 == style fullspan grid=150x31 -|10: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-7 #e5eee5,#0d1410, 8-149 #f5f7ee,#3c614a, -|11: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-149 #f5f7ee,#3c614a, -|12: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-9 #f5f7ee,#3c614a, 10-149 #e5eee5,#0d1410, -|14: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-149 #e5eee5,#0d1410, -== snap stale grid=150x31 cursor=10,16 +|9: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-7 #e5eee5,#0d1410, 8-149 #f5f7ee,#3c614a, +|10: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-149 #f5f7ee,#3c614a, +|11: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-9 #f5f7ee,#3c614a, 10-149 #e5eee5,#0d1410, +|13: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-149 #e5eee5,#0d1410, +== snap stale grid=150x31 cursor=10,15 |30: /tmp/pardes-snap/lookrange/cwd/r.txt:9 == style stale grid=150x31 +|9: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-149 #e5eee5,#0d1410, |10: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-149 #e5eee5,#0d1410, |11: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-149 #e5eee5,#0d1410, -|12: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-149 #e5eee5,#0d1410, -|15: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-11 #e5eee5,#0d1410, 12-149 #f5f7ee,#3c614a, -|16: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-10 #f5f7ee,#3c614a, 11-149 #f5f7ee,#0d1410, -== snap hit1 grid=150x31 cursor=17,15 -|7: /NEEDLE/ 2/2 › /tmp/pardes-snap/lookrange/cwd/r.txt Save Term Collapse Follow Del +|14: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-11 #e5eee5,#0d1410, 12-149 #f5f7ee,#3c614a, +|15: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-10 #f5f7ee,#3c614a, 11-149 #f5f7ee,#0d1410, +== snap hit1 grid=150x31 cursor=17,14 +|6: /NEEDLE/ 2/2 › /tmp/pardes-snap/lookrange/cwd/r.txt Del |30: /tmp/pardes-snap/lookrange/cwd/r.txt:8 == style hit1 grid=150x31 -|7: 0-1 d,#add38a, 2-13 #bada9d,#314738,u 14-14 #bada9d,#314738, 15-47 #becfc4,#314738, 48-53 #ecc8f2,#314738, 54-149 #becfc4,#314738, -|14: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-9 #e5eee5,#0d1410, 10-15 #e5eee5,#5e4923, 16-149 #e5eee5,#0d1410, -|15: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-11 #e5eee5,#0d1410, 12-17 #0d1410,#917a53, 18-149 #0d1410,#0d1410, -|16: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-149 #e5eee5,#0d1410, +|6: 0-1 d,#add38a, 2-13 #bada9d,#314738,u 14-14 #bada9d,#314738, 15-47 #becfc4,#314738, 48-53 #ecc8f2,#314738, 54-149 #becfc4,#314738, +|13: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-9 #e5eee5,#0d1410, 10-15 #e5eee5,#5e4923, 16-149 #e5eee5,#0d1410, +|14: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-11 #e5eee5,#0d1410, 12-17 #0d1410,#917a53, 18-149 #0d1410,#0d1410, +|15: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-149 #e5eee5,#0d1410, |22: 0-0 d,#5e4923, 1-149 d,#0d1410, -|25: 0-0 d,#e5eee5, 1-149 d,#0d1410, -== snap hit2 grid=150x31 cursor=15,14 -|7: /NEEDLE/ 1/2 ↻ › /tmp/pardes-snap/lookrange/cwd/r.txt Save Term Collapse Follow Del +|24: 0-0 d,#e5eee5, 1-149 d,#0d1410, +== snap hit2 grid=150x31 cursor=15,13 +|6: /NEEDLE/ 1/2 ↻ › /tmp/pardes-snap/lookrange/cwd/r.txt Del |30: · /tmp/pardes-snap/lookrange/cwd/r.txt /NEEDLE/ 1/2 ↻ · line 7 1 message · SPC h m == style hit2 grid=150x31 -|7: 0-1 d,#add38a, 2-15 #bada9d,#314738,u 16-16 #bada9d,#314738, 17-49 #becfc4,#314738, 50-55 #ecc8f2,#314738, 56-149 #becfc4,#314738, -|14: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-9 #e5eee5,#0d1410, 10-15 #0d1410,#917a53, 16-16 #0d1410,#0d1410, 17-149 #e5eee5,#0d1410, -|15: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-11 #e5eee5,#0d1410, 12-17 #e5eee5,#5e4923, 18-149 #e5eee5,#0d1410, +|6: 0-1 d,#add38a, 2-15 #bada9d,#314738,u 16-16 #bada9d,#314738, 17-49 #becfc4,#314738, 50-55 #ecc8f2,#314738, 56-149 #becfc4,#314738, +|13: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-9 #e5eee5,#0d1410, 10-15 #0d1410,#917a53, 16-16 #0d1410,#0d1410, 17-149 #e5eee5,#0d1410, +|14: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-11 #e5eee5,#0d1410, 12-17 #e5eee5,#5e4923, 18-149 #e5eee5,#0d1410, |22: 0-0 d,#e5eee5, 1-149 d,#0d1410, -|25: 0-0 d,#5e4923, 1-149 d,#0d1410, +|24: 0-0 d,#5e4923, 1-149 d,#0d1410, |30: 0-1 d,#1d2824, 2-149 #6f7d75,#1d2824, -== snap back grid=150x31 cursor=17,15 -|7: /NEEDLE/ 2/2 ↻ › /tmp/pardes-snap/lookrange/cwd/r.txt Save Term Collapse Follow Del +== snap back grid=150x31 cursor=17,14 +|6: /NEEDLE/ 2/2 ↻ › /tmp/pardes-snap/lookrange/cwd/r.txt Del |30: · /tmp/pardes-snap/lookrange/cwd/r.txt /NEEDLE/ 2/2 ↻ · line 8 2 messages · SPC h m == style back grid=150x31 -|14: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-9 #e5eee5,#0d1410, 10-15 #e5eee5,#5e4923, 16-149 #e5eee5,#0d1410, -|15: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-11 #e5eee5,#0d1410, 12-17 #0d1410,#917a53, 18-149 #0d1410,#0d1410, +|13: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-9 #e5eee5,#0d1410, 10-15 #e5eee5,#5e4923, 16-149 #e5eee5,#0d1410, +|14: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-11 #e5eee5,#0d1410, 12-17 #0d1410,#917a53, 18-149 #0d1410,#0d1410, |22: 0-0 d,#5e4923, 1-149 d,#0d1410, -|25: 0-0 d,#e5eee5, 1-149 d,#0d1410, +|24: 0-0 d,#e5eee5, 1-149 d,#0d1410, diff --git a/test/snapshots/lsp-client-edit.golden b/test/snapshots/lsp-client-edit.golden index 64891d59..7943c40e 100644 --- a/test/snapshots/lsp-client-edit.golden +++ b/test/snapshots/lsp-client-edit.golden @@ -1,7 +1,6 @@ -== snap formatted grid=100x25 cursor=7,4 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -| */tmp/pardes-snap/lsp-client-edit/cwd/main.rs Save Term Collapse Follow TreeContext Def Refs Del +== snap formatted grid=100x25 cursor=7,3 +| New Term Find Grep Newcol Help Exit ⋯ lsp rust-analyzer: ready +| */tmp/pardes-snap/lsp-client-edit/cwd/main.rs Save Undo Del | 1 // formatted by mock | 2 mod lib; | 3 @@ -23,24 +22,25 @@ | | | +| | · /tmp/pardes-snap/lsp-client-edit/cwd/main.rs formatted 1 range(s) 1 message · SPC h m -== snap unformatted grid=100x25 cursor=7,3 -|2: /tmp/pardes-snap/lsp-client-edit/cwd/main.rs Save Term Collapse Follow TreeContext Def Refs Del -|3: 1 mod lib; -|4: 2 -|5: 3 fn main() { -|6: 4 let x = add(1, 2); -|7: 5 let y = add(3, 4); -|8: 6 let _ = x + y; -|9: 7 } -|10: ~ -|11: +== snap unformatted grid=100x25 cursor=7,2 +|1: /tmp/pardes-snap/lsp-client-edit/cwd/main.rs Redo Del +|2: 1 mod lib; +|3: 2 +|4: 3 fn main() { +|5: 4 let x = add(1, 2); +|6: 5 let y = add(3, 4); +|7: 6 let _ = x + y; +|8: 7 } +|9: ~ +|10: == snap renamed grid=100x25 cursor=12,5 -|2: */tmp/pardes-snap/lsp-client-edit/cwd/main.rs Save Term Collapse Follow TreeContext Def Refs Del -|6: 4 let x = sum(1, 2); -|7: 5 let y = sum(3, 4); +|1: */tmp/pardes-snap/lsp-client-edit/cwd/main.rs Save Undo Del +|5: 4 let x = sum(1, 2); +|6: 5 let y = sum(3, 4); |24: · /tmp/pardes-snap/lsp-client-edit/cwd/main.rs renamed 2 range(s) 3 messages · SPC h m == snap unrenamed grid=100x25 cursor=12,5 -|2: /tmp/pardes-snap/lsp-client-edit/cwd/main.rs Save Term Collapse Follow TreeContext Def Refs Del -|6: 4 let x = add(1, 2); -|7: 5 let y = add(3, 4); +|1: /tmp/pardes-snap/lsp-client-edit/cwd/main.rs Redo Del +|5: 4 let x = add(1, 2); +|6: 5 let y = add(3, 4); diff --git a/test/snapshots/lsp-client.golden b/test/snapshots/lsp-client.golden index 26a7289e..59186c0b 100644 --- a/test/snapshots/lsp-client.golden +++ b/test/snapshots/lsp-client.golden @@ -1,8 +1,6 @@ -== snap gd-jumped grid=100x25 cursor=16,5 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -| main.rs:3 › /tmp/pardes-snap/lsp-client/cwd/lib.rs Keep Save Term Collapse Follow TreeContext Def -| Refs Del +== snap gd-jumped grid=100x25 cursor=16,3 +| New Term Find Grep Newcol Help Exit ⋯ lsp rust-analyzer: ready +| main.rs:3 › /tmp/pardes-snap/lsp-client/cwd/lib.rs Keep Del | 1 // mock fixture | 2 pub fn add(a: i32, b: i32) -> i32 { | 3 a + b @@ -23,29 +21,31 @@ | | | +| +| | /tmp/pardes-snap/lsp-client/cwd/lib.rs:2 -== snap gr-list grid=100x25 cursor=2,9 -|6: +Search 1/3 Del -|7: Refs -|8: lib.rs -|9: lib.rs:2:8 pub fn add(a: i32, b: i32) -> i32 { -|10: main.rs -|11: main.rs:4:13 let x = add(1, 2); -|12: main.rs:5:13 let y = add(3, 4); +== snap gr-list grid=100x25 cursor=2,8 +|5: +Search 1/3 Del +|6: Refs +|7: lib.rs +|8: lib.rs:2:8 pub fn add(a: i32, b: i32) -> i32 { +|9: main.rs +|10: main.rs:4:13 let x = add(1, 2); +|11: main.rs:5:13 let y = add(3, 4); |15: /tmp/pardes-snap/lsp-client/cwd/+Preview Del |16: 1 |24: /tmp/pardes-snap/lsp-client/cwd/+Search:3 -== snap gr-opened grid=100x25 cursor=21,20 -|6: +Search 2/3 Save Undock Del -|15: ‹@p3 › /tmp/pardes-snap/lsp-client/cwd/main.rs Keep Save Term Collapse Follow TreeContext Def Refs -|16: Del -|17: 1 mod lib; -|18: 2 -|19: 3 fn main() { -|20: 4 let x = add(1, 2); -|21: 5 let y = add(3, 4); -|22: 6 let _ = x + y; -|23: 7 } +== snap gr-opened grid=100x25 cursor=21,19 +|5: +Search 2/3 Save Undock Del +|15: ‹@p3 › /tmp/pardes-snap/lsp-client/cwd/main.rs Keep Del +|16: 1 mod lib; +|17: 2 +|18: 3 fn main() { +|19: 4 let x = add(1, 2); +|20: 5 let y = add(3, 4); +|21: 6 let _ = x + y; +|22: 7 } +|23: ~ |24: /tmp/pardes-snap/lsp-client/cwd/main.rs:4 -== snap gr-back grid=100x25 cursor=21,21 +== snap gr-back grid=100x25 cursor=21,20 |24: /tmp/pardes-snap/lsp-client/cwd/main.rs:5 diff --git a/test/snapshots/lsp-rename-files.golden b/test/snapshots/lsp-rename-files.golden index 95b1ca1e..034ec2c4 100644 --- a/test/snapshots/lsp-rename-files.golden +++ b/test/snapshots/lsp-rename-files.golden @@ -1,12 +1,11 @@ -== snap opened grid=100x25 cursor=7,8 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/lsp-rename-files/cwd/lib.rs Save Term Collapse Follow TreeContext Def Refs Del +== snap opened grid=100x25 cursor=7,7 +| New Term Find Grep Newcol Help Exit +| /tmp/pardes-snap/lsp-rename-files/cwd/lib.rs Del | 1 // main.rs | 2 pub fn add(a: i32, b: i32) -> i32 { | 3 a + b | 4 } -| /tmp/pardes-snap/lsp-rename-files/cwd/main.rs Save Term Collapse Follow TreeContext Def Refs Del +| /tmp/pardes-snap/lsp-rename-files/cwd/main.rs Del | 1 mod lib; | 2 | 3 fn main() { @@ -23,14 +22,16 @@ | | | +| | /tmp/pardes-snap/lsp-rename-files/cwd/main.rs:1 -== snap previewed grid=100x25 cursor=14,4 -|15: /tmp/pardes-snap/lsp-rename-files/cwd/+Search Save Term Collapse Follow LocationsConfig Del -|16: 1 lib.rs:2:8-10 -|17: 2 sum -|18: 3 main.rs:4:13-15 -|19: 4 sum -|20: 5 main.rs:5:13-15 -|21: 6 sum -|22: ~ +== snap previewed grid=100x25 cursor=14,3 +|0: New Term Find Grep Newcol Help Exit ⋯ lsp rust-analyzer: ready +|14: /tmp/pardes-snap/lsp-rename-files/cwd/+Search Del +|15: 1 lib.rs:2:8-10 +|16: 2 sum +|17: 3 main.rs:4:13-15 +|18: 4 sum +|19: 5 main.rs:5:13-15 +|20: 6 sum +|21: ~ |24: · …-files/cwd/lib.rs Rename: 3 edit(s) across files, previewed, not applied 2 messages · SPC h m diff --git a/test/snapshots/lsp-rename.golden b/test/snapshots/lsp-rename.golden index b772114c..c64ba29c 100644 --- a/test/snapshots/lsp-rename.golden +++ b/test/snapshots/lsp-rename.golden @@ -1,7 +1,6 @@ -== snap renamed grid=110x25 cursor=17,10 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -| */tmp/pardes-snap/lsp-rename/cwd/rename.zig Save Term Collapse Follow TreeContext Def Refs Del +== snap renamed grid=110x25 cursor=17,9 +| New Term Find Grep Newcol Help Exit ⋯ lsp zls ready — /tmp/pardes-snap/lsp-rename/cwd +| */tmp/pardes-snap/lsp-rename/cwd/rename.zig Save Undo Del | 1 const std = @import("std"); | 2 | 3 fn renamed_helper(x: u32) u32 { @@ -23,12 +22,13 @@ | | | +| | · /tmp/pardes-snap/lsp-rename/cwd/rename.zig renamed 2 range(s) 2 messages · SPC h m -== snap undone grid=110x25 cursor=17,10 -|2: /tmp/pardes-snap/lsp-rename/cwd/rename.zig Save Term Collapse Follow TreeContext Def Refs Del -|5: 3 fn helper(x: u32) u32 { -|10: 8 _ = helper(41); -== snap redone grid=110x25 cursor=17,10 -|2: */tmp/pardes-snap/lsp-rename/cwd/rename.zig Save Term Collapse Follow TreeContext Def Refs Del -|5: 3 fn renamed_helper(x: u32) u32 { -|10: 8 _ = renamed_helper(41); +== snap undone grid=110x25 cursor=17,9 +|1: /tmp/pardes-snap/lsp-rename/cwd/rename.zig Redo Del +|4: 3 fn helper(x: u32) u32 { +|9: 8 _ = helper(41); +== snap redone grid=110x25 cursor=17,9 +|1: */tmp/pardes-snap/lsp-rename/cwd/rename.zig Save Undo Del +|4: 3 fn renamed_helper(x: u32) u32 { +|9: 8 _ = renamed_helper(41); diff --git a/test/snapshots/lsp.golden b/test/snapshots/lsp.golden index c680700d..ba9eb781 100644 --- a/test/snapshots/lsp.golden +++ b/test/snapshots/lsp.golden @@ -1,7 +1,6 @@ -== snap opened grid=120x41 cursor=7,3 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/lsp/cwd/a.zig Keep Save Term Collapse Follow TreeContext Def Refs Del +== snap opened grid=120x41 cursor=7,2 +| New Term Find Grep Newcol Help Exit +| /tmp/pardes-snap/lsp/cwd/a.zig Keep Del | 1 const std = @import("std"); | 2 | 3 fn helper(x: u32) u32 { @@ -39,48 +38,50 @@ | | | +| | /tmp/pardes-snap/lsp/cwd/a.zig:1 -== snap cursor grid=120x41 cursor=17,10 +== snap cursor grid=120x41 cursor=17,9 |40: /tmp/pardes-snap/lsp/cwd/a.zig:8 -== snap definition grid=120x41 cursor=15,5 -|2: a.zig:8 › /tmp/pardes-snap/lsp/cwd/a.zig Keep Save Term Collapse Follow TreeContext Def Refs Del +== snap definition grid=120x41 cursor=15,4 +|0: New Term Find Grep Newcol Help Exit ⋯ lsp zls ready — /tmp/pardes-snap/lsp/cwd +|1: a.zig:8 › /tmp/pardes-snap/lsp/cwd/a.zig Keep Del |40: /tmp/pardes-snap/lsp/cwd/a.zig:3 -== snap hover grid=120x41 cursor=15,5 -|6: fn helper(x: u32) u32 -|7: (fn (u32) u32) -|8: 4 return x + 1; -|9: 5 } -|10: 6 -|11: 7 pub fn main() void { -|12: 8 _ = helper(41); -|13: 9 } -|14: ~ +== snap hover grid=120x41 cursor=15,4 +|5: fn helper(x: u32) u32 +|6: (fn (u32) u32) +|7: 4 return x + 1; +|8: 5 } +|9: 6 +|10: 7 pub fn main() void { +|11: 8 _ = helper(41); +|12: 9 } +|13: ~ |40: ✓ /tmp/pardes-snap/lsp/cwd/a.zig Hover 1 message · SPC h m -== snap symbols grid=120x41 cursor=24,2 -|2: ^ a.zig:8 › ␣ l Symbols 1/3 -|3: │ │ Walk Look Split Newcol Grep Edit Copy Keep Drop | Find Grep Recent Panes Symbols All Jumplist -|4: │ │ ▶ a.zig:1:7-9 std -|5: │ │ a.zig:3:4-9 helper -|6: │ │ a.zig:7:8-11 main -|7: │ │ -|8: 1▸const std = @import("std"); -|9: 2 -|10: 3 fn helper(x: u32) u32 { -|11: fn helper(x: u32) u32 -|12: (fn (u32) u32) -|13: 4 return x + 1; -|14: 5 } -|15: 6 -|16: 7 pub fn main() void { -|17: 8 _ = helper(41); -|18: 9 } -|19: ~ +== snap symbols grid=120x41 cursor=24,1 +|1: ^ a.zig:8 › ␣ l Symbols 1/3 +|2: │ │ Walk Look Split Newcol Grep Edit Copy Keep Drop | Find Grep Recent Panes Symbols All Jumplist +|3: │ │ ▶ a.zig:3:4-9 f helper +|4: │ │ a.zig:7:8-11 f main +|5: │ │ a.zig:1:7-9 c std +|6: │ │ +|7: 1 const std = @import("std"); +|8: 2 +|9: 3▸fn helper(x: u32) u32 { +|10: fn helper(x: u32) u32 +|11: (fn (u32) u32) +|12: 4 return x + 1; +|13: 5 } +|14: 6 +|15: 7 pub fn main() void { +|16: 8 _ = helper(41); +|17: 9 } +|18: ~ |40: ⏎ lands here · its text is the preview · S-⏎ a new pane 2 messages · SPC h m -== snap step grid=120x41 cursor=27,2 -|2: ^ a.zig:8 › ␣ l Symbols jn 0 -|4: │ │ nothing matches +== snap step grid=120x41 cursor=27,1 +|1: ^ a.zig:8 › ␣ l Symbols jn 0 +|3: │ │ nothing matches +|4: │ │ |5: │ │ -|6: │ │ -|8: 1 const std = @import("std"); -== snap nothing grid=120x41 cursor=29,2 -|2: ^ a.zig:8 › ␣ l Symbols jngd 0 +|9: 3 fn helper(x: u32) u32 { +== snap nothing grid=120x41 cursor=29,1 +|1: ^ a.zig:8 › ␣ l Symbols jngd 0 diff --git a/test/snapshots/lspcomplete.golden b/test/snapshots/lspcomplete.golden index da700171..888d7d51 100644 --- a/test/snapshots/lspcomplete.golden +++ b/test/snapshots/lspcomplete.golden @@ -1,7 +1,6 @@ -== snap opened grid=120x41 cursor=7,3 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/lspcomplete/cwd/a.zig Keep Save Term Collapse Follow TreeContext Def Refs Del +== snap opened grid=120x41 cursor=7,2 +| New Term Find Grep Newcol Help Exit +| /tmp/pardes-snap/lspcomplete/cwd/a.zig Keep Del | 1 const Shade = enum { | 2 verdigris, | 3 cinnabar, @@ -39,29 +38,30 @@ | | | +| | /tmp/pardes-snap/lspcomplete/cwd/a.zig:1 -== snap indent grid=120x41 cursor=11,12 -|2: ^*/tmp/pardes-snap/lspcomplete/cwd/a.zig Save Term Collapse Follow TreeContext Def Refs Del -|12: 10 } +== snap indent grid=120x41 cursor=11,11 +|1: ^*/tmp/pardes-snap/lspcomplete/cwd/a.zig Save Undo Del +|11: 10 } |40: /tmp/pardes-snap/lspcomplete/cwd/a.zig:10 -== snap commentindent grid=120x41 cursor=19,14 -|14: 12 // note. see below +== snap commentindent grid=120x41 cursor=19,13 +|0: New Term Find Grep Newcol Help Exit ⋯ lsp zls ready — /tmp/pardes-snap/lspcomplete/cwd +|13: 12 // note. see below |40: /tmp/pardes-snap/lspcomplete/cwd/a.zig:12 -== snap athedot grid=120x41 cursor=16,10 -|10: 8 . +== snap athedot grid=120x41 cursor=16,9 +|9: 8 . |40: /tmp/pardes-snap/lspcomplete/cwd/a.zig:8 -== snap completion grid=120x41 cursor=16,10 -|15: /tmp/pardes-snap/lspcomplete/cwd/+Search Save Term Collapse Follow Del -|16: 1 a.zig:8:10 verdigris -|17: 2 a.zig:8:10 cinnabar -|18: ~ -== snap refill grid=120x41 cursor=16,10 -== snap step grid=120x41 cursor=16,10 -|2: */tmp/pardes-snap/lspcomplete/cwd/a.zig Save Term Collapse Follow TreeContext Def Refs Del -== snap txtindent grid=120x41 cursor=15,3 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -|^*/tmp/pardes-snap/lspcomplete/cwd/notes.txt Save Term Collapse Follow Del +== snap completion grid=120x41 cursor=16,9 +|14: /tmp/pardes-snap/lspcomplete/cwd/+Search Del +|15: 1 a.zig:8:10 verdigris +|16: 2 a.zig:8:10 cinnabar +|17: ~ +== snap refill grid=120x41 cursor=16,9 +== snap step grid=120x41 cursor=16,9 +|1: */tmp/pardes-snap/lspcomplete/cwd/a.zig Save Undo Del +== snap txtindent grid=120x41 cursor=15,2 +| New Term Find Grep Newcol Help Exit +|^*/tmp/pardes-snap/lspcomplete/cwd/notes.txt Save Undo Del | 1 abc. def ghi | ~ | @@ -99,11 +99,11 @@ | | | +| | /tmp/pardes-snap/lspcomplete/cwd/notes.txt:1 -== snap nosemi grid=100x19 cursor=29,9 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -|^*/tmp/pardes-snap/lspcomplete/cwd/c.zig Save Term Collapse Follow TreeContext Def Refs Del +== snap nosemi grid=100x19 cursor=29,8 +| New Term Find Grep Newcol Help Exit ⋯ lsp zls ready — /tmp/pardes-snap/lspcomplete/cwd +|^*/tmp/pardes-snap/lspcomplete/cwd/c.zig Save Undo Del | 1 const Shade = enum { | 2 verdigris, | 3 cinnabar, @@ -111,7 +111,8 @@ | 5 | 6 pub fn nosemi() void { | 7 const z: Shade = . -| /tmp/pardes-snap/lspcomplete/cwd/+Search Save Term Collapse Follow Del +| 8 } +| /tmp/pardes-snap/lspcomplete/cwd/+Search Del | 1 c.zig:7:23 verdigris Shade | 2 c.zig:7:23 cinnabar Shade | ~ @@ -121,9 +122,8 @@ | | /tmp/pardes-snap/lspcomplete/cwd/c.zig:7 == snap nobrace grid=100x19 cursor=hidden -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -|^*/tmp/pardes-snap/lspcomplete/cwd/d.zig Save Term Collapse Follow TreeContext Def Refs Del +| New Term Find Grep Newcol Help Exit ⋯ lsp zls ready — /tmp/pardes-snap/lspcomplete/cwd +|^*/tmp/pardes-snap/lspcomplete/cwd/d.zig Save Undo Del | 1 const Shade = enum { | 2 verdigris, | 3 cinnabar, @@ -131,7 +131,7 @@ | 5 | 6 pub fn nobrace(s: Shade) void { | 7 switch (s) { -| /tmp/pardes-snap/lspcomplete/cwd/+Search Save Term Collapse Follow Del +| /tmp/pardes-snap/lspcomplete/cwd/+Search Del | 1 d.zig:8:10 verdigris | 2 d.zig:8:10 cinnabar | ~ @@ -139,4 +139,5 @@ | | | +| | /tmp/pardes-snap/lspcomplete/cwd/d.zig:8 diff --git a/test/snapshots/lspcompletemoved.golden b/test/snapshots/lspcompletemoved.golden index 00f0ee0f..f23de0b3 100644 --- a/test/snapshots/lspcompletemoved.golden +++ b/test/snapshots/lspcompletemoved.golden @@ -1,7 +1,6 @@ -== snap typedthrough grid=120x21 cursor=16,14 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -|^*/tmp/pardes-snap/lspcompletemoved/cwd/a.zig Save Term Collapse Follow TreeContext Def Refs Del +== snap typedthrough grid=120x21 cursor=16,13 +| New Term Find Grep Newcol Help Exit ⋯ lsp zls ready — /tmp/pardes-snap/lspcompletemoved/cwd +|^*/tmp/pardes-snap/lspcompletemoved/cwd/a.zig Save Undo Del | 1 const Shade = enum { | 2 verdigris, | 3 cinnabar, @@ -19,6 +18,7 @@ | | | +| | /tmp/pardes-snap/lspcompletemoved/cwd/a.zig:12 == file buffer const Shade = enum { diff --git a/test/snapshots/lspdebug.golden b/test/snapshots/lspdebug.golden index 3d297c71..d338f98e 100644 --- a/test/snapshots/lspdebug.golden +++ b/test/snapshots/lspdebug.golden @@ -1,7 +1,6 @@ -== snap opened grid=120x45 cursor=7,3 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/lspdebug/cwd/z.zig Keep Save Term Collapse Follow TreeContext Def Refs Del +== snap opened grid=120x45 cursor=7,2 +| New Term Find Grep Newcol Help Exit +| /tmp/pardes-snap/lspdebug/cwd/z.zig Keep Del | 1 const std = @import("std"); | 2 | 3 fn helper() u32 { @@ -43,12 +42,14 @@ | | | +| | /tmp/pardes-snap/lspdebug/cwd/z.zig:1 -== snap ctrlclick grid=120x45 cursor=15,5 -|2: z.zig:8 › /tmp/pardes-snap/lspdebug/cwd/z.zig Keep Save Term Collapse Follow TreeContext Def Refs Del +== snap ctrlclick grid=120x45 cursor=15,4 +|0: New Term Find Grep Newcol Help Exit ⋯ lsp zls ready — /tmp/pardes-snap/lspdebug/cwd +|1: z.zig:8 › /tmp/pardes-snap/lspdebug/cwd/z.zig Keep Del |44: /tmp/pardes-snap/lspdebug/cwd/z.zig:3 -== snap plainclick grid=120x45 cursor=21,10 +== snap plainclick grid=120x45 cursor=21,9 |44: /tmp/pardes-snap/lspdebug/cwd/z.zig:8 -== snap why-closed grid=120x45 cursor=7,5 +== snap why-closed grid=120x45 cursor=7,4 |44: /tmp/pardes-snap/lspdebug/cwd/z.zig:3 -== snap report-closed grid=120x45 cursor=7,5 +== snap report-closed grid=120x45 cursor=7,4 diff --git a/test/snapshots/lsprelpath.golden b/test/snapshots/lsprelpath.golden index cbe7fdf1..fd39aa91 100644 --- a/test/snapshots/lsprelpath.golden +++ b/test/snapshots/lsprelpath.golden @@ -1,7 +1,6 @@ == snap absrow grid=100x35 cursor=2,20 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/lsprelpath/cwd/sub/parent.zig Save Term Collapse Follow TreeContext Def Refs Del +| New Term Find Grep Newcol Help Exit ⋯ lsp zls ready — /tmp/pardes-snap/lsprelpath/cwd/sub +| /tmp/pardes-snap/lsprelpath/cwd/sub/parent.zig Del | 1 const shade = @import("../shade.zig"); | 2 | 3 pub fn pick(s: shade.Shade) u8 { @@ -14,6 +13,7 @@ | | | +| | +Search 2/2 Del | Refs | ../shade.zig @@ -36,7 +36,7 @@ | /tmp/pardes-snap/lsprelpath/cwd/sub/+Search:5 == snap abslook grid=100x35 cursor=21,26 |15: +Search 1/2 Save Undock Del -|25: /tmp/pardes-snap/lsprelpath/cwd/shade.zig Save Term Collapse Follow TreeContext Def Refs Del +|25: /tmp/pardes-snap/lsprelpath/cwd/shade.zig Del |26: 1 pub const Shade = enum { |27: 2 verdigris, |28: 3 cinnabar, @@ -44,17 +44,17 @@ |30: ~ |34: /tmp/pardes-snap/lsprelpath/cwd/shade.zig:1 == style abslook grid=100x35 -|0: 0-1 d,#1d2824, 2-99 #b2c3b8,#1d2824, -|1: 0-1 d,#504733, 2-99 #becfc4,#314738, -|2: 0-1 d,#465a43, 2-37 #b2c3b8,#1d2824, 38-48 #d3b0d9,#1d2824, 49-99 #b2c3b8,#1d2824, -|3: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-20 #e5eee5,#0d1410, 21-27 #c9a7ed,#0d1410, 28-28 #e5eee5,#0d1410, 29-42 #b8d88a,#0d1410, 43-99 #e5eee5,#0d1410, -|4: 0-0 d,#608269, 1-4 d,#0d1410, 5-99 #59675c,#0d1410, -|5: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-10 #e5eee5,#0d1410, 11-13 #c9a7ed,#0d1410, 14-27 #e5eee5,#0d1410, 28-32 #0d1410,#917a53, 33-99 #e5eee5,#0d1410, -|6: 0-0 d,#e5eee5, 1-4 d,#0d1410, 5-10 #59675c,#0d1410, 11-24 #c9a7ed,#0d1410, 25-99 #e5eee5,#0d1410, -|7: 0-0 d,#608269, 1-4 d,#0d1410, 5-99 #59675c,#0d1410, -|8: 0-0 d,#608269, 1-4 d,#0d1410, 5-10 #59675c,#0d1410, 11-99 #e5eee5,#0d1410, -|9: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-99 #e5eee5,#0d1410, -|10: 0-0 d,#608269, 1-4 d,#0d1410, 5-99 #59675c,#0d1410, +|0: 0-1 d,#1d2824, 2-45 #b2c3b8,#1d2824, 46-99 #b7cb98,#1d2824, +|1: 0-1 d,#465a43, 2-37 #b2c3b8,#1d2824, 38-48 #d3b0d9,#1d2824, 49-99 #b2c3b8,#1d2824, +|2: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-20 #e5eee5,#0d1410, 21-27 #c9a7ed,#0d1410, 28-28 #e5eee5,#0d1410, 29-42 #b8d88a,#0d1410, 43-99 #e5eee5,#0d1410, +|3: 0-0 d,#608269, 1-4 d,#0d1410, 5-99 #59675c,#0d1410, +|4: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-10 #e5eee5,#0d1410, 11-13 #c9a7ed,#0d1410, 14-27 #e5eee5,#0d1410, 28-32 #0d1410,#917a53, 33-99 #e5eee5,#0d1410, +|5: 0-0 d,#e5eee5, 1-4 d,#0d1410, 5-10 #59675c,#0d1410, 11-24 #c9a7ed,#0d1410, 25-99 #e5eee5,#0d1410, +|6: 0-0 d,#608269, 1-4 d,#0d1410, 5-99 #59675c,#0d1410, +|7: 0-0 d,#608269, 1-4 d,#0d1410, 5-10 #59675c,#0d1410, 11-99 #e5eee5,#0d1410, +|8: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-99 #e5eee5,#0d1410, +|9: 0-0 d,#608269, 1-4 d,#0d1410, 5-99 #59675c,#0d1410, +|10: 0-0 d,#608269, 1-99 d,#0d1410, |11: 0-0 d,#608269, 1-99 d,#0d1410, |12: 0-0 d,#608269, 1-99 d,#0d1410, |13: 0-0 d,#608269, 1-99 d,#0d1410, @@ -80,9 +80,8 @@ |33: 0-0 d,#608269, 1-99 d,#0d1410, |34: 0-1 d,#1d2824, 2-99 #b2c3b8,#1d2824, == snap subrow grid=100x35 cursor=2,20 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/lsprelpath/cwd/sub/subdir.zig Save Term Collapse Follow TreeContext Def Refs Del +| New Term Find Grep Newcol Help Exit ⋯ lsp zls ready — /tmp/pardes-snap/lsprelpath/cwd/sub +| /tmp/pardes-snap/lsprelpath/cwd/sub/subdir.zig Del | 1 const tint = @import("inner/tint.zig"); | 2 | 3 pub fn hue(t: tint.Tint) u8 { @@ -95,6 +94,7 @@ | | | +| | +Search 2/2 Del | Refs | inner/tint.zig @@ -115,28 +115,27 @@ | | | /tmp/pardes-snap/lsprelpath/cwd/sub/+Search:5 -== snap sublook grid=100x35 cursor=20,27 +== snap sublook grid=100x35 cursor=20,26 |15: +Search 1/2 Save Undock Del -|25: /tmp/pardes-snap/lsprelpath/cwd/sub/inner/tint.zig Save Term Collapse Follow TreeContext Def Refs -|26: Del -|27: 1 pub const Tint = enum { -|28: 2 ochre, -|29: 3 indigo, -|30: 4 }; -|31: ~ +|25: /tmp/pardes-snap/lsprelpath/cwd/sub/inner/tint.zig Del +|26: 1 pub const Tint = enum { +|27: 2 ochre, +|28: 3 indigo, +|29: 4 }; +|30: ~ |34: /tmp/pardes-snap/lsprelpath/cwd/sub/inner/tint.zig:1 == style sublook grid=100x35 -|0: 0-1 d,#1d2824, 2-99 #b2c3b8,#1d2824, -|1: 0-1 d,#504733, 2-99 #becfc4,#314738, -|2: 0-1 d,#465a43, 2-37 #b2c3b8,#1d2824, 38-48 #d3b0d9,#1d2824, 49-99 #b2c3b8,#1d2824, -|3: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-19 #e5eee5,#0d1410, 20-26 #c9a7ed,#0d1410, 27-27 #e5eee5,#0d1410, 28-43 #b8d88a,#0d1410, 44-99 #e5eee5,#0d1410, -|4: 0-0 d,#608269, 1-4 d,#0d1410, 5-99 #59675c,#0d1410, -|5: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-10 #e5eee5,#0d1410, 11-13 #c9a7ed,#0d1410, 14-25 #e5eee5,#0d1410, 26-29 #0d1410,#917a53, 30-99 #e5eee5,#0d1410, -|6: 0-0 d,#e5eee5, 1-4 d,#0d1410, 5-10 #59675c,#0d1410, 11-24 #c9a7ed,#0d1410, 25-99 #e5eee5,#0d1410, -|7: 0-0 d,#608269, 1-4 d,#0d1410, 5-99 #59675c,#0d1410, -|8: 0-0 d,#608269, 1-4 d,#0d1410, 5-10 #59675c,#0d1410, 11-99 #e5eee5,#0d1410, -|9: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-99 #e5eee5,#0d1410, -|10: 0-0 d,#608269, 1-4 d,#0d1410, 5-99 #59675c,#0d1410, +|0: 0-1 d,#1d2824, 2-45 #b2c3b8,#1d2824, 46-99 #b7cb98,#1d2824, +|1: 0-1 d,#465a43, 2-37 #b2c3b8,#1d2824, 38-48 #d3b0d9,#1d2824, 49-99 #b2c3b8,#1d2824, +|2: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-19 #e5eee5,#0d1410, 20-26 #c9a7ed,#0d1410, 27-27 #e5eee5,#0d1410, 28-43 #b8d88a,#0d1410, 44-99 #e5eee5,#0d1410, +|3: 0-0 d,#608269, 1-4 d,#0d1410, 5-99 #59675c,#0d1410, +|4: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-10 #e5eee5,#0d1410, 11-13 #c9a7ed,#0d1410, 14-25 #e5eee5,#0d1410, 26-29 #0d1410,#917a53, 30-99 #e5eee5,#0d1410, +|5: 0-0 d,#e5eee5, 1-4 d,#0d1410, 5-10 #59675c,#0d1410, 11-24 #c9a7ed,#0d1410, 25-99 #e5eee5,#0d1410, +|6: 0-0 d,#608269, 1-4 d,#0d1410, 5-99 #59675c,#0d1410, +|7: 0-0 d,#608269, 1-4 d,#0d1410, 5-10 #59675c,#0d1410, 11-99 #e5eee5,#0d1410, +|8: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-99 #e5eee5,#0d1410, +|9: 0-0 d,#608269, 1-4 d,#0d1410, 5-99 #59675c,#0d1410, +|10: 0-0 d,#608269, 1-99 d,#0d1410, |11: 0-0 d,#608269, 1-99 d,#0d1410, |12: 0-0 d,#608269, 1-99 d,#0d1410, |13: 0-0 d,#608269, 1-99 d,#0d1410, @@ -152,14 +151,14 @@ |23: 0-0 d,#608269, 1-99 d,#0d1410, |24: 0-0 d,#608269, 1-99 d,#0d1410, |25: 0-1 d,#add38a, 2-43 #becfc4,#314738, 44-52 #ecc8f2,#314738, 53-99 #becfc4,#314738, -|26: 0-1 d,#314738, 2-99 #becfc4,#314738, -|27: 0-0 d,#e5eee5, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-16 #e5eee5,#0d1410, 17-20 #0d1410,#917a53, 21-21 #0d1410,#0d1410, 22-23 #e5eee5,#0d1410, 24-28 #c9a7ed,#0d1410, 29-99 #e5eee5,#0d1410, +|26: 0-0 d,#e5eee5, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-16 #e5eee5,#0d1410, 17-20 #0d1410,#917a53, 21-21 #0d1410,#0d1410, 22-23 #e5eee5,#0d1410, 24-28 #c9a7ed,#0d1410, 29-99 #e5eee5,#0d1410, +|27: 0-0 d,#608269, 1-4 d,#0d1410, 5-10 #59675c,#0d1410, 11-99 #e5eee5,#0d1410, |28: 0-0 d,#608269, 1-4 d,#0d1410, 5-10 #59675c,#0d1410, 11-99 #e5eee5,#0d1410, -|29: 0-0 d,#608269, 1-4 d,#0d1410, 5-10 #59675c,#0d1410, 11-99 #e5eee5,#0d1410, -|30: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-99 #e5eee5,#0d1410, -|31: 0-0 d,#608269, 1-4 d,#0d1410, 5-99 #59675c,#0d1410, +|29: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-99 #e5eee5,#0d1410, +|30: 0-0 d,#608269, 1-4 d,#0d1410, 5-99 #59675c,#0d1410, +|31: 0-0 d,#608269, 1-99 d,#0d1410, |32: 0-0 d,#608269, 1-99 d,#0d1410, |33: 0-0 d,#608269, 1-99 d,#0d1410, |34: 0-1 d,#1d2824, 2-99 #b2c3b8,#1d2824, -== snap clicked grid=100x35 cursor=29,5 +== snap clicked grid=100x35 cursor=29,4 |34: /tmp/pardes-snap/lsprelpath/cwd/sub/subdir.zig:3 diff --git a/test/snapshots/markup.golden b/test/snapshots/markup.golden index e3b893cb..a49e93aa 100644 --- a/test/snapshots/markup.golden +++ b/test/snapshots/markup.golden @@ -1,7 +1,6 @@ -== snap typst grid=92x25 cursor=7,3 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/markup/cwd/paper.typ Keep Save Term Collapse Follow TreeContext Del +== snap typst grid=92x25 cursor=7,2 +| New Term Find Grep Newcol Help Exit +| /tmp/pardes-snap/markup/cwd/paper.typ Keep Del | 1 = Typst heading | 2 | 3 Prose with *bold* and _italic_ words, a `raw` span, @@ -23,20 +22,21 @@ | | | +| | /tmp/pardes-snap/markup/cwd/paper.typ:1 == style typst grid=92x25 |0: 0-1 d,#1d2824, 2-91 #b2c3b8,#1d2824, -|1: 0-1 d,#504733, 2-91 #becfc4,#314738, -|2: 0-1 d,#add38a, 2-29 #becfc4,#2c2c0f, 30-39 #ecc8f2,#2c2c0f, 40-91 #becfc4,#2c2c0f, -|3: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-91 #c9a7ed,#0d1410, -|4: 0-0 d,#608269, 1-4 d,#0d1410, 5-91 #59675c,#0d1410, -|5: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-17 #e5eee5,#0d1410, 18-24 #b9f480,#0d1410, 25-28 #e5eee5,#0d1410, 29-37 #f8c082,#0d1410, 38-46 #e5eee5,#0d1410, 47-52 #b8d88a,#0d1410, 53-91 #e5eee5,#0d1410, -|6: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-10 #e5eee5,#0d1410, 11-15 #c9a7ed,#0d1410, 16-27 #e5eee5,#0d1410, 28-32 #c9a7ed,#0d1410, 33-36 #e5eee5,#0d1410, 37-91 #f8c082,#0d1410, -|7: 0-0 d,#608269, 1-4 d,#0d1410, 5-91 #59675c,#0d1410, -|8: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-91 #b8d88a,#0d1410, -|9: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-9 #c9a7ed,#0d1410, 10-23 #e5eee5,#0d1410, 24-30 #c9a7ed,#0d1410, 31-32 #f8c082,#0d1410, 33-91 #e5eee5,#0d1410, -|10: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-91 #b8d88a,#0d1410, -|11: 0-0 d,#608269, 1-4 d,#0d1410, 5-91 #59675c,#0d1410, +|1: 0-1 d,#add38a, 2-29 #becfc4,#2c2c0f, 30-39 #ecc8f2,#2c2c0f, 40-91 #becfc4,#2c2c0f, +|2: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-91 #c9a7ed,#0d1410, +|3: 0-0 d,#608269, 1-4 d,#0d1410, 5-91 #59675c,#0d1410, +|4: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-17 #e5eee5,#0d1410, 18-24 #b9f480,#0d1410, 25-28 #e5eee5,#0d1410, 29-37 #f8c082,#0d1410, 38-46 #e5eee5,#0d1410, 47-52 #b8d88a,#0d1410, 53-91 #e5eee5,#0d1410, +|5: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-10 #e5eee5,#0d1410, 11-15 #c9a7ed,#0d1410, 16-27 #e5eee5,#0d1410, 28-32 #c9a7ed,#0d1410, 33-36 #e5eee5,#0d1410, 37-91 #f8c082,#0d1410, +|6: 0-0 d,#608269, 1-4 d,#0d1410, 5-91 #59675c,#0d1410, +|7: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-91 #b8d88a,#0d1410, +|8: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-9 #c9a7ed,#0d1410, 10-23 #e5eee5,#0d1410, 24-30 #c9a7ed,#0d1410, 31-32 #f8c082,#0d1410, 33-91 #e5eee5,#0d1410, +|9: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-91 #b8d88a,#0d1410, +|10: 0-0 d,#608269, 1-4 d,#0d1410, 5-91 #59675c,#0d1410, +|11: 0-0 d,#608269, 1-91 d,#0d1410, |12: 0-0 d,#608269, 1-91 d,#0d1410, |13: 0-0 d,#608269, 1-91 d,#0d1410, |14: 0-0 d,#608269, 1-91 d,#0d1410, @@ -50,10 +50,9 @@ |22: 0-0 d,#608269, 1-91 d,#0d1410, |23: 0-0 d,#608269, 1-91 d,#0d1410, |24: 0-1 d,#1d2824, 2-91 #b2c3b8,#1d2824, -== snap markdown grid=92x25 cursor=7,3 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/markup/cwd/notes.md Keep Save Term Collapse Follow TreeContext Del +== snap markdown grid=92x25 cursor=7,2 +| New Term Find Grep Newcol Help Exit +| /tmp/pardes-snap/markup/cwd/notes.md Keep Del | 1 # Markdown heading with *italic* | 2 | 3 Prose with **bold**, *italic* and an `inline` span. @@ -75,19 +74,20 @@ | | | +| | /tmp/pardes-snap/markup/cwd/notes.md:1 == style markdown grid=92x25 |0: 0-1 d,#1d2824, 2-91 #b2c3b8,#1d2824, -|1: 0-1 d,#504733, 2-91 #becfc4,#314738, -|2: 0-1 d,#add38a, 2-29 #becfc4,#2c2c0f, 30-38 #ecc8f2,#2c2c0f, 39-91 #becfc4,#2c2c0f, -|3: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-8 #e5eee5,#0d1410, 9-30 #c9a7ed,#0d1410, 31-91 #f8c082,#0d1410, -|4: 0-0 d,#608269, 1-4 d,#0d1410, 5-91 #59675c,#0d1410, -|5: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-17 #e5eee5,#0d1410, 18-25 #b9f480,#0d1410, 26-27 #e5eee5,#0d1410, 28-36 #f8c082,#0d1410, 37-43 #e5eee5,#0d1410, 44-52 #b8d88a,#0d1410, 53-91 #e5eee5,#0d1410, -|6: 0-0 d,#608269, 1-4 d,#0d1410, 5-91 #59675c,#0d1410, -|7: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-91 #b8d88a,#0d1410, -|8: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-9 #c9a7ed,#0d1410, 10-23 #e5eee5,#0d1410, 24-30 #c9a7ed,#0d1410, 31-32 #f8c082,#0d1410, 33-91 #e5eee5,#0d1410, -|9: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-91 #b8d88a,#0d1410, -|10: 0-0 d,#608269, 1-4 d,#0d1410, 5-91 #59675c,#0d1410, +|1: 0-1 d,#add38a, 2-29 #becfc4,#2c2c0f, 30-38 #ecc8f2,#2c2c0f, 39-91 #becfc4,#2c2c0f, +|2: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-8 #e5eee5,#0d1410, 9-30 #c9a7ed,#0d1410, 31-91 #f8c082,#0d1410, +|3: 0-0 d,#608269, 1-4 d,#0d1410, 5-91 #59675c,#0d1410, +|4: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-17 #e5eee5,#0d1410, 18-25 #b9f480,#0d1410, 26-27 #e5eee5,#0d1410, 28-36 #f8c082,#0d1410, 37-43 #e5eee5,#0d1410, 44-52 #b8d88a,#0d1410, 53-91 #e5eee5,#0d1410, +|5: 0-0 d,#608269, 1-4 d,#0d1410, 5-91 #59675c,#0d1410, +|6: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-91 #b8d88a,#0d1410, +|7: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-9 #c9a7ed,#0d1410, 10-23 #e5eee5,#0d1410, 24-30 #c9a7ed,#0d1410, 31-32 #f8c082,#0d1410, 33-91 #e5eee5,#0d1410, +|8: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-91 #b8d88a,#0d1410, +|9: 0-0 d,#608269, 1-4 d,#0d1410, 5-91 #59675c,#0d1410, +|10: 0-0 d,#608269, 1-91 d,#0d1410, |11: 0-0 d,#608269, 1-91 d,#0d1410, |12: 0-0 d,#608269, 1-91 d,#0d1410, |13: 0-0 d,#608269, 1-91 d,#0d1410, diff --git a/test/snapshots/mini.golden b/test/snapshots/mini.golden index 8b6c96c3..ec0f82be 100644 --- a/test/snapshots/mini.golden +++ b/test/snapshots/mini.golden @@ -1,10 +1,9 @@ -== snap opened grid=90x23 cursor=7,6 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/mini/cwd/commands.txt Keep Save Term Collapse Follow Del +== snap opened grid=90x23 cursor=7,5 +| New Term Find Grep Newcol Help Exit +| /tmp/pardes-snap/mini/cwd/commands.txt Keep Del | 1 @`Mini demo.zig` | -| /tmp/pardes-snap/mini/cwd/Mini demo.zig Save Term Collapse Follow Del +| /tmp/pardes-snap/mini/cwd/Mini demo.zig Del | 1 ⠭⠍⣥⢩⣭⡭⣭⣬⣌⢭⣭⠌⠬⠅⠍⠁ | 2 ⣂⢀⣉⣉⢉⣈⢁⣀⣀⢀⣀⣀⣀⢀⣀⣀⣀⣀⣀ | 3 ⠉⠉⠁⠉⠉⠉⠈⠈⠉⠉⠉⠉⠉⠉ @@ -21,18 +20,19 @@ | | | +| | ✓ /tmp/pardes-snap/mini/cwd/commands.txt Mini 2 messages · SPC h m == style opened grid=90x23 |0: 0-1 d,#1d2824, 2-89 #b2c3b8,#1d2824, -|1: 0-1 d,#504733, 2-89 #becfc4,#314738, -|2: 0-1 d,#465a43, 2-27 #b2c3b8,#2c2c0f, 28-40 #d3b0d9,#2c2c0f, 41-89 #b2c3b8,#2c2c0f, -|3: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-89 #e5eee5,#0d1410, -|4: 0-0 d,#608269, 1-89 d,#0d1410, -|5: 0-1 d,#add38a, 2-27 #becfc4,#314738, 28-41 #ecc8f2,#314738, 42-89 #becfc4,#314738, -|6: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-8 #e5eee5,#0d1410, 9-9 #c9a7ed,#0d1410, 10-12 #e5eee5,#0d1410, 13-15 #c9a7ed,#0d1410, 16-21 #b8d88a,#0d1410, 22-89 #e5eee5,#0d1410, -|7: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-8 #b9f480,#0d1410, 9-11 #c9a7ed,#0d1410, 12-89 #b9f480,#0d1410, -|8: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-17 #e5eee5,#0d1410, 18-19 #f8c082,#0d1410, 20-89 #e5eee5,#0d1410, -|9: 0-0 d,#608269, 1-4 d,#0d1410, 5-89 #59675c,#0d1410, +|1: 0-1 d,#465a43, 2-27 #b2c3b8,#2c2c0f, 28-40 #d3b0d9,#2c2c0f, 41-89 #b2c3b8,#2c2c0f, +|2: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-89 #e5eee5,#0d1410, +|3: 0-0 d,#608269, 1-89 d,#0d1410, +|4: 0-1 d,#add38a, 2-27 #becfc4,#314738, 28-41 #ecc8f2,#314738, 42-89 #becfc4,#314738, +|5: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-8 #e5eee5,#0d1410, 9-9 #c9a7ed,#0d1410, 10-12 #e5eee5,#0d1410, 13-15 #c9a7ed,#0d1410, 16-21 #b8d88a,#0d1410, 22-89 #e5eee5,#0d1410, +|6: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-8 #b9f480,#0d1410, 9-11 #c9a7ed,#0d1410, 12-89 #b9f480,#0d1410, +|7: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-17 #e5eee5,#0d1410, 18-19 #f8c082,#0d1410, 20-89 #e5eee5,#0d1410, +|8: 0-0 d,#608269, 1-4 d,#0d1410, 5-89 #59675c,#0d1410, +|9: 0-0 d,#608269, 1-89 d,#0d1410, |10: 0-0 d,#608269, 1-89 d,#0d1410, |11: 0-0 d,#608269, 1-89 d,#0d1410, |12: 0-0 d,#608269, 1-89 d,#0d1410, @@ -46,29 +46,29 @@ |20: 0-0 d,#608269, 1-89 d,#0d1410, |21: 0-0 d,#608269, 1-89 d,#0d1410, |22: 0-1 d,#1d2824, 2-89 #6f7d75,#1d2824, -== 9p opened grid=90x23 cursor=7,6,block -|0: Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -@0: 0-84 #b2c3b8,#1d2824,,tagline 85-89 d,#1d2824,,tagline -|1: New Term Find Grep Joincol Delcol -@1: 0-1 #ffffff,#504733,,tagline 2-34 #becfc4,#314738,,tagline 35-89 d,#314738,,tagline -|2: /tmp/pardes-snap/mini/cwd/commands.txt Keep Save Term Collapse Follow Del -@2: 0-1 #ffffff,#465a43,,tagline 2-27 #b2c3b8,#2c2c0f,,tagline 28-39 #d3b0d9,#2c2c0f,,tagline 40-74 #b2c3b8,#2c2c0f,,tagline 75-89 d,#2c2c0f,,tagline -|3: 1 @`Mini demo.zig` -@3: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-22 #e5eee5,#0d1410,,body 23-89 d,#0d1410,,body -|4: -@4: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-89 d,#0d1410,,body -|5: /tmp/pardes-snap/mini/cwd/Mini demo.zig Save Term Collapse Follow Del -@5: 0-1 #000000,#add38a,,tagline 2-27 #becfc4,#314738,,tagline 28-40 #ecc8f2,#314738,,tagline 41-70 #becfc4,#314738,,tagline 71-89 d,#314738,,tagline -|6: 1 ⠭⠍⣥⢩⣭⡭⣭⣬⣌⢭⣭⠌⠬⠅⠍⠁ -+6: 7="⠭" 8="⠍" 9="⣥" 10="⢩" 11="⣭" 12="⡭" 13="⣭" 14="⣬" 15="⣌" 16="⢭" 17="⣭" 18="⠌" 19="⠬" 20="⠅" 21="⠍" 22="⠁" -@6: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #616f64,#0d1410,b,body 7-8 #e5eee5,#0d1410,,body 9-9 #c9a7ed,#0d1410,,body 10-12 #e5eee5,#0d1410,,body 13-15 #c9a7ed,#0d1410,,body 16-21 #b8d88a,#0d1410,,body 22-22 #e5eee5,#0d1410,,body 23-89 d,#0d1410,,body -|7: 2 ⣂⢀⣉⣉⢉⣈⢁⣀⣀⢀⣀⣀⣀⢀⣀⣀⣀⣀⣀ -+7: 7="⣂" 8="⢀" 9="⣉" 10="⣉" 11="⢉" 12="⣈" 13="⢁" 14="⣀" 15="⣀" 16="⢀" 17="⣀" 18="⣀" 19="⣀" 20="⢀" 21="⣀" 22="⣀" 23="⣀" 24="⣀" 25="⣀" -@7: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-8 #b9f480,#0d1410,,body 9-11 #c9a7ed,#0d1410,,body 12-25 #b9f480,#0d1410,,body 26-89 d,#0d1410,,body -|8: 3 ⠉⠉⠁⠉⠉⠉⠈⠈⠉⠉⠉⠉⠉⠉ -+8: 7="⠉" 8="⠉" 9="⠁" 10="⠉" 11="⠉" 12="⠉" 13="⠈" 14="⠈" 15="⠉" 16="⠉" 17="⠉" 18="⠉" 19="⠉" 20="⠉" -@8: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-17 #e5eee5,#0d1410,,body 18-19 #f8c082,#0d1410,,body 20-20 #e5eee5,#0d1410,,body 21-89 d,#0d1410,,body -|9: ~ +== 9p opened grid=90x23 cursor=7,5,block +|0: New Term Find Grep Newcol Help Exit +@0: 0-10 #b2c3b8,#1d2824,,tagline 11-11 d,#1d2824,,tagline 12-88 #b2c3b8,#1d2824,,tagline 89-89 d,#1d2824,,tagline +|1: /tmp/pardes-snap/mini/cwd/commands.txt Keep Del +@1: 0-1 #ffffff,#465a43,,tagline 2-27 #b2c3b8,#2c2c0f,,tagline 28-39 #d3b0d9,#2c2c0f,,tagline 40-49 #b2c3b8,#2c2c0f,,tagline 50-89 d,#2c2c0f,,tagline +|2: 1 @`Mini demo.zig` +@2: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-22 #e5eee5,#0d1410,,body 23-89 d,#0d1410,,body +|3: +@3: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-89 d,#0d1410,,body +|4: /tmp/pardes-snap/mini/cwd/Mini demo.zig Del +@4: 0-1 #000000,#add38a,,tagline 2-27 #becfc4,#314738,,tagline 28-40 #ecc8f2,#314738,,tagline 41-45 #becfc4,#314738,,tagline 46-89 d,#314738,,tagline +|5: 1 ⠭⠍⣥⢩⣭⡭⣭⣬⣌⢭⣭⠌⠬⠅⠍⠁ ++5: 7="⠭" 8="⠍" 9="⣥" 10="⢩" 11="⣭" 12="⡭" 13="⣭" 14="⣬" 15="⣌" 16="⢭" 17="⣭" 18="⠌" 19="⠬" 20="⠅" 21="⠍" 22="⠁" +@5: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #616f64,#0d1410,b,body 7-8 #e5eee5,#0d1410,,body 9-9 #c9a7ed,#0d1410,,body 10-12 #e5eee5,#0d1410,,body 13-15 #c9a7ed,#0d1410,,body 16-21 #b8d88a,#0d1410,,body 22-22 #e5eee5,#0d1410,,body 23-89 d,#0d1410,,body +|6: 2 ⣂⢀⣉⣉⢉⣈⢁⣀⣀⢀⣀⣀⣀⢀⣀⣀⣀⣀⣀ ++6: 7="⣂" 8="⢀" 9="⣉" 10="⣉" 11="⢉" 12="⣈" 13="⢁" 14="⣀" 15="⣀" 16="⢀" 17="⣀" 18="⣀" 19="⣀" 20="⢀" 21="⣀" 22="⣀" 23="⣀" 24="⣀" 25="⣀" +@6: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-8 #b9f480,#0d1410,,body 9-11 #c9a7ed,#0d1410,,body 12-25 #b9f480,#0d1410,,body 26-89 d,#0d1410,,body +|7: 3 ⠉⠉⠁⠉⠉⠉⠈⠈⠉⠉⠉⠉⠉⠉ ++7: 7="⠉" 8="⠉" 9="⠁" 10="⠉" 11="⠉" 12="⠉" 13="⠈" 14="⠈" 15="⠉" 16="⠉" 17="⠉" 18="⠉" 19="⠉" 20="⠉" +@7: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-17 #e5eee5,#0d1410,,body 18-19 #f8c082,#0d1410,,body 20-20 #e5eee5,#0d1410,,body 21-89 d,#0d1410,,body +|8: ~ +@8: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-89 d,#0d1410,,body +|9: @9: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-89 d,#0d1410,,body |10: @10: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-89 d,#0d1410,,body @@ -97,14 +97,13 @@ |22: ✓ /tmp/pardes-snap/mini/cwd/commands.txt Mini 2 messages · SPC h m +22: 2="✓" 80="·" @22: 0-1 d,#1d2824,,tagline 2-46 #6f7d75,#1d2824,,tagline 47-68 #b2c3b8,#1d2824,,tagline 69-88 #6f7d75,#1d2824,,tagline 89-89 d,#1d2824,,tagline -== snap resized grid=105x27 cursor=7,7 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/mini/cwd/commands.txt Keep Save Term Collapse Follow Del +== snap resized grid=105x27 cursor=7,6 +| New Term Find Grep Newcol Help Exit +| /tmp/pardes-snap/mini/cwd/commands.txt Keep Del | 1 @`Mini demo.zig` | | -| /tmp/pardes-snap/mini/cwd/Mini demo.zig Save Term Collapse Follow Del +| /tmp/pardes-snap/mini/cwd/Mini demo.zig Del | 1 ⠭⠍⣥⢩⣭⡭⣭⣬⣌⢭⣭⠌⠬⠅⠍⠁ | 2 ⣂⢀⣉⣉⢉⣈⢁⣀⣀⢀⣀⣀⣀⢀⣀⣀⣀⣀⣀ | 3 ⠉⠉⠁⠉⠉⠉⠈⠈⠉⠉⠉⠉⠉⠉ @@ -124,32 +123,33 @@ | | | +| | ✓ /tmp/pardes-snap/mini/cwd/commands.txt Mini 2 messages · SPC h m -== 9p resized grid=105x27 cursor=7,7,block -|0: Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -@0: 0-84 #b2c3b8,#1d2824,,tagline 85-104 d,#1d2824,,tagline -|1: New Term Find Grep Joincol Delcol -@1: 0-1 #ffffff,#504733,,tagline 2-34 #becfc4,#314738,,tagline 35-104 d,#314738,,tagline -|2: /tmp/pardes-snap/mini/cwd/commands.txt Keep Save Term Collapse Follow Del -@2: 0-1 #ffffff,#465a43,,tagline 2-27 #b2c3b8,#2c2c0f,,tagline 28-39 #d3b0d9,#2c2c0f,,tagline 40-74 #b2c3b8,#2c2c0f,,tagline 75-104 d,#2c2c0f,,tagline -|3: 1 @`Mini demo.zig` -@3: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-22 #e5eee5,#0d1410,,body 23-104 d,#0d1410,,body +== 9p resized grid=105x27 cursor=7,6,block +|0: New Term Find Grep Newcol Help Exit +@0: 0-10 #b2c3b8,#1d2824,,tagline 11-11 d,#1d2824,,tagline 12-103 #b2c3b8,#1d2824,,tagline 104-104 d,#1d2824,,tagline +|1: /tmp/pardes-snap/mini/cwd/commands.txt Keep Del +@1: 0-1 #ffffff,#465a43,,tagline 2-27 #b2c3b8,#2c2c0f,,tagline 28-39 #d3b0d9,#2c2c0f,,tagline 40-49 #b2c3b8,#2c2c0f,,tagline 50-104 d,#2c2c0f,,tagline +|2: 1 @`Mini demo.zig` +@2: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-22 #e5eee5,#0d1410,,body 23-104 d,#0d1410,,body +|3: +@3: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-104 d,#0d1410,,body |4: @4: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-104 d,#0d1410,,body -|5: -@5: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-104 d,#0d1410,,body -|6: /tmp/pardes-snap/mini/cwd/Mini demo.zig Save Term Collapse Follow Del -@6: 0-1 #000000,#add38a,,tagline 2-27 #becfc4,#314738,,tagline 28-40 #ecc8f2,#314738,,tagline 41-70 #becfc4,#314738,,tagline 71-104 d,#314738,,tagline -|7: 1 ⠭⠍⣥⢩⣭⡭⣭⣬⣌⢭⣭⠌⠬⠅⠍⠁ -+7: 7="⠭" 8="⠍" 9="⣥" 10="⢩" 11="⣭" 12="⡭" 13="⣭" 14="⣬" 15="⣌" 16="⢭" 17="⣭" 18="⠌" 19="⠬" 20="⠅" 21="⠍" 22="⠁" -@7: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #616f64,#0d1410,b,body 7-8 #e5eee5,#0d1410,,body 9-9 #c9a7ed,#0d1410,,body 10-12 #e5eee5,#0d1410,,body 13-15 #c9a7ed,#0d1410,,body 16-21 #b8d88a,#0d1410,,body 22-22 #e5eee5,#0d1410,,body 23-104 d,#0d1410,,body -|8: 2 ⣂⢀⣉⣉⢉⣈⢁⣀⣀⢀⣀⣀⣀⢀⣀⣀⣀⣀⣀ -+8: 7="⣂" 8="⢀" 9="⣉" 10="⣉" 11="⢉" 12="⣈" 13="⢁" 14="⣀" 15="⣀" 16="⢀" 17="⣀" 18="⣀" 19="⣀" 20="⢀" 21="⣀" 22="⣀" 23="⣀" 24="⣀" 25="⣀" -@8: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-8 #b9f480,#0d1410,,body 9-11 #c9a7ed,#0d1410,,body 12-25 #b9f480,#0d1410,,body 26-104 d,#0d1410,,body -|9: 3 ⠉⠉⠁⠉⠉⠉⠈⠈⠉⠉⠉⠉⠉⠉ -+9: 7="⠉" 8="⠉" 9="⠁" 10="⠉" 11="⠉" 12="⠉" 13="⠈" 14="⠈" 15="⠉" 16="⠉" 17="⠉" 18="⠉" 19="⠉" 20="⠉" -@9: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-17 #e5eee5,#0d1410,,body 18-19 #f8c082,#0d1410,,body 20-20 #e5eee5,#0d1410,,body 21-104 d,#0d1410,,body -|10: ~ +|5: /tmp/pardes-snap/mini/cwd/Mini demo.zig Del +@5: 0-1 #000000,#add38a,,tagline 2-27 #becfc4,#314738,,tagline 28-40 #ecc8f2,#314738,,tagline 41-45 #becfc4,#314738,,tagline 46-104 d,#314738,,tagline +|6: 1 ⠭⠍⣥⢩⣭⡭⣭⣬⣌⢭⣭⠌⠬⠅⠍⠁ ++6: 7="⠭" 8="⠍" 9="⣥" 10="⢩" 11="⣭" 12="⡭" 13="⣭" 14="⣬" 15="⣌" 16="⢭" 17="⣭" 18="⠌" 19="⠬" 20="⠅" 21="⠍" 22="⠁" +@6: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #616f64,#0d1410,b,body 7-8 #e5eee5,#0d1410,,body 9-9 #c9a7ed,#0d1410,,body 10-12 #e5eee5,#0d1410,,body 13-15 #c9a7ed,#0d1410,,body 16-21 #b8d88a,#0d1410,,body 22-22 #e5eee5,#0d1410,,body 23-104 d,#0d1410,,body +|7: 2 ⣂⢀⣉⣉⢉⣈⢁⣀⣀⢀⣀⣀⣀⢀⣀⣀⣀⣀⣀ ++7: 7="⣂" 8="⢀" 9="⣉" 10="⣉" 11="⢉" 12="⣈" 13="⢁" 14="⣀" 15="⣀" 16="⢀" 17="⣀" 18="⣀" 19="⣀" 20="⢀" 21="⣀" 22="⣀" 23="⣀" 24="⣀" 25="⣀" +@7: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-8 #b9f480,#0d1410,,body 9-11 #c9a7ed,#0d1410,,body 12-25 #b9f480,#0d1410,,body 26-104 d,#0d1410,,body +|8: 3 ⠉⠉⠁⠉⠉⠉⠈⠈⠉⠉⠉⠉⠉⠉ ++8: 7="⠉" 8="⠉" 9="⠁" 10="⠉" 11="⠉" 12="⠉" 13="⠈" 14="⠈" 15="⠉" 16="⠉" 17="⠉" 18="⠉" 19="⠉" 20="⠉" +@8: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-17 #e5eee5,#0d1410,,body 18-19 #f8c082,#0d1410,,body 20-20 #e5eee5,#0d1410,,body 21-104 d,#0d1410,,body +|9: ~ +@9: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-104 d,#0d1410,,body +|10: @10: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-104 d,#0d1410,,body |11: @11: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-104 d,#0d1410,,body diff --git a/test/snapshots/modal.golden b/test/snapshots/modal.golden index dc4b95cc..1d39e403 100644 --- a/test/snapshots/modal.golden +++ b/test/snapshots/modal.golden @@ -1,8 +1,7 @@ -== snap top grid=100x31 cursor=2,4 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/modal/cwd Term+bash Save Mode F /tmp/pardes-snap/modal/cwd Term+bash Save Mode F -| ilter Collapse Del ilter Collapse Del +== snap top grid=100x31 cursor=2,3 +| Find Grep Newcol Help Exit +| New Term Joincol Delcol New Term Joincol Delcol +| /tmp/pardes-snap/modal/cwd Del Term+bash /tmp/pardes-snap/modal/cwd Del Term+bash | ls ls | words.txt words.txt | printf 'one two three\nfour five six\nseven ei @@ -15,8 +14,8 @@ | | | -| /tmp/pardes-snap/modal/cwd Term+bash Save Mode F -| ilter Collapse Del +| +| /tmp/pardes-snap/modal/cwd Del Term+bash | ls | words.txt | @@ -29,30 +28,31 @@ | | | +| | /tmp/pardes-snap/modal/cwd -== snap moved grid=100x31 cursor=8,6 -== snap xsel grid=100x31 cursor=48,6 +== snap moved grid=100x31 cursor=8,5 +== snap xsel grid=100x31 cursor=48,5 == style xsel grid=100x31 -|0: 0-1 d,#1d2824, 2-99 #b2c3b8,#1d2824, +|0: 0-71 d,#1d2824, 72-99 #b2c3b8,#1d2824, |1: 0-1 d,#504733, 2-49 #becfc4,#314738, 50-51 #becfc4,#504733, 52-99 #b2c3b8,#1d2824, -|2: 0-1 d,#add38a, 2-28 #becfc4,#314738, 29-38 #ecc8f2,#314738, 39-49 #becfc4,#314738, 50-51 #becfc4,#465a43, 52-78 #b2c3b8,#1d2824, 79-88 #d3b0d9,#1d2824, 89-99 #b2c3b8,#1d2824, -|3: 0-1 d,#314738, 2-49 #becfc4,#314738, 50-51 #becfc4,#1d2824, 52-99 #b2c3b8,#1d2824, +|2: 0-1 d,#add38a, 2-32 #becfc4,#314738, 33-49 #ecc8f2,#314738, 50-51 #ecc8f2,#465a43, 52-82 #b2c3b8,#1d2824, 83-99 #d3b0d9,#1d2824, +|3: 0-0 d,#608269, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, |4: 0-0 d,#608269, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, -|5: 0-0 d,#608269, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, -|6: 0-0 d,#608269, 1-1 d,#0d1410, 2-48 #f5f7ee,#3c614a, 49-49 #f5f7ee,#0d1410, 50-50 #f5f7ee,#608269, 51-99 #f5f7ee,#0d1410, +|5: 0-0 d,#608269, 1-1 d,#0d1410, 2-48 #f5f7ee,#3c614a, 49-49 #f5f7ee,#0d1410, 50-50 #f5f7ee,#608269, 51-99 #f5f7ee,#0d1410, +|6: 0-0 d,#608269, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, |7: 0-0 d,#608269, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, |8: 0-0 d,#608269, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, |9: 0-0 d,#608269, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, -|10: 0-0 d,#608269, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, +|10: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, |11: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, |12: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, |13: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, |14: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, |15: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, -|16: 0-1 d,#465a43, 2-28 #b2c3b8,#1d2824, 29-38 #d3b0d9,#1d2824, 39-49 #b2c3b8,#1d2824, 50-50 #b2c3b8,#608269, 51-99 #b2c3b8,#0d1410, -|17: 0-1 d,#1d2824, 2-49 #b2c3b8,#1d2824, 50-50 #b2c3b8,#608269, 51-99 #b2c3b8,#0d1410, +|16: 0-1 d,#465a43, 2-32 #b2c3b8,#1d2824, 33-49 #d3b0d9,#1d2824, 50-50 #d3b0d9,#608269, 51-99 #d3b0d9,#0d1410, +|17: 0-0 d,#608269, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, |18: 0-0 d,#608269, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, -|19: 0-0 d,#608269, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, +|19: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, |20: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, |21: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, |22: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, @@ -64,18 +64,18 @@ |28: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, |29: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, |30: 0-1 d,#1d2824, 2-99 #b2c3b8,#1d2824, -== snap xsel2 grid=100x31 cursor=13,7 -== snap yanked grid=100x31 cursor=13,7 -== snap vsel grid=100x31 cursor=14,8 +== snap xsel2 grid=100x31 cursor=13,6 +== snap yanked grid=100x31 cursor=13,6 +== snap vsel grid=100x31 cursor=14,7 == style vsel grid=100x31 +|5: 0-0 d,#608269, 1-1 d,#0d1410, 2-49 #f5f7ee,#3c614a, 50-50 #f5f7ee,#608269, 51-99 #f5f7ee,#0d1410, |6: 0-0 d,#608269, 1-1 d,#0d1410, 2-49 #f5f7ee,#3c614a, 50-50 #f5f7ee,#608269, 51-99 #f5f7ee,#0d1410, -|7: 0-0 d,#608269, 1-1 d,#0d1410, 2-49 #f5f7ee,#3c614a, 50-50 #f5f7ee,#608269, 51-99 #f5f7ee,#0d1410, -|8: 0-0 d,#608269, 1-1 d,#0d1410, 2-14 #f5f7ee,#3c614a, 15-49 #f5f7ee,#0d1410, 50-50 #f5f7ee,#608269, 51-99 #f5f7ee,#0d1410, -== snap typed grid=100x31 cursor=9,20 -|20: TYPED +|7: 0-0 d,#608269, 1-1 d,#0d1410, 2-14 #f5f7ee,#3c614a, 15-49 #f5f7ee,#0d1410, 50-50 #f5f7ee,#608269, 51-99 #f5f7ee,#0d1410, +== snap typed grid=100x31 cursor=9,19 +|19: TYPED |30: · @p2 a copy of the terminal's text: Tab or B2 runs it; what the program d… 2 messages · SPC h m -== snap undone grid=100x31 cursor=4,20 -|20: -== snap redone grid=100x31 cursor=9,20 -|20: TYPED -== snap bottom grid=100x31 cursor=2,20 +== snap undone grid=100x31 cursor=4,19 +|19: +== snap redone grid=100x31 cursor=9,19 +|19: TYPED +== snap bottom grid=100x31 cursor=2,19 diff --git a/test/snapshots/msg.golden b/test/snapshots/msg.golden index 529b3ad9..09249970 100644 --- a/test/snapshots/msg.golden +++ b/test/snapshots/msg.golden @@ -1,7 +1,6 @@ -== snap opened grid=70x15 cursor=7,3 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config His -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/msg/cwd/a.txt Keep Save Term Collapse Follow Del +== snap opened grid=70x15 cursor=7,2 +| New Term Find Grep Newcol Help Exit +| /tmp/pardes-snap/msg/cwd/a.txt Keep Del | 1 line 1 | 2 line 2 | 3 line 3 @@ -13,13 +12,13 @@ | | | +| | /tmp/pardes-snap/msg/cwd/a.txt:1 -== snap saved grid=70x15 cursor=7,3 +== snap saved grid=70x15 cursor=7,2 |14: · saved /tmp/pardes-snap/msg/cwd/a.txt 2 messages · SPC h m -== snap repainted grid=70x17 cursor=7,3 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config His -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/msg/cwd/a.txt Keep Save Term Collapse Follow Del +== snap repainted grid=70x17 cursor=7,2 +| New Term Find Grep Newcol Help Exit +| /tmp/pardes-snap/msg/cwd/a.txt Keep Del | 1 line 1 | 2 line 2 | 3 line 3 @@ -33,33 +32,35 @@ | | | +| | · saved /tmp/pardes-snap/msg/cwd/a.txt 2 messages · SPC h m -== snap keycleared grid=70x17 cursor=7,4 -== snap saved-again grid=70x17 cursor=7,4 +== snap keycleared grid=70x17 cursor=7,3 +== snap saved-again grid=70x17 cursor=7,3 |16: · saved /tmp/pardes-snap/msg/cwd/a.txt 4 messages · SPC h m -== snap mousecleared grid=70x17 cursor=7,4 -== snap reloaded grid=70x17 cursor=7,4 -|3: 1 EXTERNAL -|4: ~ +== snap mousecleared grid=70x17 cursor=7,3 +== snap reloaded grid=70x17 cursor=7,3 +|1: /tmp/pardes-snap/msg/cwd/a.txt Keep Undo Del +|2: 1 EXTERNAL +|3: ~ +|4: |5: |6: |7: |8: -|9: |16: · reloaded /tmp/pardes-snap/msg/cwd/a.txt 5 messages · SPC h m -== snap prompt grid=70x17 cursor=7,2 -|2: ^ s EXT = Exec Edit x/EXT/ 0 -== snap prompt-wins grid=70x17 cursor=7,2 -|3: 1 AGAIN +== snap prompt grid=70x17 cursor=7,1 +|1: ^ s EXT = Exec Edit x/EXT/ 0 +== snap prompt-wins grid=70x17 cursor=7,1 +|2: 1 AGAIN |16: · reloaded /tmp/pardes-snap/msg/cwd/a.txt ×2 5 messages · SPC h m -== snap esc grid=70x17 cursor=7,4 -|2: /tmp/pardes-snap/msg/cwd/a.txt Keep Save Term Collapse Follow Del -== snap msgbuiltin grid=70x17 cursor=29,5 -|2: */tmp/pardes-snap/msg/cwd/a.txt Save Term Collapse Follow Del -|4: 2 -|5: 3 Msg hand-written report +== snap esc grid=70x17 cursor=7,3 +|1: /tmp/pardes-snap/msg/cwd/a.txt Keep Undo Del +== snap msgbuiltin grid=70x17 cursor=29,4 +|1: */tmp/pardes-snap/msg/cwd/a.txt Save Undo Del +|3: 2 +|4: 3 Msg hand-written report |16: · …des-snap/msg/cwd/a.txt hand-written report 7 messages · SPC h m -== snap msgtail grid=70x17 cursor=32,7 -|6: 4 Msg 0123456789 0123456789 0123456789 0123456789 0123456789 012↩ -|7: 3456789 0123456789 THE-END +== snap msgtail grid=70x17 cursor=32,6 +|5: 4 Msg 0123456789 0123456789 0123456789 0123456789 0123456789 012↩ +|6: 3456789 0123456789 THE-END |16: · …a.txt 0123456789 0123456789 0123456789 01… 9 messages · SPC h m diff --git a/test/snapshots/multicursor.golden b/test/snapshots/multicursor.golden index bbb56304..2c572d54 100644 --- a/test/snapshots/multicursor.golden +++ b/test/snapshots/multicursor.golden @@ -1,7 +1,7 @@ -== snap three-cursors grid=150x31 cursor=82,20 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/multicursor/cwd Term+bash Save Mode Filter Collapse Del /tmp/pardes-snap/multicursor/cwd Term+bash Save Mode Filter Collapse Del +== snap three-cursors grid=150x31 cursor=82,19 +| Find Grep Newcol Help Exit +| New Term Joincol Delcol New Term Joincol Delcol +| /tmp/pardes-snap/multicursor/cwd Del Term+bash /tmp/pardes-snap/multicursor/cwd Del Term+bash | ls ls | f.txt f.txt | @@ -15,10 +15,9 @@ | | | -| /tmp/pardes-snap/multicursor/cwd Term+bash Save Mode Filter Collapse Del ‹@p1 › /tmp/pardes-snap/multicursor/cwd/f.txt Keep Save Term Collapse Fol -| ls low Del -| f.txt 1 line 1 -| 2 line 2 +| /tmp/pardes-snap/multicursor/cwd Del Term+bash ‹@p1 › /tmp/pardes-snap/multicursor/cwd/f.txt Keep Del +| ls 1 line 1 +| f.txt 2 line 2 | 3 line 3 | 4 line 4 | 5 line 5 @@ -29,11 +28,12 @@ | 10 line 10 | 11 line 11 | 12 line 12 +| ~ | · @p1 a copy of the terminal's text: Tab or B2 runs it; what the program draws next replaces it (Ctrl-b types to the program) 1 message · SPC h m == style three-cursors grid=150x31 -|0: 0-1 d,#1d2824, 2-149 #b2c3b8,#1d2824, +|0: 0-121 d,#1d2824, 122-149 #b2c3b8,#1d2824, |1: 0-1 d,#504733, 2-74 #b2c3b8,#1d2824, 75-76 #b2c3b8,#504733, 77-149 #becfc4,#314738, -|2: 0-1 d,#465a43, 2-34 #b2c3b8,#1d2824, 35-44 #d3b0d9,#1d2824, 45-74 #b2c3b8,#1d2824, 75-76 #b2c3b8,#465a43, 77-109 #b2c3b8,#1d2824, 110-119 #d3b0d9,#1d2824, 120-149 #b2c3b8,#1d2824, +|2: 0-1 d,#465a43, 2-38 #b2c3b8,#1d2824, 39-74 #d3b0d9,#1d2824, 75-76 #d3b0d9,#465a43, 77-113 #b2c3b8,#1d2824, 114-149 #d3b0d9,#1d2824, |3: 0-0 d,#608269, 1-1 d,#0d1410, 2-74 #e5eee5,#0d1410, 75-75 #e5eee5,#608269, 76-149 #e5eee5,#0d1410, |4: 0-0 d,#608269, 1-1 d,#0d1410, 2-74 #e5eee5,#0d1410, 75-75 #e5eee5,#608269, 76-149 #e5eee5,#0d1410, |5: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-149 d,#0d1410, @@ -47,45 +47,32 @@ |13: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-149 d,#0d1410, |14: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-149 d,#0d1410, |15: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-149 d,#0d1410, -|16: 0-1 d,#465a43, 2-34 #b2c3b8,#1d2824, 35-44 #d3b0d9,#1d2824, 45-74 #b2c3b8,#1d2824, 75-76 #b2c3b8,#add38a, 77-116 #becfc4,#2c2c0f, 117-122 #ecc8f2,#2c2c0f, 123-149 #becfc4,#2c2c0f, -|17: 0-0 d,#608269, 1-1 d,#0d1410, 2-74 #e5eee5,#0d1410, 75-76 #e5eee5,#2c2c0f, 77-149 #becfc4,#2c2c0f, +|16: 0-1 d,#465a43, 2-38 #b2c3b8,#1d2824, 39-74 #d3b0d9,#1d2824, 75-76 #d3b0d9,#add38a, 77-116 #becfc4,#2c2c0f, 117-122 #ecc8f2,#2c2c0f, 123-149 #becfc4,#2c2c0f, +|17: 0-0 d,#608269, 1-1 d,#0d1410, 2-74 #e5eee5,#0d1410, 75-75 #e5eee5,#608269, 76-79 #e5eee5,#0d1410, 80-81 #59675c,#0d1410, 82-82 #3c614a,#f5f7ee, 83-149 #e5eee5,#0d1410, |18: 0-0 d,#608269, 1-1 d,#0d1410, 2-74 #e5eee5,#0d1410, 75-75 #e5eee5,#608269, 76-79 #e5eee5,#0d1410, 80-81 #59675c,#0d1410, 82-82 #3c614a,#f5f7ee, 83-149 #e5eee5,#0d1410, -|19: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-79 d,#0d1410, 80-81 #59675c,#0d1410, 82-82 #3c614a,#f5f7ee, 83-149 #e5eee5,#0d1410, -|20: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-76 d,#0d1410, 77-79 d,#0d1410,b 80-81 #616f64,#0d1410,b 82-149 #e5eee5,#0d1410, +|19: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-76 d,#0d1410, 77-79 d,#0d1410,b 80-81 #616f64,#0d1410,b 82-149 #e5eee5,#0d1410, +|20: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-79 d,#0d1410, 80-81 #59675c,#0d1410, 82-149 #e5eee5,#0d1410, |21: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-79 d,#0d1410, 80-81 #59675c,#0d1410, 82-149 #e5eee5,#0d1410, |22: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-79 d,#0d1410, 80-81 #59675c,#0d1410, 82-149 #e5eee5,#0d1410, |23: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-79 d,#0d1410, 80-81 #59675c,#0d1410, 82-149 #e5eee5,#0d1410, |24: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-79 d,#0d1410, 80-81 #59675c,#0d1410, 82-149 #e5eee5,#0d1410, |25: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-79 d,#0d1410, 80-81 #59675c,#0d1410, 82-149 #e5eee5,#0d1410, -|26: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-79 d,#0d1410, 80-81 #59675c,#0d1410, 82-149 #e5eee5,#0d1410, +|26: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-78 d,#0d1410, 79-81 #59675c,#0d1410, 82-149 #e5eee5,#0d1410, |27: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-78 d,#0d1410, 79-81 #59675c,#0d1410, 82-149 #e5eee5,#0d1410, |28: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-78 d,#0d1410, 79-81 #59675c,#0d1410, 82-149 #e5eee5,#0d1410, -|29: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#152019, 76-78 d,#0d1410, 79-81 #59675c,#0d1410, 82-149 #e5eee5,#0d1410, +|29: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-79 d,#0d1410, 80-149 #59675c,#0d1410, |30: 0-1 d,#1d2824, 2-149 #6f7d75,#1d2824, == snap edited-at-three grid=150x31 cursor=84,19 -|16: /tmp/pardes-snap/multicursor/cwd Term+bash Save Mode Filter Collapse Del */tmp/pardes-snap/multicursor/cwd/f.txt Save Term Collapse Follow Del +|16: /tmp/pardes-snap/multicursor/cwd Del Term+bash */tmp/pardes-snap/multicursor/cwd/f.txt Save Undo Del |17: ls 1 >>line 1 |18: f.txt 2 >>line 2 |19: 3 >>line 3 -|20: 4 line 4 -|21: 5 line 5 -|22: 6 line 6 -|23: 7 line 7 -|24: 8 line 8 -|25: 9 line 9 -|26: 10 line 10 -|27: 11 line 11 -|28: 12 line 12 -|29: ~ == snap three-selections grid=150x31 cursor=83,19 == style three-selections grid=150x31 -|16: 0-1 d,#465a43, 2-34 #b2c3b8,#1d2824, 35-44 #d3b0d9,#1d2824, 45-74 #b2c3b8,#1d2824, 75-75 #b2c3b8,#add38a, 76-76 #000000,#f9cb70,b 77-109 #becfc4,#314738, 110-115 #ecc8f2,#314738, 116-149 #becfc4,#314738, +|16: 0-1 d,#465a43, 2-38 #b2c3b8,#1d2824, 39-74 #d3b0d9,#1d2824, 75-75 #d3b0d9,#add38a, 76-76 #000000,#f9cb70,b 77-109 #becfc4,#314738, 110-115 #ecc8f2,#314738, 116-149 #becfc4,#314738, |17: 0-0 d,#608269, 1-1 d,#0d1410, 2-74 #e5eee5,#0d1410, 75-75 #e5eee5,#608269, 76-79 #e5eee5,#0d1410, 80-81 #59675c,#0d1410, 82-82 #e5eee5,#24382c, 83-83 #3c614a,#f5f7ee, 84-149 #e5eee5,#0d1410, |18: 0-0 d,#608269, 1-1 d,#0d1410, 2-74 #e5eee5,#0d1410, 75-75 #e5eee5,#608269, 76-79 #e5eee5,#0d1410, 80-81 #59675c,#0d1410, 82-82 #e5eee5,#24382c, 83-83 #3c614a,#f5f7ee, 84-149 #e5eee5,#0d1410, |19: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-76 d,#0d1410, 77-79 d,#0d1410,b 80-81 #616f64,#0d1410,b 82-83 #f5f7ee,#3c614a, 84-149 #e5eee5,#0d1410, -|20: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-79 d,#0d1410, 80-81 #59675c,#0d1410, 82-149 #e5eee5,#0d1410, -|26: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-78 d,#0d1410, 79-81 #59675c,#0d1410, 82-149 #e5eee5,#0d1410, -|29: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-79 d,#0d1410, 80-149 #59675c,#0d1410, == snap keep-primary grid=150x31 cursor=83,19 == style keep-primary grid=150x31 |17: 0-0 d,#608269, 1-1 d,#0d1410, 2-74 #e5eee5,#0d1410, 75-75 #e5eee5,#608269, 76-79 #e5eee5,#0d1410, 80-81 #59675c,#0d1410, 82-149 #e5eee5,#0d1410, diff --git a/test/snapshots/nested-optout.golden b/test/snapshots/nested-optout.golden index a2f0a444..dcd37d56 100644 --- a/test/snapshots/nested-optout.golden +++ b/test/snapshots/nested-optout.golden @@ -1,10 +1,8 @@ -== snap optout-file grid=100x31 cursor=9,6 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -|$ /tmp/pardes-snap/nested-optout/cwd Term+bash Save Mode Filter Collapse Del -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/nested-optout/cwd/nested.txt Keep Save Term Collapse Follow Del +== snap optout-file grid=100x31 cursor=9,4 +| New Term Find Grep Newcol Help Exit +|$ /tmp/pardes-snap/nested-optout/cwd Del Term+bash +| New Term Find Grep Newcol Help Exit +| /tmp/pardes-snap/nested-optout/cwd/nested.txt Keep Del | 1 optout-marker | 2 second-optout-line | ~ @@ -19,8 +17,9 @@ | | | +| | /tmp/pardes-snap/nested-optout/cwd/nested.txt:1 -| /tmp/pardes-snap/nested-optout/cwd/+New Save Term Collapse Follow Del +| /tmp/pardes-snap/nested-optout/cwd/+New Del | 1 | | @@ -29,14 +28,13 @@ | | | +| | /tmp/pardes-snap/nested-optout/cwd -== snap inner-shell grid=100x31 cursor=6,6 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -|$ /tmp/pardes-snap/nested-optout/cwd Term+bash Save Mode Filter Collapse Del -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -| $ /tmp/pardes-snap/nested-optout/cwd/innerdir Term+bash Save Mode Filter Collapse Del +== snap inner-shell grid=100x31 cursor=6,4 +| New Term Find Grep Newcol Help Exit +|$ /tmp/pardes-snap/nested-optout/cwd Del Term+bash +| New Term Find Grep Newcol Help Exit +| $ /tmp/pardes-snap/nested-optout/cwd/innerdir Del Term+bash | $ | | @@ -46,13 +44,14 @@ | | | -| /tmp/pardes-snap/nested-optout/cwd/innerdir/+New Save Term Collapse Follow Del +| +| /tmp/pardes-snap/nested-optout/cwd/innerdir/+New Del | 1 | | | | /tmp/pardes-snap/nested-optout/cwd/innerdir -| /tmp/pardes-snap/nested-optout/cwd/+New Save Term Collapse Follow Del +| /tmp/pardes-snap/nested-optout/cwd/+New Del | 1 | | @@ -61,11 +60,11 @@ | | | +| | /tmp/pardes-snap/nested-optout/cwd -== snap inner-launch grid=100x31 cursor=11,9 -|6: Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -|7: New Term Find Grep Joincol Delcol -|8: /tmp/pardes-snap/nested-optout/cwd/innerdir/deeper.txt Keep Save Term Collapse Follow Del -|9: 1 deepest-marker -|10: ~ -|14: /tmp/pardes-snap/nested-optout/cwd/innerdir/deeper.txt:1 +== snap inner-launch grid=100x31 cursor=11,6 +|4: New Term Find Grep Newcol Help Exit +|5: /tmp/pardes-snap/nested-optout/cwd/innerdir/deeper.txt Keep Del +|6: 1 deepest-marker +|7: ~ +|13: /tmp/pardes-snap/nested-optout/cwd/innerdir/deeper.txt:1 diff --git a/test/snapshots/nested.golden b/test/snapshots/nested.golden index 2fe89a60..0e05e6e6 100644 --- a/test/snapshots/nested.golden +++ b/test/snapshots/nested.golden @@ -1,7 +1,6 @@ -== snap file-arg grid=100x31 cursor=7,22 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -|$ /tmp/pardes-snap/nested/cwd Term+bash Save Mode Filter Collapse Del +== snap file-arg grid=100x31 cursor=7,21 +| New Term Find Grep Newcol Help Exit +|$ /tmp/pardes-snap/nested/cwd Del Term+bash | $ $(readlink /proc/$PPID/exe) nested.txt | $ | @@ -20,7 +19,7 @@ | | | -| ‹@p1 › /tmp/pardes-snap/nested/cwd/nested.txt Keep Save Term Collapse Follow Del +| ‹@p1 › /tmp/pardes-snap/nested/cwd/nested.txt Keep Del | 1 hello-from-nested | 2 second-nested-line | ~ @@ -29,11 +28,11 @@ | | | +| | /tmp/pardes-snap/nested/cwd/nested.txt:1 -== snap no-arg grid=100x31 cursor=4,7 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -|$ /tmp/pardes-snap/nested/cwd Term+bash Save Mode Filter Collapse Del +== snap no-arg grid=100x31 cursor=4,6 +| New Term Find Grep Newcol Help Exit +|$ /tmp/pardes-snap/nested/cwd Del Term+bash | $ $(readlink /proc/$PPID/exe) | pardes: this shell is already inside pardes, and a pardes inside a pardes | is spicy. Name a file or a directory and the outer session opens it, or @@ -52,7 +51,7 @@ | | | -| /tmp/pardes-snap/nested/cwd/+New Save Term Collapse Follow Del +| /tmp/pardes-snap/nested/cwd/+New Del | 1 | | @@ -61,11 +60,11 @@ | | | +| | /tmp/pardes-snap/nested/cwd -== snap dir-arg grid=100x31 cursor=7,22 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -|$ /tmp/pardes-snap/nested/cwd Term+bash Save Mode Filter Collapse Del +== snap dir-arg grid=100x31 cursor=7,21 +| New Term Find Grep Newcol Help Exit +|$ /tmp/pardes-snap/nested/cwd Del Term+bash | $ $(readlink /proc/$PPID/exe) nestdir | $ | @@ -84,7 +83,7 @@ | | | -| /tmp/pardes-snap/nested/cwd/nestdir/ Get Term Collapse Del +| /tmp/pardes-snap/nested/cwd/nestdir/ Get Del | 1 inside-nested.txt | ~ | @@ -93,4 +92,5 @@ | | | +| | /tmp/pardes-snap/nested/cwd/nestdir/:1 diff --git a/test/snapshots/ninep.golden b/test/snapshots/ninep.golden index 89df3886..d637dfd3 100644 --- a/test/snapshots/ninep.golden +++ b/test/snapshots/ninep.golden @@ -1,8 +1,6 @@ -== snap opened grid=90x15 cursor=7,4 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/ninep/cwd/demo.zig Keep Save Term Collapse Follow TreeContext Def Refs -| Del +== snap opened grid=90x15 cursor=7,2 +| New Term Find Grep Newcol Help Exit +| /tmp/pardes-snap/ninep/cwd/demo.zig Keep Del | 1 const greeting = "café λ 界 é"; | 2 | 3 pub fn choose(ok: bool) u32 { @@ -13,46 +11,48 @@ | | | +| +| | /tmp/pardes-snap/ninep/cwd/demo.zig:1 == style opened grid=90x15 |0: 0-1 d,#1d2824, 2-89 #b2c3b8,#1d2824, -|1: 0-1 d,#504733, 2-89 #becfc4,#314738, -|2: 0-1 d,#add38a, 2-28 #becfc4,#2c2c0f, 29-37 #ecc8f2,#2c2c0f, 38-89 #becfc4,#2c2c0f, -|3: 0-1 d,#2c2c0f, 2-89 #becfc4,#2c2c0f, -|4: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-23 #e5eee5,#0d1410, 24-32 #b8d88a,#0d1410, 33-33 d,d, 34-34 d,#0d1410, 35-36 #b8d88a,#0d1410, 37-89 #e5eee5,#0d1410, -|5: 0-0 d,#608269, 1-4 d,#0d1410, 5-89 #59675c,#0d1410, -|6: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-10 #e5eee5,#0d1410, 11-13 #c9a7ed,#0d1410, 14-89 #e5eee5,#0d1410, -|7: 0-0 d,#608269, 1-4 d,#0d1410, 5-10 #59675c,#0d1410, 11-13 #c9a7ed,#0d1410, 14-18 #e5eee5,#0d1410, 19-25 #c9a7ed,#0d1410, 26-27 #f8c082,#0d1410, 28-89 #e5eee5,#0d1410, -|8: 0-0 d,#608269, 1-4 d,#0d1410, 5-10 #59675c,#0d1410, 11-17 #c9a7ed,#0d1410, 18-18 #f8c082,#0d1410, 19-89 #e5eee5,#0d1410, -|9: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-89 #e5eee5,#0d1410, -|10: 0-0 d,#608269, 1-4 d,#0d1410, 5-89 #59675c,#0d1410, +|1: 0-1 d,#add38a, 2-28 #becfc4,#2c2c0f, 29-37 #ecc8f2,#2c2c0f, 38-89 #becfc4,#2c2c0f, +|2: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-23 #e5eee5,#0d1410, 24-32 #b8d88a,#0d1410, 33-33 d,d, 34-34 d,#0d1410, 35-36 #b8d88a,#0d1410, 37-89 #e5eee5,#0d1410, +|3: 0-0 d,#608269, 1-4 d,#0d1410, 5-89 #59675c,#0d1410, +|4: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-10 #e5eee5,#0d1410, 11-13 #c9a7ed,#0d1410, 14-89 #e5eee5,#0d1410, +|5: 0-0 d,#608269, 1-4 d,#0d1410, 5-10 #59675c,#0d1410, 11-13 #c9a7ed,#0d1410, 14-18 #e5eee5,#0d1410, 19-25 #c9a7ed,#0d1410, 26-27 #f8c082,#0d1410, 28-89 #e5eee5,#0d1410, +|6: 0-0 d,#608269, 1-4 d,#0d1410, 5-10 #59675c,#0d1410, 11-17 #c9a7ed,#0d1410, 18-18 #f8c082,#0d1410, 19-89 #e5eee5,#0d1410, +|7: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-89 #e5eee5,#0d1410, +|8: 0-0 d,#608269, 1-4 d,#0d1410, 5-89 #59675c,#0d1410, +|9: 0-0 d,#608269, 1-89 d,#0d1410, +|10: 0-0 d,#608269, 1-89 d,#0d1410, |11: 0-0 d,#608269, 1-89 d,#0d1410, |12: 0-0 d,#608269, 1-89 d,#0d1410, |13: 0-0 d,#608269, 1-89 d,#0d1410, |14: 0-1 d,#1d2824, 2-89 #b2c3b8,#1d2824, -== 9p opened grid=90x15 cursor=7,4,block -|0: Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -@0: 0-84 #b2c3b8,#1d2824,,tagline 85-89 d,#1d2824,,tagline -|1: New Term Find Grep Joincol Delcol -@1: 0-1 #ffffff,#504733,,tagline 2-34 #becfc4,#314738,,tagline 35-89 d,#314738,,tagline -|2: /tmp/pardes-snap/ninep/cwd/demo.zig Keep Save Term Collapse Follow TreeContext Def Refs -@2: 0-1 #000000,#add38a,,tagline 2-28 #becfc4,#2c2c0f,,tagline 29-36 #ecc8f2,#2c2c0f,,tagline 37-89 #becfc4,#2c2c0f,,tagline -|3: Del -@3: 0-1 d,#2c2c0f,,tagline 2-4 #becfc4,#2c2c0f,,tagline 5-89 d,#2c2c0f,,tagline -|4: 1 const greeting = "café λ 界 é"; -+4: 28="é" 30="λ" 32="界" 33="" 35="é" -@4: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #616f64,#0d1410,b,body 7-23 #e5eee5,#0d1410,,body 24-36 #b8d88a,#0d1410,,body 37-37 #e5eee5,#0d1410,,body 38-89 d,#0d1410,,body -|5: 2 -@5: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-89 d,#0d1410,,body -|6: 3 pub fn choose(ok: bool) u32 { -@6: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-10 #e5eee5,#0d1410,,body 11-12 #c9a7ed,#0d1410,,body 13-35 #e5eee5,#0d1410,,body 36-89 d,#0d1410,,body -|7: 4 if (ok) return 42; -@7: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-10 #e5eee5,#0d1410,,body 11-12 #c9a7ed,#0d1410,,body 13-18 #e5eee5,#0d1410,,body 19-24 #c9a7ed,#0d1410,,body 25-25 #e5eee5,#0d1410,,body 26-27 #f8c082,#0d1410,,body 28-28 #e5eee5,#0d1410,,body 29-89 d,#0d1410,,body -|8: 5 return 7; -@8: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-10 #e5eee5,#0d1410,,body 11-16 #c9a7ed,#0d1410,,body 17-17 #e5eee5,#0d1410,,body 18-18 #f8c082,#0d1410,,body 19-19 #e5eee5,#0d1410,,body 20-89 d,#0d1410,,body -|9: 6 } -@9: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-7 #e5eee5,#0d1410,,body 8-89 d,#0d1410,,body -|10: ~ +== 9p opened grid=90x15 cursor=7,2,block +|0: New Term Find Grep Newcol Help Exit +@0: 0-10 #b2c3b8,#1d2824,,tagline 11-11 d,#1d2824,,tagline 12-88 #b2c3b8,#1d2824,,tagline 89-89 d,#1d2824,,tagline +|1: /tmp/pardes-snap/ninep/cwd/demo.zig Keep Del +@1: 0-1 #000000,#add38a,,tagline 2-28 #becfc4,#2c2c0f,,tagline 29-36 #ecc8f2,#2c2c0f,,tagline 37-46 #becfc4,#2c2c0f,,tagline 47-89 d,#2c2c0f,,tagline +|2: 1 const greeting = "café λ 界 é"; ++2: 28="é" 30="λ" 32="界" 33="" 35="é" +@2: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #616f64,#0d1410,b,body 7-23 #e5eee5,#0d1410,,body 24-36 #b8d88a,#0d1410,,body 37-37 #e5eee5,#0d1410,,body 38-89 d,#0d1410,,body +|3: 2 +@3: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-89 d,#0d1410,,body +|4: 3 pub fn choose(ok: bool) u32 { +@4: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-10 #e5eee5,#0d1410,,body 11-12 #c9a7ed,#0d1410,,body 13-35 #e5eee5,#0d1410,,body 36-89 d,#0d1410,,body +|5: 4 if (ok) return 42; +@5: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-10 #e5eee5,#0d1410,,body 11-12 #c9a7ed,#0d1410,,body 13-18 #e5eee5,#0d1410,,body 19-24 #c9a7ed,#0d1410,,body 25-25 #e5eee5,#0d1410,,body 26-27 #f8c082,#0d1410,,body 28-28 #e5eee5,#0d1410,,body 29-89 d,#0d1410,,body +|6: 5 return 7; +@6: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-10 #e5eee5,#0d1410,,body 11-16 #c9a7ed,#0d1410,,body 17-17 #e5eee5,#0d1410,,body 18-18 #f8c082,#0d1410,,body 19-19 #e5eee5,#0d1410,,body 20-89 d,#0d1410,,body +|7: 6 } +@7: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-7 #e5eee5,#0d1410,,body 8-89 d,#0d1410,,body +|8: ~ +@8: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-89 d,#0d1410,,body +|9: +@9: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-89 d,#0d1410,,body +|10: @10: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-89 d,#0d1410,,body |11: @11: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-89 d,#0d1410,,body @@ -62,52 +62,62 @@ @13: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-89 d,#0d1410,,body |14: /tmp/pardes-snap/ninep/cwd/demo.zig:1 @14: 0-1 d,#1d2824,,tagline 2-88 #b2c3b8,#1d2824,,tagline 89-89 d,#1d2824,,tagline -== snap edited grid=90x15 cursor=7,4 -|2: */tmp/pardes-snap/ninep/cwd/demo.zig Save Term Collapse Follow TreeContext Def Refs Del -|3: 1 // café λ 界 -|4: 2 const greeting = "café λ 界 é"; -|5: 3 -|6: 4 pub fn choose(ok: bool) u32 { -|7: 5 if (ok) return 42; -|8: 6 return 7; -|9: 7 } +== snap edited grid=90x15 cursor=7,3 +|1: */tmp/pardes-snap/ninep/cwd/demo.zig Save Undo Del +|2: 1 // café λ 界 +|3: 2 const greeting = "café λ 界 é"; +|4: 3 +|5: 4 pub fn choose(ok: bool) u32 { +|6: 5 if (ok) return 42; +|7: 6 return 7; +|8: 7 } +|9: ~ |14: /tmp/pardes-snap/ninep/cwd/demo.zig:2 -== 9p edited grid=90x15 cursor=7,4,block -|2: */tmp/pardes-snap/ninep/cwd/demo.zig Save Term Collapse Follow TreeContext Def Refs Del -@2: 0-0 #000000,#add38a,,tagline 1-1 #000000,#f9cb70,b,tagline 2-28 #becfc4,#314738,,tagline 29-36 #ecc8f2,#314738,,tagline 37-87 #becfc4,#314738,,tagline 88-89 d,#314738,,tagline -|3: 1 // café λ 界 -+3: 13="é" 15="λ" 17="界" 18="" -@3: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-18 #b9f480,#0d1410,,body 19-89 d,#0d1410,,body -|4: 2 const greeting = "café λ 界 é"; -+4: 28="é" 30="λ" 32="界" 33="" 35="é" -@4: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #616f64,#0d1410,b,body 7-23 #e5eee5,#0d1410,,body 24-36 #b8d88a,#0d1410,,body 37-37 #e5eee5,#0d1410,,body 38-89 d,#0d1410,,body -|5: 3 -@5: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-89 d,#0d1410,,body -|6: 4 pub fn choose(ok: bool) u32 { -@6: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-10 #e5eee5,#0d1410,,body 11-12 #c9a7ed,#0d1410,,body 13-35 #e5eee5,#0d1410,,body 36-89 d,#0d1410,,body -|7: 5 if (ok) return 42; -@7: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-10 #e5eee5,#0d1410,,body 11-12 #c9a7ed,#0d1410,,body 13-18 #e5eee5,#0d1410,,body 19-24 #c9a7ed,#0d1410,,body 25-25 #e5eee5,#0d1410,,body 26-27 #f8c082,#0d1410,,body 28-28 #e5eee5,#0d1410,,body 29-89 d,#0d1410,,body -|8: 6 return 7; -@8: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-10 #e5eee5,#0d1410,,body 11-16 #c9a7ed,#0d1410,,body 17-17 #e5eee5,#0d1410,,body 18-18 #f8c082,#0d1410,,body 19-19 #e5eee5,#0d1410,,body 20-89 d,#0d1410,,body -|9: 7 } -@9: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-7 #e5eee5,#0d1410,,body 8-89 d,#0d1410,,body +== 9p edited grid=90x15 cursor=7,3,block +|1: */tmp/pardes-snap/ninep/cwd/demo.zig Save Undo Del +@1: 0-0 #000000,#add38a,,tagline 1-1 #000000,#f9cb70,b,tagline 2-28 #becfc4,#314738,,tagline 29-36 #ecc8f2,#314738,,tagline 37-51 #becfc4,#314738,,tagline 52-89 d,#314738,,tagline +|2: 1 // café λ 界 ++2: 13="é" 15="λ" 17="界" 18="" +@2: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-18 #b9f480,#0d1410,,body 19-89 d,#0d1410,,body +|3: 2 const greeting = "café λ 界 é"; ++3: 28="é" 30="λ" 32="界" 33="" 35="é" +@3: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #616f64,#0d1410,b,body 7-23 #e5eee5,#0d1410,,body 24-36 #b8d88a,#0d1410,,body 37-37 #e5eee5,#0d1410,,body 38-89 d,#0d1410,,body +|4: 3 +@4: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-89 d,#0d1410,,body +|5: 4 pub fn choose(ok: bool) u32 { +@5: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-10 #e5eee5,#0d1410,,body 11-12 #c9a7ed,#0d1410,,body 13-35 #e5eee5,#0d1410,,body 36-89 d,#0d1410,,body +|6: 5 if (ok) return 42; +@6: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-10 #e5eee5,#0d1410,,body 11-12 #c9a7ed,#0d1410,,body 13-18 #e5eee5,#0d1410,,body 19-24 #c9a7ed,#0d1410,,body 25-25 #e5eee5,#0d1410,,body 26-27 #f8c082,#0d1410,,body 28-28 #e5eee5,#0d1410,,body 29-89 d,#0d1410,,body +|7: 6 return 7; +@7: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-10 #e5eee5,#0d1410,,body 11-16 #c9a7ed,#0d1410,,body 17-17 #e5eee5,#0d1410,,body 18-18 #f8c082,#0d1410,,body 19-19 #e5eee5,#0d1410,,body 20-89 d,#0d1410,,body +|8: 7 } +@8: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-7 #e5eee5,#0d1410,,body 8-89 d,#0d1410,,body +|9: ~ +@9: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-89 d,#0d1410,,body |14: /tmp/pardes-snap/ninep/cwd/demo.zig:2 @14: 0-1 d,#1d2824,,tagline 2-88 #b2c3b8,#1d2824,,tagline 89-89 d,#1d2824,,tagline == style edited grid=90x15 -|2: 0-0 d,#add38a, 1-1 #000000,#f9cb70,b 2-28 #becfc4,#314738, 29-37 #ecc8f2,#314738, 38-89 #becfc4,#314738, -|3: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-17 #b9f480,#0d1410, 18-18 d,d, 19-89 d,#0d1410, +|1: 0-0 d,#add38a, 1-1 #000000,#f9cb70,b 2-28 #becfc4,#314738, 29-37 #ecc8f2,#314738, 38-89 #becfc4,#314738, +|2: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-17 #b9f480,#0d1410, 18-18 d,d, 19-89 d,#0d1410, +|3: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-23 #e5eee5,#0d1410, 24-32 #b8d88a,#0d1410, 33-33 d,d, 34-34 d,#0d1410, 35-36 #b8d88a,#0d1410, 37-89 #e5eee5,#0d1410, +|4: 0-0 d,#608269, 1-4 d,#0d1410, 5-89 #59675c,#0d1410, +|5: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-10 #e5eee5,#0d1410, 11-13 #c9a7ed,#0d1410, 14-89 #e5eee5,#0d1410, +|6: 0-0 d,#608269, 1-4 d,#0d1410, 5-10 #59675c,#0d1410, 11-13 #c9a7ed,#0d1410, 14-18 #e5eee5,#0d1410, 19-25 #c9a7ed,#0d1410, 26-27 #f8c082,#0d1410, 28-89 #e5eee5,#0d1410, +|7: 0-0 d,#608269, 1-4 d,#0d1410, 5-10 #59675c,#0d1410, 11-17 #c9a7ed,#0d1410, 18-18 #f8c082,#0d1410, 19-89 #e5eee5,#0d1410, +|8: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-89 #e5eee5,#0d1410, +|9: 0-0 d,#608269, 1-4 d,#0d1410, 5-89 #59675c,#0d1410, == style resized grid=105x20 |0: 0-1 d,#1d2824, 2-104 #b2c3b8,#1d2824, -|1: 0-1 d,#504733, 2-104 #becfc4,#314738, -|2: 0-0 d,#add38a, 1-1 #000000,#f9cb70,b 2-28 #becfc4,#314738, 29-37 #ecc8f2,#314738, 38-104 #becfc4,#314738, -|3: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-17 #b9f480,#0d1410, 18-18 d,d, 19-104 d,#0d1410, -|4: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-23 #e5eee5,#0d1410, 24-32 #b8d88a,#0d1410, 33-33 d,d, 34-34 d,#0d1410, 35-36 #b8d88a,#0d1410, 37-104 #e5eee5,#0d1410, -|5: 0-0 d,#608269, 1-4 d,#0d1410, 5-104 #59675c,#0d1410, -|6: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-10 #e5eee5,#0d1410, 11-13 #c9a7ed,#0d1410, 14-104 #e5eee5,#0d1410, -|7: 0-0 d,#608269, 1-4 d,#0d1410, 5-10 #59675c,#0d1410, 11-13 #c9a7ed,#0d1410, 14-18 #e5eee5,#0d1410, 19-25 #c9a7ed,#0d1410, 26-27 #f8c082,#0d1410, 28-104 #e5eee5,#0d1410, -|8: 0-0 d,#608269, 1-4 d,#0d1410, 5-10 #59675c,#0d1410, 11-17 #c9a7ed,#0d1410, 18-18 #f8c082,#0d1410, 19-104 #e5eee5,#0d1410, -|9: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-104 #e5eee5,#0d1410, -|10: 0-0 d,#608269, 1-4 d,#0d1410, 5-104 #59675c,#0d1410, +|1: 0-0 d,#add38a, 1-1 #000000,#f9cb70,b 2-28 #becfc4,#314738, 29-37 #ecc8f2,#314738, 38-104 #becfc4,#314738, +|2: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-17 #b9f480,#0d1410, 18-18 d,d, 19-104 d,#0d1410, +|3: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-23 #e5eee5,#0d1410, 24-32 #b8d88a,#0d1410, 33-33 d,d, 34-34 d,#0d1410, 35-36 #b8d88a,#0d1410, 37-104 #e5eee5,#0d1410, +|4: 0-0 d,#608269, 1-4 d,#0d1410, 5-104 #59675c,#0d1410, +|5: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-10 #e5eee5,#0d1410, 11-13 #c9a7ed,#0d1410, 14-104 #e5eee5,#0d1410, +|6: 0-0 d,#608269, 1-4 d,#0d1410, 5-10 #59675c,#0d1410, 11-13 #c9a7ed,#0d1410, 14-18 #e5eee5,#0d1410, 19-25 #c9a7ed,#0d1410, 26-27 #f8c082,#0d1410, 28-104 #e5eee5,#0d1410, +|7: 0-0 d,#608269, 1-4 d,#0d1410, 5-10 #59675c,#0d1410, 11-17 #c9a7ed,#0d1410, 18-18 #f8c082,#0d1410, 19-104 #e5eee5,#0d1410, +|8: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-104 #e5eee5,#0d1410, +|9: 0-0 d,#608269, 1-4 d,#0d1410, 5-104 #59675c,#0d1410, +|10: 0-0 d,#608269, 1-104 d,#0d1410, |11: 0-0 d,#608269, 1-104 d,#0d1410, |12: 0-0 d,#608269, 1-104 d,#0d1410, |13: 0-0 d,#608269, 1-104 d,#0d1410, @@ -117,30 +127,30 @@ |17: 0-0 d,#608269, 1-104 d,#0d1410, |18: 0-0 d,#608269, 1-104 d,#0d1410, |19: 0-1 d,#1d2824, 2-104 #b2c3b8,#1d2824, -== 9p resized grid=105x20 cursor=7,4,block -|0: Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -@0: 0-84 #b2c3b8,#1d2824,,tagline 85-104 d,#1d2824,,tagline -|1: New Term Find Grep Joincol Delcol -@1: 0-1 #ffffff,#504733,,tagline 2-34 #becfc4,#314738,,tagline 35-104 d,#314738,,tagline -|2: */tmp/pardes-snap/ninep/cwd/demo.zig Save Term Collapse Follow TreeContext Def Refs Del -@2: 0-0 #000000,#add38a,,tagline 1-1 #000000,#f9cb70,b,tagline 2-28 #becfc4,#314738,,tagline 29-36 #ecc8f2,#314738,,tagline 37-87 #becfc4,#314738,,tagline 88-104 d,#314738,,tagline -|3: 1 // café λ 界 -+3: 13="é" 15="λ" 17="界" 18="" -@3: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-18 #b9f480,#0d1410,,body 19-104 d,#0d1410,,body -|4: 2 const greeting = "café λ 界 é"; -+4: 28="é" 30="λ" 32="界" 33="" 35="é" -@4: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #616f64,#0d1410,b,body 7-23 #e5eee5,#0d1410,,body 24-36 #b8d88a,#0d1410,,body 37-37 #e5eee5,#0d1410,,body 38-104 d,#0d1410,,body -|5: 3 -@5: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-104 d,#0d1410,,body -|6: 4 pub fn choose(ok: bool) u32 { -@6: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-10 #e5eee5,#0d1410,,body 11-12 #c9a7ed,#0d1410,,body 13-35 #e5eee5,#0d1410,,body 36-104 d,#0d1410,,body -|7: 5 if (ok) return 42; -@7: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-10 #e5eee5,#0d1410,,body 11-12 #c9a7ed,#0d1410,,body 13-18 #e5eee5,#0d1410,,body 19-24 #c9a7ed,#0d1410,,body 25-25 #e5eee5,#0d1410,,body 26-27 #f8c082,#0d1410,,body 28-28 #e5eee5,#0d1410,,body 29-104 d,#0d1410,,body -|8: 6 return 7; -@8: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-10 #e5eee5,#0d1410,,body 11-16 #c9a7ed,#0d1410,,body 17-17 #e5eee5,#0d1410,,body 18-18 #f8c082,#0d1410,,body 19-19 #e5eee5,#0d1410,,body 20-104 d,#0d1410,,body -|9: 7 } -@9: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-7 #e5eee5,#0d1410,,body 8-104 d,#0d1410,,body -|10: ~ +== 9p resized grid=105x20 cursor=7,3,block +|0: New Term Find Grep Newcol Help Exit +@0: 0-10 #b2c3b8,#1d2824,,tagline 11-11 d,#1d2824,,tagline 12-103 #b2c3b8,#1d2824,,tagline 104-104 d,#1d2824,,tagline +|1: */tmp/pardes-snap/ninep/cwd/demo.zig Save Undo Del +@1: 0-0 #000000,#add38a,,tagline 1-1 #000000,#f9cb70,b,tagline 2-28 #becfc4,#314738,,tagline 29-36 #ecc8f2,#314738,,tagline 37-51 #becfc4,#314738,,tagline 52-104 d,#314738,,tagline +|2: 1 // café λ 界 ++2: 13="é" 15="λ" 17="界" 18="" +@2: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-18 #b9f480,#0d1410,,body 19-104 d,#0d1410,,body +|3: 2 const greeting = "café λ 界 é"; ++3: 28="é" 30="λ" 32="界" 33="" 35="é" +@3: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #616f64,#0d1410,b,body 7-23 #e5eee5,#0d1410,,body 24-36 #b8d88a,#0d1410,,body 37-37 #e5eee5,#0d1410,,body 38-104 d,#0d1410,,body +|4: 3 +@4: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-104 d,#0d1410,,body +|5: 4 pub fn choose(ok: bool) u32 { +@5: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-10 #e5eee5,#0d1410,,body 11-12 #c9a7ed,#0d1410,,body 13-35 #e5eee5,#0d1410,,body 36-104 d,#0d1410,,body +|6: 5 if (ok) return 42; +@6: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-10 #e5eee5,#0d1410,,body 11-12 #c9a7ed,#0d1410,,body 13-18 #e5eee5,#0d1410,,body 19-24 #c9a7ed,#0d1410,,body 25-25 #e5eee5,#0d1410,,body 26-27 #f8c082,#0d1410,,body 28-28 #e5eee5,#0d1410,,body 29-104 d,#0d1410,,body +|7: 6 return 7; +@7: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-10 #e5eee5,#0d1410,,body 11-16 #c9a7ed,#0d1410,,body 17-17 #e5eee5,#0d1410,,body 18-18 #f8c082,#0d1410,,body 19-19 #e5eee5,#0d1410,,body 20-104 d,#0d1410,,body +|8: 7 } +@8: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-7 #e5eee5,#0d1410,,body 8-104 d,#0d1410,,body +|9: ~ +@9: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-104 d,#0d1410,,body +|10: @10: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-104 d,#0d1410,,body |11: @11: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-104 d,#0d1410,,body @@ -160,10 +170,9 @@ @18: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-104 d,#0d1410,,body |19: /tmp/pardes-snap/ninep/cwd/demo.zig:2 @19: 0-1 d,#1d2824,,tagline 2-103 #b2c3b8,#1d2824,,tagline 104-104 d,#1d2824,,tagline -== snap resized grid=105x20 cursor=7,4 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -| */tmp/pardes-snap/ninep/cwd/demo.zig Save Term Collapse Follow TreeContext Def Refs Del +== snap resized grid=105x20 cursor=7,3 +| New Term Find Grep Newcol Help Exit +| */tmp/pardes-snap/ninep/cwd/demo.zig Save Undo Del | 1 // café λ 界 | 2 const greeting = "café λ 界 é"; | 3 @@ -180,5 +189,6 @@ | | | +| | /tmp/pardes-snap/ninep/cwd/demo.zig:2 -== 9p unchanged grid=105x20 cursor=7,4,block +== 9p unchanged grid=105x20 cursor=7,3,block diff --git a/test/snapshots/pagercolor.golden b/test/snapshots/pagercolor.golden index 800d6356..36630c1f 100644 --- a/test/snapshots/pagercolor.golden +++ b/test/snapshots/pagercolor.golden @@ -1,7 +1,6 @@ -== snap pager grid=100x50 cursor=4,5 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -|$ /tmp/pardes-snap/pagercolor/cwd Term+bash Save Mode Filter Collapse Del +== snap pager grid=100x50 cursor=4,4 +| New Term Find Grep Newcol Help Exit +|$ /tmp/pardes-snap/pagercolor/cwd Del Term+bash | $ printf '\033]0;title\007\033[31mred\033[m \033[1;32mbold green\033[m \033[38;2;200;100;0mrgb\033 | [m \033[4mul\033[m N\bNA\bAM\bME\bE _\bu_\bs plain\n' | $(readlink /proc/$PPID/exe) - | $ @@ -32,7 +31,8 @@ | | | -| /tmp/pardes-snap/pagercolor/cwd/+New Save Term Collapse Follow Del +| +| /tmp/pardes-snap/pagercolor/cwd/+New Del | 1 | | @@ -40,7 +40,7 @@ | | | -| /tmp/pardes-snap/pagercolor/cwd/+Pager Save Term Filter Collapse Del +| /tmp/pardes-snap/pagercolor/cwd/+Pager Filter Undo Del | red bold green rgb ul NAME us plain | | @@ -51,11 +51,11 @@ | /tmp/pardes-snap/pagercolor/cwd == style pager-colours grid=100x50 |0: 0-1 d,#1d2824, 2-99 #b2c3b8,#1d2824, -|1: 0-1 d,#504733, 2-99 #becfc4,#314738, -|2: 0-1 #000000,#add38a, 2-33 #becfc4,#314738, 34-43 #ecc8f2,#314738, 44-99 #becfc4,#314738, +|1: 0-1 #000000,#add38a, 2-37 #becfc4,#314738, 38-99 #ecc8f2,#314738, +|2: 0-0 d,#608269, 1-1 d,#0d1410, 2-99 #e5eee5,#0d1410, |3: 0-0 d,#608269, 1-1 d,#0d1410, 2-99 #e5eee5,#0d1410, |4: 0-0 d,#608269, 1-1 d,#0d1410, 2-99 #e5eee5,#0d1410, -|5: 0-0 d,#608269, 1-1 d,#0d1410, 2-99 #e5eee5,#0d1410, +|5: 0-0 d,#608269, 1-99 d,#0d1410, |6: 0-0 d,#608269, 1-99 d,#0d1410, |7: 0-0 d,#608269, 1-99 d,#0d1410, |8: 0-0 d,#608269, 1-99 d,#0d1410, @@ -100,24 +100,24 @@ |47: 0-0 d,#608269, 1-99 d,#0d1410, |48: 0-0 d,#608269, 1-99 d,#0d1410, |49: 0-1 d,#1d2824, 2-99 #b2c3b8,#1d2824, -== snap pager-diff grid=100x50 cursor=4,8 -|5: $ printf '\033[33mcommit 0123\033[33mabc\033[m\n\033[1mdiff --git a/x b/x\033[m\n\033[1m--- a/x\03 -|6: 3[m\n\033[1m+++ b/x\033[m\n\033[36m@@ -1 +1 @@\033[m\n\033[31m-old\033[m\n\033[32m+new\033[m\n' | -|7: $(readlink /proc/$PPID/exe) - -|8: $ -|33: /tmp/pardes-snap/pagercolor/cwd/+Diff-0123abc Save Term Diff Collapse LocationsConfig Del +== snap pager-diff grid=100x50 cursor=4,7 +|4: $ printf '\033[33mcommit 0123\033[33mabc\033[m\n\033[1mdiff --git a/x b/x\033[m\n\033[1m--- a/x\03 +|5: 3[m\n\033[1m+++ b/x\033[m\n\033[36m@@ -1 +1 @@\033[m\n\033[31m-old\033[m\n\033[32m+new\033[m\n' | +|6: $(readlink /proc/$PPID/exe) - +|7: $ +|33: /tmp/pardes-snap/pagercolor/cwd/+Diff-0123abc Diff Del |34: commit 0123abc |35: x:1 |36: -old |37: +new |41: |42: -|45: /tmp/pardes-snap/pagercolor/cwd/+Pager Save Term Filter Collapse Del +|45: /tmp/pardes-snap/pagercolor/cwd/+Pager Filter Undo Del |46: red bold green rgb ul NAME us plain == style pager-diff-colours grid=100x50 +|5: 0-0 d,#608269, 1-1 d,#0d1410, 2-99 #e5eee5,#0d1410, |6: 0-0 d,#608269, 1-1 d,#0d1410, 2-99 #e5eee5,#0d1410, |7: 0-0 d,#608269, 1-1 d,#0d1410, 2-99 #e5eee5,#0d1410, -|8: 0-0 d,#608269, 1-1 d,#0d1410, 2-99 #e5eee5,#0d1410, |33: 0-1 d,#465a43, 2-33 #b2c3b8,#1d2824, 34-47 #d3b0d9,#1d2824, 48-99 #b2c3b8,#1d2824, |34: 0-0 d,#608269, 1-1 d,#0d1410, 2-99 #e5eee5,#0d1410, |35: 0-0 d,#608269, 1-1 d,#0d1410, 2-99 #59675c,#0d1410, diff --git a/test/snapshots/pipe.golden b/test/snapshots/pipe.golden index 9ac8ced4..ff3092d8 100644 --- a/test/snapshots/pipe.golden +++ b/test/snapshots/pipe.golden @@ -1,6 +1,5 @@ -== snap prompt grid=180x13 cursor=14,2 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol +== snap prompt grid=180x13 cursor=14,1 +| New Term Find Grep Newcol Help Exit |^ | tr a-z A-Z = Exec Edit |tr a-z A-Z 1 line → 1 · exit 0 ⏎ replace · C-r history · esc | 1 alpha beta | ALPHA BETA @@ -11,12 +10,13 @@ | | | +| | /tmp/pardes-snap/pipe/cwd/pipe.txt:1 -== snap filtered grid=180x13 cursor=17,3 -|2: *Edit |tr a-z A-Z › /tmp/pardes-snap/pipe/cwd/pipe.txt Save Term Collapse Follow Del -|3: 1 ALPHA BETA -|4: 2 gamma delta -|5: -== snap undone grid=180x13 cursor=17,3 -|2: Edit |tr a-z A-Z › /tmp/pardes-snap/pipe/cwd/pipe.txt Save Term Collapse Follow Del -|3: 1 alpha beta +== snap filtered grid=180x13 cursor=17,2 +|1: *Edit |tr a-z A-Z › /tmp/pardes-snap/pipe/cwd/pipe.txt Save Undo Del +|2: 1 ALPHA BETA +|3: 2 gamma delta +|4: +== snap undone grid=180x13 cursor=17,2 +|1: Edit |tr a-z A-Z › /tmp/pardes-snap/pipe/cwd/pipe.txt Redo Del +|2: 1 alpha beta diff --git a/test/snapshots/psearch.golden b/test/snapshots/psearch.golden index 7f8faa3d..7d14780c 100644 --- a/test/snapshots/psearch.golden +++ b/test/snapshots/psearch.golden @@ -1,7 +1,6 @@ -== snap output grid=140x31 cursor=4,9 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/psearch/cwd Term+bash Save Mode Filter Collapse Del +== snap output grid=140x31 cursor=4,8 +| New Term Find Grep Newcol Help Exit +| /tmp/pardes-snap/psearch/cwd Del Term+bash | printf 'x MA''RK a\nzz\nx MA''RK b\nzz\nx MA''RK c\n' | x MARK a | zz @@ -20,7 +19,7 @@ | | | -| /tmp/pardes-snap/psearch/cwd/+New Save Term Collapse Follow Del +| /tmp/pardes-snap/psearch/cwd/+New Del | 1 | | @@ -29,29 +28,30 @@ | | | +| | /tmp/pardes-snap/psearch/cwd -== snap typing grid=140x31 cursor=139,3 -|3: printf 'x MA''RK a\nzz\nx MA''RK b\nzz\nx MA''RK c\n' /MARK -== snap results grid=140x31 cursor=7,4 -|3: printf 'x MA''RK a\nzz\nx MA''RK b\nzz\nx MA''RK c\n' -|21: /tmp/pardes-snap/psearch/cwd/+Search Save Term Collapse Follow LocationsConfig Del -|22: 1 @p1:2:3-6 -|23: 2 x MARK a -|24: 3 @p1:4:3-6 -|25: 4 x MARK b -|26: 5 @p1:6:3-6 -|27: 6 x MARK c -|28: ~ +== snap typing grid=140x31 cursor=139,2 +|2: printf 'x MA''RK a\nzz\nx MA''RK b\nzz\nx MA''RK c\n' /MARK +== snap results grid=140x31 cursor=7,3 +|2: printf 'x MA''RK a\nzz\nx MA''RK b\nzz\nx MA''RK c\n' +|20: /tmp/pardes-snap/psearch/cwd/+Search Del +|21: 1 @p1:2:3-6 +|22: 2 x MARK a +|23: 3 @p1:4:3-6 +|24: 4 x MARK b +|25: 5 @p1:6:3-6 +|26: 6 x MARK c +|27: ~ == style results grid=140x31 |0: 0-1 d,#1d2824, 2-139 #b2c3b8,#1d2824, -|1: 0-1 d,#504733, 2-139 #becfc4,#314738, -|2: 0-1 d,#add38a, 2-30 #becfc4,#314738, 31-40 #ecc8f2,#314738, 41-139 #becfc4,#314738, -|3: 0-0 d,#608269, 1-1 d,#0d1410, 2-139 #e5eee5,#0d1410, -|4: 0-0 d,#608269, 1-1 d,#0d1410, 2-3 #e5eee5,#0d1410, 4-7 #f5f7ee,#3c614a, 8-8 #f5f7ee,#0d1410, 9-139 #e5eee5,#0d1410, +|1: 0-1 d,#add38a, 2-34 #becfc4,#314738, 35-139 #ecc8f2,#314738, +|2: 0-0 d,#608269, 1-1 d,#0d1410, 2-139 #e5eee5,#0d1410, +|3: 0-0 d,#608269, 1-1 d,#0d1410, 2-3 #e5eee5,#0d1410, 4-7 #f5f7ee,#3c614a, 8-8 #f5f7ee,#0d1410, 9-139 #e5eee5,#0d1410, +|4: 0-0 d,#608269, 1-1 d,#0d1410, 2-139 #e5eee5,#0d1410, |5: 0-0 d,#608269, 1-1 d,#0d1410, 2-139 #e5eee5,#0d1410, |6: 0-0 d,#608269, 1-1 d,#0d1410, 2-139 #e5eee5,#0d1410, |7: 0-0 d,#608269, 1-1 d,#0d1410, 2-139 #e5eee5,#0d1410, -|8: 0-0 d,#608269, 1-1 d,#0d1410, 2-139 #e5eee5,#0d1410, +|8: 0-0 d,#608269, 1-139 d,#0d1410, |9: 0-0 d,#608269, 1-139 d,#0d1410, |10: 0-0 d,#608269, 1-139 d,#0d1410, |11: 0-0 d,#608269, 1-139 d,#0d1410, @@ -63,29 +63,29 @@ |17: 0-0 d,#608269, 1-139 d,#0d1410, |18: 0-0 d,#608269, 1-139 d,#0d1410, |19: 0-0 d,#608269, 1-139 d,#0d1410, -|20: 0-0 d,#608269, 1-139 d,#0d1410, -|21: 0-1 d,#465a43, 2-30 #b2c3b8,#1d2824, 31-38 #d3b0d9,#1d2824, 39-139 #b2c3b8,#1d2824, -|22: 0-0 d,#608269, 1-4 d,#0d1410, 5-139 #59675c,#0d1410, -|23: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-8 #e5eee5,#0d1410, 9-12 #e5eee5,#5e4923, 13-139 #e5eee5,#0d1410, -|24: 0-0 d,#608269, 1-4 d,#0d1410, 5-139 #59675c,#0d1410, -|25: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-8 #e5eee5,#0d1410, 9-12 #e5eee5,#5e4923, 13-139 #e5eee5,#0d1410, -|26: 0-0 d,#608269, 1-4 d,#0d1410, 5-139 #59675c,#0d1410, -|27: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-8 #e5eee5,#0d1410, 9-12 #e5eee5,#5e4923, 13-139 #e5eee5,#0d1410, -|28: 0-0 d,#608269, 1-4 d,#0d1410, 5-139 #59675c,#0d1410, +|20: 0-1 d,#465a43, 2-30 #b2c3b8,#1d2824, 31-38 #d3b0d9,#1d2824, 39-139 #b2c3b8,#1d2824, +|21: 0-0 d,#608269, 1-4 d,#0d1410, 5-139 #59675c,#0d1410, +|22: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-8 #e5eee5,#0d1410, 9-12 #e5eee5,#5e4923, 13-139 #e5eee5,#0d1410, +|23: 0-0 d,#608269, 1-4 d,#0d1410, 5-139 #59675c,#0d1410, +|24: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-8 #e5eee5,#0d1410, 9-12 #e5eee5,#5e4923, 13-139 #e5eee5,#0d1410, +|25: 0-0 d,#608269, 1-4 d,#0d1410, 5-139 #59675c,#0d1410, +|26: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-8 #e5eee5,#0d1410, 9-12 #e5eee5,#5e4923, 13-139 #e5eee5,#0d1410, +|27: 0-0 d,#608269, 1-4 d,#0d1410, 5-139 #59675c,#0d1410, +|28: 0-0 d,#608269, 1-139 d,#0d1410, |29: 0-0 d,#608269, 1-139 d,#0d1410, |30: 0-1 d,#1d2824, 2-139 #b2c3b8,#1d2824, -== snap second grid=140x31 cursor=7,6 -== snap back grid=140x31 cursor=7,4 -== snap nomatch grid=140x31 cursor=7,24 -|10: /tmp/pardes-snap/psearch/cwd/+Search Save Term Collapse Follow LocationsConfig Del -|11: 1 +== snap second grid=140x31 cursor=7,5 +== snap back grid=140x31 cursor=7,3 +== snap nomatch grid=140x31 cursor=7,23 +|9: /tmp/pardes-snap/psearch/cwd/+Search Del +|10: 1 |30: /tmp/pardes-snap/psearch/cwd/+Search:3 -== snap ttyinert grid=140x31 cursor=4,9 -|2: $ /tmp/pardes-snap/psearch/cwd Term+bash Save Mode Filter Collapse Del -|3: $ printf 'x MA''RK a\nzz\nx MA''RK b\nzz\nx MA''RK c\n' -|9: $ +== snap ttyinert grid=140x31 cursor=4,8 +|1: $ /tmp/pardes-snap/psearch/cwd Del Term+bash +|2: $ printf 'x MA''RK a\nzz\nx MA''RK b\nzz\nx MA''RK c\n' +|8: $ |30: /tmp/pardes-snap/psearch/cwd -== snap rightsearch grid=140x31 cursor=7,6 -|2: /tmp/pardes-snap/psearch/cwd Term+bash Save Mode Filter Collapse Del -|3: printf 'x MA''RK a\nzz\nx MA''RK b\nzz\nx MA''RK c\n' -|9: +== snap rightsearch grid=140x31 cursor=7,5 +|1: /tmp/pardes-snap/psearch/cwd Del Term+bash +|2: printf 'x MA''RK a\nzz\nx MA''RK b\nzz\nx MA''RK c\n' +|8: diff --git a/test/snapshots/reflow.golden b/test/snapshots/reflow.golden index 6d2945d2..0c22fa0c 100644 --- a/test/snapshots/reflow.golden +++ b/test/snapshots/reflow.golden @@ -1,7 +1,6 @@ -== snap widened grid=200x25 cursor=4,16 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -|$ /tmp/pardes-snap/reflow/cwd Term+bash Save Mode Filter Collapse Del +== snap widened grid=200x25 cursor=4,15 +| New Term Find Grep Newcol Help Exit +|$ /tmp/pardes-snap/reflow/cwd Del Term+bash | yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy | yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy | yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy @@ -16,11 +15,12 @@ | yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy | yyyyyyyyyyyyyyyyyyyyyyyyyyyyyydone | $ -| /tmp/pardes-snap/reflow/cwd/+New Save Term Collapse Follow Del +| /tmp/pardes-snap/reflow/cwd/+New Del | 1 | | | | | +| | /tmp/pardes-snap/reflow/cwd diff --git a/test/snapshots/respawn.golden b/test/snapshots/respawn.golden index 51c7d820..7f7f0283 100644 --- a/test/snapshots/respawn.golden +++ b/test/snapshots/respawn.golden @@ -1,10 +1,10 @@ == snap respawn grid=140x32 cursor=4,9 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/respawn/cwd Term+bash Save Mode Filter Collapse Del /tmp/pardes-snap/respawn/cwd Term+bash Save Mode Filter Collapse Del +| Find Grep Newcol Help Exit +| New Term Joincol Delcol New Term Joincol Delcol +| /tmp/pardes-snap/respawn/cwd Del Term+bash /tmp/pardes-snap/respawn/cwd Del Term+bash | ls ls | -|$ /tmp/pardes-snap/respawn/cwd Term+bash Save Mode Filter Collapse Del +|$ /tmp/pardes-snap/respawn/cwd Del Term+bash | $ ls | $ echo RESP''AWNOK | RESPAWNOK diff --git a/test/snapshots/restore.golden b/test/snapshots/restore.golden index ce49c4ee..957ca369 100644 --- a/test/snapshots/restore.golden +++ b/test/snapshots/restore.golden @@ -1,7 +1,6 @@ -== snap dumped grid=100x31 cursor=4,6 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit Restore /tmp/p -| New Term Find Grep Joincol Delcol -|$ /tmp/pardes-snap/restore/cwd Term+bash Save Mode Filter Collapse Del +== snap dumped grid=100x31 cursor=4,5 +| New Term Find Grep Newcol Help Exit Restore /tmp/pardes-snap/restore/dump.zon Dump +|$ /tmp/pardes-snap/restore/cwd Del Term+bash | $ ls | $ echo KEEP''ME | KEEPME @@ -29,7 +28,8 @@ | | | +| | ✓ @p1 Dump 1 message · SPC h m -== snap restored grid=100x31 cursor=4,8 -|7: ── restored history ── -|8: $ +== snap restored grid=100x31 cursor=4,7 +|6: ── restored history ── +|7: $ diff --git a/test/snapshots/savepane.golden b/test/snapshots/savepane.golden index c434bd40..dd85dd1b 100644 --- a/test/snapshots/savepane.golden +++ b/test/snapshots/savepane.golden @@ -1,7 +1,6 @@ == snap scratch grid=100x31 cursor=20,17 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/savepane/cwd Term+bash Save Mode Filter Collapse Del +| New Term Find Grep Newcol Help Exit +| /tmp/pardes-snap/savepane/cwd Del Term+bash | ls | | @@ -15,7 +14,8 @@ | | | -| */tmp/pardes-snap/savepane/cwd/+New Save Term Collapse Follow Del +| +| */tmp/pardes-snap/savepane/cwd/+New Undo Del | 1 scratch bytes | | @@ -34,7 +34,7 @@ |17: 1 scratch bytes Save /tmp/pardes-snap/savepane/cwd/ |30: ✓ /tmp/pardes-snap/savepane/cwd/+New Save 2 messages · SPC h m == snap saved grid=100x31 cursor=20,17 -|16: /tmp/pardes-snap/savepane/cwd/saved.txt Keep Save Term Collapse Follow Del +|16: /tmp/pardes-snap/savepane/cwd/saved.txt Keep Undo Del |17: 1 scratch bytes |30: · …des-snap/savepane/cwd/+New saved /tmp/pardes-snap/savepane/cwd/saved.txt 3 messages · SPC h m == file bytes diff --git a/test/snapshots/scroll.golden b/test/snapshots/scroll.golden index 67b1c26f..f23f6683 100644 --- a/test/snapshots/scroll.golden +++ b/test/snapshots/scroll.golden @@ -1,10 +1,10 @@ == snap bottom grid=100x31 cursor=4,15 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/scroll/cwd Term+bash Save Mode /tmp/pardes-snap/scroll/cwd Term+bash Save Mode -| Filter Collapse Del Filter Collapse Del -| 190 ls -| 191 s.txt +| Find Grep Newcol Help Exit +| New Term Joincol Delcol New Term Joincol Delcol +| /tmp/pardes-snap/scroll/cwd Del Term+bash /tmp/pardes-snap/scroll/cwd Del Term+bash +| 189 ls +| 190 s.txt +| 191 | 192 | 193 | 194 @@ -15,8 +15,7 @@ | 199 | 200 | -| /tmp/pardes-snap/scroll/cwd Term+bash Save Mode -| Filter Collapse Del +| /tmp/pardes-snap/scroll/cwd Del Term+bash | ls | s.txt | @@ -29,10 +28,12 @@ | | | +| | /tmp/pardes-snap/scroll/cwd == snap wheel3 grid=100x31 cursor=4,15 -|4: 187 ls -|5: 188 s.txt +|3: 186 ls +|4: 187 s.txt +|5: 188 |6: 189 |7: 190 |8: 191 @@ -44,21 +45,23 @@ |14: 197 |15: 198 == snap gutter-up grid=100x31 cursor=4,15 -|4: 180 ls -|5: 181 s.txt -|6: 182 -|7: 183 -|8: 184 -|9: 185 -|10: 186 -|11: 187 -|12: 188 -|13: 189 -|14: 190 -|15: 191 +|3: 178 ls +|4: 179 s.txt +|5: 180 +|6: 181 +|7: 182 +|8: 183 +|9: 184 +|10: 185 +|11: 186 +|12: 187 +|13: 188 +|14: 189 +|15: 190 == snap gutter-down grid=100x31 cursor=4,15 -|4: 182 ls -|5: 183 s.txt +|3: 181 ls +|4: 182 s.txt +|5: 183 |6: 184 |7: 185 |8: 186 @@ -70,8 +73,9 @@ |14: 192 |15: 193 == snap wheel-down grid=100x31 cursor=4,15 -|4: 183 ls -|5: 184 s.txt +|3: 182 ls +|4: 183 s.txt +|5: 184 |6: 185 |7: 186 |8: 187 @@ -83,10 +87,10 @@ |14: 193 |15: 194 == style wheel-down grid=100x31 -|0: 0-1 d,#1d2824, 2-99 #b2c3b8,#1d2824, +|0: 0-71 d,#1d2824, 72-99 #b2c3b8,#1d2824, |1: 0-1 d,#504733, 2-49 #becfc4,#314738, 50-51 #becfc4,#504733, 52-99 #b2c3b8,#1d2824, -|2: 0-1 d,#add38a, 2-29 #becfc4,#314738, 30-39 #ecc8f2,#314738, 40-49 #becfc4,#314738, 50-51 #becfc4,#465a43, 52-79 #b2c3b8,#1d2824, 80-89 #d3b0d9,#1d2824, 90-99 #b2c3b8,#1d2824, -|3: 0-1 d,#314738, 2-49 #becfc4,#314738, 50-51 #becfc4,#1d2824, 52-99 #b2c3b8,#1d2824, +|2: 0-1 d,#add38a, 2-33 #becfc4,#314738, 34-49 #ecc8f2,#314738, 50-51 #ecc8f2,#465a43, 52-83 #b2c3b8,#1d2824, 84-99 #d3b0d9,#1d2824, +|3: 0-0 d,#152019, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, |4: 0-0 d,#152019, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, |5: 0-0 d,#152019, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, |6: 0-0 d,#152019, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, @@ -99,10 +103,10 @@ |13: 0-0 d,#152019, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, |14: 0-0 d,#608269, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, |15: 0-0 d,#152019, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, -|16: 0-1 d,#465a43, 2-29 #b2c3b8,#1d2824, 30-39 #d3b0d9,#1d2824, 40-49 #b2c3b8,#1d2824, 50-50 #b2c3b8,#608269, 51-99 #b2c3b8,#0d1410, -|17: 0-1 d,#1d2824, 2-49 #b2c3b8,#1d2824, 50-50 #b2c3b8,#608269, 51-99 #b2c3b8,#0d1410, +|16: 0-1 d,#465a43, 2-33 #b2c3b8,#1d2824, 34-49 #d3b0d9,#1d2824, 50-50 #d3b0d9,#608269, 51-99 #d3b0d9,#0d1410, +|17: 0-0 d,#608269, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, |18: 0-0 d,#608269, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, -|19: 0-0 d,#608269, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, +|19: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, |20: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, |21: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, |22: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, diff --git a/test/snapshots/scrolloff.golden b/test/snapshots/scrolloff.golden index 56330447..1465679b 100644 --- a/test/snapshots/scrolloff.golden +++ b/test/snapshots/scrolloff.golden @@ -1,11 +1,10 @@ -== snap top grid=210x16 cursor=7,7 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/scrolloff/cwd Term+bash Save Mode Filter Collapse Del +== snap top grid=210x16 cursor=7,6 +| New Term Find Grep Newcol Help Exit +| /tmp/pardes-snap/scrolloff/cwd Del Term+bash | ls | g.txt | -| /tmp/pardes-snap/scrolloff/cwd/g.txt Save Term Collapse Follow Del +| /tmp/pardes-snap/scrolloff/cwd/g.txt Del | 1 line 1 | 2 line 2 | 3 line 3 @@ -14,18 +13,12 @@ | 6 line 6 | 7 line 7 | 8 line 8 +| 9 line 9 | /tmp/pardes-snap/scrolloff/cwd/g.txt:1 == snap edge grid=210x16 cursor=7,11 -|7: 2 line 2 -|8: 3 line 3 -|9: 4 line 4 -|10: 5 line 5 -|11: 6 line 6 -|12: 7 line 7 -|13: 8 line 8 -|14: 9 line 9 |15: /tmp/pardes-snap/scrolloff/cwd/g.txt:6 == snap scrolled1 grid=210x16 cursor=7,11 +|6: 2 line 2 |7: 3 line 3 |8: 4 line 4 |9: 5 line 5 @@ -36,6 +29,7 @@ |14: 10 line 10 |15: /tmp/pardes-snap/scrolloff/cwd/g.txt:7 == snap jdown grid=210x16 cursor=7,11 +|6: 6 line 6 |7: 7 line 7 |8: 8 line 8 |9: 9 line 9 @@ -46,6 +40,7 @@ |14: 14 line 14 |15: /tmp/pardes-snap/scrolloff/cwd/g.txt:11 == snap end grid=210x16 cursor=7,13 +|6: 33 line 33 |7: 34 line 34 |8: 35 line 35 |9: 36 line 36 @@ -55,23 +50,25 @@ |13: 40 line 40 |14: ~ |15: /tmp/pardes-snap/scrolloff/cwd/g.txt:40 -== snap kup grid=210x16 cursor=7,10 -|7: 29 line 29 -|8: 30 line 30 -|9: 31 line 31 -|10: 32 line 32 -|11: 33 line 33 -|12: 34 line 34 -|13: 35 line 35 -|14: 36 line 36 +== snap kup grid=210x16 cursor=7,9 +|6: 29 line 29 +|7: 30 line 30 +|8: 31 line 31 +|9: 32 line 32 +|10: 33 line 33 +|11: 34 line 34 +|12: 35 line 35 +|13: 36 line 36 +|14: 37 line 37 |15: /tmp/pardes-snap/scrolloff/cwd/g.txt:32 -== snap top2 grid=210x16 cursor=7,7 -|7: 1 line 1 -|8: 2 line 2 -|9: 3 line 3 -|10: 4 line 4 -|11: 5 line 5 -|12: 6 line 6 -|13: 7 line 7 -|14: 8 line 8 +== snap top2 grid=210x16 cursor=7,6 +|6: 1 line 1 +|7: 2 line 2 +|8: 3 line 3 +|9: 4 line 4 +|10: 5 line 5 +|11: 6 line 6 +|12: 7 line 7 +|13: 8 line 8 +|14: 9 line 9 |15: /tmp/pardes-snap/scrolloff/cwd/g.txt:1 diff --git a/test/snapshots/selarg.golden b/test/snapshots/selarg.golden index 16b13303..9ebacb76 100644 --- a/test/snapshots/selarg.golden +++ b/test/snapshots/selarg.golden @@ -1,8 +1,7 @@ -== snap kept grid=100x31 cursor=6,4 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/selarg/cwd Term+bash Save Mode /tmp/pardes-snap/selarg/cwd Term+bash Save Mode -| Filter Collapse Del Filter Collapse Del +== snap kept grid=100x31 cursor=6,3 +| Find Grep Newcol Help Exit +| New Term Joincol Delcol New Term Joincol Delcol +| /tmp/pardes-snap/selarg/cwd Del Term+bash /tmp/pardes-snap/selarg/cwd Del Term+bash | ZZARG ZZVEE ./c.sh | | @@ -15,8 +14,8 @@ | | | -| /tmp/pardes-snap/selarg/cwd Term+bash Save Mode -| Filter Collapse Del +| +| /tmp/pardes-snap/selarg/cwd Del Term+bash | ls | s.txt | @@ -29,12 +28,13 @@ | | | +| | /tmp/pardes-snap/selarg/cwd -== snap crosspane grid=100x31 cursor=6,4 -|5: ./c.sh ZZARG -|6: CHORDARG:ZZARG +== snap crosspane grid=100x31 cursor=6,3 +|4: ./c.sh ZZARG +|5: CHORDARG:ZZARG |30: ✓ @p3 Exec 1 message · SPC h m -== snap vselarg grid=100x31 cursor=12,4 -|7: ./c.sh ZZVEE -|8: CHORDARG:ZZVEE +== snap vselarg grid=100x31 cursor=12,3 +|6: ./c.sh ZZVEE +|7: CHORDARG:ZZVEE |30: ✓ @p3 Exec ×2 1 message · SPC h m diff --git a/test/snapshots/selregex.golden b/test/snapshots/selregex.golden index 46f2c9c4..664c8cca 100644 --- a/test/snapshots/selregex.golden +++ b/test/snapshots/selregex.golden @@ -1,6 +1,5 @@ -== snap prompt-armed grid=160x25 cursor=4,2 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol +== snap prompt-armed grid=160x25 cursor=4,1 +| New Term Find Grep Newcol Help Exit |^ s ⏎ select · M-⏎ as a list · C-r history · esc | 1┃const one = 1; | 2┃const two = 2; @@ -23,18 +22,19 @@ | | | +| | /tmp/pardes-snap/selregex/cwd/m.zig:3 -== snap preview grid=160x25 cursor=9,2 -|2: ^ s const = Exec Edit x/const/ 3 selections in 3 lines ⏎ select · M-⏎ as a list · C-r history · esc +== snap preview grid=160x25 cursor=9,1 +|1: ^ s const = Exec Edit x/const/ 3 selections in 3 lines ⏎ select · M-⏎ as a list · C-r history · esc |24: /tmp/pardes-snap/selregex/cwd/m.zig:1 == style preview grid=160x25 |0: 0-1 d,#1d2824, 2-159 #b2c3b8,#1d2824, -|1: 0-1 d,#504733, 2-159 #becfc4,#314738, -|2: 0-1 #000000,#add38a, 2-2 #bada9d,#2c2c0f,b 3-3 #bada9d,#2c2c0f, 4-10 #becfc4,#2c2c0f, 11-17 #79836f,#2c2c0f, 18-115 #becfc4,#2c2c0f, 116-159 #79836f,#2c2c0f, -|3: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-5 #616f64,#0d1410,b 6-6 #add38a,#0d1410,b 7-10 #f5f7ee,#3c614a, 11-11 #3c614a,#f5f7ee, 12-12 #3c614a,#0d1410, 13-18 #e5eee5,#0d1410, 19-19 #f8c082,#0d1410, 20-159 #e5eee5,#0d1410, -|4: 0-0 d,#608269, 1-4 d,#0d1410, 5-5 #59675c,#0d1410, 6-6 #add38a,#0d1410, 7-10 #e5eee5,#24382c, 11-11 #3c614a,#f5f7ee, 12-12 #3c614a,#0d1410, 13-18 #e5eee5,#0d1410, 19-19 #f8c082,#0d1410, 20-159 #e5eee5,#0d1410, -|5: 0-0 d,#608269, 1-4 d,#0d1410, 5-5 #59675c,#0d1410, 6-6 #add38a,#0d1410, 7-10 #e5eee5,#24382c, 11-11 #3c614a,#f5f7ee, 12-12 #3c614a,#0d1410, 13-20 #e5eee5,#0d1410, 21-21 #f8c082,#0d1410, 22-159 #e5eee5,#0d1410, -|6: 0-0 d,#608269, 1-4 d,#0d1410, 5-159 #59675c,#0d1410, +|1: 0-1 #000000,#add38a, 2-2 #bada9d,#2c2c0f,b 3-3 #bada9d,#2c2c0f, 4-10 #becfc4,#2c2c0f, 11-17 #79836f,#2c2c0f, 18-115 #becfc4,#2c2c0f, 116-159 #79836f,#2c2c0f, +|2: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-5 #616f64,#0d1410,b 6-6 #add38a,#0d1410,b 7-10 #f5f7ee,#3c614a, 11-11 #3c614a,#f5f7ee, 12-12 #3c614a,#0d1410, 13-18 #e5eee5,#0d1410, 19-19 #f8c082,#0d1410, 20-159 #e5eee5,#0d1410, +|3: 0-0 d,#608269, 1-4 d,#0d1410, 5-5 #59675c,#0d1410, 6-6 #add38a,#0d1410, 7-10 #e5eee5,#24382c, 11-11 #3c614a,#f5f7ee, 12-12 #3c614a,#0d1410, 13-18 #e5eee5,#0d1410, 19-19 #f8c082,#0d1410, 20-159 #e5eee5,#0d1410, +|4: 0-0 d,#608269, 1-4 d,#0d1410, 5-5 #59675c,#0d1410, 6-6 #add38a,#0d1410, 7-10 #e5eee5,#24382c, 11-11 #3c614a,#f5f7ee, 12-12 #3c614a,#0d1410, 13-20 #e5eee5,#0d1410, 21-21 #f8c082,#0d1410, 22-159 #e5eee5,#0d1410, +|5: 0-0 d,#608269, 1-4 d,#0d1410, 5-159 #59675c,#0d1410, +|6: 0-0 d,#608269, 1-159 d,#0d1410, |7: 0-0 d,#608269, 1-159 d,#0d1410, |8: 0-0 d,#608269, 1-159 d,#0d1410, |9: 0-0 d,#608269, 1-159 d,#0d1410, @@ -53,43 +53,43 @@ |22: 0-0 d,#608269, 1-159 d,#0d1410, |23: 0-0 d,#608269, 1-159 d,#0d1410, |24: 0-1 d,#1d2824, 2-159 #b2c3b8,#1d2824, -== snap three-selected grid=160x25 cursor=11,3 -|2: Edit x/const/ › /tmp/pardes-snap/selregex/cwd/m.zig Keep Save Term Collapse Follow TreeContext Def Refs Del -|3: 1 const one = 1; -|4: 2 const two = 2; -|5: 3 const three = 3; +== snap three-selected grid=160x25 cursor=11,2 +|1: Edit x/const/ › /tmp/pardes-snap/selregex/cwd/m.zig Keep Del +|2: 1 const one = 1; +|3: 2 const two = 2; +|4: 3 const three = 3; == style three-selected grid=160x25 -|2: 0-1 d,#add38a, 2-47 #becfc4,#2c2c0f, 48-53 #ecc8f2,#2c2c0f, 54-159 #becfc4,#2c2c0f, -|3: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-11 #f5f7ee,#3c614a, 12-12 #f5f7ee,#0d1410, 13-18 #e5eee5,#0d1410, 19-19 #f8c082,#0d1410, 20-159 #e5eee5,#0d1410, -|4: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-10 #e5eee5,#24382c, 11-11 #3c614a,#f5f7ee, 12-12 #3c614a,#0d1410, 13-18 #e5eee5,#0d1410, 19-19 #f8c082,#0d1410, 20-159 #e5eee5,#0d1410, -|5: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-10 #e5eee5,#24382c, 11-11 #3c614a,#f5f7ee, 12-12 #3c614a,#0d1410, 13-20 #e5eee5,#0d1410, 21-21 #f8c082,#0d1410, 22-159 #e5eee5,#0d1410, -== snap narrowed grid=160x25 cursor=21,2 -|2: ^ Edit x/const/ › s t = Exec Edit x/t/ 3 selections in 3 lines ⏎ select · M-⏎ as a list · C-r history · esc -|3: 1┃const one = 1; -|4: 2┃const two = 2; -|5: 3┃const three = 3; +|1: 0-1 d,#add38a, 2-47 #becfc4,#2c2c0f, 48-53 #ecc8f2,#2c2c0f, 54-159 #becfc4,#2c2c0f, +|2: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-11 #f5f7ee,#3c614a, 12-12 #f5f7ee,#0d1410, 13-18 #e5eee5,#0d1410, 19-19 #f8c082,#0d1410, 20-159 #e5eee5,#0d1410, +|3: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-10 #e5eee5,#24382c, 11-11 #3c614a,#f5f7ee, 12-12 #3c614a,#0d1410, 13-18 #e5eee5,#0d1410, 19-19 #f8c082,#0d1410, 20-159 #e5eee5,#0d1410, +|4: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-10 #e5eee5,#24382c, 11-11 #3c614a,#f5f7ee, 12-12 #3c614a,#0d1410, 13-20 #e5eee5,#0d1410, 21-21 #f8c082,#0d1410, 22-159 #e5eee5,#0d1410, +== snap narrowed grid=160x25 cursor=21,1 +|1: ^ Edit x/const/ › s t = Exec Edit x/t/ 3 selections in 3 lines ⏎ select · M-⏎ as a list · C-r history · esc +|2: 1┃const one = 1; +|3: 2┃const two = 2; +|4: 3┃const three = 3; == style narrowed grid=160x25 -|2: 0-1 #000000,#add38a, 2-17 #becfc4,#2c2c0f, 18-18 #bada9d,#2c2c0f,b 19-19 #bada9d,#2c2c0f, 20-22 #becfc4,#2c2c0f, 23-29 #79836f,#2c2c0f, 30-115 #becfc4,#2c2c0f, 116-159 #79836f,#2c2c0f, -|3: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-5 #616f64,#0d1410,b 6-6 #add38a,#0d1410,b 7-10 #e5eee5,#0d1410, 11-11 #3c614a,#f5f7ee, 12-12 #3c614a,#0d1410, 13-18 #e5eee5,#0d1410, 19-19 #f8c082,#0d1410, 20-159 #e5eee5,#0d1410, -|4: 0-0 d,#608269, 1-4 d,#0d1410, 5-5 #59675c,#0d1410, 6-6 #add38a,#0d1410, 7-10 #e5eee5,#0d1410, 11-11 #3c614a,#f5f7ee, 12-12 #3c614a,#0d1410, 13-18 #e5eee5,#0d1410, 19-19 #f8c082,#0d1410, 20-159 #e5eee5,#0d1410, -|5: 0-0 d,#608269, 1-4 d,#0d1410, 5-5 #59675c,#0d1410, 6-6 #add38a,#0d1410, 7-10 #e5eee5,#0d1410, 11-11 #3c614a,#f5f7ee, 12-12 #3c614a,#0d1410, 13-20 #e5eee5,#0d1410, 21-21 #f8c082,#0d1410, 22-159 #e5eee5,#0d1410, -== snap esc-restores grid=160x25 cursor=11,3 -|2: Edit x/const/ › /tmp/pardes-snap/selregex/cwd/m.zig Keep Save Term Collapse Follow TreeContext Def Refs Del -|3: 1 const one = 1; -|4: 2 const two = 2; -|5: 3 const three = 3; +|1: 0-1 #000000,#add38a, 2-17 #becfc4,#2c2c0f, 18-18 #bada9d,#2c2c0f,b 19-19 #bada9d,#2c2c0f, 20-22 #becfc4,#2c2c0f, 23-29 #79836f,#2c2c0f, 30-115 #becfc4,#2c2c0f, 116-159 #79836f,#2c2c0f, +|2: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-5 #616f64,#0d1410,b 6-6 #add38a,#0d1410,b 7-10 #e5eee5,#0d1410, 11-11 #3c614a,#f5f7ee, 12-12 #3c614a,#0d1410, 13-18 #e5eee5,#0d1410, 19-19 #f8c082,#0d1410, 20-159 #e5eee5,#0d1410, +|3: 0-0 d,#608269, 1-4 d,#0d1410, 5-5 #59675c,#0d1410, 6-6 #add38a,#0d1410, 7-10 #e5eee5,#0d1410, 11-11 #3c614a,#f5f7ee, 12-12 #3c614a,#0d1410, 13-18 #e5eee5,#0d1410, 19-19 #f8c082,#0d1410, 20-159 #e5eee5,#0d1410, +|4: 0-0 d,#608269, 1-4 d,#0d1410, 5-5 #59675c,#0d1410, 6-6 #add38a,#0d1410, 7-10 #e5eee5,#0d1410, 11-11 #3c614a,#f5f7ee, 12-12 #3c614a,#0d1410, 13-20 #e5eee5,#0d1410, 21-21 #f8c082,#0d1410, 22-159 #e5eee5,#0d1410, +== snap esc-restores grid=160x25 cursor=11,2 +|1: Edit x/const/ › /tmp/pardes-snap/selregex/cwd/m.zig Keep Del +|2: 1 const one = 1; +|3: 2 const two = 2; +|4: 3 const three = 3; == style esc-restores grid=160x25 -|2: 0-1 d,#add38a, 2-47 #becfc4,#2c2c0f, 48-53 #ecc8f2,#2c2c0f, 54-159 #becfc4,#2c2c0f, -|3: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-11 #f5f7ee,#3c614a, 12-12 #f5f7ee,#0d1410, 13-18 #e5eee5,#0d1410, 19-19 #f8c082,#0d1410, 20-159 #e5eee5,#0d1410, -|4: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-10 #e5eee5,#24382c, 11-11 #3c614a,#f5f7ee, 12-12 #3c614a,#0d1410, 13-18 #e5eee5,#0d1410, 19-19 #f8c082,#0d1410, 20-159 #e5eee5,#0d1410, -|5: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-10 #e5eee5,#24382c, 11-11 #3c614a,#f5f7ee, 12-12 #3c614a,#0d1410, 13-20 #e5eee5,#0d1410, 21-21 #f8c082,#0d1410, 22-159 #e5eee5,#0d1410, -== snap commented grid=160x25 cursor=14,3 -|2: *Edit x/const/ › /tmp/pardes-snap/selregex/cwd/m.zig Save Term Collapse Follow TreeContext Def Refs Del -|3: 1 // const one = 1; -|4: 2 // const two = 2; -|5: 3 // const three = 3; -== snap uncommented grid=160x25 cursor=11,3 -|2: Edit x/const/ › /tmp/pardes-snap/selregex/cwd/m.zig Save Term Collapse Follow TreeContext Def Refs Del -|3: 1 const one = 1; -|4: 2 const two = 2; -|5: 3 const three = 3; +|1: 0-1 d,#add38a, 2-47 #becfc4,#2c2c0f, 48-53 #ecc8f2,#2c2c0f, 54-159 #becfc4,#2c2c0f, +|2: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-11 #f5f7ee,#3c614a, 12-12 #f5f7ee,#0d1410, 13-18 #e5eee5,#0d1410, 19-19 #f8c082,#0d1410, 20-159 #e5eee5,#0d1410, +|3: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-10 #e5eee5,#24382c, 11-11 #3c614a,#f5f7ee, 12-12 #3c614a,#0d1410, 13-18 #e5eee5,#0d1410, 19-19 #f8c082,#0d1410, 20-159 #e5eee5,#0d1410, +|4: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-10 #e5eee5,#24382c, 11-11 #3c614a,#f5f7ee, 12-12 #3c614a,#0d1410, 13-20 #e5eee5,#0d1410, 21-21 #f8c082,#0d1410, 22-159 #e5eee5,#0d1410, +== snap commented grid=160x25 cursor=14,2 +|1: *Edit x/const/ › /tmp/pardes-snap/selregex/cwd/m.zig Save Undo Del +|2: 1 // const one = 1; +|3: 2 // const two = 2; +|4: 3 // const three = 3; +== snap uncommented grid=160x25 cursor=11,2 +|1: Edit x/const/ › /tmp/pardes-snap/selregex/cwd/m.zig Undo Del +|2: 1 const one = 1; +|3: 2 const two = 2; +|4: 3 const three = 3; diff --git a/test/snapshots/shellset.golden b/test/snapshots/shellset.golden index 8fb2abed..59a75db0 100644 --- a/test/snapshots/shellset.golden +++ b/test/snapshots/shellset.golden @@ -1,7 +1,6 @@ -== snap boot grid=90x21 cursor=7,3 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/shellset/cwd/cmd.txt Keep Save Term Collapse Follow Del +== snap boot grid=90x21 cursor=7,2 +| New Term Find Grep Newcol Help Exit +| /tmp/pardes-snap/shellset/cwd/cmd.txt Keep Del | 1 Shell zznosuchshell | | @@ -19,13 +18,14 @@ | | | +| | /tmp/pardes-snap/shellset/cwd/cmd.txt:1 -== snap builtin-ran grid=90x21 cursor=25,3 -|2: ✗/tmp/pardes-snap/shellset/cwd/cmd.txt Keep Save Term Collapse Follow Del +== snap builtin-ran grid=90x21 cursor=25,2 +|1: ✗/tmp/pardes-snap/shellset/cwd/cmd.txt Keep Del |20: ✗ …cmd.txt Shell: shell "zznosuchshell" not found (a name on the… 3 messages · SPC h m -== snap fallback-shell grid=90x21 cursor=49,6 -|1: New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -|2: ✗/tmp/pardes-snap/shellset/cwd/cmd.txt Keep /tmp/pardes-snap/shellset/cwd Term+bash Sav -|3: Save Term Collapse Follow Del e Mode Filter Collapse Del -|4: 1 Shell zznosuchshell ls -|5: cmd.txt zmarkfile.txt +== snap fallback-shell grid=90x21 cursor=49,5 +|0: Find Grep Newcol Help Exit +|1: New Term Joincol Delcol New Term Joincol Delcol +|2: ✗/tmp/pardes-snap/shellset/cwd/cmd.txt Keep /tmp/pardes-snap/shellset/cwd Del Term+bash +|3: Del ls +|4: 1 Shell zznosuchshell cmd.txt zmarkfile.txt diff --git a/test/snapshots/shrinktag.golden b/test/snapshots/shrinktag.golden index ea2260fd..c1ef222b 100644 --- a/test/snapshots/shrinktag.golden +++ b/test/snapshots/shrinktag.golden @@ -1,12 +1,12 @@ == snap before grid=100x31 cursor=4,9 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/shrinktag/cwd Term+bash Save Mo /tmp/pardes-snap/shrinktag/cwd Term+bash Save Mo -| de Filter Collapse Del de Filter Collapse Del +| Find Grep Newcol Help Exit +| New Term Joincol Delcol New Term Joincol Delcol +| /tmp/pardes-snap/shrinktag/cwd Del Term+bash /tmp/pardes-snap/shrinktag/cwd Del Term+bash | ls ls | w.txt w.txt | | +| | echo one; echo two | | @@ -15,8 +15,7 @@ | | | -| /tmp/pardes-snap/shrinktag/cwd Term+bash Save Mo -| de Filter Collapse Del +| /tmp/pardes-snap/shrinktag/cwd Del Term+bash | ls | w.txt | @@ -29,35 +28,32 @@ | | | +| | · @p1 a copy of the terminal's text: Tab or B2 runs it; what the program dr… 1 message · SPC h m == snap shrunk grid=100x31 cursor=hidden -|4: w.txt ls -|5: w.txt -|6: /tmp/pardes-snap/shrinktag/cwd Term+bash Save Mo -|7: de Filter Collapse Del -|8: ls -|9: w.txt +|3: w.txt ls +|4: w.txt +|5: /tmp/pardes-snap/shrinktag/cwd Del Term+bash +|6: ls +|7: w.txt +|8: |16: |17: |18: -|19: == snap move-preview grid=100x31 cursor=hidden == snap restored grid=100x31 cursor=4,9 -|4: ls ls -|5: w.txt w.txt +|3: ls ls +|4: w.txt w.txt +|5: |6: |7: |8: echo one; echo two -|9: -|17: /tmp/pardes-snap/shrinktag/cwd Term+bash Save Mo -|18: de Filter Collapse Del -|19: ls -|20: w.txt +|16: /tmp/pardes-snap/shrinktag/cwd Del Term+bash +|17: ls +|18: w.txt == snap bottom-shrunk grid=100x31 cursor=4,9 +|16: |17: |18: -|19: -|20: -|26: /tmp/pardes-snap/shrinktag/cwd Term+bash Save Mo -|27: de Filter Collapse Del +|27: /tmp/pardes-snap/shrinktag/cwd Del Term+bash |28: w.txt diff --git a/test/snapshots/stepgrain.golden b/test/snapshots/stepgrain.golden index 733e7f3a..2ba3192d 100644 --- a/test/snapshots/stepgrain.golden +++ b/test/snapshots/stepgrain.golden @@ -1,7 +1,6 @@ == snap results grid=150x31 cursor=13,12 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/stepgrain/cwd/a.txt Save Term Collapse Follow Del +| New Term Find Grep Newcol Help Exit +| /tmp/pardes-snap/stepgrain/cwd/a.txt Del | 1 hello ZQMARK one | 2 see also sub/b.txt for ZQMARK two | @@ -10,6 +9,7 @@ | | | +| |^ +Search 1/3 Del | Grep ZQMARK | a.txt @@ -34,13 +34,13 @@ |11: ^ +Search 2/3 Del == style step-row2 grid=150x31 |0: 0-1 d,#1d2824, 2-149 #b2c3b8,#1d2824, -|1: 0-1 d,#504733, 2-149 #becfc4,#314738, -|2: 0-1 d,#465a43, 2-32 #b2c3b8,#1d2824, 33-38 #d3b0d9,#1d2824, 39-149 #b2c3b8,#1d2824, -|3: 0-0 d,#5e4923, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-12 #e5eee5,#0d1410, 13-18 #e5eee5,#5e4923, 19-149 #e5eee5,#0d1410, -|4: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-29 #e5eee5,#0d1410, 30-35 #0d1410,#917a53, 36-36 #0d1410,#0d1410, 37-149 #e5eee5,#0d1410, +|1: 0-1 d,#465a43, 2-32 #b2c3b8,#1d2824, 33-38 #d3b0d9,#1d2824, 39-149 #b2c3b8,#1d2824, +|2: 0-0 d,#5e4923, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-12 #e5eee5,#0d1410, 13-18 #e5eee5,#5e4923, 19-149 #e5eee5,#0d1410, +|3: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-29 #e5eee5,#0d1410, 30-35 #0d1410,#917a53, 36-36 #0d1410,#0d1410, 37-149 #e5eee5,#0d1410, +|4: 0-0 d,#608269, 1-149 d,#0d1410, |5: 0-0 d,#608269, 1-149 d,#0d1410, -|6: 0-0 d,#608269, 1-149 d,#0d1410, -|7: 0-0 d,#e5eee5, 1-149 d,#0d1410, +|6: 0-0 d,#e5eee5, 1-149 d,#0d1410, +|7: 0-0 d,#608269, 1-149 d,#0d1410, |8: 0-0 d,#608269, 1-149 d,#0d1410, |9: 0-0 d,#608269, 1-149 d,#0d1410, |10: 0-0 d,#608269, 1-149 d,#0d1410, @@ -82,9 +82,9 @@ |22: 1 |30: ✓ /tmp/pardes-snap/stepgrain/cwd/a.txt Find 2 messages · SPC h m == style blank-in-path grid=150x31 +|2: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-149 #e5eee5,#0d1410, |3: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-149 #e5eee5,#0d1410, -|4: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-149 #e5eee5,#0d1410, -|7: 0-0 d,#608269, 1-149 d,#0d1410, +|6: 0-0 d,#608269, 1-149 d,#0d1410, |13: 0-0 d,#608269, 1-1 d,#0d1410, 2-5 #e5eee5,#24382c, 6-10 #e5eee5,#5e4923,b 11-149 #e5eee5,#24382c, |14: 0-0 d,#608269, 1-149 d,#0d1410, |15: 0-0 d,#608269, 1-149 d,#0d1410, @@ -93,4 +93,3 @@ |21: 0-1 d,#465a43, 2-32 #b2c3b8,#1d2824, 33-46 #d3b0d9,#1d2824, 47-149 #b2c3b8,#1d2824, == snap blank-opened grid=150x31 cursor=7,22 |11: +Search 1/1 Save Undock Del -|21: /tmp/pardes-snap/stepgrain/cwd/two words.txt Save Term Collapse Follow Del diff --git a/test/snapshots/syntax.golden b/test/snapshots/syntax.golden index 33bdb9b2..36552555 100644 --- a/test/snapshots/syntax.golden +++ b/test/snapshots/syntax.golden @@ -1,7 +1,7 @@ -== snap zig-open grid=150x31 cursor=82,18 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/syntax/cwd Term+bash Save Mode Filter Collapse Del /tmp/pardes-snap/syntax/cwd Term+bash Save Mode Filter Collapse Del +== snap zig-open grid=150x31 cursor=82,17 +| Find Grep Newcol Help Exit +| New Term Joincol Delcol New Term Joincol Delcol +| /tmp/pardes-snap/syntax/cwd Del Term+bash /tmp/pardes-snap/syntax/cwd Del Term+bash | ls ls | demo.zig demo.zig | @@ -15,10 +15,9 @@ | | | -| /tmp/pardes-snap/syntax/cwd Term+bash Save Mode Filter Collapse Del ‹@p1 › /tmp/pardes-snap/syntax/cwd/demo.zig Keep Save Term Collapse Follo -| ls w TreeContext Def Refs Del -| demo.zig 1 const std = @import("std"); // greet -| 2 pub fn main() void { +| /tmp/pardes-snap/syntax/cwd Del Term+bash ‹@p1 › /tmp/pardes-snap/syntax/cwd/demo.zig Keep Del +| ls 1 const std = @import("std"); // greet +| demo.zig 2 pub fn main() void { | 3 var x: u32 = 42; | 4 _ = x; | 5 } @@ -29,11 +28,12 @@ | | | +| | · @p1 a copy of the terminal's text: Tab or B2 runs it; what the program draws next replaces it (Ctrl-b types to the program) 1 message · SPC h m == style zig-open grid=150x31 -|0: 0-1 d,#1d2824, 2-149 #b2c3b8,#1d2824, +|0: 0-121 d,#1d2824, 122-149 #b2c3b8,#1d2824, |1: 0-1 d,#504733, 2-74 #b2c3b8,#1d2824, 75-76 #b2c3b8,#504733, 77-149 #becfc4,#314738, -|2: 0-1 d,#465a43, 2-29 #b2c3b8,#1d2824, 30-39 #d3b0d9,#1d2824, 40-74 #b2c3b8,#1d2824, 75-76 #b2c3b8,#465a43, 77-104 #b2c3b8,#1d2824, 105-114 #d3b0d9,#1d2824, 115-149 #b2c3b8,#1d2824, +|2: 0-1 d,#465a43, 2-33 #b2c3b8,#1d2824, 34-74 #d3b0d9,#1d2824, 75-76 #d3b0d9,#465a43, 77-108 #b2c3b8,#1d2824, 109-149 #d3b0d9,#1d2824, |3: 0-0 d,#608269, 1-1 d,#0d1410, 2-74 #e5eee5,#0d1410, 75-75 #e5eee5,#608269, 76-149 #e5eee5,#0d1410, |4: 0-0 d,#608269, 1-1 d,#0d1410, 2-74 #e5eee5,#0d1410, 75-75 #e5eee5,#608269, 76-149 #e5eee5,#0d1410, |5: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-149 d,#0d1410, @@ -47,13 +47,13 @@ |13: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-149 d,#0d1410, |14: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-149 d,#0d1410, |15: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-149 d,#0d1410, -|16: 0-1 d,#465a43, 2-29 #b2c3b8,#1d2824, 30-39 #d3b0d9,#1d2824, 40-74 #b2c3b8,#1d2824, 75-76 #b2c3b8,#add38a, 77-111 #becfc4,#2c2c0f, 112-120 #ecc8f2,#2c2c0f, 121-149 #becfc4,#2c2c0f, -|17: 0-0 d,#608269, 1-1 d,#0d1410, 2-74 #e5eee5,#0d1410, 75-76 #e5eee5,#2c2c0f, 77-149 #becfc4,#2c2c0f, -|18: 0-0 d,#608269, 1-1 d,#0d1410, 2-74 #e5eee5,#0d1410, 75-75 #e5eee5,#608269, 76-76 #e5eee5,#0d1410, 77-79 #e5eee5,#0d1410,b 80-81 #616f64,#0d1410,b 82-93 #e5eee5,#0d1410, 94-100 #c9a7ed,#0d1410, 101-101 #e5eee5,#0d1410, 102-106 #b8d88a,#0d1410, 107-109 #e5eee5,#0d1410, 110-149 #b9f480,#0d1410, -|19: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-79 d,#0d1410, 80-81 #59675c,#0d1410, 82-85 #e5eee5,#0d1410, 86-88 #c9a7ed,#0d1410, 89-149 #e5eee5,#0d1410, -|20: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-79 d,#0d1410, 80-85 #59675c,#0d1410, 86-98 #e5eee5,#0d1410, 99-100 #f8c082,#0d1410, 101-149 #e5eee5,#0d1410, -|21: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-79 d,#0d1410, 80-85 #59675c,#0d1410, 86-149 #e5eee5,#0d1410, -|22: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-79 d,#0d1410, 80-81 #59675c,#0d1410, 82-149 #e5eee5,#0d1410, +|16: 0-1 d,#465a43, 2-33 #b2c3b8,#1d2824, 34-74 #d3b0d9,#1d2824, 75-76 #d3b0d9,#add38a, 77-111 #becfc4,#2c2c0f, 112-120 #ecc8f2,#2c2c0f, 121-149 #becfc4,#2c2c0f, +|17: 0-0 d,#608269, 1-1 d,#0d1410, 2-74 #e5eee5,#0d1410, 75-75 #e5eee5,#608269, 76-76 #e5eee5,#0d1410, 77-79 #e5eee5,#0d1410,b 80-81 #616f64,#0d1410,b 82-93 #e5eee5,#0d1410, 94-100 #c9a7ed,#0d1410, 101-101 #e5eee5,#0d1410, 102-106 #b8d88a,#0d1410, 107-109 #e5eee5,#0d1410, 110-149 #b9f480,#0d1410, +|18: 0-0 d,#608269, 1-1 d,#0d1410, 2-74 #e5eee5,#0d1410, 75-75 #e5eee5,#608269, 76-79 #e5eee5,#0d1410, 80-81 #59675c,#0d1410, 82-85 #e5eee5,#0d1410, 86-88 #c9a7ed,#0d1410, 89-149 #e5eee5,#0d1410, +|19: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-79 d,#0d1410, 80-85 #59675c,#0d1410, 86-98 #e5eee5,#0d1410, 99-100 #f8c082,#0d1410, 101-149 #e5eee5,#0d1410, +|20: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-79 d,#0d1410, 80-85 #59675c,#0d1410, 86-149 #e5eee5,#0d1410, +|21: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-79 d,#0d1410, 80-81 #59675c,#0d1410, 82-149 #e5eee5,#0d1410, +|22: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-149 d,#0d1410, |23: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-149 d,#0d1410, |24: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-149 d,#0d1410, |25: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-149 d,#0d1410, diff --git a/test/snapshots/tag.golden b/test/snapshots/tag.golden index df7c1890..be511e37 100644 --- a/test/snapshots/tag.golden +++ b/test/snapshots/tag.golden @@ -1,7 +1,7 @@ -== snap tag-focus grid=150x31 cursor=36,2 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/tag/cwd Term+bash Save Mode Filter Collapse Del /tmp/pardes-snap/tag/cwd Term+bash Save Mode Filter Collapse Del +== snap tag-focus grid=150x31 cursor=40,2 +| Find Grep Newcol Help Exit +| New Term Joincol Delcol New Term Joincol Delcol +| /tmp/pardes-snap/tag/cwd Del Term+bash /tmp/pardes-snap/tag/cwd Del Term+bash | ls ls | t.txt t.txt | @@ -15,7 +15,7 @@ | | | -| /tmp/pardes-snap/tag/cwd Term+bash Save Mode Filter Collapse Del +| /tmp/pardes-snap/tag/cwd Del Term+bash | ls | t.txt | @@ -30,13 +30,13 @@ | | | /tmp/pardes-snap/tag/cwd -== snap tag-typed grid=150x31 cursor=42,2 -|2: /tmp/pardes-snap/tag/cwd Term+bash t.txt Save Mode Filter Collapse Del /tmp/pardes-snap/tag/cwd Term+bash Save Mode Filter Collapse Del -== snap tag-del grid=150x31 cursor=38,2 -|2: /tmp/pardes-snap/tag/cwd Term+bash t Save Mode Filter Collapse Del /tmp/pardes-snap/tag/cwd Term+bash Save Mode Filter Collapse Del +== snap tag-typed grid=150x31 cursor=46,2 +|2: /tmp/pardes-snap/tag/cwd Del Term+bash t.txt /tmp/pardes-snap/tag/cwd Del Term+bash +== snap tag-del grid=150x31 cursor=42,2 +|2: /tmp/pardes-snap/tag/cwd Del Term+bash t /tmp/pardes-snap/tag/cwd Del Term+bash == snap tag-exit grid=150x31 cursor=4,5 -|2: /tmp/pardes-snap/tag/cwd Term+bash t.txt Save Mode Filter Collapse Del /tmp/pardes-snap/tag/cwd Term+bash Save Mode Filter Collapse Del +|2: /tmp/pardes-snap/tag/cwd Del Term+bash t.txt /tmp/pardes-snap/tag/cwd Del Term+bash == snap tag-look grid=150x31 cursor=82,17 -|16: /tmp/pardes-snap/tag/cwd Term+bash Save Mode Filter Collapse Del ‹@p1 › /tmp/pardes-snap/tag/cwd/t.txt Keep Save Term Collapse Follow Del +|16: /tmp/pardes-snap/tag/cwd Del Term+bash ‹@p1 › /tmp/pardes-snap/tag/cwd/t.txt Keep Del |17: ls 1 ZZLOOKED |30: /tmp/pardes-snap/tag/cwd/t.txt:1 diff --git a/test/snapshots/tagalign.golden b/test/snapshots/tagalign.golden index f42ce294..21b6a58c 100644 --- a/test/snapshots/tagalign.golden +++ b/test/snapshots/tagalign.golden @@ -1,12 +1,10 @@ -== snap aligned grid=100x31 cursor=4,10 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/tagalign/cwd/deep/nested-project-directory/document.txt Keep Save Term Collapse F -| ollow Del +== snap aligned grid=100x31 cursor=4,8 +| New Term Find Grep Newcol Help Exit +| /tmp/pardes-snap/tagalign/cwd/deep/nested-project-directory/document.txt Keep Del | 1 alpha | 2 beta | 3 gamma -| /tmp/pardes-snap/tagalign/cwd Term+bash Save Mode Filter Collapse Del +| /tmp/pardes-snap/tagalign/cwd Del Term+bash | ls | deep | @@ -29,16 +27,16 @@ | | | +| +| | /tmp/pardes-snap/tagalign/cwd -== snap fits grid=87x31 cursor=4,10 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/tagalign/cwd/deep/nested-project-directory/document.txt Keep Save Te -| rm Collapse Follow Del +== snap fits grid=87x31 cursor=4,8 +| New Term Find Grep Newcol Help Exit +| /tmp/pardes-snap/tagalign/cwd/deep/nested-project-directory/document.txt Keep Del | 1 alpha | 2 beta | 3 gamma -| /tmp/pardes-snap/tagalign/cwd Term+bash Save Mode Filter Collapse Del +| /tmp/pardes-snap/tagalign/cwd Del Term+bash | ls | deep | @@ -61,16 +59,16 @@ | | | +| +| | /tmp/pardes-snap/tagalign/cwd -== snap overby1 grid=86x31 cursor=4,10 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/tagalign/cwd/deep/nested-project-directory/document.txt Keep Save T -| erm Collapse Follow Del +== snap overby1 grid=86x31 cursor=4,8 +| New Term Find Grep Newcol Help Exit +| /tmp/pardes-snap/tagalign/cwd/deep/nested-project-directory/document.txt Keep Del | 1 alpha | 2 beta | 3 gamma -| /tmp/pardes-snap/tagalign/cwd Term+bash Save Mode Filter Collapse Del +| /tmp/pardes-snap/tagalign/cwd Del Term+bash | ls | deep | @@ -93,16 +91,16 @@ | | | +| +| | /tmp/pardes-snap/tagalign/cwd -== snap clicked grid=100x31 cursor=11,2 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/tagalign/cwd/deep/nested-project-directory/document.txt Keep Save Term Collapse F -| ollow Del +== snap clicked grid=100x31 cursor=11,1 +| New Term Find Grep Newcol Help Exit +| /tmp/pardes-snap/tagalign/cwd/deep/nested-project-directory/document.txt Keep Del | 1 alpha | 2 beta | 3 gamma -| /tmp/pardes-snap/tagalign/cwd Term+bash Save Mode Filter Collapse Del +| /tmp/pardes-snap/tagalign/cwd Del Term+bash | ls | deep | @@ -125,17 +123,16 @@ | | | +| +| | /tmp/pardes-snap/tagalign/cwd/deep/nested-project-directory/document.txt:1 -== snap revealed grid=70x31 cursor=41,3 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config His -| New Term Find Grep Joincol Delcol +== snap revealed grid=70x31 cursor=16,2 +| New Term Find Grep Newcol Help Exit | /tmp/pardes-snap/tagalign/cwd/deep/nested-project-directory/document -| .txt Keep Save Term Collapse Follow Del +| .txt Keep Del | 1 alpha | 2 beta -| 3 gamma -| /tmp/pardes-snap/tagalign/cwd Term+bash Save Mode Filter Collapse De -| l +| /tmp/pardes-snap/tagalign/cwd Del Term+bash | ls | deep | @@ -157,15 +154,16 @@ | | | +| +| +| | · …document.txt name drafted: Enter renames t… 1 message · SPC h m -== snap alone grid=70x31 cursor=4,6 -|2: /tmp/pardes-snap/tagalign/cwd Term+bash Save Mode Filter Collapse De -|3: l -|4: ls -|5: deep +== snap alone grid=70x31 cursor=4,4 +|1: /tmp/pardes-snap/tagalign/cwd Del Term+bash +|2: ls +|3: deep +|4: +|5: |6: |7: -|8: -|9: -|10: |30: ✓ …/nested-project-directory/document.txt Del 3 messages · SPC h m diff --git a/test/snapshots/tagalign2col.golden b/test/snapshots/tagalign2col.golden index a7c8d251..2857e7b0 100644 --- a/test/snapshots/tagalign2col.golden +++ b/test/snapshots/tagalign2col.golden @@ -1,10 +1,9 @@ -== snap onecol grid=160x31 cursor=7,4 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/tagalign2col/cwd/deep/proj/document.txt Keep Save Term Collap /tmp/pardes-snap/tagalign2col/cwd Term+bash Save Mode Filter Collapse Del -| se Follow Del ls -| 1 alpha deep -| 2 beta +== snap onecol grid=160x31 cursor=7,3 +| Find Grep Newcol Help Exit +| New Term Joincol Delcol New Term Joincol Delcol +| /tmp/pardes-snap/tagalign2col/cwd/deep/proj/document.txt Keep Del /tmp/pardes-snap/tagalign2col/cwd Del Term+bash +| 1 alpha ls +| 2 beta deep | 3 gamma | | @@ -29,15 +28,14 @@ | | | +| | ✓ @p2 Window 1 message · SPC h m -== snap aligned grid=160x31 cursor=4,10 -|7: /tmp/pardes-snap/tagalign2col/cwd Term+bash Save Mode Filter Collapse Del -|8: ls -|9: deep -== snap widened grid=160x31 cursor=4,10 -|1: New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -|2: /tmp/pardes-snap/tagalign2col/cwd/deep/proj/document.txt Keep Save Term Collapse Follow Del /tmp/pardes-snap/tagalign2col/cwd Term+bash Save Mode Filt -|3: 1 alpha er Collapse Del -|4: 2 beta ls -|5: 3 gamma deep -|6: +== snap aligned grid=160x31 cursor=4,9 +|6: /tmp/pardes-snap/tagalign2col/cwd Del Term+bash +|7: ls +|8: deep +== snap widened grid=160x31 cursor=4,9 +|1: New Term Joincol Delcol New Term Joincol Delcol +|2: /tmp/pardes-snap/tagalign2col/cwd/deep/proj/document.txt Keep Del /tmp/pardes-snap/tagalign2col/cwd Del Term+bash +|3: 1 alpha ls +|4: 2 beta deep diff --git a/test/snapshots/tagcmd.golden b/test/snapshots/tagcmd.golden index 2a4af522..aa14e0e0 100644 --- a/test/snapshots/tagcmd.golden +++ b/test/snapshots/tagcmd.golden @@ -1,7 +1,6 @@ -== snap edited grid=100x31 cursor=13,3 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -| */tmp/pardes-snap/tagcmd/cwd/c.txt Save Term Collapse Follow Del +== snap edited grid=100x31 cursor=13,2 +| New Term Find Grep Newcol Help Exit +| */tmp/pardes-snap/tagcmd/cwd/c.txt Save Undo Del | 1 ZZEDITline 1 | 2 line 2 | 3 line 3 @@ -29,11 +28,12 @@ | | | +| | /tmp/pardes-snap/tagcmd/cwd/c.txt:1 -== snap colon grid=100x31 cursor=36,2 -== snap word grid=100x31 cursor=40,2 -== snap saved grid=100x31 cursor=13,3 -|2: /tmp/pardes-snap/tagcmd/cwd/c.txt Save Term Collapse Follow Del +== snap colon grid=100x31 cursor=50,1 +== snap word grid=100x31 cursor=40,1 +== snap saved grid=100x31 cursor=13,2 +|1: /tmp/pardes-snap/tagcmd/cwd/c.txt Undo Del |30: · saved /tmp/pardes-snap/tagcmd/cwd/c.txt 3 messages · SPC h m == file written ZZEDITline 1 @@ -44,4 +44,4 @@ line 5 line 6 == end file -== snap escaped grid=100x31 cursor=13,3 +== snap escaped grid=100x31 cursor=13,2 diff --git a/test/snapshots/tagnav.golden b/test/snapshots/tagnav.golden index b07ce6aa..0b71d5a6 100644 --- a/test/snapshots/tagnav.golden +++ b/test/snapshots/tagnav.golden @@ -1,13 +1,11 @@ -== snap start grid=100x31 cursor=7,4 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/tagnav/cwd/w.txt Save Term Coll /tmp/pardes-snap/tagnav/cwd Term+bash Save Mode -| apse Follow Del Filter Collapse Del +== snap start grid=100x31 cursor=7,3 +| Find Grep Newcol Help Exit +| New Term Joincol Delcol New Term Joincol Delcol +| /tmp/pardes-snap/tagnav/cwd/w.txt Del /tmp/pardes-snap/tagnav/cwd Del Term+bash | 1 alpha ls | 2 beta w.txt | 3 gamma -| /tmp/pardes-snap/tagnav/cwd Term+bash Save Mode -| Filter Collapse Del +| /tmp/pardes-snap/tagnav/cwd Del Term+bash | ls | w.txt | @@ -29,67 +27,42 @@ | | | +| +| | ✓ @p3 Window 2 messages · SPC h m -== snap colon grid=100x31 cursor=36,2 -== snap word grid=100x31 cursor=40,2 -== snap in-tag grid=100x31 cursor=42,2 -== snap right grid=100x31 cursor=54,6 +== snap colon grid=100x31 cursor=40,2 +== snap word grid=100x31 cursor=5,2 +== snap in-tag grid=100x31 cursor=7,2 +== snap right grid=100x31 cursor=54,5 |30: ✓ /tmp/pardes-snap/tagnav/cwd/w.txt Window 3 messages · SPC h m -== snap right-tag grid=100x31 cursor=90,2 -== snap left-tag grid=100x31 cursor=42,2 +== snap right-tag grid=100x31 cursor=84,2 +== snap left-tag grid=100x31 cursor=7,2 |30: ✓ @p2 Window 4 messages · SPC h m -== snap back-to-body grid=100x31 cursor=7,4 -== snap tty-on grid=100x31 cursor=54,6 -|2: /tmp/pardes-snap/tagnav/cwd/w.txt Save Term Coll$ /tmp/pardes-snap/tagnav/cwd Term+bash Save Mode -|4: 1 alpha $ ls -|6: 3 gamma $ +== snap back-to-body grid=100x31 cursor=7,3 +== snap tty-on grid=100x31 cursor=54,5 +|2: /tmp/pardes-snap/tagnav/cwd/w.txt Del $ /tmp/pardes-snap/tagnav/cwd Del Term+bash +|3: 1 alpha $ ls +|5: 3 gamma $ |30: ✓ /tmp/pardes-snap/tagnav/cwd/w.txt Window 5 messages · SPC h m -== snap tty-tag grid=100x31 cursor=95,2 -== snap tty-restored grid=100x31 cursor=54,6 -== snap column-tag grid=100x31 cursor=2,1 -|2: /tmp/pardes-snap/tagnav/cwd/w.txt Save Term Coll /tmp/pardes-snap/tagnav/cwd Term+bash Save Mode -|4: 1 alpha ls -|6: 3 gamma +== snap tty-tag grid=100x31 cursor=84,2 +== snap tty-restored grid=100x31 cursor=54,5 +== snap column-tag grid=100x31 cursor=26,1 +|2: /tmp/pardes-snap/tagnav/cwd/w.txt Del /tmp/pardes-snap/tagnav/cwd Del Term+bash +|3: 1 alpha ls +|5: 3 gamma |30: ✓ /tmp/pardes-snap/tagnav/cwd/w.txt Up 8 messages · SPC h m -== snap column-word grid=100x31 cursor=5,1 -== snap workspace-tag grid=100x31 cursor=2,0 +== snap column-word grid=100x31 cursor=19,1 +== snap workspace-tag grid=100x31 cursor=99,0 |30: ✓ /tmp/pardes-snap/tagnav/cwd/w.txt Up ×2 8 messages · SPC h m -== snap topbar-dollar grid=100x31 cursor=84,0 -== snap topbar-dump-word grid=100x31 cursor=53,0 -== snap topbar-exec grid=100x31 cursor=7,4 -|12: /tmp/pardes-snap/tagnav/cwd/+Themes Save Term Co -|13: llapse Follow Del -|14: 1 # Pardes -|15: 2 Theme dark -|16: 3 Theme light -|17: 4 Theme orchard -|18: 5 Theme orchard_black -|19: 6 Theme ink -|20: 7 Theme mono -|21: 8 Theme okabe -|22: 9 Theme sepia -|23: 10 Theme paper -|24: 11 Theme daybreak -|25: 12 Theme dusk -|26: 13 Theme lapis -|27: 14 -|28: 15 # Pardes, after a classic -|29: 16 Theme forge -|30: ✓ /tmp/pardes-snap/tagnav/cwd/w.txt Themes 10 messages · SPC h m -== snap topbar-restore-word grid=100x31 cursor=75,0 +== snap topbar-dollar grid=100x31 cursor=98,0 +|0: Find Grep Newcol Help Exit Dump +== snap topbar-dump-word grid=100x31 cursor=95,0 +== snap topbar-exec grid=100x31 cursor=7,3 +|0: Find Grep Newcol Help Exit Restore /tmp/pardes-snap/tagnav/dump.zon Dump +|30: ✓ /tmp/pardes-snap/tagnav/cwd/w.txt Dump 10 messages · SPC h m +== snap topbar-restore-word grid=100x31 cursor=54,0 |30: ✓ /tmp/pardes-snap/tagnav/cwd/w.txt Up ×2 12 messages · SPC h m -== snap topbar-restored grid=100x31 cursor=7,4 -|1: New Term Find Grep Joincol Delcol New Term F╭────────────────────────────────────╮ -|2: /tmp/pardes-snap/tagnav/cwd/w.txt Save Term Coll /tmp/parde│pardes resizes=1 │ -|3: apse Follow Del Filter Col│theme orchard │ -|4: 1 alpha ls │font default │ -|5: 2 beta w.txt │terms 4 cols 2 │ -|6: 3 gamma │active #0 48x3 │ -|7: /tmp/pardes-snap/tagnav/cwd Term+bash Save Mode │scroll 0/3 │ -|8: Filter Collapse Del │frame virtual clock │ -|9: ls │ │ -|10: w.txt │ │ -|11: │ │ -|12: /tmp/pardes-snap/tagnav/cwd/+Themes Save Term Co │ │ -|13: llapse Follow Del ╰────────────────────────────────────╯ -|30: ✓ /tmp/pardes-snap/tagnav/cwd/w.txt Debug 14 messages · SPC h m +== snap topbar-restored grid=100x31 cursor=7,3 +|6: /tmp/pardes-snap/tagnav/cwd Del Term+bash ── restored history ── +|10: ── restored history ── +|30: ✓ /tmp/pardes-snap/tagnav/cwd/w.txt Dump 10 messages · SPC h m diff --git a/test/snapshots/tagpath.golden b/test/snapshots/tagpath.golden index 465cfc96..b0ba9010 100644 --- a/test/snapshots/tagpath.golden +++ b/test/snapshots/tagpath.golden @@ -1,7 +1,6 @@ -== snap start grid=100x31 cursor=7,3 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/tagpath/cwd/c.txt Keep Save Term Collapse Follow Del +== snap start grid=100x31 cursor=7,2 +| New Term Find Grep Newcol Help Exit +| /tmp/pardes-snap/tagpath/cwd/c.txt Keep Del | 1 line 1 | 2 line 2 | 3 line 3 @@ -29,19 +28,20 @@ | | | +| | /tmp/pardes-snap/tagpath/cwd/c.txt:1 -== snap colon grid=100x31 cursor=42,2 -== snap col0 grid=100x31 cursor=2,2 -== snap sel-path grid=100x31 cursor=35,2 +== snap colon grid=100x31 cursor=46,1 +== snap col0 grid=100x31 cursor=2,1 +== snap sel-path grid=100x31 cursor=35,1 == style sel-path grid=100x31 |0: 0-1 d,#1d2824, 2-99 #b2c3b8,#1d2824, -|1: 0-1 d,#504733, 2-99 #becfc4,#314738, -|2: 0-1 d,#add38a, 2-35 #f5f7ee,#3c614a, 36-36 #f5f7ee,#2c2c0f, 37-99 #becfc4,#2c2c0f, +|1: 0-1 d,#add38a, 2-35 #f5f7ee,#3c614a, 36-36 #f5f7ee,#2c2c0f, 37-99 #becfc4,#2c2c0f, +|2: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-99 #e5eee5,#0d1410, |3: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-99 #e5eee5,#0d1410, |4: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-99 #e5eee5,#0d1410, |5: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-99 #e5eee5,#0d1410, -|6: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-99 #e5eee5,#0d1410, -|7: 0-0 d,#608269, 1-4 d,#0d1410, 5-99 #59675c,#0d1410, +|6: 0-0 d,#608269, 1-4 d,#0d1410, 5-99 #59675c,#0d1410, +|7: 0-0 d,#608269, 1-99 d,#0d1410, |8: 0-0 d,#608269, 1-99 d,#0d1410, |9: 0-0 d,#608269, 1-99 d,#0d1410, |10: 0-0 d,#608269, 1-99 d,#0d1410, @@ -65,18 +65,18 @@ |28: 0-0 d,#608269, 1-99 d,#0d1410, |29: 0-0 d,#608269, 1-99 d,#0d1410, |30: 0-1 d,#1d2824, 2-99 #b2c3b8,#1d2824, -== snap yanked-path grid=100x31 cursor=41,3 -|2: */tmp/pardes-snap/tagpath/cwd/c.txt Save Term Collapse Follow Del -|3: 1 l/tmp/pardes-snap/tagpath/cwd/c.txtine 1 -== snap drag-cross grid=100x31 cursor=41,2 +== snap yanked-path grid=100x31 cursor=41,2 +|1: */tmp/pardes-snap/tagpath/cwd/c.txt Save Undo Del +|2: 1 l/tmp/pardes-snap/tagpath/cwd/c.txtine 1 +== snap drag-cross grid=100x31 cursor=41,1 == style drag-cross grid=100x31 -|2: 0-0 d,#add38a, 1-1 #000000,#f9cb70,b 2-10 #becfc4,#314738, 11-41 #f5f7ee,#3c614a, 42-99 #becfc4,#314738, -|3: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-7 #e5eee5,#0d1410, 8-41 #f5f7ee,#3c614a, 42-99 #e5eee5,#0d1410, -== snap name-draft grid=100x31 cursor=10,2 -|2: */renamed/tmp/pardes-snap/tagpath/cwd/c.txt Save Term Collapse Follow Del +|1: 0-0 d,#add38a, 1-1 #000000,#f9cb70,b 2-10 #becfc4,#314738, 11-41 #f5f7ee,#3c614a, 42-99 #becfc4,#314738, +|2: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-7 #e5eee5,#0d1410, 8-41 #f5f7ee,#3c614a, 42-99 #e5eee5,#0d1410, +== snap name-draft grid=100x31 cursor=10,1 +|1: */renamed/tmp/pardes-snap/tagpath/cwd/c.txt Save Undo Del |30: ✓ /tmp/pardes-snap/tagpath/cwd/c.txt Last 1 message · SPC h m -== snap name-cancelled grid=100x31 cursor=41,3 -|2: */tmp/pardes-snap/tagpath/cwd/c.txt Save Term Collapse Follow Del +== snap name-cancelled grid=100x31 cursor=41,2 +|1: */tmp/pardes-snap/tagpath/cwd/c.txt Save Undo Del |30: · …th/cwd/c.txt name drafted: Enter renames the buffer, Esc drops the draft 2 messages · SPC h m -== snap name-committed grid=100x31 cursor=41,3 -|2: */renamed/tmp/pardes-snap/tagpath/cwd/c.txt Save Term Collapse Follow Del +== snap name-committed grid=100x31 cursor=41,2 +|1: */renamed/tmp/pardes-snap/tagpath/cwd/c.txt Save Undo Del diff --git a/test/snapshots/theme.golden b/test/snapshots/theme.golden index bae1ee7c..ca73ed35 100644 --- a/test/snapshots/theme.golden +++ b/test/snapshots/theme.golden @@ -1,8 +1,7 @@ -== snap dark grid=100x31 cursor=95,0 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit NextColor -| New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/theme/cwd Term+bash Save Mode F /tmp/pardes-snap/theme/cwd Term+bash Save Mode F -| ilter Collapse Del ilter Collapse Del +== snap dark grid=100x31 cursor=98,0 +| Find Grep Newcol Help Exit NextColor +| New Term Joincol Delcol New Term Joincol Delcol +| /tmp/pardes-snap/theme/cwd Del Term+bash /tmp/pardes-snap/theme/cwd Del Term+bash | ls ls | t.txt t.txt | @@ -15,8 +14,8 @@ | | | -| /tmp/pardes-snap/theme/cwd Term+bash Save Mode F -| ilter Collapse Del +| +| /tmp/pardes-snap/theme/cwd Del Term+bash | ls | t.txt | @@ -29,15 +28,16 @@ | | | +| | /tmp/pardes-snap/theme/cwd == style dark grid=100x31 -|0: 0-1 d,#2c2a3e, 2-99 #aba9c3,#2c2a3e, +|0: 0-61 d,#2c2a3e, 62-99 #aba9c3,#2c2a3e, |1: 0-1 d,#4c472d, 2-49 #d6d4e8,#2c2a3e, 50-51 #d6d4e8,#4c472d, 52-99 #aba9c3,#2c2a3e, -|2: 0-1 d,#a58bff, 2-28 #d6d4e8,#2c2a3e, 29-38 #f1c4fd,#2c2a3e, 39-49 #d6d4e8,#2c2a3e, 50-51 #d6d4e8,#5d528b, 52-78 #aba9c3,#2c2a3e, 79-88 #ce93dc,#2c2a3e, 89-99 #aba9c3,#2c2a3e, -|3: 0-1 d,#2c2a3e, 2-51 #d6d4e8,#2c2a3e, 52-99 #aba9c3,#2c2a3e, +|2: 0-1 d,#a58bff, 2-32 #d6d4e8,#2c2a3e, 33-49 #f1c4fd,#2c2a3e, 50-51 #f1c4fd,#5d528b, 52-82 #aba9c3,#2c2a3e, 83-99 #ce93dc,#2c2a3e, +|3: 0-0 d,#5a596f, 1-1 d,d, 2-49 #cccccc,#121212, 50-50 #cccccc,#5a596f, 51-51 #cccccc,d, 52-99 #cccccc,#121212, |4: 0-0 d,#5a596f, 1-1 d,d, 2-49 #cccccc,#121212, 50-50 #cccccc,#5a596f, 51-51 #cccccc,d, 52-99 #cccccc,#121212, -|5: 0-0 d,#5a596f, 1-1 d,d, 2-49 #cccccc,#121212, 50-50 #cccccc,#5a596f, 51-51 #cccccc,d, 52-99 #cccccc,#121212, -|6: 0-0 d,#5a596f, 1-49 d,d, 50-50 d,#5a596f, 51-99 d,d, +|5: 0-0 d,#5a596f, 1-49 d,d, 50-50 d,#5a596f, 51-99 d,d, +|6: 0-0 d,#5a596f, 1-1 d,d, 2-49 d,#121212, 50-50 d,#5a596f, 51-51 d,d, 52-99 d,#121212, |7: 0-0 d,#5a596f, 1-1 d,d, 2-49 d,#121212, 50-50 d,#5a596f, 51-51 d,d, 52-99 d,#121212, |8: 0-0 d,#5a596f, 1-1 d,d, 2-49 d,#121212, 50-50 d,#5a596f, 51-51 d,d, 52-99 d,#121212, |9: 0-0 d,#5a596f, 1-1 d,d, 2-49 d,#121212, 50-50 d,#5a596f, 51-51 d,d, 52-99 d,#121212, @@ -47,11 +47,11 @@ |13: 0-0 d,#5a596f, 1-1 d,d, 2-49 d,#121212, 50-50 d,#5a596f, 51-51 d,d, 52-99 d,#121212, |14: 0-0 d,#5a596f, 1-1 d,d, 2-49 d,#121212, 50-50 d,#5a596f, 51-51 d,d, 52-99 d,#121212, |15: 0-0 d,#5a596f, 1-1 d,d, 2-49 d,#121212, 50-50 d,#5a596f, 51-51 d,d, 52-99 d,#121212, -|16: 0-1 d,#5d528b, 2-28 #aba9c3,#2c2a3e, 29-38 #ce93dc,#2c2a3e, 39-49 #aba9c3,#2c2a3e, 50-50 #aba9c3,#5a596f, 51-51 #aba9c3,d, 52-99 #aba9c3,#121212, -|17: 0-1 d,#2c2a3e, 2-49 #aba9c3,#2c2a3e, 50-50 #aba9c3,#5a596f, 51-51 #aba9c3,d, 52-99 #aba9c3,#121212, +|16: 0-1 d,#5d528b, 2-32 #aba9c3,#2c2a3e, 33-49 #ce93dc,#2c2a3e, 50-50 #ce93dc,#5a596f, 51-51 #ce93dc,d, 52-99 #ce93dc,#121212, +|17: 0-0 d,#5a596f, 1-1 d,d, 2-49 #cccccc,#121212, 50-50 #cccccc,#5a596f, 51-51 #cccccc,d, 52-99 #cccccc,#121212, |18: 0-0 d,#5a596f, 1-1 d,d, 2-49 #cccccc,#121212, 50-50 #cccccc,#5a596f, 51-51 #cccccc,d, 52-99 #cccccc,#121212, -|19: 0-0 d,#5a596f, 1-1 d,d, 2-49 #cccccc,#121212, 50-50 #cccccc,#5a596f, 51-51 #cccccc,d, 52-99 #cccccc,#121212, -|20: 0-0 d,#5a596f, 1-49 d,d, 50-50 d,#5a596f, 51-51 d,d, 52-99 d,#121212, +|19: 0-0 d,#5a596f, 1-49 d,d, 50-50 d,#5a596f, 51-51 d,d, 52-99 d,#121212, +|20: 0-0 d,#5a596f, 1-1 d,d, 2-49 d,#121212, 50-50 d,#5a596f, 51-51 d,d, 52-99 d,#121212, |21: 0-0 d,#5a596f, 1-1 d,d, 2-49 d,#121212, 50-50 d,#5a596f, 51-51 d,d, 52-99 d,#121212, |22: 0-0 d,#5a596f, 1-1 d,d, 2-49 d,#121212, 50-50 d,#5a596f, 51-51 d,d, 52-99 d,#121212, |23: 0-0 d,#5a596f, 1-1 d,d, 2-49 d,#121212, 50-50 d,#5a596f, 51-51 d,d, 52-99 d,#121212, @@ -62,15 +62,15 @@ |28: 0-0 d,#5a596f, 1-1 d,d, 2-49 d,#121212, 50-50 d,#5a596f, 51-51 d,d, 52-99 d,#121212, |29: 0-0 d,#5a596f, 1-1 d,d, 2-49 d,#121212, 50-50 d,#5a596f, 51-51 d,d, 52-99 d,#121212, |30: 0-1 d,#2c2a3e, 2-99 #aba9c3,#2c2a3e, -== snap light grid=100x31 cursor=4,6 +== snap light grid=100x31 cursor=4,5 |30: ✓ @p1 NextColor 1 message · SPC h m == style light grid=100x31 -|0: 0-1 d,#e9e7f3, 2-85 #4b4862,#e9e7f3, 86-94 #1c1a24,#ddd3fb, 95-99 #1c1a24,#e9e7f3, +|0: 0-61 d,#e9e7f3, 62-88 #4b4862,#e9e7f3, 89-97 #1c1a24,#ddd3fb, 98-99 #1c1a24,#e9e7f3, |1: 0-1 d,#c8af94, 2-49 #4b4862,#e9e7f3, 50-51 #4b4862,#c8af94, 52-99 #4b4862,#e9e7f3, -|2: 0-1 d,#6a3fd8, 2-28 #4b4862,#e9e7f3, 29-38 #52266a,#e9e7f3, 39-49 #4b4862,#e9e7f3, 50-51 #4b4862,#a69ceb, 52-78 #4b4862,#e9e7f3, 79-88 #61347a,#e9e7f3, 89-99 #4b4862,#e9e7f3, -|3: 0-1 d,#e9e7f3, 2-99 #4b4862,#e9e7f3, +|2: 0-1 d,#6a3fd8, 2-32 #4b4862,#e9e7f3, 33-49 #52266a,#e9e7f3, 50-51 #52266a,#a69ceb, 52-82 #4b4862,#e9e7f3, 83-99 #61347a,#e9e7f3, +|3: 0-0 d,#a4a2b5, 1-1 d,#fbfbfd, 2-49 #34323f,#fbfbfd, 50-50 #34323f,#a4a2b5, 51-99 #34323f,#fbfbfd, |4: 0-0 d,#a4a2b5, 1-1 d,#fbfbfd, 2-49 #34323f,#fbfbfd, 50-50 #34323f,#a4a2b5, 51-99 #34323f,#fbfbfd, -|5: 0-0 d,#a4a2b5, 1-1 d,#fbfbfd, 2-49 #34323f,#fbfbfd, 50-50 #34323f,#a4a2b5, 51-99 #34323f,#fbfbfd, +|5: 0-0 d,#a4a2b5, 1-49 d,#fbfbfd, 50-50 d,#a4a2b5, 51-99 d,#fbfbfd, |6: 0-0 d,#a4a2b5, 1-49 d,#fbfbfd, 50-50 d,#a4a2b5, 51-99 d,#fbfbfd, |7: 0-0 d,#a4a2b5, 1-49 d,#fbfbfd, 50-50 d,#a4a2b5, 51-99 d,#fbfbfd, |8: 0-0 d,#a4a2b5, 1-49 d,#fbfbfd, 50-50 d,#a4a2b5, 51-99 d,#fbfbfd, @@ -81,10 +81,10 @@ |13: 0-0 d,#a4a2b5, 1-49 d,#fbfbfd, 50-50 d,#a4a2b5, 51-99 d,#fbfbfd, |14: 0-0 d,#a4a2b5, 1-49 d,#fbfbfd, 50-50 d,#a4a2b5, 51-99 d,#fbfbfd, |15: 0-0 d,#a4a2b5, 1-49 d,#fbfbfd, 50-50 d,#a4a2b5, 51-99 d,#fbfbfd, -|16: 0-1 d,#a69ceb, 2-28 #4b4862,#e9e7f3, 29-38 #61347a,#e9e7f3, 39-49 #4b4862,#e9e7f3, 50-50 #4b4862,#a4a2b5, 51-99 #4b4862,#fbfbfd, -|17: 0-1 d,#e9e7f3, 2-49 #4b4862,#e9e7f3, 50-50 #4b4862,#a4a2b5, 51-99 #4b4862,#fbfbfd, +|16: 0-1 d,#a69ceb, 2-32 #4b4862,#e9e7f3, 33-49 #61347a,#e9e7f3, 50-50 #61347a,#a4a2b5, 51-99 #61347a,#fbfbfd, +|17: 0-0 d,#a4a2b5, 1-1 d,#fbfbfd, 2-49 #34323f,#fbfbfd, 50-50 #34323f,#a4a2b5, 51-99 #34323f,#fbfbfd, |18: 0-0 d,#a4a2b5, 1-1 d,#fbfbfd, 2-49 #34323f,#fbfbfd, 50-50 #34323f,#a4a2b5, 51-99 #34323f,#fbfbfd, -|19: 0-0 d,#a4a2b5, 1-1 d,#fbfbfd, 2-49 #34323f,#fbfbfd, 50-50 #34323f,#a4a2b5, 51-99 #34323f,#fbfbfd, +|19: 0-0 d,#a4a2b5, 1-49 d,#fbfbfd, 50-50 d,#a4a2b5, 51-99 d,#fbfbfd, |20: 0-0 d,#a4a2b5, 1-49 d,#fbfbfd, 50-50 d,#a4a2b5, 51-99 d,#fbfbfd, |21: 0-0 d,#a4a2b5, 1-49 d,#fbfbfd, 50-50 d,#a4a2b5, 51-99 d,#fbfbfd, |22: 0-0 d,#a4a2b5, 1-49 d,#fbfbfd, 50-50 d,#a4a2b5, 51-99 d,#fbfbfd, @@ -96,15 +96,15 @@ |28: 0-0 d,#a4a2b5, 1-49 d,#fbfbfd, 50-50 d,#a4a2b5, 51-99 d,#fbfbfd, |29: 0-0 d,#a4a2b5, 1-49 d,#fbfbfd, 50-50 d,#a4a2b5, 51-99 d,#fbfbfd, |30: 0-1 d,#e9e7f3, 2-99 #7a778e,#e9e7f3, -== snap orchard grid=100x31 cursor=4,6 +== snap orchard grid=100x31 cursor=4,5 |30: ✓ @p1 NextColor ×2 1 message · SPC h m == style orchard grid=100x31 -|0: 0-1 d,#1d2824, 2-85 #b2c3b8,#1d2824, 86-94 #f5f7ee,#3c614a, 95-99 #f5f7ee,#1d2824, +|0: 0-61 d,#1d2824, 62-88 #b2c3b8,#1d2824, 89-97 #f5f7ee,#3c614a, 98-99 #f5f7ee,#1d2824, |1: 0-1 d,#504733, 2-49 #becfc4,#314738, 50-51 #becfc4,#504733, 52-99 #b2c3b8,#1d2824, -|2: 0-1 d,#add38a, 2-28 #becfc4,#314738, 29-38 #ecc8f2,#314738, 39-49 #becfc4,#314738, 50-51 #becfc4,#465a43, 52-78 #b2c3b8,#1d2824, 79-88 #d3b0d9,#1d2824, 89-99 #b2c3b8,#1d2824, -|3: 0-1 d,#314738, 2-49 #becfc4,#314738, 50-51 #becfc4,#1d2824, 52-99 #b2c3b8,#1d2824, +|2: 0-1 d,#add38a, 2-32 #becfc4,#314738, 33-49 #ecc8f2,#314738, 50-51 #ecc8f2,#465a43, 52-82 #b2c3b8,#1d2824, 83-99 #d3b0d9,#1d2824, +|3: 0-0 d,#608269, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, |4: 0-0 d,#608269, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, -|5: 0-0 d,#608269, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, +|5: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, |6: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, |7: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, |8: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, @@ -115,10 +115,10 @@ |13: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, |14: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, |15: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, -|16: 0-1 d,#465a43, 2-28 #b2c3b8,#1d2824, 29-38 #d3b0d9,#1d2824, 39-49 #b2c3b8,#1d2824, 50-50 #b2c3b8,#608269, 51-99 #b2c3b8,#0d1410, -|17: 0-1 d,#1d2824, 2-49 #b2c3b8,#1d2824, 50-50 #b2c3b8,#608269, 51-99 #b2c3b8,#0d1410, +|16: 0-1 d,#465a43, 2-32 #b2c3b8,#1d2824, 33-49 #d3b0d9,#1d2824, 50-50 #d3b0d9,#608269, 51-99 #d3b0d9,#0d1410, +|17: 0-0 d,#608269, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, |18: 0-0 d,#608269, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, -|19: 0-0 d,#608269, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, +|19: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, |20: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, |21: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, |22: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, @@ -130,12 +130,13 @@ |28: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, |29: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, |30: 0-1 d,#1d2824, 2-99 #6f7d75,#1d2824, -== snap orchard-black grid=100x31 cursor=4,6 +== snap orchard-black grid=100x31 cursor=4,5 |30: ✓ @p1 NextColor ×3 1 message · SPC h m == style orchard-black grid=100x31 |1: 0-1 d,#513e29, 2-49 #becfc4,#314738, 50-51 #becfc4,#513e29, 52-99 #b2c3b8,#1d2824, +|3: 0-0 d,#608269, 1-1 d,#000000, 2-49 #f2f8ef,#000000, 50-50 #f2f8ef,#608269, 51-99 #f2f8ef,#000000, |4: 0-0 d,#608269, 1-1 d,#000000, 2-49 #f2f8ef,#000000, 50-50 #f2f8ef,#608269, 51-99 #f2f8ef,#000000, -|5: 0-0 d,#608269, 1-1 d,#000000, 2-49 #f2f8ef,#000000, 50-50 #f2f8ef,#608269, 51-99 #f2f8ef,#000000, +|5: 0-0 d,#608269, 1-49 d,#000000, 50-50 d,#608269, 51-99 d,#000000, |6: 0-0 d,#608269, 1-49 d,#000000, 50-50 d,#608269, 51-99 d,#000000, |7: 0-0 d,#608269, 1-49 d,#000000, 50-50 d,#608269, 51-99 d,#000000, |8: 0-0 d,#608269, 1-49 d,#000000, 50-50 d,#608269, 51-99 d,#000000, @@ -146,10 +147,10 @@ |13: 0-0 d,#608269, 1-49 d,#000000, 50-50 d,#608269, 51-99 d,#000000, |14: 0-0 d,#608269, 1-49 d,#000000, 50-50 d,#608269, 51-99 d,#000000, |15: 0-0 d,#608269, 1-49 d,#000000, 50-50 d,#608269, 51-99 d,#000000, -|16: 0-1 d,#465a43, 2-28 #b2c3b8,#1d2824, 29-38 #d3b0d9,#1d2824, 39-49 #b2c3b8,#1d2824, 50-50 #b2c3b8,#608269, 51-99 #b2c3b8,#000000, -|17: 0-1 d,#1d2824, 2-49 #b2c3b8,#1d2824, 50-50 #b2c3b8,#608269, 51-99 #b2c3b8,#000000, +|16: 0-1 d,#465a43, 2-32 #b2c3b8,#1d2824, 33-49 #d3b0d9,#1d2824, 50-50 #d3b0d9,#608269, 51-99 #d3b0d9,#000000, +|17: 0-0 d,#608269, 1-1 d,#000000, 2-49 #f2f8ef,#000000, 50-50 #f2f8ef,#608269, 51-99 #f2f8ef,#000000, |18: 0-0 d,#608269, 1-1 d,#000000, 2-49 #f2f8ef,#000000, 50-50 #f2f8ef,#608269, 51-99 #f2f8ef,#000000, -|19: 0-0 d,#608269, 1-1 d,#000000, 2-49 #f2f8ef,#000000, 50-50 #f2f8ef,#608269, 51-99 #f2f8ef,#000000, +|19: 0-0 d,#608269, 1-49 d,#000000, 50-50 d,#608269, 51-99 d,#000000, |20: 0-0 d,#608269, 1-49 d,#000000, 50-50 d,#608269, 51-99 d,#000000, |21: 0-0 d,#608269, 1-49 d,#000000, 50-50 d,#608269, 51-99 d,#000000, |22: 0-0 d,#608269, 1-49 d,#000000, 50-50 d,#608269, 51-99 d,#000000, @@ -160,15 +161,15 @@ |27: 0-0 d,#608269, 1-49 d,#000000, 50-50 d,#608269, 51-99 d,#000000, |28: 0-0 d,#608269, 1-49 d,#000000, 50-50 d,#608269, 51-99 d,#000000, |29: 0-0 d,#608269, 1-49 d,#000000, 50-50 d,#608269, 51-99 d,#000000, -== snap ink grid=100x31 cursor=4,6 +== snap ink grid=100x31 cursor=4,5 |30: ✓ @p1 NextColor ×4 1 message · SPC h m == style ink grid=100x31 -|0: 0-1 d,#15212c, 2-85 #d5e4f1,#15212c, 86-94 #ffffff,#1b547c, 95-99 #ffffff,#15212c, +|0: 0-61 d,#15212c, 62-88 #d5e4f1,#15212c, 89-97 #ffffff,#1b547c, 98-99 #ffffff,#15212c, |1: 0-1 d,#4d3f29, 2-49 #e1eef9,#2b4051, 50-51 #e1eef9,#4d3f29, 52-99 #d5e4f1,#15212c, -|2: 0-1 d,#86d8ff, 2-28 #e1eef9,#2b4051, 29-38 #fdebbe,#2b4051, 39-49 #e1eef9,#2b4051, 50-51 #e1eef9,#355467, 52-78 #d5e4f1,#15212c, 79-88 #f5e0ac,#15212c, 89-99 #d5e4f1,#15212c, -|3: 0-1 d,#2b4051, 2-49 #e1eef9,#2b4051, 50-51 #e1eef9,#15212c, 52-99 #d5e4f1,#15212c, +|2: 0-1 d,#86d8ff, 2-32 #e1eef9,#2b4051, 33-49 #fdebbe,#2b4051, 50-51 #fdebbe,#355467, 52-82 #d5e4f1,#15212c, 83-99 #f5e0ac,#15212c, +|3: 0-0 d,#86a8c2, 1-1 d,#000000, 2-49 #f3f7fc,#000000, 50-50 #f3f7fc,#86a8c2, 51-99 #f3f7fc,#000000, |4: 0-0 d,#86a8c2, 1-1 d,#000000, 2-49 #f3f7fc,#000000, 50-50 #f3f7fc,#86a8c2, 51-99 #f3f7fc,#000000, -|5: 0-0 d,#86a8c2, 1-1 d,#000000, 2-49 #f3f7fc,#000000, 50-50 #f3f7fc,#86a8c2, 51-99 #f3f7fc,#000000, +|5: 0-0 d,#86a8c2, 1-49 d,#000000, 50-50 d,#86a8c2, 51-99 d,#000000, |6: 0-0 d,#86a8c2, 1-49 d,#000000, 50-50 d,#86a8c2, 51-99 d,#000000, |7: 0-0 d,#86a8c2, 1-49 d,#000000, 50-50 d,#86a8c2, 51-99 d,#000000, |8: 0-0 d,#86a8c2, 1-49 d,#000000, 50-50 d,#86a8c2, 51-99 d,#000000, @@ -179,10 +180,10 @@ |13: 0-0 d,#86a8c2, 1-49 d,#000000, 50-50 d,#86a8c2, 51-99 d,#000000, |14: 0-0 d,#86a8c2, 1-49 d,#000000, 50-50 d,#86a8c2, 51-99 d,#000000, |15: 0-0 d,#86a8c2, 1-49 d,#000000, 50-50 d,#86a8c2, 51-99 d,#000000, -|16: 0-1 d,#355467, 2-28 #d5e4f1,#15212c, 29-38 #f5e0ac,#15212c, 39-49 #d5e4f1,#15212c, 50-50 #d5e4f1,#86a8c2, 51-99 #d5e4f1,#000000, -|17: 0-1 d,#15212c, 2-49 #d5e4f1,#15212c, 50-50 #d5e4f1,#86a8c2, 51-99 #d5e4f1,#000000, +|16: 0-1 d,#355467, 2-32 #d5e4f1,#15212c, 33-49 #f5e0ac,#15212c, 50-50 #f5e0ac,#86a8c2, 51-99 #f5e0ac,#000000, +|17: 0-0 d,#86a8c2, 1-1 d,#000000, 2-49 #f3f7fc,#000000, 50-50 #f3f7fc,#86a8c2, 51-99 #f3f7fc,#000000, |18: 0-0 d,#86a8c2, 1-1 d,#000000, 2-49 #f3f7fc,#000000, 50-50 #f3f7fc,#86a8c2, 51-99 #f3f7fc,#000000, -|19: 0-0 d,#86a8c2, 1-1 d,#000000, 2-49 #f3f7fc,#000000, 50-50 #f3f7fc,#86a8c2, 51-99 #f3f7fc,#000000, +|19: 0-0 d,#86a8c2, 1-49 d,#000000, 50-50 d,#86a8c2, 51-99 d,#000000, |20: 0-0 d,#86a8c2, 1-49 d,#000000, 50-50 d,#86a8c2, 51-99 d,#000000, |21: 0-0 d,#86a8c2, 1-49 d,#000000, 50-50 d,#86a8c2, 51-99 d,#000000, |22: 0-0 d,#86a8c2, 1-49 d,#000000, 50-50 d,#86a8c2, 51-99 d,#000000, @@ -194,15 +195,15 @@ |28: 0-0 d,#86a8c2, 1-49 d,#000000, 50-50 d,#86a8c2, 51-99 d,#000000, |29: 0-0 d,#86a8c2, 1-49 d,#000000, 50-50 d,#86a8c2, 51-99 d,#000000, |30: 0-1 d,#15212c, 2-99 #697784,#15212c, -== snap mono grid=100x31 cursor=4,6 +== snap mono grid=100x31 cursor=4,5 |30: ✓ @p1 NextColor ×5 1 message · SPC h m == style mono grid=100x31 -|0: 0-1 d,#1e1f24, 2-85 #a2a4ad,#1e1f24, 86-94 #f2f2f5,#3b3d47, 95-99 #f2f2f5,#1e1f24, +|0: 0-61 d,#1e1f24, 62-88 #a2a4ad,#1e1f24, 89-97 #f2f2f5,#3b3d47, 98-99 #f2f2f5,#1e1f24, |1: 0-1 d,#47474a, 2-49 #a2a4ad,#1e1f24, 50-51 #a2a4ad,#47474a, 52-99 #a2a4ad,#1e1f24, -|2: 0-1 d,#e6e7ec, 2-28 #a2a4ad,#1e1f24, 29-38 #99cdfc,#1e1f24, 39-49 #a2a4ad,#1e1f24, 50-51 #a2a4ad,#4f5056, 52-78 #a2a4ad,#1e1f24, 79-88 #64abe9,#1e1f24, 89-99 #a2a4ad,#1e1f24, -|3: 0-1 d,#1e1f24, 2-99 #a2a4ad,#1e1f24, +|2: 0-1 d,#e6e7ec, 2-32 #a2a4ad,#1e1f24, 33-49 #99cdfc,#1e1f24, 50-51 #99cdfc,#4f5056, 52-82 #a2a4ad,#1e1f24, 83-99 #64abe9,#1e1f24, +|3: 0-0 d,#4e4f56, 1-1 d,#111113, 2-49 #bfc0c6,#111113, 50-50 #bfc0c6,#4e4f56, 51-99 #bfc0c6,#111113, |4: 0-0 d,#4e4f56, 1-1 d,#111113, 2-49 #bfc0c6,#111113, 50-50 #bfc0c6,#4e4f56, 51-99 #bfc0c6,#111113, -|5: 0-0 d,#4e4f56, 1-1 d,#111113, 2-49 #bfc0c6,#111113, 50-50 #bfc0c6,#4e4f56, 51-99 #bfc0c6,#111113, +|5: 0-0 d,#4e4f56, 1-49 d,#111113, 50-50 d,#4e4f56, 51-99 d,#111113, |6: 0-0 d,#4e4f56, 1-49 d,#111113, 50-50 d,#4e4f56, 51-99 d,#111113, |7: 0-0 d,#4e4f56, 1-49 d,#111113, 50-50 d,#4e4f56, 51-99 d,#111113, |8: 0-0 d,#4e4f56, 1-49 d,#111113, 50-50 d,#4e4f56, 51-99 d,#111113, @@ -213,10 +214,10 @@ |13: 0-0 d,#4e4f56, 1-49 d,#111113, 50-50 d,#4e4f56, 51-99 d,#111113, |14: 0-0 d,#4e4f56, 1-49 d,#111113, 50-50 d,#4e4f56, 51-99 d,#111113, |15: 0-0 d,#4e4f56, 1-49 d,#111113, 50-50 d,#4e4f56, 51-99 d,#111113, -|16: 0-1 d,#4f5056, 2-28 #a2a4ad,#1e1f24, 29-38 #64abe9,#1e1f24, 39-49 #a2a4ad,#1e1f24, 50-50 #a2a4ad,#4e4f56, 51-99 #a2a4ad,#111113, -|17: 0-1 d,#1e1f24, 2-49 #a2a4ad,#1e1f24, 50-50 #a2a4ad,#4e4f56, 51-99 #a2a4ad,#111113, +|16: 0-1 d,#4f5056, 2-32 #a2a4ad,#1e1f24, 33-49 #64abe9,#1e1f24, 50-50 #64abe9,#4e4f56, 51-99 #64abe9,#111113, +|17: 0-0 d,#4e4f56, 1-1 d,#111113, 2-49 #bfc0c6,#111113, 50-50 #bfc0c6,#4e4f56, 51-99 #bfc0c6,#111113, |18: 0-0 d,#4e4f56, 1-1 d,#111113, 2-49 #bfc0c6,#111113, 50-50 #bfc0c6,#4e4f56, 51-99 #bfc0c6,#111113, -|19: 0-0 d,#4e4f56, 1-1 d,#111113, 2-49 #bfc0c6,#111113, 50-50 #bfc0c6,#4e4f56, 51-99 #bfc0c6,#111113, +|19: 0-0 d,#4e4f56, 1-49 d,#111113, 50-50 d,#4e4f56, 51-99 d,#111113, |20: 0-0 d,#4e4f56, 1-49 d,#111113, 50-50 d,#4e4f56, 51-99 d,#111113, |21: 0-0 d,#4e4f56, 1-49 d,#111113, 50-50 d,#4e4f56, 51-99 d,#111113, |22: 0-0 d,#4e4f56, 1-49 d,#111113, 50-50 d,#4e4f56, 51-99 d,#111113, @@ -228,15 +229,15 @@ |28: 0-0 d,#4e4f56, 1-49 d,#111113, 50-50 d,#4e4f56, 51-99 d,#111113, |29: 0-0 d,#4e4f56, 1-49 d,#111113, 50-50 d,#4e4f56, 51-99 d,#111113, |30: 0-1 d,#1e1f24, 2-99 #73747c,#1e1f24, -== snap okabe grid=100x31 cursor=4,6 +== snap okabe grid=100x31 cursor=4,5 |30: ✓ @p1 NextColor ×6 1 message · SPC h m == style okabe grid=100x31 -|0: 0-1 d,#1b222c, 2-85 #a9b4c4,#1b222c, 86-94 #eef3fa,#27415e, 95-99 #eef3fa,#1b222c, +|0: 0-61 d,#1b222c, 62-88 #a9b4c4,#1b222c, 89-97 #eef3fa,#27415e, 98-99 #eef3fa,#1b222c, |1: 0-1 d,#58452b, 2-49 #a9b4c4,#1b222c, 50-51 #a9b4c4,#58452b, 52-99 #a9b4c4,#1b222c, -|2: 0-1 d,#56b4e9, 2-28 #a9b4c4,#1b222c, 29-38 #88d3ff,#1b222c, 39-49 #a9b4c4,#1b222c, 50-51 #a9b4c4,#33556e, 52-78 #a9b4c4,#1b222c, 79-88 #6abeee,#1b222c, 89-99 #a9b4c4,#1b222c, -|3: 0-1 d,#1b222c, 2-99 #a9b4c4,#1b222c, +|2: 0-1 d,#56b4e9, 2-32 #a9b4c4,#1b222c, 33-49 #88d3ff,#1b222c, 50-51 #88d3ff,#33556e, 52-82 #a9b4c4,#1b222c, 83-99 #6abeee,#1b222c, +|3: 0-0 d,#49525e, 1-1 d,#0e1218, 2-49 #d8dee8,#0e1218, 50-50 #d8dee8,#49525e, 51-99 #d8dee8,#0e1218, |4: 0-0 d,#49525e, 1-1 d,#0e1218, 2-49 #d8dee8,#0e1218, 50-50 #d8dee8,#49525e, 51-99 #d8dee8,#0e1218, -|5: 0-0 d,#49525e, 1-1 d,#0e1218, 2-49 #d8dee8,#0e1218, 50-50 #d8dee8,#49525e, 51-99 #d8dee8,#0e1218, +|5: 0-0 d,#49525e, 1-49 d,#0e1218, 50-50 d,#49525e, 51-99 d,#0e1218, |6: 0-0 d,#49525e, 1-49 d,#0e1218, 50-50 d,#49525e, 51-99 d,#0e1218, |7: 0-0 d,#49525e, 1-49 d,#0e1218, 50-50 d,#49525e, 51-99 d,#0e1218, |8: 0-0 d,#49525e, 1-49 d,#0e1218, 50-50 d,#49525e, 51-99 d,#0e1218, @@ -247,10 +248,10 @@ |13: 0-0 d,#49525e, 1-49 d,#0e1218, 50-50 d,#49525e, 51-99 d,#0e1218, |14: 0-0 d,#49525e, 1-49 d,#0e1218, 50-50 d,#49525e, 51-99 d,#0e1218, |15: 0-0 d,#49525e, 1-49 d,#0e1218, 50-50 d,#49525e, 51-99 d,#0e1218, -|16: 0-1 d,#33556e, 2-28 #a9b4c4,#1b222c, 29-38 #6abeee,#1b222c, 39-49 #a9b4c4,#1b222c, 50-50 #a9b4c4,#49525e, 51-99 #a9b4c4,#0e1218, -|17: 0-1 d,#1b222c, 2-49 #a9b4c4,#1b222c, 50-50 #a9b4c4,#49525e, 51-99 #a9b4c4,#0e1218, +|16: 0-1 d,#33556e, 2-32 #a9b4c4,#1b222c, 33-49 #6abeee,#1b222c, 50-50 #6abeee,#49525e, 51-99 #6abeee,#0e1218, +|17: 0-0 d,#49525e, 1-1 d,#0e1218, 2-49 #d8dee8,#0e1218, 50-50 #d8dee8,#49525e, 51-99 #d8dee8,#0e1218, |18: 0-0 d,#49525e, 1-1 d,#0e1218, 2-49 #d8dee8,#0e1218, 50-50 #d8dee8,#49525e, 51-99 #d8dee8,#0e1218, -|19: 0-0 d,#49525e, 1-1 d,#0e1218, 2-49 #d8dee8,#0e1218, 50-50 #d8dee8,#49525e, 51-99 #d8dee8,#0e1218, +|19: 0-0 d,#49525e, 1-49 d,#0e1218, 50-50 d,#49525e, 51-99 d,#0e1218, |20: 0-0 d,#49525e, 1-49 d,#0e1218, 50-50 d,#49525e, 51-99 d,#0e1218, |21: 0-0 d,#49525e, 1-49 d,#0e1218, 50-50 d,#49525e, 51-99 d,#0e1218, |22: 0-0 d,#49525e, 1-49 d,#0e1218, 50-50 d,#49525e, 51-99 d,#0e1218, @@ -262,15 +263,15 @@ |28: 0-0 d,#49525e, 1-49 d,#0e1218, 50-50 d,#49525e, 51-99 d,#0e1218, |29: 0-0 d,#49525e, 1-49 d,#0e1218, 50-50 d,#49525e, 51-99 d,#0e1218, |30: 0-1 d,#1b222c, 2-99 #6d7784,#1b222c, -== snap sepia grid=100x31 cursor=4,6 +== snap sepia grid=100x31 cursor=4,5 |30: ✓ @p1 NextColor ×7 1 message · SPC h m == style sepia grid=100x31 -|0: 0-1 d,#e6d8ba, 2-85 #4b3d2b,#e6d8ba, 86-94 #231a10,#c9d4dc, 95-99 #231a10,#e6d8ba, +|0: 0-61 d,#e6d8ba, 62-88 #4b3d2b,#e6d8ba, 89-97 #231a10,#c9d4dc, 98-99 #231a10,#e6d8ba, |1: 0-1 d,#b99fbf, 2-49 #4b3d2b,#e6d8ba, 50-51 #4b3d2b,#b99fbf, 52-99 #4b3d2b,#e6d8ba, -|2: 0-1 d,#a0562a, 2-28 #4b3d2b,#e6d8ba, 29-38 #5f1602,#e6d8ba, 39-49 #4b3d2b,#e6d8ba, 50-51 #4b3d2b,#c18f6a, 52-78 #4b3d2b,#e6d8ba, 79-88 #711f07,#e6d8ba, 89-99 #4b3d2b,#e6d8ba, -|3: 0-1 d,#e6d8ba, 2-99 #4b3d2b,#e6d8ba, +|2: 0-1 d,#a0562a, 2-32 #4b3d2b,#e6d8ba, 33-49 #5f1602,#e6d8ba, 50-51 #5f1602,#c18f6a, 52-82 #4b3d2b,#e6d8ba, 83-99 #711f07,#e6d8ba, +|3: 0-0 d,#a6987e, 1-1 d,#f4ecdb, 2-49 #3a2e22,#f4ecdb, 50-50 #3a2e22,#a6987e, 51-99 #3a2e22,#f4ecdb, |4: 0-0 d,#a6987e, 1-1 d,#f4ecdb, 2-49 #3a2e22,#f4ecdb, 50-50 #3a2e22,#a6987e, 51-99 #3a2e22,#f4ecdb, -|5: 0-0 d,#a6987e, 1-1 d,#f4ecdb, 2-49 #3a2e22,#f4ecdb, 50-50 #3a2e22,#a6987e, 51-99 #3a2e22,#f4ecdb, +|5: 0-0 d,#a6987e, 1-49 d,#f4ecdb, 50-50 d,#a6987e, 51-99 d,#f4ecdb, |6: 0-0 d,#a6987e, 1-49 d,#f4ecdb, 50-50 d,#a6987e, 51-99 d,#f4ecdb, |7: 0-0 d,#a6987e, 1-49 d,#f4ecdb, 50-50 d,#a6987e, 51-99 d,#f4ecdb, |8: 0-0 d,#a6987e, 1-49 d,#f4ecdb, 50-50 d,#a6987e, 51-99 d,#f4ecdb, @@ -281,10 +282,10 @@ |13: 0-0 d,#a6987e, 1-49 d,#f4ecdb, 50-50 d,#a6987e, 51-99 d,#f4ecdb, |14: 0-0 d,#a6987e, 1-49 d,#f4ecdb, 50-50 d,#a6987e, 51-99 d,#f4ecdb, |15: 0-0 d,#a6987e, 1-49 d,#f4ecdb, 50-50 d,#a6987e, 51-99 d,#f4ecdb, -|16: 0-1 d,#c18f6a, 2-28 #4b3d2b,#e6d8ba, 29-38 #711f07,#e6d8ba, 39-49 #4b3d2b,#e6d8ba, 50-50 #4b3d2b,#a6987e, 51-99 #4b3d2b,#f4ecdb, -|17: 0-1 d,#e6d8ba, 2-49 #4b3d2b,#e6d8ba, 50-50 #4b3d2b,#a6987e, 51-99 #4b3d2b,#f4ecdb, +|16: 0-1 d,#c18f6a, 2-32 #4b3d2b,#e6d8ba, 33-49 #711f07,#e6d8ba, 50-50 #711f07,#a6987e, 51-99 #711f07,#f4ecdb, +|17: 0-0 d,#a6987e, 1-1 d,#f4ecdb, 2-49 #3a2e22,#f4ecdb, 50-50 #3a2e22,#a6987e, 51-99 #3a2e22,#f4ecdb, |18: 0-0 d,#a6987e, 1-1 d,#f4ecdb, 2-49 #3a2e22,#f4ecdb, 50-50 #3a2e22,#a6987e, 51-99 #3a2e22,#f4ecdb, -|19: 0-0 d,#a6987e, 1-1 d,#f4ecdb, 2-49 #3a2e22,#f4ecdb, 50-50 #3a2e22,#a6987e, 51-99 #3a2e22,#f4ecdb, +|19: 0-0 d,#a6987e, 1-49 d,#f4ecdb, 50-50 d,#a6987e, 51-99 d,#f4ecdb, |20: 0-0 d,#a6987e, 1-49 d,#f4ecdb, 50-50 d,#a6987e, 51-99 d,#f4ecdb, |21: 0-0 d,#a6987e, 1-49 d,#f4ecdb, 50-50 d,#a6987e, 51-99 d,#f4ecdb, |22: 0-0 d,#a6987e, 1-49 d,#f4ecdb, 50-50 d,#a6987e, 51-99 d,#f4ecdb, @@ -296,15 +297,15 @@ |28: 0-0 d,#a6987e, 1-49 d,#f4ecdb, 50-50 d,#a6987e, 51-99 d,#f4ecdb, |29: 0-0 d,#a6987e, 1-49 d,#f4ecdb, 50-50 d,#a6987e, 51-99 d,#f4ecdb, |30: 0-1 d,#e6d8ba, 2-99 #7c6e58,#e6d8ba, -== snap paper grid=100x31 cursor=4,6 +== snap paper grid=100x31 cursor=4,5 |30: ✓ @p1 NextColor ×8 1 message · SPC h m == style paper grid=100x31 -|0: 0-1 d,#e8eae3, 2-85 #52625a,#e8eae3, 86-94 #203e31,#c5e2d0, 95-99 #203e31,#e8eae3, +|0: 0-61 d,#e8eae3, 62-88 #52625a,#e8eae3, 89-97 #203e31,#c5e2d0, 98-99 #203e31,#e8eae3, |1: 0-1 d,#c7a78a, 2-49 #4a5a52,#bdd8ca, 50-51 #4a5a52,#c7a78a, 52-99 #52625a,#e8eae3, -|2: 0-1 d,#367157, 2-28 #4a5a52,#bdd8ca, 29-38 #4f2b5f,#bdd8ca, 39-49 #4a5a52,#bdd8ca, 50-51 #4a5a52,#8eac9a, 52-78 #52625a,#e8eae3, 79-88 #724c83,#e8eae3, 89-99 #52625a,#e8eae3, -|3: 0-1 d,#bdd8ca, 2-49 #4a5a52,#bdd8ca, 50-51 #4a5a52,#e8eae3, 52-99 #52625a,#e8eae3, +|2: 0-1 d,#367157, 2-32 #4a5a52,#bdd8ca, 33-49 #4f2b5f,#bdd8ca, 50-51 #4f2b5f,#8eac9a, 52-82 #52625a,#e8eae3, 83-99 #724c83,#e8eae3, +|3: 0-0 d,#869d8a, 1-1 d,#f5f3ed, 2-49 #303b3b,#f5f3ed, 50-50 #303b3b,#869d8a, 51-99 #303b3b,#f5f3ed, |4: 0-0 d,#869d8a, 1-1 d,#f5f3ed, 2-49 #303b3b,#f5f3ed, 50-50 #303b3b,#869d8a, 51-99 #303b3b,#f5f3ed, -|5: 0-0 d,#869d8a, 1-1 d,#f5f3ed, 2-49 #303b3b,#f5f3ed, 50-50 #303b3b,#869d8a, 51-99 #303b3b,#f5f3ed, +|5: 0-0 d,#869d8a, 1-49 d,#f5f3ed, 50-50 d,#869d8a, 51-99 d,#f5f3ed, |6: 0-0 d,#869d8a, 1-49 d,#f5f3ed, 50-50 d,#869d8a, 51-99 d,#f5f3ed, |7: 0-0 d,#869d8a, 1-49 d,#f5f3ed, 50-50 d,#869d8a, 51-99 d,#f5f3ed, |8: 0-0 d,#869d8a, 1-49 d,#f5f3ed, 50-50 d,#869d8a, 51-99 d,#f5f3ed, @@ -315,10 +316,10 @@ |13: 0-0 d,#869d8a, 1-49 d,#f5f3ed, 50-50 d,#869d8a, 51-99 d,#f5f3ed, |14: 0-0 d,#869d8a, 1-49 d,#f5f3ed, 50-50 d,#869d8a, 51-99 d,#f5f3ed, |15: 0-0 d,#869d8a, 1-49 d,#f5f3ed, 50-50 d,#869d8a, 51-99 d,#f5f3ed, -|16: 0-1 d,#8eac9a, 2-28 #52625a,#e8eae3, 29-38 #724c83,#e8eae3, 39-49 #52625a,#e8eae3, 50-50 #52625a,#869d8a, 51-99 #52625a,#f5f3ed, -|17: 0-1 d,#e8eae3, 2-49 #52625a,#e8eae3, 50-50 #52625a,#869d8a, 51-99 #52625a,#f5f3ed, +|16: 0-1 d,#8eac9a, 2-32 #52625a,#e8eae3, 33-49 #724c83,#e8eae3, 50-50 #724c83,#869d8a, 51-99 #724c83,#f5f3ed, +|17: 0-0 d,#869d8a, 1-1 d,#f5f3ed, 2-49 #303b3b,#f5f3ed, 50-50 #303b3b,#869d8a, 51-99 #303b3b,#f5f3ed, |18: 0-0 d,#869d8a, 1-1 d,#f5f3ed, 2-49 #303b3b,#f5f3ed, 50-50 #303b3b,#869d8a, 51-99 #303b3b,#f5f3ed, -|19: 0-0 d,#869d8a, 1-1 d,#f5f3ed, 2-49 #303b3b,#f5f3ed, 50-50 #303b3b,#869d8a, 51-99 #303b3b,#f5f3ed, +|19: 0-0 d,#869d8a, 1-49 d,#f5f3ed, 50-50 d,#869d8a, 51-99 d,#f5f3ed, |20: 0-0 d,#869d8a, 1-49 d,#f5f3ed, 50-50 d,#869d8a, 51-99 d,#f5f3ed, |21: 0-0 d,#869d8a, 1-49 d,#f5f3ed, 50-50 d,#869d8a, 51-99 d,#f5f3ed, |22: 0-0 d,#869d8a, 1-49 d,#f5f3ed, 50-50 d,#869d8a, 51-99 d,#f5f3ed, @@ -330,15 +331,15 @@ |28: 0-0 d,#869d8a, 1-49 d,#f5f3ed, 50-50 d,#869d8a, 51-99 d,#f5f3ed, |29: 0-0 d,#869d8a, 1-49 d,#f5f3ed, 50-50 d,#869d8a, 51-99 d,#f5f3ed, |30: 0-1 d,#e8eae3, 2-99 #6f7d75,#e8eae3, -== snap daybreak grid=100x31 cursor=4,6 +== snap daybreak grid=100x31 cursor=4,5 |30: ✓ @p1 NextColor ×9 1 message · SPC h m == style daybreak grid=100x31 -|0: 0-1 d,#edf2f7, 2-85 #29465e,#edf2f7, 86-94 #10364f,#b9dffb, 95-99 #10364f,#edf2f7, +|0: 0-61 d,#edf2f7, 62-88 #29465e,#edf2f7, 89-97 #10364f,#b9dffb, 98-99 #10364f,#edf2f7, |1: 0-1 d,#cdb19d, 2-49 #213e56,#c7dcec, 50-51 #213e56,#cdb19d, 52-99 #29465e,#edf2f7, -|2: 0-1 d,#006198, 2-28 #213e56,#c7dcec, 29-38 #52255e,#c7dcec, 39-49 #213e56,#c7dcec, 50-51 #213e56,#8db0cd, 52-78 #29465e,#edf2f7, 79-88 #5a2d67,#edf2f7, 89-99 #29465e,#edf2f7, -|3: 0-1 d,#c7dcec, 2-49 #213e56,#c7dcec, 50-51 #213e56,#edf2f7, 52-99 #29465e,#edf2f7, +|2: 0-1 d,#006198, 2-32 #213e56,#c7dcec, 33-49 #52255e,#c7dcec, 50-51 #52255e,#8db0cd, 52-82 #29465e,#edf2f7, 83-99 #5a2d67,#edf2f7, +|3: 0-0 d,#6685a0, 1-1 d,#ffffff, 2-49 #142d40,#ffffff, 50-50 #142d40,#6685a0, 51-99 #142d40,#ffffff, |4: 0-0 d,#6685a0, 1-1 d,#ffffff, 2-49 #142d40,#ffffff, 50-50 #142d40,#6685a0, 51-99 #142d40,#ffffff, -|5: 0-0 d,#6685a0, 1-1 d,#ffffff, 2-49 #142d40,#ffffff, 50-50 #142d40,#6685a0, 51-99 #142d40,#ffffff, +|5: 0-0 d,#6685a0, 1-49 d,#ffffff, 50-50 d,#6685a0, 51-99 d,#ffffff, |6: 0-0 d,#6685a0, 1-49 d,#ffffff, 50-50 d,#6685a0, 51-99 d,#ffffff, |7: 0-0 d,#6685a0, 1-49 d,#ffffff, 50-50 d,#6685a0, 51-99 d,#ffffff, |8: 0-0 d,#6685a0, 1-49 d,#ffffff, 50-50 d,#6685a0, 51-99 d,#ffffff, @@ -349,10 +350,10 @@ |13: 0-0 d,#6685a0, 1-49 d,#ffffff, 50-50 d,#6685a0, 51-99 d,#ffffff, |14: 0-0 d,#6685a0, 1-49 d,#ffffff, 50-50 d,#6685a0, 51-99 d,#ffffff, |15: 0-0 d,#6685a0, 1-49 d,#ffffff, 50-50 d,#6685a0, 51-99 d,#ffffff, -|16: 0-1 d,#8db0cd, 2-28 #29465e,#edf2f7, 29-38 #5a2d67,#edf2f7, 39-49 #29465e,#edf2f7, 50-50 #29465e,#6685a0, 51-99 #29465e,#ffffff, -|17: 0-1 d,#edf2f7, 2-49 #29465e,#edf2f7, 50-50 #29465e,#6685a0, 51-99 #29465e,#ffffff, +|16: 0-1 d,#8db0cd, 2-32 #29465e,#edf2f7, 33-49 #5a2d67,#edf2f7, 50-50 #5a2d67,#6685a0, 51-99 #5a2d67,#ffffff, +|17: 0-0 d,#6685a0, 1-1 d,#ffffff, 2-49 #142d40,#ffffff, 50-50 #142d40,#6685a0, 51-99 #142d40,#ffffff, |18: 0-0 d,#6685a0, 1-1 d,#ffffff, 2-49 #142d40,#ffffff, 50-50 #142d40,#6685a0, 51-99 #142d40,#ffffff, -|19: 0-0 d,#6685a0, 1-1 d,#ffffff, 2-49 #142d40,#ffffff, 50-50 #142d40,#6685a0, 51-99 #142d40,#ffffff, +|19: 0-0 d,#6685a0, 1-49 d,#ffffff, 50-50 d,#6685a0, 51-99 d,#ffffff, |20: 0-0 d,#6685a0, 1-49 d,#ffffff, 50-50 d,#6685a0, 51-99 d,#ffffff, |21: 0-0 d,#6685a0, 1-49 d,#ffffff, 50-50 d,#6685a0, 51-99 d,#ffffff, |22: 0-0 d,#6685a0, 1-49 d,#ffffff, 50-50 d,#6685a0, 51-99 d,#ffffff, @@ -364,15 +365,15 @@ |28: 0-0 d,#6685a0, 1-49 d,#ffffff, 50-50 d,#6685a0, 51-99 d,#ffffff, |29: 0-0 d,#6685a0, 1-49 d,#ffffff, 50-50 d,#6685a0, 51-99 d,#ffffff, |30: 0-1 d,#edf2f7, 2-99 #6d8294,#edf2f7, -== snap dusk grid=100x31 cursor=4,6 +== snap dusk grid=100x31 cursor=4,5 |30: ✓ @p1 NextColor ×10 1 message · SPC h m == style dusk grid=100x31 -|0: 0-1 d,#2c2630, 2-85 #c6b6c5,#2c2630, 86-94 #fff0eb,#654053, 95-99 #fff0eb,#2c2630, +|0: 0-61 d,#2c2630, 62-88 #c6b6c5,#2c2630, 89-97 #fff0eb,#654053, 98-99 #fff0eb,#2c2630, |1: 0-1 d,#626256, 2-49 #d2c2d1,#533d4d, 50-51 #d2c2d1,#626256, 52-99 #c6b6c5,#2c2630, -|2: 0-1 d,#edb092, 2-28 #d2c2d1,#533d4d, 29-38 #e0bffd,#533d4d, 39-49 #d2c2d1,#533d4d, 50-51 #d2c2d1,#685150, 52-78 #c6b6c5,#2c2630, 79-88 #96c9b8,#2c2630, 89-99 #c6b6c5,#2c2630, -|3: 0-1 d,#533d4d, 2-49 #d2c2d1,#533d4d, 50-51 #d2c2d1,#2c2630, 52-99 #c6b6c5,#2c2630, +|2: 0-1 d,#edb092, 2-32 #d2c2d1,#533d4d, 33-49 #e0bffd,#533d4d, 50-51 #e0bffd,#685150, 52-82 #c6b6c5,#2c2630, 83-99 #96c9b8,#2c2630, +|3: 0-0 d,#8e667c, 1-1 d,#39323b, 2-49 #c3b6c1,#39323b, 50-50 #c3b6c1,#8e667c, 51-99 #c3b6c1,#39323b, |4: 0-0 d,#8e667c, 1-1 d,#39323b, 2-49 #c3b6c1,#39323b, 50-50 #c3b6c1,#8e667c, 51-99 #c3b6c1,#39323b, -|5: 0-0 d,#8e667c, 1-1 d,#39323b, 2-49 #c3b6c1,#39323b, 50-50 #c3b6c1,#8e667c, 51-99 #c3b6c1,#39323b, +|5: 0-0 d,#8e667c, 1-49 d,#39323b, 50-50 d,#8e667c, 51-99 d,#39323b, |6: 0-0 d,#8e667c, 1-49 d,#39323b, 50-50 d,#8e667c, 51-99 d,#39323b, |7: 0-0 d,#8e667c, 1-49 d,#39323b, 50-50 d,#8e667c, 51-99 d,#39323b, |8: 0-0 d,#8e667c, 1-49 d,#39323b, 50-50 d,#8e667c, 51-99 d,#39323b, @@ -383,10 +384,10 @@ |13: 0-0 d,#8e667c, 1-49 d,#39323b, 50-50 d,#8e667c, 51-99 d,#39323b, |14: 0-0 d,#8e667c, 1-49 d,#39323b, 50-50 d,#8e667c, 51-99 d,#39323b, |15: 0-0 d,#8e667c, 1-49 d,#39323b, 50-50 d,#8e667c, 51-99 d,#39323b, -|16: 0-1 d,#685150, 2-28 #c6b6c5,#2c2630, 29-38 #96c9b8,#2c2630, 39-49 #c6b6c5,#2c2630, 50-50 #c6b6c5,#8e667c, 51-99 #c6b6c5,#39323b, -|17: 0-1 d,#2c2630, 2-49 #c6b6c5,#2c2630, 50-50 #c6b6c5,#8e667c, 51-99 #c6b6c5,#39323b, +|16: 0-1 d,#685150, 2-32 #c6b6c5,#2c2630, 33-49 #96c9b8,#2c2630, 50-50 #96c9b8,#8e667c, 51-99 #96c9b8,#39323b, +|17: 0-0 d,#8e667c, 1-1 d,#39323b, 2-49 #c3b6c1,#39323b, 50-50 #c3b6c1,#8e667c, 51-99 #c3b6c1,#39323b, |18: 0-0 d,#8e667c, 1-1 d,#39323b, 2-49 #c3b6c1,#39323b, 50-50 #c3b6c1,#8e667c, 51-99 #c3b6c1,#39323b, -|19: 0-0 d,#8e667c, 1-1 d,#39323b, 2-49 #c3b6c1,#39323b, 50-50 #c3b6c1,#8e667c, 51-99 #c3b6c1,#39323b, +|19: 0-0 d,#8e667c, 1-49 d,#39323b, 50-50 d,#8e667c, 51-99 d,#39323b, |20: 0-0 d,#8e667c, 1-49 d,#39323b, 50-50 d,#8e667c, 51-99 d,#39323b, |21: 0-0 d,#8e667c, 1-49 d,#39323b, 50-50 d,#8e667c, 51-99 d,#39323b, |22: 0-0 d,#8e667c, 1-49 d,#39323b, 50-50 d,#8e667c, 51-99 d,#39323b, @@ -398,15 +399,15 @@ |28: 0-0 d,#8e667c, 1-49 d,#39323b, 50-50 d,#8e667c, 51-99 d,#39323b, |29: 0-0 d,#8e667c, 1-49 d,#39323b, 50-50 d,#8e667c, 51-99 d,#39323b, |30: 0-1 d,#2c2630, 2-99 #847885,#2c2630, -== snap lapis grid=100x31 cursor=4,6 +== snap lapis grid=100x31 cursor=4,5 |30: ✓ @p1 NextColor ×11 1 message · SPC h m == style lapis grid=100x31 -|0: 0-1 d,#0f1a4a, 2-85 #9aa6d9,#0f1a4a, 86-94 #0f1a4a,#e8c46a, 95-99 #0f1a4a,#0f1a4a, +|0: 0-61 d,#0f1a4a, 62-88 #9aa6d9,#0f1a4a, 89-97 #0f1a4a,#e8c46a, 98-99 #0f1a4a,#0f1a4a, |1: 0-1 d,#6a3a44, 2-49 #eee6d2,#25397d, 50-51 #eee6d2,#6a3a44, 52-99 #9aa6d9,#0f1a4a, -|2: 0-1 d,#e8c46a, 2-28 #eee6d2,#25397d, 29-38 #fedc8b,#25397d, 39-49 #eee6d2,#25397d, 50-51 #eee6d2,#546091, 52-78 #9aa6d9,#0f1a4a, 79-88 #e8c46a,#0f1a4a, 89-99 #9aa6d9,#0f1a4a, -|3: 0-1 d,#25397d, 2-49 #eee6d2,#25397d, 50-51 #eee6d2,#0f1a4a, 52-99 #9aa6d9,#0f1a4a, +|2: 0-1 d,#e8c46a, 2-32 #eee6d2,#25397d, 33-49 #fedc8b,#25397d, 50-51 #fedc8b,#546091, 52-82 #9aa6d9,#0f1a4a, 83-99 #e8c46a,#0f1a4a, +|3: 0-0 d,#e8c46a, 1-1 d,#0a1030, 2-49 #eee6d2,#0a1030, 50-50 #eee6d2,#e8c46a, 51-99 #eee6d2,#0a1030, |4: 0-0 d,#e8c46a, 1-1 d,#0a1030, 2-49 #eee6d2,#0a1030, 50-50 #eee6d2,#e8c46a, 51-99 #eee6d2,#0a1030, -|5: 0-0 d,#e8c46a, 1-1 d,#0a1030, 2-49 #eee6d2,#0a1030, 50-50 #eee6d2,#e8c46a, 51-99 #eee6d2,#0a1030, +|5: 0-0 d,#e8c46a, 1-49 d,#0a1030, 50-50 d,#e8c46a, 51-99 d,#0a1030, |6: 0-0 d,#e8c46a, 1-49 d,#0a1030, 50-50 d,#e8c46a, 51-99 d,#0a1030, |7: 0-0 d,#e8c46a, 1-49 d,#0a1030, 50-50 d,#e8c46a, 51-99 d,#0a1030, |8: 0-0 d,#e8c46a, 1-49 d,#0a1030, 50-50 d,#e8c46a, 51-99 d,#0a1030, @@ -417,10 +418,10 @@ |13: 0-0 d,#e8c46a, 1-49 d,#0a1030, 50-50 d,#e8c46a, 51-99 d,#0a1030, |14: 0-0 d,#e8c46a, 1-49 d,#0a1030, 50-50 d,#e8c46a, 51-99 d,#0a1030, |15: 0-0 d,#e8c46a, 1-49 d,#0a1030, 50-50 d,#e8c46a, 51-99 d,#0a1030, -|16: 0-1 d,#546091, 2-28 #9aa6d9,#0f1a4a, 29-38 #e8c46a,#0f1a4a, 39-49 #9aa6d9,#0f1a4a, 50-50 #9aa6d9,#e8c46a, 51-99 #9aa6d9,#0a1030, -|17: 0-1 d,#0f1a4a, 2-49 #9aa6d9,#0f1a4a, 50-50 #9aa6d9,#e8c46a, 51-99 #9aa6d9,#0a1030, +|16: 0-1 d,#546091, 2-32 #9aa6d9,#0f1a4a, 33-49 #e8c46a,#0f1a4a, 50-50 #e8c46a,#e8c46a, 51-99 #e8c46a,#0a1030, +|17: 0-0 d,#e8c46a, 1-1 d,#0a1030, 2-49 #eee6d2,#0a1030, 50-50 #eee6d2,#e8c46a, 51-99 #eee6d2,#0a1030, |18: 0-0 d,#e8c46a, 1-1 d,#0a1030, 2-49 #eee6d2,#0a1030, 50-50 #eee6d2,#e8c46a, 51-99 #eee6d2,#0a1030, -|19: 0-0 d,#e8c46a, 1-1 d,#0a1030, 2-49 #eee6d2,#0a1030, 50-50 #eee6d2,#e8c46a, 51-99 #eee6d2,#0a1030, +|19: 0-0 d,#e8c46a, 1-49 d,#0a1030, 50-50 d,#e8c46a, 51-99 d,#0a1030, |20: 0-0 d,#e8c46a, 1-49 d,#0a1030, 50-50 d,#e8c46a, 51-99 d,#0a1030, |21: 0-0 d,#e8c46a, 1-49 d,#0a1030, 50-50 d,#e8c46a, 51-99 d,#0a1030, |22: 0-0 d,#e8c46a, 1-49 d,#0a1030, 50-50 d,#e8c46a, 51-99 d,#0a1030, @@ -432,15 +433,15 @@ |28: 0-0 d,#e8c46a, 1-49 d,#0a1030, 50-50 d,#e8c46a, 51-99 d,#0a1030, |29: 0-0 d,#e8c46a, 1-49 d,#0a1030, 50-50 d,#e8c46a, 51-99 d,#0a1030, |30: 0-1 d,#0f1a4a, 2-99 #6472a5,#0f1a4a, -== snap forge grid=100x31 cursor=4,6 +== snap forge grid=100x31 cursor=4,5 |30: ✓ @p1 NextColor ×12 1 message · SPC h m == style forge grid=100x31 -|0: 0-1 d,#22252b, 2-85 #c5c9d2,#22252b, 86-94 #e2eef4,#1c5172, 95-99 #e2eef4,#22252b, +|0: 0-61 d,#22252b, 62-88 #c5c9d2,#22252b, 89-97 #e2eef4,#1c5172, 98-99 #e2eef4,#22252b, |1: 0-1 d,#3e473b, 2-49 #d1d5de,#374253, 50-51 #d1d5de,#3e473b, 52-99 #c5c9d2,#22252b, -|2: 0-1 d,#9cc3f7, 2-28 #d1d5de,#374253, 29-38 #f9cca8,#374253, 39-49 #d1d5de,#374253, 50-51 #d1d5de,#475468, 52-78 #c5c9d2,#22252b, 79-88 #ecbf9b,#22252b, 89-99 #c5c9d2,#22252b, -|3: 0-1 d,#374253, 2-49 #d1d5de,#374253, 50-51 #d1d5de,#22252b, 52-99 #c5c9d2,#22252b, +|2: 0-1 d,#9cc3f7, 2-32 #d1d5de,#374253, 33-49 #f9cca8,#374253, 50-51 #f9cca8,#475468, 52-82 #c5c9d2,#22252b, 83-99 #ecbf9b,#22252b, +|3: 0-0 d,#708095, 1-1 d,#0c0c0e, 2-49 #e5e5e5,#0c0c0e, 50-50 #e5e5e5,#708095, 51-99 #e5e5e5,#0c0c0e, |4: 0-0 d,#708095, 1-1 d,#0c0c0e, 2-49 #e5e5e5,#0c0c0e, 50-50 #e5e5e5,#708095, 51-99 #e5e5e5,#0c0c0e, -|5: 0-0 d,#708095, 1-1 d,#0c0c0e, 2-49 #e5e5e5,#0c0c0e, 50-50 #e5e5e5,#708095, 51-99 #e5e5e5,#0c0c0e, +|5: 0-0 d,#708095, 1-49 d,#0c0c0e, 50-50 d,#708095, 51-99 d,#0c0c0e, |6: 0-0 d,#708095, 1-49 d,#0c0c0e, 50-50 d,#708095, 51-99 d,#0c0c0e, |7: 0-0 d,#708095, 1-49 d,#0c0c0e, 50-50 d,#708095, 51-99 d,#0c0c0e, |8: 0-0 d,#708095, 1-49 d,#0c0c0e, 50-50 d,#708095, 51-99 d,#0c0c0e, @@ -451,10 +452,10 @@ |13: 0-0 d,#708095, 1-49 d,#0c0c0e, 50-50 d,#708095, 51-99 d,#0c0c0e, |14: 0-0 d,#708095, 1-49 d,#0c0c0e, 50-50 d,#708095, 51-99 d,#0c0c0e, |15: 0-0 d,#708095, 1-49 d,#0c0c0e, 50-50 d,#708095, 51-99 d,#0c0c0e, -|16: 0-1 d,#475468, 2-28 #c5c9d2,#22252b, 29-38 #ecbf9b,#22252b, 39-49 #c5c9d2,#22252b, 50-50 #c5c9d2,#708095, 51-99 #c5c9d2,#0c0c0e, -|17: 0-1 d,#22252b, 2-49 #c5c9d2,#22252b, 50-50 #c5c9d2,#708095, 51-99 #c5c9d2,#0c0c0e, +|16: 0-1 d,#475468, 2-32 #c5c9d2,#22252b, 33-49 #ecbf9b,#22252b, 50-50 #ecbf9b,#708095, 51-99 #ecbf9b,#0c0c0e, +|17: 0-0 d,#708095, 1-1 d,#0c0c0e, 2-49 #e5e5e5,#0c0c0e, 50-50 #e5e5e5,#708095, 51-99 #e5e5e5,#0c0c0e, |18: 0-0 d,#708095, 1-1 d,#0c0c0e, 2-49 #e5e5e5,#0c0c0e, 50-50 #e5e5e5,#708095, 51-99 #e5e5e5,#0c0c0e, -|19: 0-0 d,#708095, 1-1 d,#0c0c0e, 2-49 #e5e5e5,#0c0c0e, 50-50 #e5e5e5,#708095, 51-99 #e5e5e5,#0c0c0e, +|19: 0-0 d,#708095, 1-49 d,#0c0c0e, 50-50 d,#708095, 51-99 d,#0c0c0e, |20: 0-0 d,#708095, 1-49 d,#0c0c0e, 50-50 d,#708095, 51-99 d,#0c0c0e, |21: 0-0 d,#708095, 1-49 d,#0c0c0e, 50-50 d,#708095, 51-99 d,#0c0c0e, |22: 0-0 d,#708095, 1-49 d,#0c0c0e, 50-50 d,#708095, 51-99 d,#0c0c0e, @@ -466,12 +467,13 @@ |28: 0-0 d,#708095, 1-49 d,#0c0c0e, 50-50 d,#708095, 51-99 d,#0c0c0e, |29: 0-0 d,#708095, 1-49 d,#0c0c0e, 50-50 d,#708095, 51-99 d,#0c0c0e, |30: 0-1 d,#22252b, 2-99 #767a82,#22252b, -== snap forge-black grid=100x31 cursor=4,6 +== snap forge-black grid=100x31 cursor=4,5 |30: ✓ @p1 NextColor ×13 1 message · SPC h m == style forge-black grid=100x31 |1: 0-1 d,#384331, 2-49 #d1d5de,#374253, 50-51 #d1d5de,#384331, 52-99 #c5c9d2,#22252b, +|3: 0-0 d,#708095, 1-1 d,#000000, 2-49 #f6f6f6,#000000, 50-50 #f6f6f6,#708095, 51-99 #f6f6f6,#000000, |4: 0-0 d,#708095, 1-1 d,#000000, 2-49 #f6f6f6,#000000, 50-50 #f6f6f6,#708095, 51-99 #f6f6f6,#000000, -|5: 0-0 d,#708095, 1-1 d,#000000, 2-49 #f6f6f6,#000000, 50-50 #f6f6f6,#708095, 51-99 #f6f6f6,#000000, +|5: 0-0 d,#708095, 1-49 d,#000000, 50-50 d,#708095, 51-99 d,#000000, |6: 0-0 d,#708095, 1-49 d,#000000, 50-50 d,#708095, 51-99 d,#000000, |7: 0-0 d,#708095, 1-49 d,#000000, 50-50 d,#708095, 51-99 d,#000000, |8: 0-0 d,#708095, 1-49 d,#000000, 50-50 d,#708095, 51-99 d,#000000, @@ -482,10 +484,10 @@ |13: 0-0 d,#708095, 1-49 d,#000000, 50-50 d,#708095, 51-99 d,#000000, |14: 0-0 d,#708095, 1-49 d,#000000, 50-50 d,#708095, 51-99 d,#000000, |15: 0-0 d,#708095, 1-49 d,#000000, 50-50 d,#708095, 51-99 d,#000000, -|16: 0-1 d,#475468, 2-28 #c5c9d2,#22252b, 29-38 #ecbf9b,#22252b, 39-49 #c5c9d2,#22252b, 50-50 #c5c9d2,#708095, 51-99 #c5c9d2,#000000, -|17: 0-1 d,#22252b, 2-49 #c5c9d2,#22252b, 50-50 #c5c9d2,#708095, 51-99 #c5c9d2,#000000, +|16: 0-1 d,#475468, 2-32 #c5c9d2,#22252b, 33-49 #ecbf9b,#22252b, 50-50 #ecbf9b,#708095, 51-99 #ecbf9b,#000000, +|17: 0-0 d,#708095, 1-1 d,#000000, 2-49 #f6f6f6,#000000, 50-50 #f6f6f6,#708095, 51-99 #f6f6f6,#000000, |18: 0-0 d,#708095, 1-1 d,#000000, 2-49 #f6f6f6,#000000, 50-50 #f6f6f6,#708095, 51-99 #f6f6f6,#000000, -|19: 0-0 d,#708095, 1-1 d,#000000, 2-49 #f6f6f6,#000000, 50-50 #f6f6f6,#708095, 51-99 #f6f6f6,#000000, +|19: 0-0 d,#708095, 1-49 d,#000000, 50-50 d,#708095, 51-99 d,#000000, |20: 0-0 d,#708095, 1-49 d,#000000, 50-50 d,#708095, 51-99 d,#000000, |21: 0-0 d,#708095, 1-49 d,#000000, 50-50 d,#708095, 51-99 d,#000000, |22: 0-0 d,#708095, 1-49 d,#000000, 50-50 d,#708095, 51-99 d,#000000, @@ -496,15 +498,15 @@ |27: 0-0 d,#708095, 1-49 d,#000000, 50-50 d,#708095, 51-99 d,#000000, |28: 0-0 d,#708095, 1-49 d,#000000, 50-50 d,#708095, 51-99 d,#000000, |29: 0-0 d,#708095, 1-49 d,#000000, 50-50 d,#708095, 51-99 d,#000000, -== snap forge-soft grid=100x31 cursor=4,6 +== snap forge-soft grid=100x31 cursor=4,5 |30: ✓ @p1 NextColor ×14 1 message · SPC h m == style forge-soft grid=100x31 -|0: 0-1 d,#2a2d34, 2-85 #c5c9d2,#2a2d34, 86-94 #e2eef4,#1c5172, 95-99 #e2eef4,#2a2d34, +|0: 0-61 d,#2a2d34, 62-88 #c5c9d2,#2a2d34, 89-97 #e2eef4,#1c5172, 98-99 #e2eef4,#2a2d34, |1: 0-1 d,#5d695f, 2-49 #d1d5de,#404a58, 50-51 #d1d5de,#5d695f, 52-99 #c5c9d2,#2a2d34, -|2: 0-1 d,#9cc3f7, 2-28 #d1d5de,#404a58, 29-38 #fdd5b6,#404a58, 39-49 #d1d5de,#404a58, 50-51 #d1d5de,#4e5c70, 52-78 #c5c9d2,#2a2d34, 79-88 #ecbf9b,#2a2d34, 89-99 #c5c9d2,#2a2d34, -|3: 0-1 d,#404a58, 2-49 #d1d5de,#404a58, 50-51 #d1d5de,#2a2d34, 52-99 #c5c9d2,#2a2d34, +|2: 0-1 d,#9cc3f7, 2-32 #d1d5de,#404a58, 33-49 #fdd5b6,#404a58, 50-51 #fdd5b6,#4e5c70, 52-82 #c5c9d2,#2a2d34, 83-99 #ecbf9b,#2a2d34, +|3: 0-0 d,#708095, 1-1 d,#35383e, 2-49 #bfc3cc,#35383e, 50-50 #bfc3cc,#708095, 51-99 #bfc3cc,#35383e, |4: 0-0 d,#708095, 1-1 d,#35383e, 2-49 #bfc3cc,#35383e, 50-50 #bfc3cc,#708095, 51-99 #bfc3cc,#35383e, -|5: 0-0 d,#708095, 1-1 d,#35383e, 2-49 #bfc3cc,#35383e, 50-50 #bfc3cc,#708095, 51-99 #bfc3cc,#35383e, +|5: 0-0 d,#708095, 1-49 d,#35383e, 50-50 d,#708095, 51-99 d,#35383e, |6: 0-0 d,#708095, 1-49 d,#35383e, 50-50 d,#708095, 51-99 d,#35383e, |7: 0-0 d,#708095, 1-49 d,#35383e, 50-50 d,#708095, 51-99 d,#35383e, |8: 0-0 d,#708095, 1-49 d,#35383e, 50-50 d,#708095, 51-99 d,#35383e, @@ -515,10 +517,10 @@ |13: 0-0 d,#708095, 1-49 d,#35383e, 50-50 d,#708095, 51-99 d,#35383e, |14: 0-0 d,#708095, 1-49 d,#35383e, 50-50 d,#708095, 51-99 d,#35383e, |15: 0-0 d,#708095, 1-49 d,#35383e, 50-50 d,#708095, 51-99 d,#35383e, -|16: 0-1 d,#4e5c70, 2-28 #c5c9d2,#2a2d34, 29-38 #ecbf9b,#2a2d34, 39-49 #c5c9d2,#2a2d34, 50-50 #c5c9d2,#708095, 51-99 #c5c9d2,#35383e, -|17: 0-1 d,#2a2d34, 2-49 #c5c9d2,#2a2d34, 50-50 #c5c9d2,#708095, 51-99 #c5c9d2,#35383e, +|16: 0-1 d,#4e5c70, 2-32 #c5c9d2,#2a2d34, 33-49 #ecbf9b,#2a2d34, 50-50 #ecbf9b,#708095, 51-99 #ecbf9b,#35383e, +|17: 0-0 d,#708095, 1-1 d,#35383e, 2-49 #bfc3cc,#35383e, 50-50 #bfc3cc,#708095, 51-99 #bfc3cc,#35383e, |18: 0-0 d,#708095, 1-1 d,#35383e, 2-49 #bfc3cc,#35383e, 50-50 #bfc3cc,#708095, 51-99 #bfc3cc,#35383e, -|19: 0-0 d,#708095, 1-1 d,#35383e, 2-49 #bfc3cc,#35383e, 50-50 #bfc3cc,#708095, 51-99 #bfc3cc,#35383e, +|19: 0-0 d,#708095, 1-49 d,#35383e, 50-50 d,#708095, 51-99 d,#35383e, |20: 0-0 d,#708095, 1-49 d,#35383e, 50-50 d,#708095, 51-99 d,#35383e, |21: 0-0 d,#708095, 1-49 d,#35383e, 50-50 d,#708095, 51-99 d,#35383e, |22: 0-0 d,#708095, 1-49 d,#35383e, 50-50 d,#708095, 51-99 d,#35383e, @@ -530,15 +532,15 @@ |28: 0-0 d,#708095, 1-49 d,#35383e, 50-50 d,#708095, 51-99 d,#35383e, |29: 0-0 d,#708095, 1-49 d,#35383e, 50-50 d,#708095, 51-99 d,#35383e, |30: 0-1 d,#2a2d34, 2-99 #7e818a,#2a2d34, -== snap lagoon grid=100x31 cursor=4,6 +== snap lagoon grid=100x31 cursor=4,5 |30: ✓ @p1 NextColor ×15 1 message · SPC h m == style lagoon grid=100x31 -|0: 0-1 d,#29443f, 2-85 #bbd7cb,#29443f, 86-94 #e6f2f3,#325f6c, 95-99 #e6f2f3,#29443f, +|0: 0-61 d,#29443f, 62-88 #bbd7cb,#29443f, 89-97 #e6f2f3,#325f6c, 98-99 #e6f2f3,#29443f, |1: 0-1 d,#7e6d67, 2-49 #c7e3d7,#3a6154, 50-51 #c7e3d7,#7e6d67, 52-99 #bbd7cb,#29443f, -|2: 0-1 d,#81cfb7, 2-28 #c7e3d7,#3a6154, 29-38 #f7defc,#3a6154, 39-49 #c7e3d7,#3a6154, 50-51 #c7e3d7,#48766a, 52-78 #bbd7cb,#29443f, 79-88 #e4c2ec,#29443f, 89-99 #bbd7cb,#29443f, -|3: 0-1 d,#3a6154, 2-49 #c7e3d7,#3a6154, 50-51 #c7e3d7,#29443f, 52-99 #bbd7cb,#29443f, +|2: 0-1 d,#81cfb7, 2-32 #c7e3d7,#3a6154, 33-49 #f7defc,#3a6154, 50-51 #f7defc,#48766a, 52-82 #bbd7cb,#29443f, 83-99 #e4c2ec,#29443f, +|3: 0-0 d,#6e9b8b, 1-1 d,#34464c, 2-49 #bac9ce,#34464c, 50-50 #bac9ce,#6e9b8b, 51-99 #bac9ce,#34464c, |4: 0-0 d,#6e9b8b, 1-1 d,#34464c, 2-49 #bac9ce,#34464c, 50-50 #bac9ce,#6e9b8b, 51-99 #bac9ce,#34464c, -|5: 0-0 d,#6e9b8b, 1-1 d,#34464c, 2-49 #bac9ce,#34464c, 50-50 #bac9ce,#6e9b8b, 51-99 #bac9ce,#34464c, +|5: 0-0 d,#6e9b8b, 1-49 d,#34464c, 50-50 d,#6e9b8b, 51-99 d,#34464c, |6: 0-0 d,#6e9b8b, 1-49 d,#34464c, 50-50 d,#6e9b8b, 51-99 d,#34464c, |7: 0-0 d,#6e9b8b, 1-49 d,#34464c, 50-50 d,#6e9b8b, 51-99 d,#34464c, |8: 0-0 d,#6e9b8b, 1-49 d,#34464c, 50-50 d,#6e9b8b, 51-99 d,#34464c, @@ -549,10 +551,10 @@ |13: 0-0 d,#6e9b8b, 1-49 d,#34464c, 50-50 d,#6e9b8b, 51-99 d,#34464c, |14: 0-0 d,#6e9b8b, 1-49 d,#34464c, 50-50 d,#6e9b8b, 51-99 d,#34464c, |15: 0-0 d,#6e9b8b, 1-49 d,#34464c, 50-50 d,#6e9b8b, 51-99 d,#34464c, -|16: 0-1 d,#48766a, 2-28 #bbd7cb,#29443f, 29-38 #e4c2ec,#29443f, 39-49 #bbd7cb,#29443f, 50-50 #bbd7cb,#6e9b8b, 51-99 #bbd7cb,#34464c, -|17: 0-1 d,#29443f, 2-49 #bbd7cb,#29443f, 50-50 #bbd7cb,#6e9b8b, 51-99 #bbd7cb,#34464c, +|16: 0-1 d,#48766a, 2-32 #bbd7cb,#29443f, 33-49 #e4c2ec,#29443f, 50-50 #e4c2ec,#6e9b8b, 51-99 #e4c2ec,#34464c, +|17: 0-0 d,#6e9b8b, 1-1 d,#34464c, 2-49 #bac9ce,#34464c, 50-50 #bac9ce,#6e9b8b, 51-99 #bac9ce,#34464c, |18: 0-0 d,#6e9b8b, 1-1 d,#34464c, 2-49 #bac9ce,#34464c, 50-50 #bac9ce,#6e9b8b, 51-99 #bac9ce,#34464c, -|19: 0-0 d,#6e9b8b, 1-1 d,#34464c, 2-49 #bac9ce,#34464c, 50-50 #bac9ce,#6e9b8b, 51-99 #bac9ce,#34464c, +|19: 0-0 d,#6e9b8b, 1-49 d,#34464c, 50-50 d,#6e9b8b, 51-99 d,#34464c, |20: 0-0 d,#6e9b8b, 1-49 d,#34464c, 50-50 d,#6e9b8b, 51-99 d,#34464c, |21: 0-0 d,#6e9b8b, 1-49 d,#34464c, 50-50 d,#6e9b8b, 51-99 d,#34464c, |22: 0-0 d,#6e9b8b, 1-49 d,#34464c, 50-50 d,#6e9b8b, 51-99 d,#34464c, @@ -564,15 +566,15 @@ |28: 0-0 d,#6e9b8b, 1-49 d,#34464c, 50-50 d,#6e9b8b, 51-99 d,#34464c, |29: 0-0 d,#6e9b8b, 1-49 d,#34464c, 50-50 d,#6e9b8b, 51-99 d,#34464c, |30: 0-1 d,#29443f, 2-99 #809c93,#29443f, -== snap solarium grid=100x31 cursor=4,6 +== snap solarium grid=100x31 cursor=4,5 |30: ✓ @p1 NextColor ×16 1 message · SPC h m == style solarium grid=100x31 -|0: 0-1 d,#123f43, 2-85 #c7d4bd,#123f43, 86-94 #eee8d5,#1f5c64, 95-99 #eee8d5,#123f43, +|0: 0-61 d,#123f43, 62-88 #c7d4bd,#123f43, 89-97 #eee8d5,#1f5c64, 98-99 #eee8d5,#123f43, |1: 0-1 d,#326c87, 2-49 #d3e0c9,#2f5c5c, 50-51 #d3e0c9,#326c87, 52-99 #c7d4bd,#123f43, -|2: 0-1 d,#e1c266, 2-28 #d3e0c9,#2f5c5c, 29-38 #fde2f7,#2f5c5c, 39-49 #d3e0c9,#2f5c5c, 50-51 #d3e0c9,#647359, 52-78 #c7d4bd,#123f43, 79-88 #e9c1e0,#123f43, 89-99 #c7d4bd,#123f43, -|3: 0-1 d,#2f5c5c, 2-49 #d3e0c9,#2f5c5c, 50-51 #d3e0c9,#123f43, 52-99 #c7d4bd,#123f43, +|2: 0-1 d,#e1c266, 2-32 #d3e0c9,#2f5c5c, 33-49 #fde2f7,#2f5c5c, 50-51 #fde2f7,#647359, 52-82 #c7d4bd,#123f43, 83-99 #e9c1e0,#123f43, +|3: 0-0 d,#65978c, 1-1 d,#173e45, 2-49 #a7b7ae,#173e45, 50-50 #a7b7ae,#65978c, 51-99 #a7b7ae,#173e45, |4: 0-0 d,#65978c, 1-1 d,#173e45, 2-49 #a7b7ae,#173e45, 50-50 #a7b7ae,#65978c, 51-99 #a7b7ae,#173e45, -|5: 0-0 d,#65978c, 1-1 d,#173e45, 2-49 #a7b7ae,#173e45, 50-50 #a7b7ae,#65978c, 51-99 #a7b7ae,#173e45, +|5: 0-0 d,#65978c, 1-49 d,#173e45, 50-50 d,#65978c, 51-99 d,#173e45, |6: 0-0 d,#65978c, 1-49 d,#173e45, 50-50 d,#65978c, 51-99 d,#173e45, |7: 0-0 d,#65978c, 1-49 d,#173e45, 50-50 d,#65978c, 51-99 d,#173e45, |8: 0-0 d,#65978c, 1-49 d,#173e45, 50-50 d,#65978c, 51-99 d,#173e45, @@ -583,10 +585,10 @@ |13: 0-0 d,#65978c, 1-49 d,#173e45, 50-50 d,#65978c, 51-99 d,#173e45, |14: 0-0 d,#65978c, 1-49 d,#173e45, 50-50 d,#65978c, 51-99 d,#173e45, |15: 0-0 d,#65978c, 1-49 d,#173e45, 50-50 d,#65978c, 51-99 d,#173e45, -|16: 0-1 d,#647359, 2-28 #c7d4bd,#123f43, 29-38 #e9c1e0,#123f43, 39-49 #c7d4bd,#123f43, 50-50 #c7d4bd,#65978c, 51-99 #c7d4bd,#173e45, -|17: 0-1 d,#123f43, 2-49 #c7d4bd,#123f43, 50-50 #c7d4bd,#65978c, 51-99 #c7d4bd,#173e45, +|16: 0-1 d,#647359, 2-32 #c7d4bd,#123f43, 33-49 #e9c1e0,#123f43, 50-50 #e9c1e0,#65978c, 51-99 #e9c1e0,#173e45, +|17: 0-0 d,#65978c, 1-1 d,#173e45, 2-49 #a7b7ae,#173e45, 50-50 #a7b7ae,#65978c, 51-99 #a7b7ae,#173e45, |18: 0-0 d,#65978c, 1-1 d,#173e45, 2-49 #a7b7ae,#173e45, 50-50 #a7b7ae,#65978c, 51-99 #a7b7ae,#173e45, -|19: 0-0 d,#65978c, 1-1 d,#173e45, 2-49 #a7b7ae,#173e45, 50-50 #a7b7ae,#65978c, 51-99 #a7b7ae,#173e45, +|19: 0-0 d,#65978c, 1-49 d,#173e45, 50-50 d,#65978c, 51-99 d,#173e45, |20: 0-0 d,#65978c, 1-49 d,#173e45, 50-50 d,#65978c, 51-99 d,#173e45, |21: 0-0 d,#65978c, 1-49 d,#173e45, 50-50 d,#65978c, 51-99 d,#173e45, |22: 0-0 d,#65978c, 1-49 d,#173e45, 50-50 d,#65978c, 51-99 d,#173e45, @@ -598,15 +600,15 @@ |28: 0-0 d,#65978c, 1-49 d,#173e45, 50-50 d,#65978c, 51-99 d,#173e45, |29: 0-0 d,#65978c, 1-49 d,#173e45, 50-50 d,#65978c, 51-99 d,#173e45, |30: 0-1 d,#123f43, 2-99 #7b9489,#123f43, -== snap spectrum grid=100x31 cursor=4,6 +== snap spectrum grid=100x31 cursor=4,5 |30: ✓ @p1 NextColor ×17 1 message · SPC h m == style spectrum grid=100x31 -|0: 0-1 d,#3b3830, 2-85 #ddd8bb,#3b3830, 86-94 #fcfcfa,#513f60, 95-99 #fcfcfa,#3b3830, +|0: 0-61 d,#3b3830, 62-88 #ddd8bb,#3b3830, 89-97 #fcfcfa,#513f60, 98-99 #fcfcfa,#3b3830, |1: 0-1 d,#484169, 2-49 #e9e4c7,#5a523a, 50-51 #e9e4c7,#484169, 52-99 #ddd8bb,#3b3830, -|2: 0-1 d,#ffd866, 2-28 #e9e4c7,#5a523a, 29-38 #fbd8dd,#5a523a, 39-49 #e9e4c7,#5a523a, 50-51 #e9e4c7,#706443, 52-78 #ddd8bb,#3b3830, 79-88 #c5d7ff,#3b3830, 89-99 #ddd8bb,#3b3830, -|3: 0-1 d,#5a523a, 2-49 #e9e4c7,#5a523a, 50-51 #e9e4c7,#3b3830, 52-99 #ddd8bb,#3b3830, +|2: 0-1 d,#ffd866, 2-32 #e9e4c7,#5a523a, 33-49 #fbd8dd,#5a523a, 50-51 #fbd8dd,#706443, 52-82 #ddd8bb,#3b3830, 83-99 #c5d7ff,#3b3830, +|3: 0-0 d,#948d6f, 1-1 d,#100e11, 2-49 #fcfcfa,#100e11, 50-50 #fcfcfa,#948d6f, 51-99 #fcfcfa,#100e11, |4: 0-0 d,#948d6f, 1-1 d,#100e11, 2-49 #fcfcfa,#100e11, 50-50 #fcfcfa,#948d6f, 51-99 #fcfcfa,#100e11, -|5: 0-0 d,#948d6f, 1-1 d,#100e11, 2-49 #fcfcfa,#100e11, 50-50 #fcfcfa,#948d6f, 51-99 #fcfcfa,#100e11, +|5: 0-0 d,#948d6f, 1-49 d,#100e11, 50-50 d,#948d6f, 51-99 d,#100e11, |6: 0-0 d,#948d6f, 1-49 d,#100e11, 50-50 d,#948d6f, 51-99 d,#100e11, |7: 0-0 d,#948d6f, 1-49 d,#100e11, 50-50 d,#948d6f, 51-99 d,#100e11, |8: 0-0 d,#948d6f, 1-49 d,#100e11, 50-50 d,#948d6f, 51-99 d,#100e11, @@ -617,10 +619,10 @@ |13: 0-0 d,#948d6f, 1-49 d,#100e11, 50-50 d,#948d6f, 51-99 d,#100e11, |14: 0-0 d,#948d6f, 1-49 d,#100e11, 50-50 d,#948d6f, 51-99 d,#100e11, |15: 0-0 d,#948d6f, 1-49 d,#100e11, 50-50 d,#948d6f, 51-99 d,#100e11, -|16: 0-1 d,#706443, 2-28 #ddd8bb,#3b3830, 29-38 #c5d7ff,#3b3830, 39-49 #ddd8bb,#3b3830, 50-50 #ddd8bb,#948d6f, 51-99 #ddd8bb,#100e11, -|17: 0-1 d,#3b3830, 2-49 #ddd8bb,#3b3830, 50-50 #ddd8bb,#948d6f, 51-99 #ddd8bb,#100e11, +|16: 0-1 d,#706443, 2-32 #ddd8bb,#3b3830, 33-49 #c5d7ff,#3b3830, 50-50 #c5d7ff,#948d6f, 51-99 #c5d7ff,#100e11, +|17: 0-0 d,#948d6f, 1-1 d,#100e11, 2-49 #fcfcfa,#100e11, 50-50 #fcfcfa,#948d6f, 51-99 #fcfcfa,#100e11, |18: 0-0 d,#948d6f, 1-1 d,#100e11, 2-49 #fcfcfa,#100e11, 50-50 #fcfcfa,#948d6f, 51-99 #fcfcfa,#100e11, -|19: 0-0 d,#948d6f, 1-1 d,#100e11, 2-49 #fcfcfa,#100e11, 50-50 #fcfcfa,#948d6f, 51-99 #fcfcfa,#100e11, +|19: 0-0 d,#948d6f, 1-49 d,#100e11, 50-50 d,#948d6f, 51-99 d,#100e11, |20: 0-0 d,#948d6f, 1-49 d,#100e11, 50-50 d,#948d6f, 51-99 d,#100e11, |21: 0-0 d,#948d6f, 1-49 d,#100e11, 50-50 d,#948d6f, 51-99 d,#100e11, |22: 0-0 d,#948d6f, 1-49 d,#100e11, 50-50 d,#948d6f, 51-99 d,#100e11, @@ -632,15 +634,15 @@ |28: 0-0 d,#948d6f, 1-49 d,#100e11, 50-50 d,#948d6f, 51-99 d,#100e11, |29: 0-0 d,#948d6f, 1-49 d,#100e11, 50-50 d,#948d6f, 51-99 d,#100e11, |30: 0-1 d,#3b3830, 2-99 #918d7a,#3b3830, -== snap harvest grid=100x31 cursor=4,6 +== snap harvest grid=100x31 cursor=4,5 |30: ✓ @p1 NextColor ×18 1 message · SPC h m == style harvest grid=100x31 -|0: 0-1 d,#343b2e, 2-85 #d5d8b8,#343b2e, 86-94 #f3f2cc,#4f5834, 95-99 #f3f2cc,#343b2e, +|0: 0-61 d,#343b2e, 62-88 #d5d8b8,#343b2e, 89-97 #f3f2cc,#4f5834, 98-99 #f3f2cc,#343b2e, |1: 0-1 d,#6a3728, 2-49 #e1e4c4,#4a583e, 50-51 #e1e4c4,#6a3728, 52-99 #d5d8b8,#343b2e, -|2: 0-1 d,#d8bd83, 2-28 #e1e4c4,#4a583e, 29-38 #fddbd2,#4a583e, 39-49 #e1e4c4,#4a583e, 50-51 #e1e4c4,#6b674b, 52-78 #d5d8b8,#343b2e, 79-88 #badbeb,#343b2e, 89-99 #d5d8b8,#343b2e, -|3: 0-1 d,#4a583e, 2-49 #e1e4c4,#4a583e, 50-51 #e1e4c4,#343b2e, 52-99 #d5d8b8,#343b2e, +|2: 0-1 d,#d8bd83, 2-32 #e1e4c4,#4a583e, 33-49 #fddbd2,#4a583e, 50-51 #fddbd2,#6b674b, 52-82 #d5d8b8,#343b2e, 83-99 #badbeb,#343b2e, +|3: 0-0 d,#888e5e, 1-1 d,#100e0b, 2-49 #f3f2cc,#100e0b, 50-50 #f3f2cc,#888e5e, 51-99 #f3f2cc,#100e0b, |4: 0-0 d,#888e5e, 1-1 d,#100e0b, 2-49 #f3f2cc,#100e0b, 50-50 #f3f2cc,#888e5e, 51-99 #f3f2cc,#100e0b, -|5: 0-0 d,#888e5e, 1-1 d,#100e0b, 2-49 #f3f2cc,#100e0b, 50-50 #f3f2cc,#888e5e, 51-99 #f3f2cc,#100e0b, +|5: 0-0 d,#888e5e, 1-49 d,#100e0b, 50-50 d,#888e5e, 51-99 d,#100e0b, |6: 0-0 d,#888e5e, 1-49 d,#100e0b, 50-50 d,#888e5e, 51-99 d,#100e0b, |7: 0-0 d,#888e5e, 1-49 d,#100e0b, 50-50 d,#888e5e, 51-99 d,#100e0b, |8: 0-0 d,#888e5e, 1-49 d,#100e0b, 50-50 d,#888e5e, 51-99 d,#100e0b, @@ -651,10 +653,10 @@ |13: 0-0 d,#888e5e, 1-49 d,#100e0b, 50-50 d,#888e5e, 51-99 d,#100e0b, |14: 0-0 d,#888e5e, 1-49 d,#100e0b, 50-50 d,#888e5e, 51-99 d,#100e0b, |15: 0-0 d,#888e5e, 1-49 d,#100e0b, 50-50 d,#888e5e, 51-99 d,#100e0b, -|16: 0-1 d,#6b674b, 2-28 #d5d8b8,#343b2e, 29-38 #badbeb,#343b2e, 39-49 #d5d8b8,#343b2e, 50-50 #d5d8b8,#888e5e, 51-99 #d5d8b8,#100e0b, -|17: 0-1 d,#343b2e, 2-49 #d5d8b8,#343b2e, 50-50 #d5d8b8,#888e5e, 51-99 #d5d8b8,#100e0b, +|16: 0-1 d,#6b674b, 2-32 #d5d8b8,#343b2e, 33-49 #badbeb,#343b2e, 50-50 #badbeb,#888e5e, 51-99 #badbeb,#100e0b, +|17: 0-0 d,#888e5e, 1-1 d,#100e0b, 2-49 #f3f2cc,#100e0b, 50-50 #f3f2cc,#888e5e, 51-99 #f3f2cc,#100e0b, |18: 0-0 d,#888e5e, 1-1 d,#100e0b, 2-49 #f3f2cc,#100e0b, 50-50 #f3f2cc,#888e5e, 51-99 #f3f2cc,#100e0b, -|19: 0-0 d,#888e5e, 1-1 d,#100e0b, 2-49 #f3f2cc,#100e0b, 50-50 #f3f2cc,#888e5e, 51-99 #f3f2cc,#100e0b, +|19: 0-0 d,#888e5e, 1-49 d,#100e0b, 50-50 d,#888e5e, 51-99 d,#100e0b, |20: 0-0 d,#888e5e, 1-49 d,#100e0b, 50-50 d,#888e5e, 51-99 d,#100e0b, |21: 0-0 d,#888e5e, 1-49 d,#100e0b, 50-50 d,#888e5e, 51-99 d,#100e0b, |22: 0-0 d,#888e5e, 1-49 d,#100e0b, 50-50 d,#888e5e, 51-99 d,#100e0b, @@ -666,15 +668,15 @@ |28: 0-0 d,#888e5e, 1-49 d,#100e0b, 50-50 d,#888e5e, 51-99 d,#100e0b, |29: 0-0 d,#888e5e, 1-49 d,#100e0b, 50-50 d,#888e5e, 51-99 d,#100e0b, |30: 0-1 d,#343b2e, 2-99 #8b9079,#343b2e, -== snap clay grid=100x31 cursor=4,6 +== snap clay grid=100x31 cursor=4,5 |30: ✓ @p1 NextColor ×19 1 message · SPC h m == style clay grid=100x31 -|0: 0-1 d,#343f36, 2-85 #d7d6b6,#343f36, 86-94 #fbf1c7,#505c38, 95-99 #fbf1c7,#343f36, +|0: 0-61 d,#343f36, 62-88 #d7d6b6,#343f36, 89-97 #fbf1c7,#505c38, 98-99 #fbf1c7,#343f36, |1: 0-1 d,#623c45, 2-49 #e3e2c2,#4d5c48, 50-51 #e3e2c2,#623c45, 52-99 #d7d6b6,#343f36, -|2: 0-1 d,#8ac874, 2-28 #e3e2c2,#4d5c48, 29-38 #ffddd3,#4d5c48, 39-49 #e3e2c2,#4d5c48, 50-51 #e3e2c2,#54714e, 52-78 #d7d6b6,#343f36, 79-88 #aae0e0,#343f36, 89-99 #d7d6b6,#343f36, -|3: 0-1 d,#4d5c48, 2-49 #e3e2c2,#4d5c48, 50-51 #e3e2c2,#343f36, 52-99 #d7d6b6,#343f36, +|2: 0-1 d,#8ac874, 2-32 #e3e2c2,#4d5c48, 33-49 #ffddd3,#4d5c48, 50-51 #ffddd3,#54714e, 52-82 #d7d6b6,#343f36, 83-99 #aae0e0,#343f36, +|3: 0-0 d,#8c9467, 1-1 d,#10100e, 2-49 #f3e5bc,#10100e, 50-50 #f3e5bc,#8c9467, 51-99 #f3e5bc,#10100e, |4: 0-0 d,#8c9467, 1-1 d,#10100e, 2-49 #f3e5bc,#10100e, 50-50 #f3e5bc,#8c9467, 51-99 #f3e5bc,#10100e, -|5: 0-0 d,#8c9467, 1-1 d,#10100e, 2-49 #f3e5bc,#10100e, 50-50 #f3e5bc,#8c9467, 51-99 #f3e5bc,#10100e, +|5: 0-0 d,#8c9467, 1-49 d,#10100e, 50-50 d,#8c9467, 51-99 d,#10100e, |6: 0-0 d,#8c9467, 1-49 d,#10100e, 50-50 d,#8c9467, 51-99 d,#10100e, |7: 0-0 d,#8c9467, 1-49 d,#10100e, 50-50 d,#8c9467, 51-99 d,#10100e, |8: 0-0 d,#8c9467, 1-49 d,#10100e, 50-50 d,#8c9467, 51-99 d,#10100e, @@ -685,10 +687,10 @@ |13: 0-0 d,#8c9467, 1-49 d,#10100e, 50-50 d,#8c9467, 51-99 d,#10100e, |14: 0-0 d,#8c9467, 1-49 d,#10100e, 50-50 d,#8c9467, 51-99 d,#10100e, |15: 0-0 d,#8c9467, 1-49 d,#10100e, 50-50 d,#8c9467, 51-99 d,#10100e, -|16: 0-1 d,#54714e, 2-28 #d7d6b6,#343f36, 29-38 #aae0e0,#343f36, 39-49 #d7d6b6,#343f36, 50-50 #d7d6b6,#8c9467, 51-99 #d7d6b6,#10100e, -|17: 0-1 d,#343f36, 2-49 #d7d6b6,#343f36, 50-50 #d7d6b6,#8c9467, 51-99 #d7d6b6,#10100e, +|16: 0-1 d,#54714e, 2-32 #d7d6b6,#343f36, 33-49 #aae0e0,#343f36, 50-50 #aae0e0,#8c9467, 51-99 #aae0e0,#10100e, +|17: 0-0 d,#8c9467, 1-1 d,#10100e, 2-49 #f3e5bc,#10100e, 50-50 #f3e5bc,#8c9467, 51-99 #f3e5bc,#10100e, |18: 0-0 d,#8c9467, 1-1 d,#10100e, 2-49 #f3e5bc,#10100e, 50-50 #f3e5bc,#8c9467, 51-99 #f3e5bc,#10100e, -|19: 0-0 d,#8c9467, 1-1 d,#10100e, 2-49 #f3e5bc,#10100e, 50-50 #f3e5bc,#8c9467, 51-99 #f3e5bc,#10100e, +|19: 0-0 d,#8c9467, 1-49 d,#10100e, 50-50 d,#8c9467, 51-99 d,#10100e, |20: 0-0 d,#8c9467, 1-49 d,#10100e, 50-50 d,#8c9467, 51-99 d,#10100e, |21: 0-0 d,#8c9467, 1-49 d,#10100e, 50-50 d,#8c9467, 51-99 d,#10100e, |22: 0-0 d,#8c9467, 1-49 d,#10100e, 50-50 d,#8c9467, 51-99 d,#10100e, @@ -700,15 +702,15 @@ |28: 0-0 d,#8c9467, 1-49 d,#10100e, 50-50 d,#8c9467, 51-99 d,#10100e, |29: 0-0 d,#8c9467, 1-49 d,#10100e, 50-50 d,#8c9467, 51-99 d,#10100e, |30: 0-1 d,#343f36, 2-99 #90947e,#343f36, -== snap acme grid=100x31 cursor=4,6 +== snap acme grid=100x31 cursor=4,5 |30: ✓ @p1 NextColor ×20 1 message · SPC h m == style acme grid=100x31 -|0: 0-1 d,#eaffff, 2-85 #000000,#eaffff, 86-94 #000000,#9eeeee, 95-99 #000000,#eaffff, +|0: 0-61 d,#eaffff, 62-88 #000000,#eaffff, 89-97 #000000,#9eeeee, 98-99 #000000,#eaffff, |1: 0-1 d,#b0b3d9, 2-49 #000000,#eaffff, 50-51 #000000,#b0b3d9, 52-99 #000000,#eaffff, -|2: 0-1 d,#7b7abd, 2-28 #000000,#eaffff, 29-38 #02000f,#eaffff, 39-49 #000000,#eaffff, 50-51 #000000,#b9c3e5, 52-78 #000000,#eaffff, 79-88 #000099,#eaffff, 89-99 #000000,#eaffff, -|3: 0-1 d,#eaffff, 2-99 #000000,#eaffff, +|2: 0-1 d,#7b7abd, 2-32 #000000,#eaffff, 33-49 #02000f,#eaffff, 50-51 #02000f,#b9c3e5, 52-82 #000000,#eaffff, 83-99 #000099,#eaffff, +|3: 0-1 d,#ffffea, 2-99 #000000,#ffffea, |4: 0-1 d,#ffffea, 2-99 #000000,#ffffea, -|5: 0-1 d,#ffffea, 2-99 #000000,#ffffea, +|5: 0-99 d,#ffffea, |6: 0-99 d,#ffffea, |7: 0-99 d,#ffffea, |8: 0-99 d,#ffffea, @@ -719,10 +721,10 @@ |13: 0-99 d,#ffffea, |14: 0-99 d,#ffffea, |15: 0-99 d,#ffffea, -|16: 0-1 d,#b9c3e5, 2-28 #000000,#eaffff, 29-38 #000099,#eaffff, 39-49 #000000,#eaffff, 50-99 #000000,#ffffea, -|17: 0-1 d,#eaffff, 2-49 #000000,#eaffff, 50-99 #000000,#ffffea, +|16: 0-1 d,#b9c3e5, 2-32 #000000,#eaffff, 33-49 #000099,#eaffff, 50-99 #000099,#ffffea, +|17: 0-1 d,#ffffea, 2-99 #000000,#ffffea, |18: 0-1 d,#ffffea, 2-99 #000000,#ffffea, -|19: 0-1 d,#ffffea, 2-99 #000000,#ffffea, +|19: 0-99 d,#ffffea, |20: 0-99 d,#ffffea, |21: 0-99 d,#ffffea, |22: 0-99 d,#ffffea, @@ -734,15 +736,15 @@ |28: 0-99 d,#ffffea, |29: 0-99 d,#ffffea, |30: 0-1 d,#eaffff, 2-99 #7a8686,#eaffff, -== snap atelier grid=100x31 cursor=4,6 +== snap atelier grid=100x31 cursor=4,5 |30: ✓ @p1 NextColor ×21 1 message · SPC h m == style atelier grid=100x31 -|0: 0-1 d,#e4f0ed, 2-85 #3d6055,#e4f0ed, 86-94 #35492d,#edf2a5, 95-99 #35492d,#e4f0ed, +|0: 0-61 d,#e4f0ed, 62-88 #3d6055,#e4f0ed, 89-97 #35492d,#edf2a5, 98-99 #35492d,#e4f0ed, |1: 0-1 d,#cfaf8b, 2-49 #35584d,#bfdcce, 50-51 #35584d,#cfaf8b, 52-99 #3d6055,#e4f0ed, -|2: 0-1 d,#36826b, 2-28 #35584d,#bfdcce, 29-38 #542e5a,#bfdcce, 39-49 #35584d,#bfdcce, 50-51 #35584d,#85b1a2, 52-78 #3d6055,#e4f0ed, 79-88 #6e4774,#e4f0ed, 89-99 #3d6055,#e4f0ed, -|3: 0-1 d,#bfdcce, 2-49 #35584d,#bfdcce, 50-51 #35584d,#e4f0ed, 52-99 #3d6055,#e4f0ed, +|2: 0-1 d,#36826b, 2-32 #35584d,#bfdcce, 33-49 #542e5a,#bfdcce, 50-51 #542e5a,#85b1a2, 52-82 #3d6055,#e4f0ed, 83-99 #6e4774,#e4f0ed, +|3: 0-0 d,#9fae76, 1-1 d,#fffdeb, 2-49 #293f35,#fffdeb, 50-50 #293f35,#9fae76, 51-99 #293f35,#fffdeb, |4: 0-0 d,#9fae76, 1-1 d,#fffdeb, 2-49 #293f35,#fffdeb, 50-50 #293f35,#9fae76, 51-99 #293f35,#fffdeb, -|5: 0-0 d,#9fae76, 1-1 d,#fffdeb, 2-49 #293f35,#fffdeb, 50-50 #293f35,#9fae76, 51-99 #293f35,#fffdeb, +|5: 0-0 d,#9fae76, 1-49 d,#fffdeb, 50-50 d,#9fae76, 51-99 d,#fffdeb, |6: 0-0 d,#9fae76, 1-49 d,#fffdeb, 50-50 d,#9fae76, 51-99 d,#fffdeb, |7: 0-0 d,#9fae76, 1-49 d,#fffdeb, 50-50 d,#9fae76, 51-99 d,#fffdeb, |8: 0-0 d,#9fae76, 1-49 d,#fffdeb, 50-50 d,#9fae76, 51-99 d,#fffdeb, @@ -753,10 +755,10 @@ |13: 0-0 d,#9fae76, 1-49 d,#fffdeb, 50-50 d,#9fae76, 51-99 d,#fffdeb, |14: 0-0 d,#9fae76, 1-49 d,#fffdeb, 50-50 d,#9fae76, 51-99 d,#fffdeb, |15: 0-0 d,#9fae76, 1-49 d,#fffdeb, 50-50 d,#9fae76, 51-99 d,#fffdeb, -|16: 0-1 d,#85b1a2, 2-28 #3d6055,#e4f0ed, 29-38 #6e4774,#e4f0ed, 39-49 #3d6055,#e4f0ed, 50-50 #3d6055,#9fae76, 51-99 #3d6055,#fffdeb, -|17: 0-1 d,#e4f0ed, 2-49 #3d6055,#e4f0ed, 50-50 #3d6055,#9fae76, 51-99 #3d6055,#fffdeb, +|16: 0-1 d,#85b1a2, 2-32 #3d6055,#e4f0ed, 33-49 #6e4774,#e4f0ed, 50-50 #6e4774,#9fae76, 51-99 #6e4774,#fffdeb, +|17: 0-0 d,#9fae76, 1-1 d,#fffdeb, 2-49 #293f35,#fffdeb, 50-50 #293f35,#9fae76, 51-99 #293f35,#fffdeb, |18: 0-0 d,#9fae76, 1-1 d,#fffdeb, 2-49 #293f35,#fffdeb, 50-50 #293f35,#9fae76, 51-99 #293f35,#fffdeb, -|19: 0-0 d,#9fae76, 1-1 d,#fffdeb, 2-49 #293f35,#fffdeb, 50-50 #293f35,#9fae76, 51-99 #293f35,#fffdeb, +|19: 0-0 d,#9fae76, 1-49 d,#fffdeb, 50-50 d,#9fae76, 51-99 d,#fffdeb, |20: 0-0 d,#9fae76, 1-49 d,#fffdeb, 50-50 d,#9fae76, 51-99 d,#fffdeb, |21: 0-0 d,#9fae76, 1-49 d,#fffdeb, 50-50 d,#9fae76, 51-99 d,#fffdeb, |22: 0-0 d,#9fae76, 1-49 d,#fffdeb, 50-50 d,#9fae76, 51-99 d,#fffdeb, @@ -768,15 +770,15 @@ |28: 0-0 d,#9fae76, 1-49 d,#fffdeb, 50-50 d,#9fae76, 51-99 d,#fffdeb, |29: 0-0 d,#9fae76, 1-49 d,#fffdeb, 50-50 d,#9fae76, 51-99 d,#fffdeb, |30: 0-1 d,#e4f0ed, 2-99 #66837a,#e4f0ed, -== snap dark-plus grid=100x31 cursor=4,6 +== snap dark-plus grid=100x31 cursor=4,5 |30: ✓ @p1 NextColor ×22 1 message · SPC h m == style dark-plus grid=100x31 -|0: 0-1 d,#007acc, 2-85 #ffffff,#007acc, 86-94 #d4d4d4,#264f78, 95-99 #d4d4d4,#007acc, +|0: 0-61 d,#007acc, 62-88 #ffffff,#007acc, 89-97 #d4d4d4,#264f78, 98-99 #d4d4d4,#007acc, |1: 0-1 d,#34564e, 2-49 #ffffff,#1e1e1e, 50-51 #ffffff,#34564e, 52-99 #a7a7a7,#3c3c3c, -|2: 0-1 d,#4dabff, 2-28 #ffffff,#1e1e1e, 29-38 #cbe5fc,#1e1e1e, 39-49 #ffffff,#1e1e1e, 50-51 #ffffff,#2a6da7, 52-78 #a7a7a7,#3c3c3c, 79-88 #68aee9,#3c3c3c, 89-99 #a7a7a7,#3c3c3c, -|3: 0-1 d,#1e1e1e, 2-49 #ffffff,#1e1e1e, 50-51 #ffffff,#3c3c3c, 52-99 #a7a7a7,#3c3c3c, +|2: 0-1 d,#4dabff, 2-32 #ffffff,#1e1e1e, 33-49 #cbe5fc,#1e1e1e, 50-51 #cbe5fc,#2a6da7, 52-82 #a7a7a7,#3c3c3c, 83-99 #68aee9,#3c3c3c, +|3: 0-0 d,#424242, 1-1 d,#1e1e1e, 2-49 #d4d4d4,#1e1e1e, 50-50 #d4d4d4,#424242, 51-99 #d4d4d4,#1e1e1e, |4: 0-0 d,#424242, 1-1 d,#1e1e1e, 2-49 #d4d4d4,#1e1e1e, 50-50 #d4d4d4,#424242, 51-99 #d4d4d4,#1e1e1e, -|5: 0-0 d,#424242, 1-1 d,#1e1e1e, 2-49 #d4d4d4,#1e1e1e, 50-50 #d4d4d4,#424242, 51-99 #d4d4d4,#1e1e1e, +|5: 0-0 d,#424242, 1-49 d,#1e1e1e, 50-50 d,#424242, 51-99 d,#1e1e1e, |6: 0-0 d,#424242, 1-49 d,#1e1e1e, 50-50 d,#424242, 51-99 d,#1e1e1e, |7: 0-0 d,#424242, 1-49 d,#1e1e1e, 50-50 d,#424242, 51-99 d,#1e1e1e, |8: 0-0 d,#424242, 1-49 d,#1e1e1e, 50-50 d,#424242, 51-99 d,#1e1e1e, @@ -787,10 +789,10 @@ |13: 0-0 d,#424242, 1-49 d,#1e1e1e, 50-50 d,#424242, 51-99 d,#1e1e1e, |14: 0-0 d,#424242, 1-49 d,#1e1e1e, 50-50 d,#424242, 51-99 d,#1e1e1e, |15: 0-0 d,#424242, 1-49 d,#1e1e1e, 50-50 d,#424242, 51-99 d,#1e1e1e, -|16: 0-1 d,#2a6da7, 2-28 #a7a7a7,#3c3c3c, 29-38 #68aee9,#3c3c3c, 39-49 #a7a7a7,#3c3c3c, 50-50 #a7a7a7,#424242, 51-99 #a7a7a7,#1e1e1e, -|17: 0-1 d,#3c3c3c, 2-49 #a7a7a7,#3c3c3c, 50-50 #a7a7a7,#424242, 51-99 #a7a7a7,#1e1e1e, +|16: 0-1 d,#2a6da7, 2-32 #a7a7a7,#3c3c3c, 33-49 #68aee9,#3c3c3c, 50-50 #68aee9,#424242, 51-99 #68aee9,#1e1e1e, +|17: 0-0 d,#424242, 1-1 d,#1e1e1e, 2-49 #d4d4d4,#1e1e1e, 50-50 #d4d4d4,#424242, 51-99 #d4d4d4,#1e1e1e, |18: 0-0 d,#424242, 1-1 d,#1e1e1e, 2-49 #d4d4d4,#1e1e1e, 50-50 #d4d4d4,#424242, 51-99 #d4d4d4,#1e1e1e, -|19: 0-0 d,#424242, 1-1 d,#1e1e1e, 2-49 #d4d4d4,#1e1e1e, 50-50 #d4d4d4,#424242, 51-99 #d4d4d4,#1e1e1e, +|19: 0-0 d,#424242, 1-49 d,#1e1e1e, 50-50 d,#424242, 51-99 d,#1e1e1e, |20: 0-0 d,#424242, 1-49 d,#1e1e1e, 50-50 d,#424242, 51-99 d,#1e1e1e, |21: 0-0 d,#424242, 1-49 d,#1e1e1e, 50-50 d,#424242, 51-99 d,#1e1e1e, |22: 0-0 d,#424242, 1-49 d,#1e1e1e, 50-50 d,#424242, 51-99 d,#1e1e1e, @@ -802,15 +804,15 @@ |28: 0-0 d,#424242, 1-49 d,#1e1e1e, 50-50 d,#424242, 51-99 d,#1e1e1e, |29: 0-0 d,#424242, 1-49 d,#1e1e1e, 50-50 d,#424242, 51-99 d,#1e1e1e, |30: 0-1 d,#007acc, 2-99 #d3e5f7,#007acc, -== snap solarized-dark grid=100x31 cursor=4,6 +== snap solarized-dark grid=100x31 cursor=4,5 |30: ✓ @p1 NextColor ×23 1 message · SPC h m == style solarized-dark grid=100x31 -|0: 0-1 d,#657b83, 2-85 #01090b,#657b83, 86-94 #002b36,#586e75, 95-99 #002b36,#657b83, +|0: 0-61 d,#657b83, 62-88 #01090b,#657b83, 89-97 #002b36,#586e75, 98-99 #002b36,#657b83, |1: 0-1 d,#3f5d37, 2-49 #073642,#93a1a1, 50-51 #073642,#3f5d37, 52-99 #01090b,#657b83, -|2: 0-1 d,#025384, 2-28 #073642,#93a1a1, 29-38 #161b00,#93a1a1, 39-49 #073642,#93a1a1, 50-51 #073642,#024d7c, 52-78 #01090b,#657b83, 79-88 #121600,#657b83, 89-99 #01090b,#657b83, -|3: 0-1 d,#93a1a1, 2-49 #073642,#93a1a1, 50-51 #073642,#657b83, 52-99 #01090b,#657b83, +|2: 0-1 d,#025384, 2-32 #073642,#93a1a1, 33-49 #161b00,#93a1a1, 50-51 #161b00,#024d7c, 52-82 #01090b,#657b83, 83-99 #121600,#657b83, +|3: 0-0 d,#839496, 1-1 d,#002b36, 2-49 #839496,#002b36, 50-50 #839496,#839496, 51-99 #839496,#002b36, |4: 0-0 d,#839496, 1-1 d,#002b36, 2-49 #839496,#002b36, 50-50 #839496,#839496, 51-99 #839496,#002b36, -|5: 0-0 d,#839496, 1-1 d,#002b36, 2-49 #839496,#002b36, 50-50 #839496,#839496, 51-99 #839496,#002b36, +|5: 0-0 d,#839496, 1-49 d,#002b36, 50-50 d,#839496, 51-99 d,#002b36, |6: 0-0 d,#839496, 1-49 d,#002b36, 50-50 d,#839496, 51-99 d,#002b36, |7: 0-0 d,#839496, 1-49 d,#002b36, 50-50 d,#839496, 51-99 d,#002b36, |8: 0-0 d,#839496, 1-49 d,#002b36, 50-50 d,#839496, 51-99 d,#002b36, @@ -821,10 +823,10 @@ |13: 0-0 d,#839496, 1-49 d,#002b36, 50-50 d,#839496, 51-99 d,#002b36, |14: 0-0 d,#839496, 1-49 d,#002b36, 50-50 d,#839496, 51-99 d,#002b36, |15: 0-0 d,#839496, 1-49 d,#002b36, 50-50 d,#839496, 51-99 d,#002b36, -|16: 0-1 d,#024d7c, 2-28 #01090b,#657b83, 29-38 #121600,#657b83, 39-49 #01090b,#657b83, 50-50 #01090b,#839496, 51-99 #01090b,#002b36, -|17: 0-1 d,#657b83, 2-49 #01090b,#657b83, 50-50 #01090b,#839496, 51-99 #01090b,#002b36, +|16: 0-1 d,#024d7c, 2-32 #01090b,#657b83, 33-49 #121600,#657b83, 50-50 #121600,#839496, 51-99 #121600,#002b36, +|17: 0-0 d,#839496, 1-1 d,#002b36, 2-49 #839496,#002b36, 50-50 #839496,#839496, 51-99 #839496,#002b36, |18: 0-0 d,#839496, 1-1 d,#002b36, 2-49 #839496,#002b36, 50-50 #839496,#839496, 51-99 #839496,#002b36, -|19: 0-0 d,#839496, 1-1 d,#002b36, 2-49 #839496,#002b36, 50-50 #839496,#839496, 51-99 #839496,#002b36, +|19: 0-0 d,#839496, 1-49 d,#002b36, 50-50 d,#839496, 51-99 d,#002b36, |20: 0-0 d,#839496, 1-49 d,#002b36, 50-50 d,#839496, 51-99 d,#002b36, |21: 0-0 d,#839496, 1-49 d,#002b36, 50-50 d,#839496, 51-99 d,#002b36, |22: 0-0 d,#839496, 1-49 d,#002b36, 50-50 d,#839496, 51-99 d,#002b36, diff --git a/test/snapshots/themesel.golden b/test/snapshots/themesel.golden index 1052467b..0386b0ff 100644 --- a/test/snapshots/themesel.golden +++ b/test/snapshots/themesel.golden @@ -1,7 +1,6 @@ -== snap boot grid=100x31 cursor=7,3 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/themesel/cwd/t.txt Save Term Collapse Follow Del +== snap boot grid=100x31 cursor=7,2 +| New Term Find Grep Newcol Help Exit +| /tmp/pardes-snap/themesel/cwd/t.txt Del | 1 line 1 | 2 line 2 | 3 line 3 @@ -29,312 +28,314 @@ | 25 line 25 | 26 line 26 | 27 line 27 +| 28 line 28 | /tmp/pardes-snap/themesel/cwd/t.txt:1 -== snap list grid=100x31 cursor=7,3 -|16: /tmp/pardes-snap/themesel/cwd/+Themes Save Term Collapse Follow Del -|17: 1 # Pardes -|18: 2 Theme dark -|19: 3 Theme light -|20: 4 Theme orchard -|21: 5 Theme orchard_black -|22: 6 Theme ink -|23: 7 Theme mono -|24: 8 Theme okabe -|25: 9 Theme sepia -|26: 10 Theme paper -|27: 11 Theme daybreak -|28: 12 Theme dusk -|29: 13 Theme lapis +== snap list grid=100x31 cursor=7,2 +|15: /tmp/pardes-snap/themesel/cwd/+Themes Del +|16: 1 # Pardes +|17: 2 Theme dark +|18: 3 Theme light +|19: 4 Theme orchard +|20: 5 Theme orchard_black +|21: 6 Theme ink +|22: 7 Theme mono +|23: 8 Theme okabe +|24: 9 Theme sepia +|25: 10 Theme paper +|26: 11 Theme daybreak +|27: 12 Theme dusk +|28: 13 Theme lapis +|29: 14 |30: ✓ /tmp/pardes-snap/themesel/cwd/t.txt Themes 1 message · SPC h m -== snap step-dark grid=100x31 cursor=7,18 +== snap step-dark grid=100x31 cursor=7,17 |30: ✓ /tmp/pardes-snap/themesel/cwd/+Themes Theme 3 messages · SPC h m == style step-dark grid=100x31 |0: 0-1 d,#2c2a3e, 2-99 #aba9c3,#2c2a3e, -|1: 0-1 d,#4c472d, 2-99 #d6d4e8,#2c2a3e, -|2: 0-1 d,#5d528b, 2-31 #aba9c3,#2c2a3e, 32-37 #ce93dc,#2c2a3e, 38-99 #aba9c3,#2c2a3e, +|1: 0-1 d,#5d528b, 2-31 #aba9c3,#2c2a3e, 32-37 #ce93dc,#2c2a3e, 38-99 #aba9c3,#2c2a3e, +|2: 0-0 d,#5a596f, 1-4 d,d, 5-6 #5c5c66,d, 7-99 d,d, |3: 0-0 d,#5a596f, 1-4 d,d, 5-6 #5c5c66,d, 7-99 d,d, |4: 0-0 d,#5a596f, 1-4 d,d, 5-6 #5c5c66,d, 7-99 d,d, |5: 0-0 d,#5a596f, 1-4 d,d, 5-6 #5c5c66,d, 7-99 d,d, -|6: 0-0 d,#5a596f, 1-4 d,d, 5-6 #5c5c66,d, 7-99 d,d, +|6: 0-0 d,#2c2a3e, 1-4 d,d, 5-6 #5c5c66,d, 7-99 d,d, |7: 0-0 d,#2c2a3e, 1-4 d,d, 5-6 #5c5c66,d, 7-99 d,d, |8: 0-0 d,#2c2a3e, 1-4 d,d, 5-6 #5c5c66,d, 7-99 d,d, |9: 0-0 d,#2c2a3e, 1-4 d,d, 5-6 #5c5c66,d, 7-99 d,d, |10: 0-0 d,#2c2a3e, 1-4 d,d, 5-6 #5c5c66,d, 7-99 d,d, -|11: 0-0 d,#2c2a3e, 1-4 d,d, 5-6 #5c5c66,d, 7-99 d,d, +|11: 0-0 d,#2c2a3e, 1-3 d,d, 4-6 #5c5c66,d, 7-99 d,d, |12: 0-0 d,#2c2a3e, 1-3 d,d, 4-6 #5c5c66,d, 7-99 d,d, |13: 0-0 d,#2c2a3e, 1-3 d,d, 4-6 #5c5c66,d, 7-99 d,d, |14: 0-0 d,#2c2a3e, 1-3 d,d, 4-6 #5c5c66,d, 7-99 d,d, -|15: 0-0 d,#2c2a3e, 1-3 d,d, 4-6 #5c5c66,d, 7-99 d,d, -|16: 0-1 d,#a58bff, 2-31 #d6d4e8,#2c2a3e, 32-39 #f1c4fd,#2c2a3e, 40-99 #d6d4e8,#2c2a3e, -|17: 0-0 d,#5a596f, 1-4 d,d, 5-6 #5c5c66,d, 7-99 d,d, -|18: 0-0 d,#2c2a3e, 1-1 d,d, 2-4 d,d,b 5-6 #8e8c9e,d,b 7-99 d,d, +|15: 0-1 d,#a58bff, 2-31 #d6d4e8,#2c2a3e, 32-39 #f1c4fd,#2c2a3e, 40-99 #d6d4e8,#2c2a3e, +|16: 0-0 d,#5a596f, 1-4 d,d, 5-6 #5c5c66,d, 7-99 d,d, +|17: 0-0 d,#2c2a3e, 1-1 d,d, 2-4 d,d,b 5-6 #8e8c9e,d,b 7-99 d,d, +|18: 0-0 d,#2c2a3e, 1-4 d,d, 5-6 #5c5c66,d, 7-99 d,d, |19: 0-0 d,#2c2a3e, 1-4 d,d, 5-6 #5c5c66,d, 7-99 d,d, |20: 0-0 d,#2c2a3e, 1-4 d,d, 5-6 #5c5c66,d, 7-99 d,d, |21: 0-0 d,#2c2a3e, 1-4 d,d, 5-6 #5c5c66,d, 7-99 d,d, |22: 0-0 d,#2c2a3e, 1-4 d,d, 5-6 #5c5c66,d, 7-99 d,d, |23: 0-0 d,#2c2a3e, 1-4 d,d, 5-6 #5c5c66,d, 7-99 d,d, |24: 0-0 d,#2c2a3e, 1-4 d,d, 5-6 #5c5c66,d, 7-99 d,d, -|25: 0-0 d,#2c2a3e, 1-4 d,d, 5-6 #5c5c66,d, 7-99 d,d, +|25: 0-0 d,#2c2a3e, 1-3 d,d, 4-6 #5c5c66,d, 7-99 d,d, |26: 0-0 d,#2c2a3e, 1-3 d,d, 4-6 #5c5c66,d, 7-99 d,d, |27: 0-0 d,#2c2a3e, 1-3 d,d, 4-6 #5c5c66,d, 7-99 d,d, |28: 0-0 d,#2c2a3e, 1-3 d,d, 4-6 #5c5c66,d, 7-99 d,d, -|29: 0-0 d,#2c2a3e, 1-3 d,d, 4-6 #5c5c66,d, 7-99 d,d, +|29: 0-0 d,#2c2a3e, 1-3 d,d, 4-99 #5c5c66,d, |30: 0-1 d,#2c2a3e, 2-99 #817f97,#2c2a3e, -== snap step-light grid=100x31 cursor=7,19 +== snap step-light grid=100x31 cursor=7,18 |30: ✓ /tmp/pardes-snap/themesel/cwd/+Themes Theme 5 messages · SPC h m == style step-light grid=100x31 |0: 0-1 d,#e9e7f3, 2-99 #4b4862,#e9e7f3, -|1: 0-1 d,#c8af94, 2-99 #4b4862,#e9e7f3, -|2: 0-1 d,#a69ceb, 2-31 #4b4862,#e9e7f3, 32-37 #61347a,#e9e7f3, 38-99 #4b4862,#e9e7f3, +|1: 0-1 d,#a69ceb, 2-31 #4b4862,#e9e7f3, 32-37 #61347a,#e9e7f3, 38-99 #4b4862,#e9e7f3, +|2: 0-0 d,#a4a2b5, 1-4 d,#fbfbfd, 5-6 #a3a1b0,#fbfbfd, 7-99 #34323f,#fbfbfd, |3: 0-0 d,#a4a2b5, 1-4 d,#fbfbfd, 5-6 #a3a1b0,#fbfbfd, 7-99 #34323f,#fbfbfd, |4: 0-0 d,#a4a2b5, 1-4 d,#fbfbfd, 5-6 #a3a1b0,#fbfbfd, 7-99 #34323f,#fbfbfd, |5: 0-0 d,#a4a2b5, 1-4 d,#fbfbfd, 5-6 #a3a1b0,#fbfbfd, 7-99 #34323f,#fbfbfd, -|6: 0-0 d,#a4a2b5, 1-4 d,#fbfbfd, 5-6 #a3a1b0,#fbfbfd, 7-99 #34323f,#fbfbfd, +|6: 0-0 d,#e9e7f3, 1-4 d,#fbfbfd, 5-6 #a3a1b0,#fbfbfd, 7-99 #34323f,#fbfbfd, |7: 0-0 d,#e9e7f3, 1-4 d,#fbfbfd, 5-6 #a3a1b0,#fbfbfd, 7-99 #34323f,#fbfbfd, |8: 0-0 d,#e9e7f3, 1-4 d,#fbfbfd, 5-6 #a3a1b0,#fbfbfd, 7-99 #34323f,#fbfbfd, |9: 0-0 d,#e9e7f3, 1-4 d,#fbfbfd, 5-6 #a3a1b0,#fbfbfd, 7-99 #34323f,#fbfbfd, |10: 0-0 d,#e9e7f3, 1-4 d,#fbfbfd, 5-6 #a3a1b0,#fbfbfd, 7-99 #34323f,#fbfbfd, -|11: 0-0 d,#e9e7f3, 1-4 d,#fbfbfd, 5-6 #a3a1b0,#fbfbfd, 7-99 #34323f,#fbfbfd, +|11: 0-0 d,#e9e7f3, 1-3 d,#fbfbfd, 4-6 #a3a1b0,#fbfbfd, 7-99 #34323f,#fbfbfd, |12: 0-0 d,#e9e7f3, 1-3 d,#fbfbfd, 4-6 #a3a1b0,#fbfbfd, 7-99 #34323f,#fbfbfd, |13: 0-0 d,#e9e7f3, 1-3 d,#fbfbfd, 4-6 #a3a1b0,#fbfbfd, 7-99 #34323f,#fbfbfd, |14: 0-0 d,#e9e7f3, 1-3 d,#fbfbfd, 4-6 #a3a1b0,#fbfbfd, 7-99 #34323f,#fbfbfd, -|15: 0-0 d,#e9e7f3, 1-3 d,#fbfbfd, 4-6 #a3a1b0,#fbfbfd, 7-99 #34323f,#fbfbfd, -|16: 0-1 d,#6a3fd8, 2-31 #4b4862,#e9e7f3, 32-39 #52266a,#e9e7f3, 40-99 #4b4862,#e9e7f3, -|17: 0-0 d,#a4a2b5, 1-4 d,#fbfbfd, 5-6 #a3a1b0,#fbfbfd, 7-99 #34323f,#fbfbfd, -|18: 0-0 d,#e9e7f3, 1-4 d,#fbfbfd, 5-6 #a3a1b0,#fbfbfd, 7-99 #34323f,#fbfbfd, -|19: 0-0 d,#e9e7f3, 1-1 d,#fbfbfd, 2-4 d,#fbfbfd,b 5-6 #6e6b80,#fbfbfd,b 7-99 #34323f,#fbfbfd, +|15: 0-1 d,#6a3fd8, 2-31 #4b4862,#e9e7f3, 32-39 #52266a,#e9e7f3, 40-99 #4b4862,#e9e7f3, +|16: 0-0 d,#a4a2b5, 1-4 d,#fbfbfd, 5-6 #a3a1b0,#fbfbfd, 7-99 #34323f,#fbfbfd, +|17: 0-0 d,#e9e7f3, 1-4 d,#fbfbfd, 5-6 #a3a1b0,#fbfbfd, 7-99 #34323f,#fbfbfd, +|18: 0-0 d,#e9e7f3, 1-1 d,#fbfbfd, 2-4 d,#fbfbfd,b 5-6 #6e6b80,#fbfbfd,b 7-99 #34323f,#fbfbfd, +|19: 0-0 d,#e9e7f3, 1-4 d,#fbfbfd, 5-6 #a3a1b0,#fbfbfd, 7-99 #34323f,#fbfbfd, |20: 0-0 d,#e9e7f3, 1-4 d,#fbfbfd, 5-6 #a3a1b0,#fbfbfd, 7-99 #34323f,#fbfbfd, |21: 0-0 d,#e9e7f3, 1-4 d,#fbfbfd, 5-6 #a3a1b0,#fbfbfd, 7-99 #34323f,#fbfbfd, |22: 0-0 d,#e9e7f3, 1-4 d,#fbfbfd, 5-6 #a3a1b0,#fbfbfd, 7-99 #34323f,#fbfbfd, |23: 0-0 d,#e9e7f3, 1-4 d,#fbfbfd, 5-6 #a3a1b0,#fbfbfd, 7-99 #34323f,#fbfbfd, |24: 0-0 d,#e9e7f3, 1-4 d,#fbfbfd, 5-6 #a3a1b0,#fbfbfd, 7-99 #34323f,#fbfbfd, -|25: 0-0 d,#e9e7f3, 1-4 d,#fbfbfd, 5-6 #a3a1b0,#fbfbfd, 7-99 #34323f,#fbfbfd, +|25: 0-0 d,#e9e7f3, 1-3 d,#fbfbfd, 4-6 #a3a1b0,#fbfbfd, 7-99 #34323f,#fbfbfd, |26: 0-0 d,#e9e7f3, 1-3 d,#fbfbfd, 4-6 #a3a1b0,#fbfbfd, 7-99 #34323f,#fbfbfd, |27: 0-0 d,#e9e7f3, 1-3 d,#fbfbfd, 4-6 #a3a1b0,#fbfbfd, 7-99 #34323f,#fbfbfd, |28: 0-0 d,#e9e7f3, 1-3 d,#fbfbfd, 4-6 #a3a1b0,#fbfbfd, 7-99 #34323f,#fbfbfd, -|29: 0-0 d,#e9e7f3, 1-3 d,#fbfbfd, 4-6 #a3a1b0,#fbfbfd, 7-99 #34323f,#fbfbfd, +|29: 0-0 d,#e9e7f3, 1-3 d,#fbfbfd, 4-99 #a3a1b0,#fbfbfd, |30: 0-1 d,#e9e7f3, 2-99 #7a778e,#e9e7f3, -== snap step-orchard grid=100x31 cursor=7,20 +== snap step-orchard grid=100x31 cursor=7,19 |30: ✓ /tmp/pardes-snap/themesel/cwd/+Themes Theme 7 messages · SPC h m == style step-orchard grid=100x31 |0: 0-1 d,#1d2824, 2-99 #b2c3b8,#1d2824, -|1: 0-1 d,#504733, 2-99 #becfc4,#314738, -|2: 0-1 d,#465a43, 2-31 #b2c3b8,#1d2824, 32-37 #d3b0d9,#1d2824, 38-99 #b2c3b8,#1d2824, +|1: 0-1 d,#465a43, 2-31 #b2c3b8,#1d2824, 32-37 #d3b0d9,#1d2824, 38-99 #b2c3b8,#1d2824, +|2: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-99 #e5eee5,#0d1410, |3: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-99 #e5eee5,#0d1410, |4: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-99 #e5eee5,#0d1410, |5: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-99 #e5eee5,#0d1410, -|6: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-99 #e5eee5,#0d1410, +|6: 0-0 d,#152019, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-99 #e5eee5,#0d1410, |7: 0-0 d,#152019, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-99 #e5eee5,#0d1410, |8: 0-0 d,#152019, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-99 #e5eee5,#0d1410, |9: 0-0 d,#152019, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-99 #e5eee5,#0d1410, |10: 0-0 d,#152019, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-99 #e5eee5,#0d1410, -|11: 0-0 d,#152019, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-99 #e5eee5,#0d1410, +|11: 0-0 d,#152019, 1-3 d,#0d1410, 4-6 #59675c,#0d1410, 7-99 #e5eee5,#0d1410, |12: 0-0 d,#152019, 1-3 d,#0d1410, 4-6 #59675c,#0d1410, 7-99 #e5eee5,#0d1410, |13: 0-0 d,#152019, 1-3 d,#0d1410, 4-6 #59675c,#0d1410, 7-99 #e5eee5,#0d1410, |14: 0-0 d,#152019, 1-3 d,#0d1410, 4-6 #59675c,#0d1410, 7-99 #e5eee5,#0d1410, -|15: 0-0 d,#152019, 1-3 d,#0d1410, 4-6 #59675c,#0d1410, 7-99 #e5eee5,#0d1410, -|16: 0-1 d,#add38a, 2-31 #becfc4,#314738, 32-39 #ecc8f2,#314738, 40-99 #becfc4,#314738, -|17: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-99 #e5eee5,#0d1410, +|15: 0-1 d,#add38a, 2-31 #becfc4,#314738, 32-39 #ecc8f2,#314738, 40-99 #becfc4,#314738, +|16: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-99 #e5eee5,#0d1410, +|17: 0-0 d,#152019, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-99 #e5eee5,#0d1410, |18: 0-0 d,#152019, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-99 #e5eee5,#0d1410, -|19: 0-0 d,#152019, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-99 #e5eee5,#0d1410, -|20: 0-0 d,#152019, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-99 #e5eee5,#0d1410, +|19: 0-0 d,#152019, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-99 #e5eee5,#0d1410, +|20: 0-0 d,#152019, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-99 #e5eee5,#0d1410, |21: 0-0 d,#152019, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-99 #e5eee5,#0d1410, |22: 0-0 d,#152019, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-99 #e5eee5,#0d1410, |23: 0-0 d,#152019, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-99 #e5eee5,#0d1410, |24: 0-0 d,#152019, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-99 #e5eee5,#0d1410, -|25: 0-0 d,#152019, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-99 #e5eee5,#0d1410, +|25: 0-0 d,#152019, 1-3 d,#0d1410, 4-6 #59675c,#0d1410, 7-99 #e5eee5,#0d1410, |26: 0-0 d,#152019, 1-3 d,#0d1410, 4-6 #59675c,#0d1410, 7-99 #e5eee5,#0d1410, |27: 0-0 d,#152019, 1-3 d,#0d1410, 4-6 #59675c,#0d1410, 7-99 #e5eee5,#0d1410, |28: 0-0 d,#152019, 1-3 d,#0d1410, 4-6 #59675c,#0d1410, 7-99 #e5eee5,#0d1410, -|29: 0-0 d,#152019, 1-3 d,#0d1410, 4-6 #59675c,#0d1410, 7-99 #e5eee5,#0d1410, +|29: 0-0 d,#152019, 1-3 d,#0d1410, 4-99 #59675c,#0d1410, |30: 0-1 d,#1d2824, 2-99 #6f7d75,#1d2824, -== snap step-orchard-black grid=100x31 cursor=7,21 +== snap step-orchard-black grid=100x31 cursor=7,20 |30: ✓ /tmp/pardes-snap/themesel/cwd/+Themes Theme 9 messages · SPC h m == style step-orchard-black grid=100x31 -|1: 0-1 d,#513e29, 2-99 #becfc4,#314738, +|2: 0-0 d,#608269, 1-4 d,#000000, 5-6 #59675c,#000000, 7-99 #f2f8ef,#000000, |3: 0-0 d,#608269, 1-4 d,#000000, 5-6 #59675c,#000000, 7-99 #f2f8ef,#000000, |4: 0-0 d,#608269, 1-4 d,#000000, 5-6 #59675c,#000000, 7-99 #f2f8ef,#000000, |5: 0-0 d,#608269, 1-4 d,#000000, 5-6 #59675c,#000000, 7-99 #f2f8ef,#000000, -|6: 0-0 d,#608269, 1-4 d,#000000, 5-6 #59675c,#000000, 7-99 #f2f8ef,#000000, +|6: 0-0 d,#111813, 1-4 d,#000000, 5-6 #59675c,#000000, 7-99 #f2f8ef,#000000, |7: 0-0 d,#111813, 1-4 d,#000000, 5-6 #59675c,#000000, 7-99 #f2f8ef,#000000, |8: 0-0 d,#111813, 1-4 d,#000000, 5-6 #59675c,#000000, 7-99 #f2f8ef,#000000, |9: 0-0 d,#111813, 1-4 d,#000000, 5-6 #59675c,#000000, 7-99 #f2f8ef,#000000, |10: 0-0 d,#111813, 1-4 d,#000000, 5-6 #59675c,#000000, 7-99 #f2f8ef,#000000, -|11: 0-0 d,#111813, 1-4 d,#000000, 5-6 #59675c,#000000, 7-99 #f2f8ef,#000000, +|11: 0-0 d,#111813, 1-3 d,#000000, 4-6 #59675c,#000000, 7-99 #f2f8ef,#000000, |12: 0-0 d,#111813, 1-3 d,#000000, 4-6 #59675c,#000000, 7-99 #f2f8ef,#000000, |13: 0-0 d,#111813, 1-3 d,#000000, 4-6 #59675c,#000000, 7-99 #f2f8ef,#000000, |14: 0-0 d,#111813, 1-3 d,#000000, 4-6 #59675c,#000000, 7-99 #f2f8ef,#000000, -|15: 0-0 d,#111813, 1-3 d,#000000, 4-6 #59675c,#000000, 7-99 #f2f8ef,#000000, -|17: 0-0 d,#608269, 1-4 d,#000000, 5-6 #59675c,#000000, 7-99 #f2f8ef,#000000, +|16: 0-0 d,#608269, 1-4 d,#000000, 5-6 #59675c,#000000, 7-99 #f2f8ef,#000000, +|17: 0-0 d,#111813, 1-4 d,#000000, 5-6 #59675c,#000000, 7-99 #f2f8ef,#000000, |18: 0-0 d,#111813, 1-4 d,#000000, 5-6 #59675c,#000000, 7-99 #f2f8ef,#000000, |19: 0-0 d,#111813, 1-4 d,#000000, 5-6 #59675c,#000000, 7-99 #f2f8ef,#000000, -|20: 0-0 d,#111813, 1-4 d,#000000, 5-6 #59675c,#000000, 7-99 #f2f8ef,#000000, -|21: 0-0 d,#111813, 1-1 d,#000000, 2-4 d,#000000,b 5-6 #616f64,#000000,b 7-99 #f2f8ef,#000000, +|20: 0-0 d,#111813, 1-1 d,#000000, 2-4 d,#000000,b 5-6 #616f64,#000000,b 7-99 #f2f8ef,#000000, +|21: 0-0 d,#111813, 1-4 d,#000000, 5-6 #59675c,#000000, 7-99 #f2f8ef,#000000, |22: 0-0 d,#111813, 1-4 d,#000000, 5-6 #59675c,#000000, 7-99 #f2f8ef,#000000, |23: 0-0 d,#111813, 1-4 d,#000000, 5-6 #59675c,#000000, 7-99 #f2f8ef,#000000, |24: 0-0 d,#111813, 1-4 d,#000000, 5-6 #59675c,#000000, 7-99 #f2f8ef,#000000, -|25: 0-0 d,#111813, 1-4 d,#000000, 5-6 #59675c,#000000, 7-99 #f2f8ef,#000000, +|25: 0-0 d,#111813, 1-3 d,#000000, 4-6 #59675c,#000000, 7-99 #f2f8ef,#000000, |26: 0-0 d,#111813, 1-3 d,#000000, 4-6 #59675c,#000000, 7-99 #f2f8ef,#000000, |27: 0-0 d,#111813, 1-3 d,#000000, 4-6 #59675c,#000000, 7-99 #f2f8ef,#000000, |28: 0-0 d,#111813, 1-3 d,#000000, 4-6 #59675c,#000000, 7-99 #f2f8ef,#000000, -|29: 0-0 d,#111813, 1-3 d,#000000, 4-6 #59675c,#000000, 7-99 #f2f8ef,#000000, -== snap step-ink grid=100x31 cursor=7,22 +|29: 0-0 d,#111813, 1-3 d,#000000, 4-99 #59675c,#000000, +== snap step-ink grid=100x31 cursor=7,21 |30: ✓ /tmp/pardes-snap/themesel/cwd/+Themes Theme 11 messages · SPC h m == style step-ink grid=100x31 |0: 0-1 d,#15212c, 2-99 #d5e4f1,#15212c, -|1: 0-1 d,#4d3f29, 2-99 #e1eef9,#2b4051, -|2: 0-1 d,#355467, 2-31 #d5e4f1,#15212c, 32-37 #f5e0ac,#15212c, 38-99 #d5e4f1,#15212c, +|1: 0-1 d,#355467, 2-31 #d5e4f1,#15212c, 32-37 #f5e0ac,#15212c, 38-99 #d5e4f1,#15212c, +|2: 0-0 d,#86a8c2, 1-4 d,#000000, 5-6 #626b75,#000000, 7-99 #f3f7fc,#000000, |3: 0-0 d,#86a8c2, 1-4 d,#000000, 5-6 #626b75,#000000, 7-99 #f3f7fc,#000000, |4: 0-0 d,#86a8c2, 1-4 d,#000000, 5-6 #626b75,#000000, 7-99 #f3f7fc,#000000, |5: 0-0 d,#86a8c2, 1-4 d,#000000, 5-6 #626b75,#000000, 7-99 #f3f7fc,#000000, -|6: 0-0 d,#86a8c2, 1-4 d,#000000, 5-6 #626b75,#000000, 7-99 #f3f7fc,#000000, +|6: 0-0 d,#15212c, 1-4 d,#000000, 5-6 #626b75,#000000, 7-99 #f3f7fc,#000000, |7: 0-0 d,#15212c, 1-4 d,#000000, 5-6 #626b75,#000000, 7-99 #f3f7fc,#000000, |8: 0-0 d,#15212c, 1-4 d,#000000, 5-6 #626b75,#000000, 7-99 #f3f7fc,#000000, |9: 0-0 d,#15212c, 1-4 d,#000000, 5-6 #626b75,#000000, 7-99 #f3f7fc,#000000, |10: 0-0 d,#15212c, 1-4 d,#000000, 5-6 #626b75,#000000, 7-99 #f3f7fc,#000000, -|11: 0-0 d,#15212c, 1-4 d,#000000, 5-6 #626b75,#000000, 7-99 #f3f7fc,#000000, +|11: 0-0 d,#15212c, 1-3 d,#000000, 4-6 #626b75,#000000, 7-99 #f3f7fc,#000000, |12: 0-0 d,#15212c, 1-3 d,#000000, 4-6 #626b75,#000000, 7-99 #f3f7fc,#000000, |13: 0-0 d,#15212c, 1-3 d,#000000, 4-6 #626b75,#000000, 7-99 #f3f7fc,#000000, |14: 0-0 d,#15212c, 1-3 d,#000000, 4-6 #626b75,#000000, 7-99 #f3f7fc,#000000, -|15: 0-0 d,#15212c, 1-3 d,#000000, 4-6 #626b75,#000000, 7-99 #f3f7fc,#000000, -|16: 0-1 d,#86d8ff, 2-31 #e1eef9,#2b4051, 32-39 #fdebbe,#2b4051, 40-99 #e1eef9,#2b4051, -|17: 0-0 d,#86a8c2, 1-4 d,#000000, 5-6 #626b75,#000000, 7-99 #f3f7fc,#000000, +|15: 0-1 d,#86d8ff, 2-31 #e1eef9,#2b4051, 32-39 #fdebbe,#2b4051, 40-99 #e1eef9,#2b4051, +|16: 0-0 d,#86a8c2, 1-4 d,#000000, 5-6 #626b75,#000000, 7-99 #f3f7fc,#000000, +|17: 0-0 d,#15212c, 1-4 d,#000000, 5-6 #626b75,#000000, 7-99 #f3f7fc,#000000, |18: 0-0 d,#15212c, 1-4 d,#000000, 5-6 #626b75,#000000, 7-99 #f3f7fc,#000000, |19: 0-0 d,#15212c, 1-4 d,#000000, 5-6 #626b75,#000000, 7-99 #f3f7fc,#000000, |20: 0-0 d,#15212c, 1-4 d,#000000, 5-6 #626b75,#000000, 7-99 #f3f7fc,#000000, -|21: 0-0 d,#15212c, 1-4 d,#000000, 5-6 #626b75,#000000, 7-99 #f3f7fc,#000000, -|22: 0-0 d,#15212c, 1-1 d,#000000, 2-4 d,#000000,b 5-6 #6a737d,#000000,b 7-99 #f3f7fc,#000000, +|21: 0-0 d,#15212c, 1-1 d,#000000, 2-4 d,#000000,b 5-6 #6a737d,#000000,b 7-99 #f3f7fc,#000000, +|22: 0-0 d,#15212c, 1-4 d,#000000, 5-6 #626b75,#000000, 7-99 #f3f7fc,#000000, |23: 0-0 d,#15212c, 1-4 d,#000000, 5-6 #626b75,#000000, 7-99 #f3f7fc,#000000, |24: 0-0 d,#15212c, 1-4 d,#000000, 5-6 #626b75,#000000, 7-99 #f3f7fc,#000000, -|25: 0-0 d,#15212c, 1-4 d,#000000, 5-6 #626b75,#000000, 7-99 #f3f7fc,#000000, +|25: 0-0 d,#15212c, 1-3 d,#000000, 4-6 #626b75,#000000, 7-99 #f3f7fc,#000000, |26: 0-0 d,#15212c, 1-3 d,#000000, 4-6 #626b75,#000000, 7-99 #f3f7fc,#000000, |27: 0-0 d,#15212c, 1-3 d,#000000, 4-6 #626b75,#000000, 7-99 #f3f7fc,#000000, |28: 0-0 d,#15212c, 1-3 d,#000000, 4-6 #626b75,#000000, 7-99 #f3f7fc,#000000, -|29: 0-0 d,#15212c, 1-3 d,#000000, 4-6 #626b75,#000000, 7-99 #f3f7fc,#000000, +|29: 0-0 d,#15212c, 1-3 d,#000000, 4-99 #626b75,#000000, |30: 0-1 d,#15212c, 2-99 #697784,#15212c, -== snap step-mono grid=100x31 cursor=7,23 +== snap step-mono grid=100x31 cursor=7,22 |30: ✓ /tmp/pardes-snap/themesel/cwd/+Themes Theme 13 messages · SPC h m == style step-mono grid=100x31 |0: 0-1 d,#1e1f24, 2-99 #a2a4ad,#1e1f24, -|1: 0-1 d,#47474a, 2-99 #a2a4ad,#1e1f24, -|2: 0-1 d,#4f5056, 2-31 #a2a4ad,#1e1f24, 32-37 #64abe9,#1e1f24, 38-99 #a2a4ad,#1e1f24, +|1: 0-1 d,#4f5056, 2-31 #a2a4ad,#1e1f24, 32-37 #64abe9,#1e1f24, 38-99 #a2a4ad,#1e1f24, +|2: 0-0 d,#4e4f56, 1-4 d,#111113, 5-6 #55565e,#111113, 7-99 #bfc0c6,#111113, |3: 0-0 d,#4e4f56, 1-4 d,#111113, 5-6 #55565e,#111113, 7-99 #bfc0c6,#111113, |4: 0-0 d,#4e4f56, 1-4 d,#111113, 5-6 #55565e,#111113, 7-99 #bfc0c6,#111113, |5: 0-0 d,#4e4f56, 1-4 d,#111113, 5-6 #55565e,#111113, 7-99 #bfc0c6,#111113, -|6: 0-0 d,#4e4f56, 1-4 d,#111113, 5-6 #55565e,#111113, 7-99 #bfc0c6,#111113, +|6: 0-0 d,#1e1f24, 1-4 d,#111113, 5-6 #55565e,#111113, 7-99 #bfc0c6,#111113, |7: 0-0 d,#1e1f24, 1-4 d,#111113, 5-6 #55565e,#111113, 7-99 #bfc0c6,#111113, |8: 0-0 d,#1e1f24, 1-4 d,#111113, 5-6 #55565e,#111113, 7-99 #bfc0c6,#111113, |9: 0-0 d,#1e1f24, 1-4 d,#111113, 5-6 #55565e,#111113, 7-99 #bfc0c6,#111113, |10: 0-0 d,#1e1f24, 1-4 d,#111113, 5-6 #55565e,#111113, 7-99 #bfc0c6,#111113, -|11: 0-0 d,#1e1f24, 1-4 d,#111113, 5-6 #55565e,#111113, 7-99 #bfc0c6,#111113, +|11: 0-0 d,#1e1f24, 1-3 d,#111113, 4-6 #55565e,#111113, 7-99 #bfc0c6,#111113, |12: 0-0 d,#1e1f24, 1-3 d,#111113, 4-6 #55565e,#111113, 7-99 #bfc0c6,#111113, |13: 0-0 d,#1e1f24, 1-3 d,#111113, 4-6 #55565e,#111113, 7-99 #bfc0c6,#111113, |14: 0-0 d,#1e1f24, 1-3 d,#111113, 4-6 #55565e,#111113, 7-99 #bfc0c6,#111113, -|15: 0-0 d,#1e1f24, 1-3 d,#111113, 4-6 #55565e,#111113, 7-99 #bfc0c6,#111113, -|16: 0-1 d,#e6e7ec, 2-31 #a2a4ad,#1e1f24, 32-39 #99cdfc,#1e1f24, 40-99 #a2a4ad,#1e1f24, -|17: 0-0 d,#4e4f56, 1-4 d,#111113, 5-6 #55565e,#111113, 7-99 #bfc0c6,#111113, +|15: 0-1 d,#e6e7ec, 2-31 #a2a4ad,#1e1f24, 32-39 #99cdfc,#1e1f24, 40-99 #a2a4ad,#1e1f24, +|16: 0-0 d,#4e4f56, 1-4 d,#111113, 5-6 #55565e,#111113, 7-99 #bfc0c6,#111113, +|17: 0-0 d,#1e1f24, 1-4 d,#111113, 5-6 #55565e,#111113, 7-99 #bfc0c6,#111113, |18: 0-0 d,#1e1f24, 1-4 d,#111113, 5-6 #55565e,#111113, 7-99 #bfc0c6,#111113, |19: 0-0 d,#1e1f24, 1-4 d,#111113, 5-6 #55565e,#111113, 7-99 #bfc0c6,#111113, |20: 0-0 d,#1e1f24, 1-4 d,#111113, 5-6 #55565e,#111113, 7-99 #bfc0c6,#111113, |21: 0-0 d,#1e1f24, 1-4 d,#111113, 5-6 #55565e,#111113, 7-99 #bfc0c6,#111113, -|22: 0-0 d,#1e1f24, 1-4 d,#111113, 5-6 #55565e,#111113, 7-99 #bfc0c6,#111113, -|23: 0-0 d,#1e1f24, 1-1 d,#111113, 2-4 d,#111113,b 5-6 #80818b,#111113,b 7-99 #bfc0c6,#111113, +|22: 0-0 d,#1e1f24, 1-1 d,#111113, 2-4 d,#111113,b 5-6 #80818b,#111113,b 7-99 #bfc0c6,#111113, +|23: 0-0 d,#1e1f24, 1-4 d,#111113, 5-6 #55565e,#111113, 7-99 #bfc0c6,#111113, |24: 0-0 d,#1e1f24, 1-4 d,#111113, 5-6 #55565e,#111113, 7-99 #bfc0c6,#111113, -|25: 0-0 d,#1e1f24, 1-4 d,#111113, 5-6 #55565e,#111113, 7-99 #bfc0c6,#111113, +|25: 0-0 d,#1e1f24, 1-3 d,#111113, 4-6 #55565e,#111113, 7-99 #bfc0c6,#111113, |26: 0-0 d,#1e1f24, 1-3 d,#111113, 4-6 #55565e,#111113, 7-99 #bfc0c6,#111113, |27: 0-0 d,#1e1f24, 1-3 d,#111113, 4-6 #55565e,#111113, 7-99 #bfc0c6,#111113, |28: 0-0 d,#1e1f24, 1-3 d,#111113, 4-6 #55565e,#111113, 7-99 #bfc0c6,#111113, -|29: 0-0 d,#1e1f24, 1-3 d,#111113, 4-6 #55565e,#111113, 7-99 #bfc0c6,#111113, +|29: 0-0 d,#1e1f24, 1-3 d,#111113, 4-99 #55565e,#111113, |30: 0-1 d,#1e1f24, 2-99 #73747c,#1e1f24, -== snap step-okabe grid=100x31 cursor=7,24 +== snap step-okabe grid=100x31 cursor=7,23 |30: ✓ /tmp/pardes-snap/themesel/cwd/+Themes Theme 15 messages · SPC h m == style step-okabe grid=100x31 |0: 0-1 d,#1b222c, 2-99 #a9b4c4,#1b222c, -|1: 0-1 d,#58452b, 2-99 #a9b4c4,#1b222c, -|2: 0-1 d,#33556e, 2-31 #a9b4c4,#1b222c, 32-37 #6abeee,#1b222c, 38-99 #a9b4c4,#1b222c, +|1: 0-1 d,#33556e, 2-31 #a9b4c4,#1b222c, 32-37 #6abeee,#1b222c, 38-99 #a9b4c4,#1b222c, +|2: 0-0 d,#49525e, 1-4 d,#0e1218, 5-6 #4e5866,#0e1218, 7-99 #d8dee8,#0e1218, |3: 0-0 d,#49525e, 1-4 d,#0e1218, 5-6 #4e5866,#0e1218, 7-99 #d8dee8,#0e1218, |4: 0-0 d,#49525e, 1-4 d,#0e1218, 5-6 #4e5866,#0e1218, 7-99 #d8dee8,#0e1218, |5: 0-0 d,#49525e, 1-4 d,#0e1218, 5-6 #4e5866,#0e1218, 7-99 #d8dee8,#0e1218, -|6: 0-0 d,#49525e, 1-4 d,#0e1218, 5-6 #4e5866,#0e1218, 7-99 #d8dee8,#0e1218, +|6: 0-0 d,#1b222c, 1-4 d,#0e1218, 5-6 #4e5866,#0e1218, 7-99 #d8dee8,#0e1218, |7: 0-0 d,#1b222c, 1-4 d,#0e1218, 5-6 #4e5866,#0e1218, 7-99 #d8dee8,#0e1218, |8: 0-0 d,#1b222c, 1-4 d,#0e1218, 5-6 #4e5866,#0e1218, 7-99 #d8dee8,#0e1218, |9: 0-0 d,#1b222c, 1-4 d,#0e1218, 5-6 #4e5866,#0e1218, 7-99 #d8dee8,#0e1218, |10: 0-0 d,#1b222c, 1-4 d,#0e1218, 5-6 #4e5866,#0e1218, 7-99 #d8dee8,#0e1218, -|11: 0-0 d,#1b222c, 1-4 d,#0e1218, 5-6 #4e5866,#0e1218, 7-99 #d8dee8,#0e1218, +|11: 0-0 d,#1b222c, 1-3 d,#0e1218, 4-6 #4e5866,#0e1218, 7-99 #d8dee8,#0e1218, |12: 0-0 d,#1b222c, 1-3 d,#0e1218, 4-6 #4e5866,#0e1218, 7-99 #d8dee8,#0e1218, |13: 0-0 d,#1b222c, 1-3 d,#0e1218, 4-6 #4e5866,#0e1218, 7-99 #d8dee8,#0e1218, |14: 0-0 d,#1b222c, 1-3 d,#0e1218, 4-6 #4e5866,#0e1218, 7-99 #d8dee8,#0e1218, -|15: 0-0 d,#1b222c, 1-3 d,#0e1218, 4-6 #4e5866,#0e1218, 7-99 #d8dee8,#0e1218, -|16: 0-1 d,#56b4e9, 2-31 #a9b4c4,#1b222c, 32-39 #88d3ff,#1b222c, 40-99 #a9b4c4,#1b222c, -|17: 0-0 d,#49525e, 1-4 d,#0e1218, 5-6 #4e5866,#0e1218, 7-99 #d8dee8,#0e1218, +|15: 0-1 d,#56b4e9, 2-31 #a9b4c4,#1b222c, 32-39 #88d3ff,#1b222c, 40-99 #a9b4c4,#1b222c, +|16: 0-0 d,#49525e, 1-4 d,#0e1218, 5-6 #4e5866,#0e1218, 7-99 #d8dee8,#0e1218, +|17: 0-0 d,#1b222c, 1-4 d,#0e1218, 5-6 #4e5866,#0e1218, 7-99 #d8dee8,#0e1218, |18: 0-0 d,#1b222c, 1-4 d,#0e1218, 5-6 #4e5866,#0e1218, 7-99 #d8dee8,#0e1218, |19: 0-0 d,#1b222c, 1-4 d,#0e1218, 5-6 #4e5866,#0e1218, 7-99 #d8dee8,#0e1218, |20: 0-0 d,#1b222c, 1-4 d,#0e1218, 5-6 #4e5866,#0e1218, 7-99 #d8dee8,#0e1218, |21: 0-0 d,#1b222c, 1-4 d,#0e1218, 5-6 #4e5866,#0e1218, 7-99 #d8dee8,#0e1218, |22: 0-0 d,#1b222c, 1-4 d,#0e1218, 5-6 #4e5866,#0e1218, 7-99 #d8dee8,#0e1218, -|23: 0-0 d,#1b222c, 1-4 d,#0e1218, 5-6 #4e5866,#0e1218, 7-99 #d8dee8,#0e1218, -|24: 0-0 d,#1b222c, 1-1 d,#0e1218, 2-4 d,#0e1218,b 5-6 #7d8898,#0e1218,b 7-99 #d8dee8,#0e1218, -|25: 0-0 d,#1b222c, 1-4 d,#0e1218, 5-6 #4e5866,#0e1218, 7-99 #d8dee8,#0e1218, +|23: 0-0 d,#1b222c, 1-1 d,#0e1218, 2-4 d,#0e1218,b 5-6 #7d8898,#0e1218,b 7-99 #d8dee8,#0e1218, +|24: 0-0 d,#1b222c, 1-4 d,#0e1218, 5-6 #4e5866,#0e1218, 7-99 #d8dee8,#0e1218, +|25: 0-0 d,#1b222c, 1-3 d,#0e1218, 4-6 #4e5866,#0e1218, 7-99 #d8dee8,#0e1218, |26: 0-0 d,#1b222c, 1-3 d,#0e1218, 4-6 #4e5866,#0e1218, 7-99 #d8dee8,#0e1218, |27: 0-0 d,#1b222c, 1-3 d,#0e1218, 4-6 #4e5866,#0e1218, 7-99 #d8dee8,#0e1218, |28: 0-0 d,#1b222c, 1-3 d,#0e1218, 4-6 #4e5866,#0e1218, 7-99 #d8dee8,#0e1218, -|29: 0-0 d,#1b222c, 1-3 d,#0e1218, 4-6 #4e5866,#0e1218, 7-99 #d8dee8,#0e1218, +|29: 0-0 d,#1b222c, 1-3 d,#0e1218, 4-99 #4e5866,#0e1218, |30: 0-1 d,#1b222c, 2-99 #6d7784,#1b222c, -== snap step-sepia grid=100x31 cursor=7,25 +== snap step-sepia grid=100x31 cursor=7,24 |30: ✓ /tmp/pardes-snap/themesel/cwd/+Themes Theme 17 messages · SPC h m == style step-sepia grid=100x31 |0: 0-1 d,#e6d8ba, 2-99 #4b3d2b,#e6d8ba, -|1: 0-1 d,#b99fbf, 2-99 #4b3d2b,#e6d8ba, -|2: 0-1 d,#c18f6a, 2-31 #4b3d2b,#e6d8ba, 32-37 #711f07,#e6d8ba, 38-99 #4b3d2b,#e6d8ba, +|1: 0-1 d,#c18f6a, 2-31 #4b3d2b,#e6d8ba, 32-37 #711f07,#e6d8ba, 38-99 #4b3d2b,#e6d8ba, +|2: 0-0 d,#a6987e, 1-4 d,#f4ecdb, 5-6 #a8987c,#f4ecdb, 7-99 #3a2e22,#f4ecdb, |3: 0-0 d,#a6987e, 1-4 d,#f4ecdb, 5-6 #a8987c,#f4ecdb, 7-99 #3a2e22,#f4ecdb, |4: 0-0 d,#a6987e, 1-4 d,#f4ecdb, 5-6 #a8987c,#f4ecdb, 7-99 #3a2e22,#f4ecdb, |5: 0-0 d,#a6987e, 1-4 d,#f4ecdb, 5-6 #a8987c,#f4ecdb, 7-99 #3a2e22,#f4ecdb, -|6: 0-0 d,#a6987e, 1-4 d,#f4ecdb, 5-6 #a8987c,#f4ecdb, 7-99 #3a2e22,#f4ecdb, +|6: 0-0 d,#e6d8ba, 1-4 d,#f4ecdb, 5-6 #a8987c,#f4ecdb, 7-99 #3a2e22,#f4ecdb, |7: 0-0 d,#e6d8ba, 1-4 d,#f4ecdb, 5-6 #a8987c,#f4ecdb, 7-99 #3a2e22,#f4ecdb, |8: 0-0 d,#e6d8ba, 1-4 d,#f4ecdb, 5-6 #a8987c,#f4ecdb, 7-99 #3a2e22,#f4ecdb, |9: 0-0 d,#e6d8ba, 1-4 d,#f4ecdb, 5-6 #a8987c,#f4ecdb, 7-99 #3a2e22,#f4ecdb, |10: 0-0 d,#e6d8ba, 1-4 d,#f4ecdb, 5-6 #a8987c,#f4ecdb, 7-99 #3a2e22,#f4ecdb, -|11: 0-0 d,#e6d8ba, 1-4 d,#f4ecdb, 5-6 #a8987c,#f4ecdb, 7-99 #3a2e22,#f4ecdb, +|11: 0-0 d,#e6d8ba, 1-3 d,#f4ecdb, 4-6 #a8987c,#f4ecdb, 7-99 #3a2e22,#f4ecdb, |12: 0-0 d,#e6d8ba, 1-3 d,#f4ecdb, 4-6 #a8987c,#f4ecdb, 7-99 #3a2e22,#f4ecdb, |13: 0-0 d,#e6d8ba, 1-3 d,#f4ecdb, 4-6 #a8987c,#f4ecdb, 7-99 #3a2e22,#f4ecdb, |14: 0-0 d,#e6d8ba, 1-3 d,#f4ecdb, 4-6 #a8987c,#f4ecdb, 7-99 #3a2e22,#f4ecdb, -|15: 0-0 d,#e6d8ba, 1-3 d,#f4ecdb, 4-6 #a8987c,#f4ecdb, 7-99 #3a2e22,#f4ecdb, -|16: 0-1 d,#a0562a, 2-31 #4b3d2b,#e6d8ba, 32-39 #5f1602,#e6d8ba, 40-99 #4b3d2b,#e6d8ba, -|17: 0-0 d,#a6987e, 1-4 d,#f4ecdb, 5-6 #a8987c,#f4ecdb, 7-99 #3a2e22,#f4ecdb, +|15: 0-1 d,#a0562a, 2-31 #4b3d2b,#e6d8ba, 32-39 #5f1602,#e6d8ba, 40-99 #4b3d2b,#e6d8ba, +|16: 0-0 d,#a6987e, 1-4 d,#f4ecdb, 5-6 #a8987c,#f4ecdb, 7-99 #3a2e22,#f4ecdb, +|17: 0-0 d,#e6d8ba, 1-4 d,#f4ecdb, 5-6 #a8987c,#f4ecdb, 7-99 #3a2e22,#f4ecdb, |18: 0-0 d,#e6d8ba, 1-4 d,#f4ecdb, 5-6 #a8987c,#f4ecdb, 7-99 #3a2e22,#f4ecdb, |19: 0-0 d,#e6d8ba, 1-4 d,#f4ecdb, 5-6 #a8987c,#f4ecdb, 7-99 #3a2e22,#f4ecdb, |20: 0-0 d,#e6d8ba, 1-4 d,#f4ecdb, 5-6 #a8987c,#f4ecdb, 7-99 #3a2e22,#f4ecdb, |21: 0-0 d,#e6d8ba, 1-4 d,#f4ecdb, 5-6 #a8987c,#f4ecdb, 7-99 #3a2e22,#f4ecdb, |22: 0-0 d,#e6d8ba, 1-4 d,#f4ecdb, 5-6 #a8987c,#f4ecdb, 7-99 #3a2e22,#f4ecdb, |23: 0-0 d,#e6d8ba, 1-4 d,#f4ecdb, 5-6 #a8987c,#f4ecdb, 7-99 #3a2e22,#f4ecdb, -|24: 0-0 d,#e6d8ba, 1-4 d,#f4ecdb, 5-6 #a8987c,#f4ecdb, 7-99 #3a2e22,#f4ecdb, -|25: 0-0 d,#e6d8ba, 1-1 d,#f4ecdb, 2-4 d,#f4ecdb,b 5-6 #76654b,#f4ecdb,b 7-99 #3a2e22,#f4ecdb, +|24: 0-0 d,#e6d8ba, 1-1 d,#f4ecdb, 2-4 d,#f4ecdb,b 5-6 #76654b,#f4ecdb,b 7-99 #3a2e22,#f4ecdb, +|25: 0-0 d,#e6d8ba, 1-3 d,#f4ecdb, 4-6 #a8987c,#f4ecdb, 7-99 #3a2e22,#f4ecdb, |26: 0-0 d,#e6d8ba, 1-3 d,#f4ecdb, 4-6 #a8987c,#f4ecdb, 7-99 #3a2e22,#f4ecdb, |27: 0-0 d,#e6d8ba, 1-3 d,#f4ecdb, 4-6 #a8987c,#f4ecdb, 7-99 #3a2e22,#f4ecdb, |28: 0-0 d,#e6d8ba, 1-3 d,#f4ecdb, 4-6 #a8987c,#f4ecdb, 7-99 #3a2e22,#f4ecdb, -|29: 0-0 d,#e6d8ba, 1-3 d,#f4ecdb, 4-6 #a8987c,#f4ecdb, 7-99 #3a2e22,#f4ecdb, +|29: 0-0 d,#e6d8ba, 1-3 d,#f4ecdb, 4-99 #a8987c,#f4ecdb, |30: 0-1 d,#e6d8ba, 2-99 #7c6e58,#e6d8ba, -== snap step-paper grid=100x31 cursor=7,26 +== snap step-paper grid=100x31 cursor=7,25 |30: ✓ /tmp/pardes-snap/themesel/cwd/+Themes Theme 19 messages · SPC h m == style step-paper grid=100x31 |0: 0-1 d,#e8eae3, 2-99 #52625a,#e8eae3, -|1: 0-1 d,#c7a78a, 2-99 #4a5a52,#bdd8ca, -|2: 0-1 d,#8eac9a, 2-31 #52625a,#e8eae3, 32-37 #724c83,#e8eae3, 38-99 #52625a,#e8eae3, +|1: 0-1 d,#8eac9a, 2-31 #52625a,#e8eae3, 32-37 #724c83,#e8eae3, 38-99 #52625a,#e8eae3, +|2: 0-0 d,#869d8a, 1-4 d,#f5f3ed, 5-6 #8b9185,#f5f3ed, 7-99 #303b3b,#f5f3ed, |3: 0-0 d,#869d8a, 1-4 d,#f5f3ed, 5-6 #8b9185,#f5f3ed, 7-99 #303b3b,#f5f3ed, |4: 0-0 d,#869d8a, 1-4 d,#f5f3ed, 5-6 #8b9185,#f5f3ed, 7-99 #303b3b,#f5f3ed, |5: 0-0 d,#869d8a, 1-4 d,#f5f3ed, 5-6 #8b9185,#f5f3ed, 7-99 #303b3b,#f5f3ed, -|6: 0-0 d,#869d8a, 1-4 d,#f5f3ed, 5-6 #8b9185,#f5f3ed, 7-99 #303b3b,#f5f3ed, +|6: 0-0 d,#e5e8df, 1-4 d,#f5f3ed, 5-6 #8b9185,#f5f3ed, 7-99 #303b3b,#f5f3ed, |7: 0-0 d,#e5e8df, 1-4 d,#f5f3ed, 5-6 #8b9185,#f5f3ed, 7-99 #303b3b,#f5f3ed, |8: 0-0 d,#e5e8df, 1-4 d,#f5f3ed, 5-6 #8b9185,#f5f3ed, 7-99 #303b3b,#f5f3ed, |9: 0-0 d,#e5e8df, 1-4 d,#f5f3ed, 5-6 #8b9185,#f5f3ed, 7-99 #303b3b,#f5f3ed, |10: 0-0 d,#e5e8df, 1-4 d,#f5f3ed, 5-6 #8b9185,#f5f3ed, 7-99 #303b3b,#f5f3ed, -|11: 0-0 d,#e5e8df, 1-4 d,#f5f3ed, 5-6 #8b9185,#f5f3ed, 7-99 #303b3b,#f5f3ed, +|11: 0-0 d,#e5e8df, 1-3 d,#f5f3ed, 4-6 #8b9185,#f5f3ed, 7-99 #303b3b,#f5f3ed, |12: 0-0 d,#e5e8df, 1-3 d,#f5f3ed, 4-6 #8b9185,#f5f3ed, 7-99 #303b3b,#f5f3ed, |13: 0-0 d,#e5e8df, 1-3 d,#f5f3ed, 4-6 #8b9185,#f5f3ed, 7-99 #303b3b,#f5f3ed, |14: 0-0 d,#e5e8df, 1-3 d,#f5f3ed, 4-6 #8b9185,#f5f3ed, 7-99 #303b3b,#f5f3ed, -|15: 0-0 d,#e5e8df, 1-3 d,#f5f3ed, 4-6 #8b9185,#f5f3ed, 7-99 #303b3b,#f5f3ed, -|16: 0-1 d,#367157, 2-31 #4a5a52,#bdd8ca, 32-39 #4f2b5f,#bdd8ca, 40-99 #4a5a52,#bdd8ca, -|17: 0-0 d,#869d8a, 1-4 d,#f5f3ed, 5-6 #8b9185,#f5f3ed, 7-99 #303b3b,#f5f3ed, +|15: 0-1 d,#367157, 2-31 #4a5a52,#bdd8ca, 32-39 #4f2b5f,#bdd8ca, 40-99 #4a5a52,#bdd8ca, +|16: 0-0 d,#869d8a, 1-4 d,#f5f3ed, 5-6 #8b9185,#f5f3ed, 7-99 #303b3b,#f5f3ed, +|17: 0-0 d,#e5e8df, 1-4 d,#f5f3ed, 5-6 #8b9185,#f5f3ed, 7-99 #303b3b,#f5f3ed, |18: 0-0 d,#e5e8df, 1-4 d,#f5f3ed, 5-6 #8b9185,#f5f3ed, 7-99 #303b3b,#f5f3ed, |19: 0-0 d,#e5e8df, 1-4 d,#f5f3ed, 5-6 #8b9185,#f5f3ed, 7-99 #303b3b,#f5f3ed, |20: 0-0 d,#e5e8df, 1-4 d,#f5f3ed, 5-6 #8b9185,#f5f3ed, 7-99 #303b3b,#f5f3ed, @@ -342,46 +343,33 @@ |22: 0-0 d,#e5e8df, 1-4 d,#f5f3ed, 5-6 #8b9185,#f5f3ed, 7-99 #303b3b,#f5f3ed, |23: 0-0 d,#e5e8df, 1-4 d,#f5f3ed, 5-6 #8b9185,#f5f3ed, 7-99 #303b3b,#f5f3ed, |24: 0-0 d,#e5e8df, 1-4 d,#f5f3ed, 5-6 #8b9185,#f5f3ed, 7-99 #303b3b,#f5f3ed, -|25: 0-0 d,#e5e8df, 1-4 d,#f5f3ed, 5-6 #8b9185,#f5f3ed, 7-99 #303b3b,#f5f3ed, -|26: 0-0 d,#e5e8df, 1-1 d,#f5f3ed, 2-3 d,#f5f3ed,b 4-6 #83897d,#f5f3ed,b 7-99 #303b3b,#f5f3ed, +|25: 0-0 d,#e5e8df, 1-1 d,#f5f3ed, 2-3 d,#f5f3ed,b 4-6 #83897d,#f5f3ed,b 7-99 #303b3b,#f5f3ed, +|26: 0-0 d,#e5e8df, 1-3 d,#f5f3ed, 4-6 #8b9185,#f5f3ed, 7-99 #303b3b,#f5f3ed, |27: 0-0 d,#e5e8df, 1-3 d,#f5f3ed, 4-6 #8b9185,#f5f3ed, 7-99 #303b3b,#f5f3ed, |28: 0-0 d,#e5e8df, 1-3 d,#f5f3ed, 4-6 #8b9185,#f5f3ed, 7-99 #303b3b,#f5f3ed, -|29: 0-0 d,#e5e8df, 1-3 d,#f5f3ed, 4-6 #8b9185,#f5f3ed, 7-99 #303b3b,#f5f3ed, +|29: 0-0 d,#e5e8df, 1-3 d,#f5f3ed, 4-99 #8b9185,#f5f3ed, |30: 0-1 d,#e8eae3, 2-99 #6f7d75,#e8eae3, == snap step-daybreak grid=100x31 cursor=7,26 -|17: 2 Theme dark -|18: 3 Theme light -|19: 4 Theme orchard -|20: 5 Theme orchard_black -|21: 6 Theme ink -|22: 7 Theme mono -|23: 8 Theme okabe -|24: 9 Theme sepia -|25: 10 Theme paper -|26: 11 Theme daybreak -|27: 12 Theme dusk -|28: 13 Theme lapis -|29: 14 |30: ✓ /tmp/pardes-snap/themesel/cwd/+Themes Theme 21 messages · SPC h m == style step-daybreak grid=100x31 |0: 0-1 d,#edf2f7, 2-99 #29465e,#edf2f7, -|1: 0-1 d,#cdb19d, 2-99 #213e56,#c7dcec, -|2: 0-1 d,#8db0cd, 2-31 #29465e,#edf2f7, 32-37 #5a2d67,#edf2f7, 38-99 #29465e,#edf2f7, +|1: 0-1 d,#8db0cd, 2-31 #29465e,#edf2f7, 32-37 #5a2d67,#edf2f7, 38-99 #29465e,#edf2f7, +|2: 0-0 d,#6685a0, 1-4 d,#ffffff, 5-6 #88939b,#ffffff, 7-99 #142d40,#ffffff, |3: 0-0 d,#6685a0, 1-4 d,#ffffff, 5-6 #88939b,#ffffff, 7-99 #142d40,#ffffff, |4: 0-0 d,#6685a0, 1-4 d,#ffffff, 5-6 #88939b,#ffffff, 7-99 #142d40,#ffffff, |5: 0-0 d,#6685a0, 1-4 d,#ffffff, 5-6 #88939b,#ffffff, 7-99 #142d40,#ffffff, -|6: 0-0 d,#6685a0, 1-4 d,#ffffff, 5-6 #88939b,#ffffff, 7-99 #142d40,#ffffff, +|6: 0-0 d,#e6edf3, 1-4 d,#ffffff, 5-6 #88939b,#ffffff, 7-99 #142d40,#ffffff, |7: 0-0 d,#e6edf3, 1-4 d,#ffffff, 5-6 #88939b,#ffffff, 7-99 #142d40,#ffffff, |8: 0-0 d,#e6edf3, 1-4 d,#ffffff, 5-6 #88939b,#ffffff, 7-99 #142d40,#ffffff, |9: 0-0 d,#e6edf3, 1-4 d,#ffffff, 5-6 #88939b,#ffffff, 7-99 #142d40,#ffffff, |10: 0-0 d,#e6edf3, 1-4 d,#ffffff, 5-6 #88939b,#ffffff, 7-99 #142d40,#ffffff, -|11: 0-0 d,#e6edf3, 1-4 d,#ffffff, 5-6 #88939b,#ffffff, 7-99 #142d40,#ffffff, +|11: 0-0 d,#e6edf3, 1-3 d,#ffffff, 4-6 #88939b,#ffffff, 7-99 #142d40,#ffffff, |12: 0-0 d,#e6edf3, 1-3 d,#ffffff, 4-6 #88939b,#ffffff, 7-99 #142d40,#ffffff, |13: 0-0 d,#e6edf3, 1-3 d,#ffffff, 4-6 #88939b,#ffffff, 7-99 #142d40,#ffffff, |14: 0-0 d,#e6edf3, 1-3 d,#ffffff, 4-6 #88939b,#ffffff, 7-99 #142d40,#ffffff, -|15: 0-0 d,#e6edf3, 1-3 d,#ffffff, 4-6 #88939b,#ffffff, 7-99 #142d40,#ffffff, -|16: 0-1 d,#006198, 2-31 #213e56,#c7dcec, 32-39 #52255e,#c7dcec, 40-99 #213e56,#c7dcec, -|17: 0-0 d,#6685a0, 1-4 d,#ffffff, 5-6 #88939b,#ffffff, 7-99 #142d40,#ffffff, +|15: 0-1 d,#006198, 2-31 #213e56,#c7dcec, 32-39 #52255e,#c7dcec, 40-99 #213e56,#c7dcec, +|16: 0-0 d,#6685a0, 1-4 d,#ffffff, 5-6 #88939b,#ffffff, 7-99 #142d40,#ffffff, +|17: 0-0 d,#e6edf3, 1-4 d,#ffffff, 5-6 #88939b,#ffffff, 7-99 #142d40,#ffffff, |18: 0-0 d,#e6edf3, 1-4 d,#ffffff, 5-6 #88939b,#ffffff, 7-99 #142d40,#ffffff, |19: 0-0 d,#e6edf3, 1-4 d,#ffffff, 5-6 #88939b,#ffffff, 7-99 #142d40,#ffffff, |20: 0-0 d,#e6edf3, 1-4 d,#ffffff, 5-6 #88939b,#ffffff, 7-99 #142d40,#ffffff, @@ -396,6 +384,7 @@ |29: 0-0 d,#e6edf3, 1-3 d,#ffffff, 4-99 #88939b,#ffffff, |30: 0-1 d,#edf2f7, 2-99 #6d8294,#edf2f7, == snap step-dusk grid=100x31 cursor=7,26 +|16: 2 Theme dark |17: 3 Theme light |18: 4 Theme orchard |19: 5 Theme orchard_black @@ -412,23 +401,23 @@ |30: ✓ /tmp/pardes-snap/themesel/cwd/+Themes Theme 23 messages · SPC h m == style step-dusk grid=100x31 |0: 0-1 d,#2c2630, 2-99 #c6b6c5,#2c2630, -|1: 0-1 d,#626256, 2-99 #d2c2d1,#533d4d, -|2: 0-1 d,#685150, 2-31 #c6b6c5,#2c2630, 32-37 #96c9b8,#2c2630, 38-99 #c6b6c5,#2c2630, +|1: 0-1 d,#685150, 2-31 #c6b6c5,#2c2630, 32-37 #96c9b8,#2c2630, 38-99 #c6b6c5,#2c2630, +|2: 0-0 d,#8e667c, 1-4 d,#39323b, 5-6 #82717e,#39323b, 7-99 #c3b6c1,#39323b, |3: 0-0 d,#8e667c, 1-4 d,#39323b, 5-6 #82717e,#39323b, 7-99 #c3b6c1,#39323b, |4: 0-0 d,#8e667c, 1-4 d,#39323b, 5-6 #82717e,#39323b, 7-99 #c3b6c1,#39323b, |5: 0-0 d,#8e667c, 1-4 d,#39323b, 5-6 #82717e,#39323b, 7-99 #c3b6c1,#39323b, -|6: 0-0 d,#8e667c, 1-4 d,#39323b, 5-6 #82717e,#39323b, 7-99 #c3b6c1,#39323b, +|6: 0-0 d,#3d3540, 1-4 d,#39323b, 5-6 #82717e,#39323b, 7-99 #c3b6c1,#39323b, |7: 0-0 d,#3d3540, 1-4 d,#39323b, 5-6 #82717e,#39323b, 7-99 #c3b6c1,#39323b, |8: 0-0 d,#3d3540, 1-4 d,#39323b, 5-6 #82717e,#39323b, 7-99 #c3b6c1,#39323b, |9: 0-0 d,#3d3540, 1-4 d,#39323b, 5-6 #82717e,#39323b, 7-99 #c3b6c1,#39323b, |10: 0-0 d,#3d3540, 1-4 d,#39323b, 5-6 #82717e,#39323b, 7-99 #c3b6c1,#39323b, -|11: 0-0 d,#3d3540, 1-4 d,#39323b, 5-6 #82717e,#39323b, 7-99 #c3b6c1,#39323b, +|11: 0-0 d,#3d3540, 1-3 d,#39323b, 4-6 #82717e,#39323b, 7-99 #c3b6c1,#39323b, |12: 0-0 d,#3d3540, 1-3 d,#39323b, 4-6 #82717e,#39323b, 7-99 #c3b6c1,#39323b, |13: 0-0 d,#3d3540, 1-3 d,#39323b, 4-6 #82717e,#39323b, 7-99 #c3b6c1,#39323b, |14: 0-0 d,#3d3540, 1-3 d,#39323b, 4-6 #82717e,#39323b, 7-99 #c3b6c1,#39323b, -|15: 0-0 d,#3d3540, 1-3 d,#39323b, 4-6 #82717e,#39323b, 7-99 #c3b6c1,#39323b, -|16: 0-1 d,#edb092, 2-31 #d2c2d1,#533d4d, 32-39 #e0bffd,#533d4d, 40-99 #d2c2d1,#533d4d, -|17: 0-0 d,#8e667c, 1-4 d,#39323b, 5-6 #82717e,#39323b, 7-99 #c3b6c1,#39323b, +|15: 0-1 d,#edb092, 2-31 #d2c2d1,#533d4d, 32-39 #e0bffd,#533d4d, 40-99 #d2c2d1,#533d4d, +|16: 0-0 d,#8e667c, 1-4 d,#39323b, 5-6 #82717e,#39323b, 7-99 #c3b6c1,#39323b, +|17: 0-0 d,#3d3540, 1-4 d,#39323b, 5-6 #82717e,#39323b, 7-99 #c3b6c1,#39323b, |18: 0-0 d,#3d3540, 1-4 d,#39323b, 5-6 #82717e,#39323b, 7-99 #c3b6c1,#39323b, |19: 0-0 d,#3d3540, 1-4 d,#39323b, 5-6 #82717e,#39323b, 7-99 #c3b6c1,#39323b, |20: 0-0 d,#3d3540, 1-4 d,#39323b, 5-6 #82717e,#39323b, 7-99 #c3b6c1,#39323b, @@ -443,6 +432,7 @@ |29: 0-0 d,#3d3540, 1-3 d,#39323b, 4-6 #82717e,#39323b, 7-99 #c3b6c1,#39323b, |30: 0-1 d,#2c2630, 2-99 #847885,#2c2630, == snap step-lapis grid=100x31 cursor=7,26 +|16: 3 Theme light |17: 4 Theme orchard |18: 5 Theme orchard_black |19: 6 Theme ink @@ -459,23 +449,23 @@ |30: ✓ /tmp/pardes-snap/themesel/cwd/+Themes Theme 25 messages · SPC h m == style step-lapis grid=100x31 |0: 0-1 d,#0f1a4a, 2-99 #9aa6d9,#0f1a4a, -|1: 0-1 d,#6a3a44, 2-99 #eee6d2,#25397d, -|2: 0-1 d,#546091, 2-31 #9aa6d9,#0f1a4a, 32-37 #e8c46a,#0f1a4a, 38-99 #9aa6d9,#0f1a4a, +|1: 0-1 d,#546091, 2-31 #9aa6d9,#0f1a4a, 32-37 #e8c46a,#0f1a4a, 38-99 #9aa6d9,#0f1a4a, +|2: 0-0 d,#e8c46a, 1-4 d,#0a1030, 5-6 #5a6aa8,#0a1030, 7-99 #eee6d2,#0a1030, |3: 0-0 d,#e8c46a, 1-4 d,#0a1030, 5-6 #5a6aa8,#0a1030, 7-99 #eee6d2,#0a1030, |4: 0-0 d,#e8c46a, 1-4 d,#0a1030, 5-6 #5a6aa8,#0a1030, 7-99 #eee6d2,#0a1030, |5: 0-0 d,#e8c46a, 1-4 d,#0a1030, 5-6 #5a6aa8,#0a1030, 7-99 #eee6d2,#0a1030, -|6: 0-0 d,#e8c46a, 1-4 d,#0a1030, 5-6 #5a6aa8,#0a1030, 7-99 #eee6d2,#0a1030, +|6: 0-0 d,#050a24, 1-4 d,#0a1030, 5-6 #5a6aa8,#0a1030, 7-99 #eee6d2,#0a1030, |7: 0-0 d,#050a24, 1-4 d,#0a1030, 5-6 #5a6aa8,#0a1030, 7-99 #eee6d2,#0a1030, |8: 0-0 d,#050a24, 1-4 d,#0a1030, 5-6 #5a6aa8,#0a1030, 7-99 #eee6d2,#0a1030, |9: 0-0 d,#050a24, 1-4 d,#0a1030, 5-6 #5a6aa8,#0a1030, 7-99 #eee6d2,#0a1030, |10: 0-0 d,#050a24, 1-4 d,#0a1030, 5-6 #5a6aa8,#0a1030, 7-99 #eee6d2,#0a1030, -|11: 0-0 d,#050a24, 1-4 d,#0a1030, 5-6 #5a6aa8,#0a1030, 7-99 #eee6d2,#0a1030, +|11: 0-0 d,#050a24, 1-3 d,#0a1030, 4-6 #5a6aa8,#0a1030, 7-99 #eee6d2,#0a1030, |12: 0-0 d,#050a24, 1-3 d,#0a1030, 4-6 #5a6aa8,#0a1030, 7-99 #eee6d2,#0a1030, |13: 0-0 d,#050a24, 1-3 d,#0a1030, 4-6 #5a6aa8,#0a1030, 7-99 #eee6d2,#0a1030, |14: 0-0 d,#050a24, 1-3 d,#0a1030, 4-6 #5a6aa8,#0a1030, 7-99 #eee6d2,#0a1030, -|15: 0-0 d,#050a24, 1-3 d,#0a1030, 4-6 #5a6aa8,#0a1030, 7-99 #eee6d2,#0a1030, -|16: 0-1 d,#e8c46a, 2-31 #eee6d2,#25397d, 32-39 #fedc8b,#25397d, 40-99 #eee6d2,#25397d, -|17: 0-0 d,#e8c46a, 1-4 d,#0a1030, 5-6 #5a6aa8,#0a1030, 7-99 #eee6d2,#0a1030, +|15: 0-1 d,#e8c46a, 2-31 #eee6d2,#25397d, 32-39 #fedc8b,#25397d, 40-99 #eee6d2,#25397d, +|16: 0-0 d,#e8c46a, 1-4 d,#0a1030, 5-6 #5a6aa8,#0a1030, 7-99 #eee6d2,#0a1030, +|17: 0-0 d,#050a24, 1-4 d,#0a1030, 5-6 #5a6aa8,#0a1030, 7-99 #eee6d2,#0a1030, |18: 0-0 d,#050a24, 1-4 d,#0a1030, 5-6 #5a6aa8,#0a1030, 7-99 #eee6d2,#0a1030, |19: 0-0 d,#050a24, 1-4 d,#0a1030, 5-6 #5a6aa8,#0a1030, 7-99 #eee6d2,#0a1030, |20: 0-0 d,#050a24, 1-4 d,#0a1030, 5-6 #5a6aa8,#0a1030, 7-99 #eee6d2,#0a1030, @@ -490,6 +480,7 @@ |29: 0-0 d,#050a24, 1-3 d,#0a1030, 4-6 #5a6aa8,#0a1030, 7-99 #eee6d2,#0a1030, |30: 0-1 d,#0f1a4a, 2-99 #6472a5,#0f1a4a, == snap step-forge grid=100x31 cursor=7,26 +|16: 6 Theme ink |17: 7 Theme mono |18: 8 Theme okabe |19: 9 Theme sepia @@ -506,23 +497,23 @@ |30: ✓ /tmp/pardes-snap/themesel/cwd/+Themes Theme 27 messages · SPC h m == style step-forge grid=100x31 |0: 0-1 d,#22252b, 2-99 #c5c9d2,#22252b, -|1: 0-1 d,#3e473b, 2-99 #d1d5de,#374253, -|2: 0-1 d,#475468, 2-31 #c5c9d2,#22252b, 32-37 #ecbf9b,#22252b, 38-99 #c5c9d2,#22252b, +|1: 0-1 d,#475468, 2-31 #c5c9d2,#22252b, 32-37 #ecbf9b,#22252b, 38-99 #c5c9d2,#22252b, +|2: 0-0 d,#708095, 1-4 d,#0c0c0e, 5-6 #62656c,#0c0c0e, 7-99 #e5e5e5,#0c0c0e, |3: 0-0 d,#708095, 1-4 d,#0c0c0e, 5-6 #62656c,#0c0c0e, 7-99 #e5e5e5,#0c0c0e, |4: 0-0 d,#708095, 1-4 d,#0c0c0e, 5-6 #62656c,#0c0c0e, 7-99 #e5e5e5,#0c0c0e, |5: 0-0 d,#708095, 1-4 d,#0c0c0e, 5-6 #62656c,#0c0c0e, 7-99 #e5e5e5,#0c0c0e, -|6: 0-0 d,#708095, 1-4 d,#0c0c0e, 5-6 #62656c,#0c0c0e, 7-99 #e5e5e5,#0c0c0e, +|6: 0-0 d,#1a1c21, 1-4 d,#0c0c0e, 5-6 #62656c,#0c0c0e, 7-99 #e5e5e5,#0c0c0e, |7: 0-0 d,#1a1c21, 1-4 d,#0c0c0e, 5-6 #62656c,#0c0c0e, 7-99 #e5e5e5,#0c0c0e, |8: 0-0 d,#1a1c21, 1-4 d,#0c0c0e, 5-6 #62656c,#0c0c0e, 7-99 #e5e5e5,#0c0c0e, |9: 0-0 d,#1a1c21, 1-4 d,#0c0c0e, 5-6 #62656c,#0c0c0e, 7-99 #e5e5e5,#0c0c0e, |10: 0-0 d,#1a1c21, 1-4 d,#0c0c0e, 5-6 #62656c,#0c0c0e, 7-99 #e5e5e5,#0c0c0e, -|11: 0-0 d,#1a1c21, 1-4 d,#0c0c0e, 5-6 #62656c,#0c0c0e, 7-99 #e5e5e5,#0c0c0e, +|11: 0-0 d,#1a1c21, 1-3 d,#0c0c0e, 4-6 #62656c,#0c0c0e, 7-99 #e5e5e5,#0c0c0e, |12: 0-0 d,#1a1c21, 1-3 d,#0c0c0e, 4-6 #62656c,#0c0c0e, 7-99 #e5e5e5,#0c0c0e, |13: 0-0 d,#1a1c21, 1-3 d,#0c0c0e, 4-6 #62656c,#0c0c0e, 7-99 #e5e5e5,#0c0c0e, |14: 0-0 d,#1a1c21, 1-3 d,#0c0c0e, 4-6 #62656c,#0c0c0e, 7-99 #e5e5e5,#0c0c0e, -|15: 0-0 d,#1a1c21, 1-3 d,#0c0c0e, 4-6 #62656c,#0c0c0e, 7-99 #e5e5e5,#0c0c0e, -|16: 0-1 d,#9cc3f7, 2-31 #d1d5de,#374253, 32-39 #f9cca8,#374253, 40-99 #d1d5de,#374253, -|17: 0-0 d,#708095, 1-4 d,#0c0c0e, 5-6 #62656c,#0c0c0e, 7-99 #e5e5e5,#0c0c0e, +|15: 0-1 d,#9cc3f7, 2-31 #d1d5de,#374253, 32-39 #f9cca8,#374253, 40-99 #d1d5de,#374253, +|16: 0-0 d,#708095, 1-4 d,#0c0c0e, 5-6 #62656c,#0c0c0e, 7-99 #e5e5e5,#0c0c0e, +|17: 0-0 d,#1a1c21, 1-4 d,#0c0c0e, 5-6 #62656c,#0c0c0e, 7-99 #e5e5e5,#0c0c0e, |18: 0-0 d,#1a1c21, 1-4 d,#0c0c0e, 5-6 #62656c,#0c0c0e, 7-99 #e5e5e5,#0c0c0e, |19: 0-0 d,#1a1c21, 1-4 d,#0c0c0e, 5-6 #62656c,#0c0c0e, 7-99 #e5e5e5,#0c0c0e, |20: 0-0 d,#1a1c21, 1-3 d,#0c0c0e, 4-6 #62656c,#0c0c0e, 7-99 #e5e5e5,#0c0c0e, @@ -537,6 +528,7 @@ |29: 0-0 d,#1a1c21, 1-3 d,#0c0c0e, 4-6 #62656c,#0c0c0e, 7-99 #e5e5e5,#0c0c0e, |30: 0-1 d,#22252b, 2-99 #767a82,#22252b, == snap step-forge-black grid=100x31 cursor=7,26 +|16: 7 Theme mono |17: 8 Theme okabe |18: 9 Theme sepia |19: 10 Theme paper @@ -552,21 +544,21 @@ |29: 20 Theme solarium |30: ✓ /tmp/pardes-snap/themesel/cwd/+Themes Theme 29 messages · SPC h m == style step-forge-black grid=100x31 -|1: 0-1 d,#384331, 2-99 #d1d5de,#374253, +|2: 0-0 d,#708095, 1-4 d,#000000, 5-6 #62656c,#000000, 7-99 #f6f6f6,#000000, |3: 0-0 d,#708095, 1-4 d,#000000, 5-6 #62656c,#000000, 7-99 #f6f6f6,#000000, |4: 0-0 d,#708095, 1-4 d,#000000, 5-6 #62656c,#000000, 7-99 #f6f6f6,#000000, |5: 0-0 d,#708095, 1-4 d,#000000, 5-6 #62656c,#000000, 7-99 #f6f6f6,#000000, -|6: 0-0 d,#708095, 1-4 d,#000000, 5-6 #62656c,#000000, 7-99 #f6f6f6,#000000, +|6: 0-0 d,#14161a, 1-4 d,#000000, 5-6 #62656c,#000000, 7-99 #f6f6f6,#000000, |7: 0-0 d,#14161a, 1-4 d,#000000, 5-6 #62656c,#000000, 7-99 #f6f6f6,#000000, |8: 0-0 d,#14161a, 1-4 d,#000000, 5-6 #62656c,#000000, 7-99 #f6f6f6,#000000, |9: 0-0 d,#14161a, 1-4 d,#000000, 5-6 #62656c,#000000, 7-99 #f6f6f6,#000000, |10: 0-0 d,#14161a, 1-4 d,#000000, 5-6 #62656c,#000000, 7-99 #f6f6f6,#000000, -|11: 0-0 d,#14161a, 1-4 d,#000000, 5-6 #62656c,#000000, 7-99 #f6f6f6,#000000, +|11: 0-0 d,#14161a, 1-3 d,#000000, 4-6 #62656c,#000000, 7-99 #f6f6f6,#000000, |12: 0-0 d,#14161a, 1-3 d,#000000, 4-6 #62656c,#000000, 7-99 #f6f6f6,#000000, |13: 0-0 d,#14161a, 1-3 d,#000000, 4-6 #62656c,#000000, 7-99 #f6f6f6,#000000, |14: 0-0 d,#14161a, 1-3 d,#000000, 4-6 #62656c,#000000, 7-99 #f6f6f6,#000000, -|15: 0-0 d,#14161a, 1-3 d,#000000, 4-6 #62656c,#000000, 7-99 #f6f6f6,#000000, -|17: 0-0 d,#708095, 1-4 d,#000000, 5-6 #62656c,#000000, 7-99 #f6f6f6,#000000, +|16: 0-0 d,#708095, 1-4 d,#000000, 5-6 #62656c,#000000, 7-99 #f6f6f6,#000000, +|17: 0-0 d,#14161a, 1-4 d,#000000, 5-6 #62656c,#000000, 7-99 #f6f6f6,#000000, |18: 0-0 d,#14161a, 1-4 d,#000000, 5-6 #62656c,#000000, 7-99 #f6f6f6,#000000, |19: 0-0 d,#14161a, 1-3 d,#000000, 4-6 #62656c,#000000, 7-99 #f6f6f6,#000000, |20: 0-0 d,#14161a, 1-3 d,#000000, 4-6 #62656c,#000000, 7-99 #f6f6f6,#000000, @@ -580,6 +572,7 @@ |28: 0-0 d,#14161a, 1-3 d,#000000, 4-6 #62656c,#000000, 7-99 #f6f6f6,#000000, |29: 0-0 d,#14161a, 1-3 d,#000000, 4-6 #62656c,#000000, 7-99 #f6f6f6,#000000, == snap step-forge-soft grid=100x31 cursor=7,26 +|16: 8 Theme okabe |17: 9 Theme sepia |18: 10 Theme paper |19: 11 Theme daybreak @@ -596,23 +589,23 @@ |30: ✓ /tmp/pardes-snap/themesel/cwd/+Themes Theme 31 messages · SPC h m == style step-forge-soft grid=100x31 |0: 0-1 d,#2a2d34, 2-99 #c5c9d2,#2a2d34, -|1: 0-1 d,#5d695f, 2-99 #d1d5de,#404a58, -|2: 0-1 d,#4e5c70, 2-31 #c5c9d2,#2a2d34, 32-37 #ecbf9b,#2a2d34, 38-99 #c5c9d2,#2a2d34, +|1: 0-1 d,#4e5c70, 2-31 #c5c9d2,#2a2d34, 32-37 #ecbf9b,#2a2d34, 38-99 #c5c9d2,#2a2d34, +|2: 0-0 d,#708095, 1-4 d,#35383e, 5-6 #868991,#35383e, 7-99 #bfc3cc,#35383e, |3: 0-0 d,#708095, 1-4 d,#35383e, 5-6 #868991,#35383e, 7-99 #bfc3cc,#35383e, |4: 0-0 d,#708095, 1-4 d,#35383e, 5-6 #868991,#35383e, 7-99 #bfc3cc,#35383e, |5: 0-0 d,#708095, 1-4 d,#35383e, 5-6 #868991,#35383e, 7-99 #bfc3cc,#35383e, -|6: 0-0 d,#708095, 1-4 d,#35383e, 5-6 #868991,#35383e, 7-99 #bfc3cc,#35383e, +|6: 0-0 d,#3d4047, 1-4 d,#35383e, 5-6 #868991,#35383e, 7-99 #bfc3cc,#35383e, |7: 0-0 d,#3d4047, 1-4 d,#35383e, 5-6 #868991,#35383e, 7-99 #bfc3cc,#35383e, |8: 0-0 d,#3d4047, 1-4 d,#35383e, 5-6 #868991,#35383e, 7-99 #bfc3cc,#35383e, |9: 0-0 d,#3d4047, 1-4 d,#35383e, 5-6 #868991,#35383e, 7-99 #bfc3cc,#35383e, |10: 0-0 d,#3d4047, 1-4 d,#35383e, 5-6 #868991,#35383e, 7-99 #bfc3cc,#35383e, -|11: 0-0 d,#3d4047, 1-4 d,#35383e, 5-6 #868991,#35383e, 7-99 #bfc3cc,#35383e, +|11: 0-0 d,#3d4047, 1-3 d,#35383e, 4-6 #868991,#35383e, 7-99 #bfc3cc,#35383e, |12: 0-0 d,#3d4047, 1-3 d,#35383e, 4-6 #868991,#35383e, 7-99 #bfc3cc,#35383e, |13: 0-0 d,#3d4047, 1-3 d,#35383e, 4-6 #868991,#35383e, 7-99 #bfc3cc,#35383e, |14: 0-0 d,#3d4047, 1-3 d,#35383e, 4-6 #868991,#35383e, 7-99 #bfc3cc,#35383e, -|15: 0-0 d,#3d4047, 1-3 d,#35383e, 4-6 #868991,#35383e, 7-99 #bfc3cc,#35383e, -|16: 0-1 d,#9cc3f7, 2-31 #d1d5de,#404a58, 32-39 #fdd5b6,#404a58, 40-99 #d1d5de,#404a58, -|17: 0-0 d,#708095, 1-4 d,#35383e, 5-6 #868991,#35383e, 7-99 #bfc3cc,#35383e, +|15: 0-1 d,#9cc3f7, 2-31 #d1d5de,#404a58, 32-39 #fdd5b6,#404a58, 40-99 #d1d5de,#404a58, +|16: 0-0 d,#708095, 1-4 d,#35383e, 5-6 #868991,#35383e, 7-99 #bfc3cc,#35383e, +|17: 0-0 d,#3d4047, 1-4 d,#35383e, 5-6 #868991,#35383e, 7-99 #bfc3cc,#35383e, |18: 0-0 d,#3d4047, 1-3 d,#35383e, 4-6 #868991,#35383e, 7-99 #bfc3cc,#35383e, |19: 0-0 d,#3d4047, 1-3 d,#35383e, 4-6 #868991,#35383e, 7-99 #bfc3cc,#35383e, |20: 0-0 d,#3d4047, 1-3 d,#35383e, 4-6 #868991,#35383e, 7-99 #bfc3cc,#35383e, @@ -627,6 +620,7 @@ |29: 0-0 d,#3d4047, 1-3 d,#35383e, 4-6 #868991,#35383e, 7-99 #bfc3cc,#35383e, |30: 0-1 d,#2a2d34, 2-99 #7e818a,#2a2d34, == snap step-lagoon grid=100x31 cursor=7,26 +|16: 9 Theme sepia |17: 10 Theme paper |18: 11 Theme daybreak |19: 12 Theme dusk @@ -643,23 +637,23 @@ |30: ✓ /tmp/pardes-snap/themesel/cwd/+Themes Theme 33 messages · SPC h m == style step-lagoon grid=100x31 |0: 0-1 d,#29443f, 2-99 #bbd7cb,#29443f, -|1: 0-1 d,#7e6d67, 2-99 #c7e3d7,#3a6154, -|2: 0-1 d,#48766a, 2-31 #bbd7cb,#29443f, 32-37 #e4c2ec,#29443f, 38-99 #bbd7cb,#29443f, +|1: 0-1 d,#48766a, 2-31 #bbd7cb,#29443f, 32-37 #e4c2ec,#29443f, 38-99 #bbd7cb,#29443f, +|2: 0-0 d,#6e9b8b, 1-4 d,#34464c, 5-6 #7b9194,#34464c, 7-99 #bac9ce,#34464c, |3: 0-0 d,#6e9b8b, 1-4 d,#34464c, 5-6 #7b9194,#34464c, 7-99 #bac9ce,#34464c, |4: 0-0 d,#6e9b8b, 1-4 d,#34464c, 5-6 #7b9194,#34464c, 7-99 #bac9ce,#34464c, |5: 0-0 d,#6e9b8b, 1-4 d,#34464c, 5-6 #7b9194,#34464c, 7-99 #bac9ce,#34464c, -|6: 0-0 d,#6e9b8b, 1-4 d,#34464c, 5-6 #7b9194,#34464c, 7-99 #bac9ce,#34464c, +|6: 0-0 d,#3a4c50, 1-4 d,#34464c, 5-6 #7b9194,#34464c, 7-99 #bac9ce,#34464c, |7: 0-0 d,#3a4c50, 1-4 d,#34464c, 5-6 #7b9194,#34464c, 7-99 #bac9ce,#34464c, |8: 0-0 d,#3a4c50, 1-4 d,#34464c, 5-6 #7b9194,#34464c, 7-99 #bac9ce,#34464c, |9: 0-0 d,#3a4c50, 1-4 d,#34464c, 5-6 #7b9194,#34464c, 7-99 #bac9ce,#34464c, |10: 0-0 d,#3a4c50, 1-4 d,#34464c, 5-6 #7b9194,#34464c, 7-99 #bac9ce,#34464c, -|11: 0-0 d,#3a4c50, 1-4 d,#34464c, 5-6 #7b9194,#34464c, 7-99 #bac9ce,#34464c, +|11: 0-0 d,#3a4c50, 1-3 d,#34464c, 4-6 #7b9194,#34464c, 7-99 #bac9ce,#34464c, |12: 0-0 d,#3a4c50, 1-3 d,#34464c, 4-6 #7b9194,#34464c, 7-99 #bac9ce,#34464c, |13: 0-0 d,#3a4c50, 1-3 d,#34464c, 4-6 #7b9194,#34464c, 7-99 #bac9ce,#34464c, |14: 0-0 d,#3a4c50, 1-3 d,#34464c, 4-6 #7b9194,#34464c, 7-99 #bac9ce,#34464c, -|15: 0-0 d,#3a4c50, 1-3 d,#34464c, 4-6 #7b9194,#34464c, 7-99 #bac9ce,#34464c, -|16: 0-1 d,#81cfb7, 2-31 #c7e3d7,#3a6154, 32-39 #f7defc,#3a6154, 40-99 #c7e3d7,#3a6154, -|17: 0-0 d,#6e9b8b, 1-3 d,#34464c, 4-6 #7b9194,#34464c, 7-99 #bac9ce,#34464c, +|15: 0-1 d,#81cfb7, 2-31 #c7e3d7,#3a6154, 32-39 #f7defc,#3a6154, 40-99 #c7e3d7,#3a6154, +|16: 0-0 d,#6e9b8b, 1-4 d,#34464c, 5-6 #7b9194,#34464c, 7-99 #bac9ce,#34464c, +|17: 0-0 d,#3a4c50, 1-3 d,#34464c, 4-6 #7b9194,#34464c, 7-99 #bac9ce,#34464c, |18: 0-0 d,#3a4c50, 1-3 d,#34464c, 4-6 #7b9194,#34464c, 7-99 #bac9ce,#34464c, |19: 0-0 d,#3a4c50, 1-3 d,#34464c, 4-6 #7b9194,#34464c, 7-99 #bac9ce,#34464c, |20: 0-0 d,#3a4c50, 1-3 d,#34464c, 4-6 #7b9194,#34464c, 7-99 #bac9ce,#34464c, @@ -674,6 +668,7 @@ |29: 0-0 d,#3a4c50, 1-3 d,#34464c, 4-6 #7b9194,#34464c, 7-99 #bac9ce,#34464c, |30: 0-1 d,#29443f, 2-99 #809c93,#29443f, == snap step-solarium grid=100x31 cursor=7,26 +|16: 10 Theme paper |17: 11 Theme daybreak |18: 12 Theme dusk |19: 13 Theme lapis @@ -690,23 +685,23 @@ |30: ✓ /tmp/pardes-snap/themesel/cwd/+Themes Theme 35 messages · SPC h m == style step-solarium grid=100x31 |0: 0-1 d,#123f43, 2-99 #c7d4bd,#123f43, -|1: 0-1 d,#326c87, 2-99 #d3e0c9,#2f5c5c, -|2: 0-1 d,#647359, 2-31 #c7d4bd,#123f43, 32-37 #e9c1e0,#123f43, 38-99 #c7d4bd,#123f43, +|1: 0-1 d,#647359, 2-31 #c7d4bd,#123f43, 32-37 #e9c1e0,#123f43, 38-99 #c7d4bd,#123f43, +|2: 0-0 d,#65978c, 1-4 d,#173e45, 5-6 #647e7c,#173e45, 7-99 #a7b7ae,#173e45, |3: 0-0 d,#65978c, 1-4 d,#173e45, 5-6 #647e7c,#173e45, 7-99 #a7b7ae,#173e45, |4: 0-0 d,#65978c, 1-4 d,#173e45, 5-6 #647e7c,#173e45, 7-99 #a7b7ae,#173e45, |5: 0-0 d,#65978c, 1-4 d,#173e45, 5-6 #647e7c,#173e45, 7-99 #a7b7ae,#173e45, -|6: 0-0 d,#65978c, 1-4 d,#173e45, 5-6 #647e7c,#173e45, 7-99 #a7b7ae,#173e45, +|6: 0-0 d,#1c454c, 1-4 d,#173e45, 5-6 #647e7c,#173e45, 7-99 #a7b7ae,#173e45, |7: 0-0 d,#1c454c, 1-4 d,#173e45, 5-6 #647e7c,#173e45, 7-99 #a7b7ae,#173e45, |8: 0-0 d,#1c454c, 1-4 d,#173e45, 5-6 #647e7c,#173e45, 7-99 #a7b7ae,#173e45, |9: 0-0 d,#1c454c, 1-4 d,#173e45, 5-6 #647e7c,#173e45, 7-99 #a7b7ae,#173e45, |10: 0-0 d,#1c454c, 1-4 d,#173e45, 5-6 #647e7c,#173e45, 7-99 #a7b7ae,#173e45, -|11: 0-0 d,#1c454c, 1-4 d,#173e45, 5-6 #647e7c,#173e45, 7-99 #a7b7ae,#173e45, +|11: 0-0 d,#1c454c, 1-3 d,#173e45, 4-6 #647e7c,#173e45, 7-99 #a7b7ae,#173e45, |12: 0-0 d,#1c454c, 1-3 d,#173e45, 4-6 #647e7c,#173e45, 7-99 #a7b7ae,#173e45, |13: 0-0 d,#1c454c, 1-3 d,#173e45, 4-6 #647e7c,#173e45, 7-99 #a7b7ae,#173e45, |14: 0-0 d,#1c454c, 1-3 d,#173e45, 4-6 #647e7c,#173e45, 7-99 #a7b7ae,#173e45, -|15: 0-0 d,#1c454c, 1-3 d,#173e45, 4-6 #647e7c,#173e45, 7-99 #a7b7ae,#173e45, -|16: 0-1 d,#e1c266, 2-31 #d3e0c9,#2f5c5c, 32-39 #fde2f7,#2f5c5c, 40-99 #d3e0c9,#2f5c5c, -|17: 0-0 d,#65978c, 1-3 d,#173e45, 4-6 #647e7c,#173e45, 7-99 #a7b7ae,#173e45, +|15: 0-1 d,#e1c266, 2-31 #d3e0c9,#2f5c5c, 32-39 #fde2f7,#2f5c5c, 40-99 #d3e0c9,#2f5c5c, +|16: 0-0 d,#65978c, 1-3 d,#173e45, 4-6 #647e7c,#173e45, 7-99 #a7b7ae,#173e45, +|17: 0-0 d,#1c454c, 1-3 d,#173e45, 4-6 #647e7c,#173e45, 7-99 #a7b7ae,#173e45, |18: 0-0 d,#1c454c, 1-3 d,#173e45, 4-6 #647e7c,#173e45, 7-99 #a7b7ae,#173e45, |19: 0-0 d,#1c454c, 1-3 d,#173e45, 4-6 #647e7c,#173e45, 7-99 #a7b7ae,#173e45, |20: 0-0 d,#1c454c, 1-3 d,#173e45, 4-99 #647e7c,#173e45, @@ -721,6 +716,7 @@ |29: 0-0 d,#1c454c, 1-3 d,#173e45, 4-6 #647e7c,#173e45, 7-99 #a7b7ae,#173e45, |30: 0-1 d,#123f43, 2-99 #7b9489,#123f43, == snap step-spectrum grid=100x31 cursor=7,26 +|16: 11 Theme daybreak |17: 12 Theme dusk |18: 13 Theme lapis |19: 14 @@ -737,23 +733,23 @@ |30: ✓ /tmp/pardes-snap/themesel/cwd/+Themes Theme 37 messages · SPC h m == style step-spectrum grid=100x31 |0: 0-1 d,#3b3830, 2-99 #ddd8bb,#3b3830, -|1: 0-1 d,#484169, 2-99 #e9e4c7,#5a523a, -|2: 0-1 d,#706443, 2-31 #ddd8bb,#3b3830, 32-37 #c5d7ff,#3b3830, 38-99 #ddd8bb,#3b3830, +|1: 0-1 d,#706443, 2-31 #ddd8bb,#3b3830, 32-37 #c5d7ff,#3b3830, 38-99 #ddd8bb,#3b3830, +|2: 0-0 d,#948d6f, 1-4 d,#100e11, 5-6 #68616b,#100e11, 7-99 #fcfcfa,#100e11, |3: 0-0 d,#948d6f, 1-4 d,#100e11, 5-6 #68616b,#100e11, 7-99 #fcfcfa,#100e11, |4: 0-0 d,#948d6f, 1-4 d,#100e11, 5-6 #68616b,#100e11, 7-99 #fcfcfa,#100e11, |5: 0-0 d,#948d6f, 1-4 d,#100e11, 5-6 #68616b,#100e11, 7-99 #fcfcfa,#100e11, -|6: 0-0 d,#948d6f, 1-4 d,#100e11, 5-6 #68616b,#100e11, 7-99 #fcfcfa,#100e11, +|6: 0-0 d,#211d23, 1-4 d,#100e11, 5-6 #68616b,#100e11, 7-99 #fcfcfa,#100e11, |7: 0-0 d,#211d23, 1-4 d,#100e11, 5-6 #68616b,#100e11, 7-99 #fcfcfa,#100e11, |8: 0-0 d,#211d23, 1-4 d,#100e11, 5-6 #68616b,#100e11, 7-99 #fcfcfa,#100e11, |9: 0-0 d,#211d23, 1-4 d,#100e11, 5-6 #68616b,#100e11, 7-99 #fcfcfa,#100e11, |10: 0-0 d,#211d23, 1-4 d,#100e11, 5-6 #68616b,#100e11, 7-99 #fcfcfa,#100e11, -|11: 0-0 d,#211d23, 1-4 d,#100e11, 5-6 #68616b,#100e11, 7-99 #fcfcfa,#100e11, +|11: 0-0 d,#211d23, 1-3 d,#100e11, 4-6 #68616b,#100e11, 7-99 #fcfcfa,#100e11, |12: 0-0 d,#211d23, 1-3 d,#100e11, 4-6 #68616b,#100e11, 7-99 #fcfcfa,#100e11, |13: 0-0 d,#211d23, 1-3 d,#100e11, 4-6 #68616b,#100e11, 7-99 #fcfcfa,#100e11, |14: 0-0 d,#211d23, 1-3 d,#100e11, 4-6 #68616b,#100e11, 7-99 #fcfcfa,#100e11, -|15: 0-0 d,#211d23, 1-3 d,#100e11, 4-6 #68616b,#100e11, 7-99 #fcfcfa,#100e11, -|16: 0-1 d,#ffd866, 2-31 #e9e4c7,#5a523a, 32-39 #fbd8dd,#5a523a, 40-99 #e9e4c7,#5a523a, -|17: 0-0 d,#948d6f, 1-3 d,#100e11, 4-6 #68616b,#100e11, 7-99 #fcfcfa,#100e11, +|15: 0-1 d,#ffd866, 2-31 #e9e4c7,#5a523a, 32-39 #fbd8dd,#5a523a, 40-99 #e9e4c7,#5a523a, +|16: 0-0 d,#948d6f, 1-3 d,#100e11, 4-6 #68616b,#100e11, 7-99 #fcfcfa,#100e11, +|17: 0-0 d,#211d23, 1-3 d,#100e11, 4-6 #68616b,#100e11, 7-99 #fcfcfa,#100e11, |18: 0-0 d,#211d23, 1-3 d,#100e11, 4-6 #68616b,#100e11, 7-99 #fcfcfa,#100e11, |19: 0-0 d,#211d23, 1-3 d,#100e11, 4-99 #68616b,#100e11, |20: 0-0 d,#211d23, 1-3 d,#100e11, 4-6 #68616b,#100e11, 7-99 #fcfcfa,#100e11, @@ -768,6 +764,7 @@ |29: 0-0 d,#211d23, 1-3 d,#100e11, 4-99 #68616b,#100e11, |30: 0-1 d,#3b3830, 2-99 #918d7a,#3b3830, == snap step-harvest grid=100x31 cursor=7,26 +|16: 12 Theme dusk |17: 13 Theme lapis |18: 14 |19: 15 # Pardes, after a classic @@ -784,23 +781,23 @@ |30: ✓ /tmp/pardes-snap/themesel/cwd/+Themes Theme 39 messages · SPC h m == style step-harvest grid=100x31 |0: 0-1 d,#343b2e, 2-99 #d5d8b8,#343b2e, -|1: 0-1 d,#6a3728, 2-99 #e1e4c4,#4a583e, -|2: 0-1 d,#6b674b, 2-31 #d5d8b8,#343b2e, 32-37 #badbeb,#343b2e, 38-99 #d5d8b8,#343b2e, +|1: 0-1 d,#6b674b, 2-31 #d5d8b8,#343b2e, 32-37 #badbeb,#343b2e, 38-99 #d5d8b8,#343b2e, +|2: 0-0 d,#888e5e, 1-4 d,#100e0b, 5-6 #6a6456,#100e0b, 7-99 #f3f2cc,#100e0b, |3: 0-0 d,#888e5e, 1-4 d,#100e0b, 5-6 #6a6456,#100e0b, 7-99 #f3f2cc,#100e0b, |4: 0-0 d,#888e5e, 1-4 d,#100e0b, 5-6 #6a6456,#100e0b, 7-99 #f3f2cc,#100e0b, |5: 0-0 d,#888e5e, 1-4 d,#100e0b, 5-6 #6a6456,#100e0b, 7-99 #f3f2cc,#100e0b, -|6: 0-0 d,#888e5e, 1-4 d,#100e0b, 5-6 #6a6456,#100e0b, 7-99 #f3f2cc,#100e0b, +|6: 0-0 d,#201d17, 1-4 d,#100e0b, 5-6 #6a6456,#100e0b, 7-99 #f3f2cc,#100e0b, |7: 0-0 d,#201d17, 1-4 d,#100e0b, 5-6 #6a6456,#100e0b, 7-99 #f3f2cc,#100e0b, |8: 0-0 d,#201d17, 1-4 d,#100e0b, 5-6 #6a6456,#100e0b, 7-99 #f3f2cc,#100e0b, |9: 0-0 d,#201d17, 1-4 d,#100e0b, 5-6 #6a6456,#100e0b, 7-99 #f3f2cc,#100e0b, |10: 0-0 d,#201d17, 1-4 d,#100e0b, 5-6 #6a6456,#100e0b, 7-99 #f3f2cc,#100e0b, -|11: 0-0 d,#201d17, 1-4 d,#100e0b, 5-6 #6a6456,#100e0b, 7-99 #f3f2cc,#100e0b, +|11: 0-0 d,#201d17, 1-3 d,#100e0b, 4-6 #6a6456,#100e0b, 7-99 #f3f2cc,#100e0b, |12: 0-0 d,#201d17, 1-3 d,#100e0b, 4-6 #6a6456,#100e0b, 7-99 #f3f2cc,#100e0b, |13: 0-0 d,#201d17, 1-3 d,#100e0b, 4-6 #6a6456,#100e0b, 7-99 #f3f2cc,#100e0b, |14: 0-0 d,#201d17, 1-3 d,#100e0b, 4-6 #6a6456,#100e0b, 7-99 #f3f2cc,#100e0b, -|15: 0-0 d,#201d17, 1-3 d,#100e0b, 4-6 #6a6456,#100e0b, 7-99 #f3f2cc,#100e0b, -|16: 0-1 d,#d8bd83, 2-31 #e1e4c4,#4a583e, 32-39 #fddbd2,#4a583e, 40-99 #e1e4c4,#4a583e, -|17: 0-0 d,#888e5e, 1-3 d,#100e0b, 4-6 #6a6456,#100e0b, 7-99 #f3f2cc,#100e0b, +|15: 0-1 d,#d8bd83, 2-31 #e1e4c4,#4a583e, 32-39 #fddbd2,#4a583e, 40-99 #e1e4c4,#4a583e, +|16: 0-0 d,#888e5e, 1-3 d,#100e0b, 4-6 #6a6456,#100e0b, 7-99 #f3f2cc,#100e0b, +|17: 0-0 d,#201d17, 1-3 d,#100e0b, 4-6 #6a6456,#100e0b, 7-99 #f3f2cc,#100e0b, |18: 0-0 d,#201d17, 1-3 d,#100e0b, 4-99 #6a6456,#100e0b, |19: 0-0 d,#201d17, 1-3 d,#100e0b, 4-6 #6a6456,#100e0b, 7-99 #f3f2cc,#100e0b, |20: 0-0 d,#201d17, 1-3 d,#100e0b, 4-6 #6a6456,#100e0b, 7-99 #f3f2cc,#100e0b, @@ -815,6 +812,7 @@ |29: 0-0 d,#201d17, 1-3 d,#100e0b, 4-6 #6a6456,#100e0b, 7-99 #f3f2cc,#100e0b, |30: 0-1 d,#343b2e, 2-99 #8b9079,#343b2e, == snap step-clay grid=100x31 cursor=7,26 +|16: 13 Theme lapis |17: 14 |18: 15 # Pardes, after a classic |19: 16 Theme forge @@ -831,23 +829,23 @@ |30: ✓ /tmp/pardes-snap/themesel/cwd/+Themes Theme 41 messages · SPC h m == style step-clay grid=100x31 |0: 0-1 d,#343f36, 2-99 #d7d6b6,#343f36, -|1: 0-1 d,#623c45, 2-99 #e3e2c2,#4d5c48, -|2: 0-1 d,#54714e, 2-31 #d7d6b6,#343f36, 32-37 #aae0e0,#343f36, 38-99 #d7d6b6,#343f36, +|1: 0-1 d,#54714e, 2-31 #d7d6b6,#343f36, 32-37 #aae0e0,#343f36, 38-99 #d7d6b6,#343f36, +|2: 0-0 d,#8c9467, 1-4 d,#10100e, 5-6 #696455,#10100e, 7-99 #f3e5bc,#10100e, |3: 0-0 d,#8c9467, 1-4 d,#10100e, 5-6 #696455,#10100e, 7-99 #f3e5bc,#10100e, |4: 0-0 d,#8c9467, 1-4 d,#10100e, 5-6 #696455,#10100e, 7-99 #f3e5bc,#10100e, |5: 0-0 d,#8c9467, 1-4 d,#10100e, 5-6 #696455,#10100e, 7-99 #f3e5bc,#10100e, -|6: 0-0 d,#8c9467, 1-4 d,#10100e, 5-6 #696455,#10100e, 7-99 #f3e5bc,#10100e, +|6: 0-0 d,#222119, 1-4 d,#10100e, 5-6 #696455,#10100e, 7-99 #f3e5bc,#10100e, |7: 0-0 d,#222119, 1-4 d,#10100e, 5-6 #696455,#10100e, 7-99 #f3e5bc,#10100e, |8: 0-0 d,#222119, 1-4 d,#10100e, 5-6 #696455,#10100e, 7-99 #f3e5bc,#10100e, |9: 0-0 d,#222119, 1-4 d,#10100e, 5-6 #696455,#10100e, 7-99 #f3e5bc,#10100e, |10: 0-0 d,#222119, 1-4 d,#10100e, 5-6 #696455,#10100e, 7-99 #f3e5bc,#10100e, -|11: 0-0 d,#222119, 1-4 d,#10100e, 5-6 #696455,#10100e, 7-99 #f3e5bc,#10100e, +|11: 0-0 d,#222119, 1-3 d,#10100e, 4-6 #696455,#10100e, 7-99 #f3e5bc,#10100e, |12: 0-0 d,#222119, 1-3 d,#10100e, 4-6 #696455,#10100e, 7-99 #f3e5bc,#10100e, |13: 0-0 d,#222119, 1-3 d,#10100e, 4-6 #696455,#10100e, 7-99 #f3e5bc,#10100e, |14: 0-0 d,#222119, 1-3 d,#10100e, 4-6 #696455,#10100e, 7-99 #f3e5bc,#10100e, -|15: 0-0 d,#222119, 1-3 d,#10100e, 4-6 #696455,#10100e, 7-99 #f3e5bc,#10100e, -|16: 0-1 d,#8ac874, 2-31 #e3e2c2,#4d5c48, 32-39 #ffddd3,#4d5c48, 40-99 #e3e2c2,#4d5c48, -|17: 0-0 d,#8c9467, 1-3 d,#10100e, 4-99 #696455,#10100e, +|15: 0-1 d,#8ac874, 2-31 #e3e2c2,#4d5c48, 32-39 #ffddd3,#4d5c48, 40-99 #e3e2c2,#4d5c48, +|16: 0-0 d,#8c9467, 1-3 d,#10100e, 4-6 #696455,#10100e, 7-99 #f3e5bc,#10100e, +|17: 0-0 d,#222119, 1-3 d,#10100e, 4-99 #696455,#10100e, |18: 0-0 d,#222119, 1-3 d,#10100e, 4-6 #696455,#10100e, 7-99 #f3e5bc,#10100e, |19: 0-0 d,#222119, 1-3 d,#10100e, 4-6 #696455,#10100e, 7-99 #f3e5bc,#10100e, |20: 0-0 d,#222119, 1-3 d,#10100e, 4-6 #696455,#10100e, 7-99 #f3e5bc,#10100e, @@ -862,6 +860,7 @@ |29: 0-0 d,#222119, 1-3 d,#10100e, 4-6 #696455,#10100e, 7-99 #f3e5bc,#10100e, |30: 0-1 d,#343f36, 2-99 #90947e,#343f36, == snap step-acme grid=100x31 cursor=7,26 +|16: 16 Theme forge |17: 17 Theme forge_black |18: 18 Theme forge_soft |19: 19 Theme lagoon @@ -878,23 +877,23 @@ |30: ✓ /tmp/pardes-snap/themesel/cwd/+Themes Theme 43 messages · SPC h m == style step-acme grid=100x31 |0: 0-1 d,#eaffff, 2-99 #000000,#eaffff, -|1: 0-1 d,#b0b3d9, 2-99 #000000,#eaffff, -|2: 0-1 d,#b9c3e5, 2-31 #000000,#eaffff, 32-37 #000099,#eaffff, 38-99 #000000,#eaffff, +|1: 0-1 d,#b9c3e5, 2-31 #000000,#eaffff, 32-37 #000099,#eaffff, 38-99 #000000,#eaffff, +|2: 0-4 d,#ffffea, 5-6 #999980,#ffffea, 7-99 #000000,#ffffea, |3: 0-4 d,#ffffea, 5-6 #999980,#ffffea, 7-99 #000000,#ffffea, |4: 0-4 d,#ffffea, 5-6 #999980,#ffffea, 7-99 #000000,#ffffea, |5: 0-4 d,#ffffea, 5-6 #999980,#ffffea, 7-99 #000000,#ffffea, -|6: 0-4 d,#ffffea, 5-6 #999980,#ffffea, 7-99 #000000,#ffffea, +|6: 0-0 d,#99994c, 1-4 d,#ffffea, 5-6 #999980,#ffffea, 7-99 #000000,#ffffea, |7: 0-0 d,#99994c, 1-4 d,#ffffea, 5-6 #999980,#ffffea, 7-99 #000000,#ffffea, |8: 0-0 d,#99994c, 1-4 d,#ffffea, 5-6 #999980,#ffffea, 7-99 #000000,#ffffea, |9: 0-0 d,#99994c, 1-4 d,#ffffea, 5-6 #999980,#ffffea, 7-99 #000000,#ffffea, |10: 0-0 d,#99994c, 1-4 d,#ffffea, 5-6 #999980,#ffffea, 7-99 #000000,#ffffea, -|11: 0-0 d,#99994c, 1-4 d,#ffffea, 5-6 #999980,#ffffea, 7-99 #000000,#ffffea, +|11: 0-0 d,#99994c, 1-3 d,#ffffea, 4-6 #999980,#ffffea, 7-99 #000000,#ffffea, |12: 0-0 d,#99994c, 1-3 d,#ffffea, 4-6 #999980,#ffffea, 7-99 #000000,#ffffea, |13: 0-0 d,#99994c, 1-3 d,#ffffea, 4-6 #999980,#ffffea, 7-99 #000000,#ffffea, |14: 0-0 d,#99994c, 1-3 d,#ffffea, 4-6 #999980,#ffffea, 7-99 #000000,#ffffea, -|15: 0-0 d,#99994c, 1-3 d,#ffffea, 4-6 #999980,#ffffea, 7-99 #000000,#ffffea, -|16: 0-1 d,#7b7abd, 2-31 #000000,#eaffff, 32-39 #02000f,#eaffff, 40-99 #000000,#eaffff, -|17: 0-3 d,#ffffea, 4-6 #999980,#ffffea, 7-99 #000000,#ffffea, +|15: 0-1 d,#7b7abd, 2-31 #000000,#eaffff, 32-39 #02000f,#eaffff, 40-99 #000000,#eaffff, +|16: 0-3 d,#ffffea, 4-6 #999980,#ffffea, 7-99 #000000,#ffffea, +|17: 0-0 d,#99994c, 1-3 d,#ffffea, 4-6 #999980,#ffffea, 7-99 #000000,#ffffea, |18: 0-0 d,#99994c, 1-3 d,#ffffea, 4-6 #999980,#ffffea, 7-99 #000000,#ffffea, |19: 0-0 d,#99994c, 1-3 d,#ffffea, 4-6 #999980,#ffffea, 7-99 #000000,#ffffea, |20: 0-0 d,#99994c, 1-3 d,#ffffea, 4-6 #999980,#ffffea, 7-99 #000000,#ffffea, @@ -909,6 +908,7 @@ |29: 0-0 d,#99994c, 1-3 d,#ffffea, 4-6 #999980,#ffffea, 7-99 #000000,#ffffea, |30: 0-1 d,#eaffff, 2-99 #7a8686,#eaffff, == snap step-atelier grid=100x31 cursor=7,26 +|16: 17 Theme forge_black |17: 18 Theme forge_soft |18: 19 Theme lagoon |19: 20 Theme solarium @@ -925,23 +925,23 @@ |30: ✓ /tmp/pardes-snap/themesel/cwd/+Themes Theme 45 messages · SPC h m == style step-atelier grid=100x31 |0: 0-1 d,#e4f0ed, 2-99 #3d6055,#e4f0ed, -|1: 0-1 d,#cfaf8b, 2-99 #35584d,#bfdcce, -|2: 0-1 d,#85b1a2, 2-31 #3d6055,#e4f0ed, 32-37 #6e4774,#e4f0ed, 38-99 #3d6055,#e4f0ed, +|1: 0-1 d,#85b1a2, 2-31 #3d6055,#e4f0ed, 32-37 #6e4774,#e4f0ed, 38-99 #3d6055,#e4f0ed, +|2: 0-0 d,#9fae76, 1-4 d,#fffdeb, 5-6 #909880,#fffdeb, 7-99 #293f35,#fffdeb, |3: 0-0 d,#9fae76, 1-4 d,#fffdeb, 5-6 #909880,#fffdeb, 7-99 #293f35,#fffdeb, |4: 0-0 d,#9fae76, 1-4 d,#fffdeb, 5-6 #909880,#fffdeb, 7-99 #293f35,#fffdeb, |5: 0-0 d,#9fae76, 1-4 d,#fffdeb, 5-6 #909880,#fffdeb, 7-99 #293f35,#fffdeb, -|6: 0-0 d,#9fae76, 1-4 d,#fffdeb, 5-6 #909880,#fffdeb, 7-99 #293f35,#fffdeb, +|6: 0-0 d,#eeeccf, 1-4 d,#fffdeb, 5-6 #909880,#fffdeb, 7-99 #293f35,#fffdeb, |7: 0-0 d,#eeeccf, 1-4 d,#fffdeb, 5-6 #909880,#fffdeb, 7-99 #293f35,#fffdeb, |8: 0-0 d,#eeeccf, 1-4 d,#fffdeb, 5-6 #909880,#fffdeb, 7-99 #293f35,#fffdeb, |9: 0-0 d,#eeeccf, 1-4 d,#fffdeb, 5-6 #909880,#fffdeb, 7-99 #293f35,#fffdeb, |10: 0-0 d,#eeeccf, 1-4 d,#fffdeb, 5-6 #909880,#fffdeb, 7-99 #293f35,#fffdeb, -|11: 0-0 d,#eeeccf, 1-4 d,#fffdeb, 5-6 #909880,#fffdeb, 7-99 #293f35,#fffdeb, +|11: 0-0 d,#eeeccf, 1-3 d,#fffdeb, 4-6 #909880,#fffdeb, 7-99 #293f35,#fffdeb, |12: 0-0 d,#eeeccf, 1-3 d,#fffdeb, 4-6 #909880,#fffdeb, 7-99 #293f35,#fffdeb, |13: 0-0 d,#eeeccf, 1-3 d,#fffdeb, 4-6 #909880,#fffdeb, 7-99 #293f35,#fffdeb, |14: 0-0 d,#eeeccf, 1-3 d,#fffdeb, 4-6 #909880,#fffdeb, 7-99 #293f35,#fffdeb, -|15: 0-0 d,#eeeccf, 1-3 d,#fffdeb, 4-6 #909880,#fffdeb, 7-99 #293f35,#fffdeb, -|16: 0-1 d,#36826b, 2-31 #35584d,#bfdcce, 32-39 #542e5a,#bfdcce, 40-99 #35584d,#bfdcce, -|17: 0-0 d,#9fae76, 1-3 d,#fffdeb, 4-6 #909880,#fffdeb, 7-99 #293f35,#fffdeb, +|15: 0-1 d,#36826b, 2-31 #35584d,#bfdcce, 32-39 #542e5a,#bfdcce, 40-99 #35584d,#bfdcce, +|16: 0-0 d,#9fae76, 1-3 d,#fffdeb, 4-6 #909880,#fffdeb, 7-99 #293f35,#fffdeb, +|17: 0-0 d,#eeeccf, 1-3 d,#fffdeb, 4-6 #909880,#fffdeb, 7-99 #293f35,#fffdeb, |18: 0-0 d,#eeeccf, 1-3 d,#fffdeb, 4-6 #909880,#fffdeb, 7-99 #293f35,#fffdeb, |19: 0-0 d,#eeeccf, 1-3 d,#fffdeb, 4-6 #909880,#fffdeb, 7-99 #293f35,#fffdeb, |20: 0-0 d,#eeeccf, 1-3 d,#fffdeb, 4-6 #909880,#fffdeb, 7-99 #293f35,#fffdeb, @@ -956,6 +956,7 @@ |29: 0-0 d,#eeeccf, 1-3 d,#fffdeb, 4-6 #909880,#fffdeb, 7-99 #293f35,#fffdeb, |30: 0-1 d,#e4f0ed, 2-99 #66837a,#e4f0ed, == snap step-dark-plus grid=100x31 cursor=7,26 +|16: 20 Theme solarium |17: 21 Theme spectrum |18: 22 Theme harvest |19: 23 Theme clay @@ -972,23 +973,23 @@ |30: ✓ /tmp/pardes-snap/themesel/cwd/+Themes Theme 47 messages · SPC h m == style step-dark-plus grid=100x31 |0: 0-1 d,#007acc, 2-99 #ffffff,#007acc, -|1: 0-1 d,#34564e, 2-99 #ffffff,#1e1e1e, -|2: 0-1 d,#2a6da7, 2-31 #a7a7a7,#3c3c3c, 32-37 #68aee9,#3c3c3c, 38-99 #a7a7a7,#3c3c3c, +|1: 0-1 d,#2a6da7, 2-31 #a7a7a7,#3c3c3c, 32-37 #68aee9,#3c3c3c, 38-99 #a7a7a7,#3c3c3c, +|2: 0-0 d,#424242, 1-4 d,#1e1e1e, 5-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, |3: 0-0 d,#424242, 1-4 d,#1e1e1e, 5-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, |4: 0-0 d,#424242, 1-4 d,#1e1e1e, 5-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, |5: 0-0 d,#424242, 1-4 d,#1e1e1e, 5-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, -|6: 0-0 d,#424242, 1-4 d,#1e1e1e, 5-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, +|6: 0-4 d,#1e1e1e, 5-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, |7: 0-4 d,#1e1e1e, 5-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, |8: 0-4 d,#1e1e1e, 5-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, |9: 0-4 d,#1e1e1e, 5-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, |10: 0-4 d,#1e1e1e, 5-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, -|11: 0-4 d,#1e1e1e, 5-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, +|11: 0-3 d,#1e1e1e, 4-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, |12: 0-3 d,#1e1e1e, 4-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, |13: 0-3 d,#1e1e1e, 4-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, |14: 0-3 d,#1e1e1e, 4-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, -|15: 0-3 d,#1e1e1e, 4-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, -|16: 0-1 d,#4dabff, 2-31 #ffffff,#1e1e1e, 32-39 #cbe5fc,#1e1e1e, 40-99 #ffffff,#1e1e1e, -|17: 0-0 d,#424242, 1-3 d,#1e1e1e, 4-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, +|15: 0-1 d,#4dabff, 2-31 #ffffff,#1e1e1e, 32-39 #cbe5fc,#1e1e1e, 40-99 #ffffff,#1e1e1e, +|16: 0-0 d,#424242, 1-3 d,#1e1e1e, 4-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, +|17: 0-3 d,#1e1e1e, 4-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, |18: 0-3 d,#1e1e1e, 4-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, |19: 0-3 d,#1e1e1e, 4-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, |20: 0-3 d,#1e1e1e, 4-99 #858585,#1e1e1e, @@ -1003,6 +1004,7 @@ |29: 0-3 d,#1e1e1e, 4-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, |30: 0-1 d,#007acc, 2-99 #d3e5f7,#007acc, == snap step-solarized-dark grid=100x31 cursor=7,26 +|16: 23 Theme clay |17: 24 |18: 25 # acme |19: 26 Theme acme @@ -1019,23 +1021,23 @@ |30: ✓ /tmp/pardes-snap/themesel/cwd/+Themes Theme 49 messages · SPC h m == style step-solarized-dark grid=100x31 |0: 0-1 d,#657b83, 2-99 #01090b,#657b83, -|1: 0-1 d,#3f5d37, 2-99 #073642,#93a1a1, -|2: 0-1 d,#024d7c, 2-31 #01090b,#657b83, 32-37 #121600,#657b83, 38-99 #01090b,#657b83, +|1: 0-1 d,#024d7c, 2-31 #01090b,#657b83, 32-37 #121600,#657b83, 38-99 #01090b,#657b83, +|2: 0-0 d,#839496, 1-4 d,#002b36, 5-6 #586e75,#002b36, 7-99 #839496,#002b36, |3: 0-0 d,#839496, 1-4 d,#002b36, 5-6 #586e75,#002b36, 7-99 #839496,#002b36, |4: 0-0 d,#839496, 1-4 d,#002b36, 5-6 #586e75,#002b36, 7-99 #839496,#002b36, |5: 0-0 d,#839496, 1-4 d,#002b36, 5-6 #586e75,#002b36, 7-99 #839496,#002b36, -|6: 0-0 d,#839496, 1-4 d,#002b36, 5-6 #586e75,#002b36, 7-99 #839496,#002b36, +|6: 0-0 d,#eee8d5, 1-4 d,#002b36, 5-6 #586e75,#002b36, 7-99 #839496,#002b36, |7: 0-0 d,#eee8d5, 1-4 d,#002b36, 5-6 #586e75,#002b36, 7-99 #839496,#002b36, |8: 0-0 d,#eee8d5, 1-4 d,#002b36, 5-6 #586e75,#002b36, 7-99 #839496,#002b36, |9: 0-0 d,#eee8d5, 1-4 d,#002b36, 5-6 #586e75,#002b36, 7-99 #839496,#002b36, |10: 0-0 d,#eee8d5, 1-4 d,#002b36, 5-6 #586e75,#002b36, 7-99 #839496,#002b36, -|11: 0-0 d,#eee8d5, 1-4 d,#002b36, 5-6 #586e75,#002b36, 7-99 #839496,#002b36, +|11: 0-0 d,#eee8d5, 1-3 d,#002b36, 4-6 #586e75,#002b36, 7-99 #839496,#002b36, |12: 0-0 d,#eee8d5, 1-3 d,#002b36, 4-6 #586e75,#002b36, 7-99 #839496,#002b36, |13: 0-0 d,#eee8d5, 1-3 d,#002b36, 4-6 #586e75,#002b36, 7-99 #839496,#002b36, |14: 0-0 d,#eee8d5, 1-3 d,#002b36, 4-6 #586e75,#002b36, 7-99 #839496,#002b36, -|15: 0-0 d,#eee8d5, 1-3 d,#002b36, 4-6 #586e75,#002b36, 7-99 #839496,#002b36, -|16: 0-1 d,#025384, 2-31 #073642,#93a1a1, 32-39 #161b00,#93a1a1, 40-99 #073642,#93a1a1, -|17: 0-0 d,#839496, 1-3 d,#002b36, 4-99 #586e75,#002b36, +|15: 0-1 d,#025384, 2-31 #073642,#93a1a1, 32-39 #161b00,#93a1a1, 40-99 #073642,#93a1a1, +|16: 0-0 d,#839496, 1-3 d,#002b36, 4-6 #586e75,#002b36, 7-99 #839496,#002b36, +|17: 0-0 d,#eee8d5, 1-3 d,#002b36, 4-99 #586e75,#002b36, |18: 0-0 d,#eee8d5, 1-3 d,#002b36, 4-6 #586e75,#002b36, 7-99 #839496,#002b36, |19: 0-0 d,#eee8d5, 1-3 d,#002b36, 4-6 #586e75,#002b36, 7-99 #839496,#002b36, |20: 0-0 d,#eee8d5, 1-3 d,#002b36, 4-6 #586e75,#002b36, 7-99 #839496,#002b36, @@ -1053,23 +1055,23 @@ |30: ✓ /tmp/pardes-snap/themesel/cwd/+Themes Theme 51 messages · SPC h m == style step-back grid=100x31 |0: 0-1 d,#007acc, 2-99 #ffffff,#007acc, -|1: 0-1 d,#34564e, 2-99 #ffffff,#1e1e1e, -|2: 0-1 d,#2a6da7, 2-31 #a7a7a7,#3c3c3c, 32-37 #68aee9,#3c3c3c, 38-99 #a7a7a7,#3c3c3c, +|1: 0-1 d,#2a6da7, 2-31 #a7a7a7,#3c3c3c, 32-37 #68aee9,#3c3c3c, 38-99 #a7a7a7,#3c3c3c, +|2: 0-0 d,#424242, 1-4 d,#1e1e1e, 5-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, |3: 0-0 d,#424242, 1-4 d,#1e1e1e, 5-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, |4: 0-0 d,#424242, 1-4 d,#1e1e1e, 5-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, |5: 0-0 d,#424242, 1-4 d,#1e1e1e, 5-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, -|6: 0-0 d,#424242, 1-4 d,#1e1e1e, 5-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, +|6: 0-4 d,#1e1e1e, 5-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, |7: 0-4 d,#1e1e1e, 5-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, |8: 0-4 d,#1e1e1e, 5-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, |9: 0-4 d,#1e1e1e, 5-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, |10: 0-4 d,#1e1e1e, 5-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, -|11: 0-4 d,#1e1e1e, 5-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, +|11: 0-3 d,#1e1e1e, 4-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, |12: 0-3 d,#1e1e1e, 4-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, |13: 0-3 d,#1e1e1e, 4-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, |14: 0-3 d,#1e1e1e, 4-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, -|15: 0-3 d,#1e1e1e, 4-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, -|16: 0-1 d,#4dabff, 2-31 #ffffff,#1e1e1e, 32-39 #cbe5fc,#1e1e1e, 40-99 #ffffff,#1e1e1e, -|17: 0-0 d,#424242, 1-3 d,#1e1e1e, 4-99 #858585,#1e1e1e, +|15: 0-1 d,#4dabff, 2-31 #ffffff,#1e1e1e, 32-39 #cbe5fc,#1e1e1e, 40-99 #ffffff,#1e1e1e, +|16: 0-0 d,#424242, 1-3 d,#1e1e1e, 4-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, +|17: 0-3 d,#1e1e1e, 4-99 #858585,#1e1e1e, |18: 0-3 d,#1e1e1e, 4-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, |19: 0-3 d,#1e1e1e, 4-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, |20: 0-3 d,#1e1e1e, 4-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, @@ -1084,6 +1086,7 @@ |29: 0-3 d,#1e1e1e, 4-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, |30: 0-1 d,#007acc, 2-99 #d3e5f7,#007acc, == snap tail grid=100x31 cursor=7,28 +|16: 330 Theme sidra |17: 331 Theme snazzy |18: 332 Theme sonokai |19: 333 Theme spacebones_light @@ -1097,38 +1100,40 @@ |27: 341 Theme yellowed |28: 342 Theme zenburn |29: ~ -== snap picked grid=100x31 cursor=7,3 -|16: 14 line 14 -|17: 15 line 15 -|18: 16 line 16 -|19: 17 line 17 -|20: 18 line 18 -|21: 19 line 19 -|22: 20 line 20 -|23: 21 line 21 -|24: 22 line 22 -|25: 23 line 23 -|26: 24 line 24 -|27: 25 line 25 -|28: 26 line 26 -|29: 27 line 27 +== snap picked grid=100x31 cursor=7,2 +|15: 14 line 14 +|16: 15 line 15 +|17: 16 line 16 +|18: 17 line 17 +|19: 18 line 18 +|20: 19 line 19 +|21: 20 line 20 +|22: 21 line 21 +|23: 22 line 22 +|24: 23 line 23 +|25: 24 line 24 +|26: 25 line 25 +|27: 26 line 26 +|28: 27 line 27 +|29: 28 line 28 |30: ✓ /tmp/pardes-snap/themesel/cwd/+Themes Del 52 messages · SPC h m == style picked grid=100x31 -|2: 0-1 d,#4dabff, 2-31 #ffffff,#1e1e1e, 32-37 #cbe5fc,#1e1e1e, 38-99 #ffffff,#1e1e1e, -|3: 0-0 d,#424242, 1-1 d,#1e1e1e, 2-4 d,#1e1e1e,b 5-6 #c6c6c6,#1e1e1e,b 7-99 #d4d4d4,#1e1e1e, +|1: 0-1 d,#4dabff, 2-31 #ffffff,#1e1e1e, 32-37 #cbe5fc,#1e1e1e, 38-99 #ffffff,#1e1e1e, +|2: 0-0 d,#424242, 1-1 d,#1e1e1e, 2-4 d,#1e1e1e,b 5-6 #c6c6c6,#1e1e1e,b 7-99 #d4d4d4,#1e1e1e, +|6: 0-0 d,#424242, 1-4 d,#1e1e1e, 5-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, |7: 0-0 d,#424242, 1-4 d,#1e1e1e, 5-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, |8: 0-0 d,#424242, 1-4 d,#1e1e1e, 5-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, |9: 0-0 d,#424242, 1-4 d,#1e1e1e, 5-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, |10: 0-0 d,#424242, 1-4 d,#1e1e1e, 5-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, -|11: 0-0 d,#424242, 1-4 d,#1e1e1e, 5-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, +|11: 0-0 d,#424242, 1-3 d,#1e1e1e, 4-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, |12: 0-0 d,#424242, 1-3 d,#1e1e1e, 4-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, |13: 0-0 d,#424242, 1-3 d,#1e1e1e, 4-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, |14: 0-0 d,#424242, 1-3 d,#1e1e1e, 4-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, |15: 0-0 d,#424242, 1-3 d,#1e1e1e, 4-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, -|16: 0-0 d,#424242, 1-3 d,#1e1e1e, 4-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, |17: 0-0 d,#424242, 1-3 d,#1e1e1e, 4-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, |18: 0-0 d,#424242, 1-3 d,#1e1e1e, 4-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, |19: 0-0 d,#424242, 1-3 d,#1e1e1e, 4-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, +|20: 0-0 d,#424242, 1-3 d,#1e1e1e, 4-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, |21: 0-3 d,#1e1e1e, 4-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, |23: 0-3 d,#1e1e1e, 4-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, |24: 0-3 d,#1e1e1e, 4-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, diff --git a/test/snapshots/topbarexec.golden b/test/snapshots/topbarexec.golden index 5a6ebf64..9b7560a1 100644 --- a/test/snapshots/topbarexec.golden +++ b/test/snapshots/topbarexec.golden @@ -1,8 +1,8 @@ == snap selected grid=90x21 cursor=14,5 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/topbarexec/cwd Term+bash S /tmp/pardes-snap/topbarexec/cwd Term+bash S -| ave Mode Filter Collapse Del ave Mode Filter Collapse Del +| Find Grep Newcol Help Exit Debug +| New Term Joincol Delcol New Term Joincol Delcol +| /tmp/pardes-snap/topbarexec/cwd Del Term+ba /tmp/pardes-snap/topbarexec/cwd Del Term+ba +| sh sh | ls ls | zmarkfile.txt zmarkfile.txt | @@ -10,8 +10,8 @@ | | | -| /tmp/pardes-snap/topbarexec/cwd Term+bash S -| ave Mode Filter Collapse Del +| /tmp/pardes-snap/topbarexec/cwd Del Term+ba +| sh | ls | zmarkfile.txt | @@ -21,9 +21,9 @@ | | /tmp/pardes-snap/topbarexec/cwd == snap noarg-runs grid=90x21 cursor=14,5 -|1: New Term Find Grep Joincol Delcol New T╭────────────────────────────────────╮ -|2: /tmp/pardes-snap/topbarexec/cwd Term+bash S /tmp/│pardes resizes=1 │ -|3: ave Mode Filter Collapse Del ave M│theme orchard │ +|1: New Term Joincol Delcol New T╭────────────────────────────────────╮ +|2: /tmp/pardes-snap/topbarexec/cwd Del Term+ba /tmp/│pardes resizes=1 │ +|3: sh sh │theme orchard │ |4: ls ls │font default │ |5: zmarkfile.txt zmark│terms 3 cols 2 │ |6: │active #0 43x7 │ @@ -31,14 +31,14 @@ |8: │frame virtual clock │ |9: │ │ |10: │ │ -|11: /tmp/pardes-snap/topbarexec/cwd Term+bash S │ │ -|12: ave Mode Filter Collapse Del │ │ +|11: /tmp/pardes-snap/topbarexec/cwd Del Term+ba │ │ +|12: sh │ │ |13: ls ╰────────────────────────────────────╯ |20: ✓ @p1 Debug 1 message · SPC h m == snap arg-still-spliced grid=90x21 cursor=14,4 -|1: New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -|2: /tmp/pardes-snap/topbarexec/cwd Term+bash S /tmp/pardes-snap/topbarexec/cwd Term+bash S -|3: ave Mode Filter Collapse Del ave Mode Filter Collapse Del +|1: New Term Joincol Delcol New Term Joincol Delcol +|2: /tmp/pardes-snap/topbarexec/cwd Del Term+ba /tmp/pardes-snap/topbarexec/cwd Del Term+ba +|3: sh sh |4: zmarkfile.txt ls |5: zmarkfile.txt |6: +Search 1/1 Del @@ -48,8 +48,8 @@ |10: xt Del |11: 1 hay ZQNEEDLE stack |12: -|13: /tmp/pardes-snap/topbarexec/cwd Term+bash S -|14: ave Mode Filter Collapse Del +|13: /tmp/pardes-snap/topbarexec/cwd Del Term+ba +|14: sh |15: ls |16: zmarkfile.txt |20: ✓ @p1 Find 2 messages · SPC h m diff --git a/test/snapshots/tty.golden b/test/snapshots/tty.golden index 8d9e5f1e..2c43350d 100644 --- a/test/snapshots/tty.golden +++ b/test/snapshots/tty.golden @@ -1,8 +1,7 @@ -== snap tty-on grid=100x31 cursor=4,6 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -|$ /tmp/pardes-snap/tty/cwd Term+bash Save Mode Fil /tmp/pardes-snap/tty/cwd Term+bash Save Mode Fil -| ter Collapse Del ter Collapse Del +== snap tty-on grid=100x31 cursor=4,5 +| Find Grep Newcol Help Exit +| New Term Joincol Delcol New Term Joincol Delcol +|$ /tmp/pardes-snap/tty/cwd Del Term+bash /tmp/pardes-snap/tty/cwd Del Term+bash | $ ls ls | m.txt m.txt | $ @@ -15,8 +14,8 @@ | | | -| /tmp/pardes-snap/tty/cwd Term+bash Save Mode Fil -| ter Collapse Del +| +| /tmp/pardes-snap/tty/cwd Del Term+bash | ls | m.txt | @@ -29,23 +28,24 @@ | | | +| | /tmp/pardes-snap/tty/cwd -== snap tty-echo grid=100x31 cursor=4,8 -|6: $ echo SNAP''OK -|7: SNAPOK -|8: $ -== snap tty-off grid=100x31 cursor=4,8 -|2: /tmp/pardes-snap/tty/cwd Term+bash Save Mode Fil /tmp/pardes-snap/tty/cwd Term+bash Save Mode Fil -|4: ls ls -|6: echo SNAP''OK -|8: -== snap shift-esc-normal grid=100x31 cursor=4,20 +== snap tty-echo grid=100x31 cursor=4,7 +|5: $ echo SNAP''OK +|6: SNAPOK +|7: $ +== snap tty-off grid=100x31 cursor=4,7 +|2: /tmp/pardes-snap/tty/cwd Del Term+bash /tmp/pardes-snap/tty/cwd Del Term+bash +|3: ls ls +|5: echo SNAP''OK +|7: +== snap shift-esc-normal grid=100x31 cursor=4,19 |30: ✓ @p1 Last 1 message · SPC h m -== snap ctrl-b-on grid=100x31 cursor=4,20 -|16: $ /tmp/pardes-snap/tty/cwd Term+bash Save Mode Fil -|18: $ ls -|20: $ -== snap ctrl-b-off grid=100x31 cursor=4,20 -|16: /tmp/pardes-snap/tty/cwd Term+bash Save Mode Fil -|18: ls -|20: +== snap ctrl-b-on grid=100x31 cursor=4,19 +|16: $ /tmp/pardes-snap/tty/cwd Del Term+bash +|17: $ ls +|19: $ +== snap ctrl-b-off grid=100x31 cursor=4,19 +|16: /tmp/pardes-snap/tty/cwd Del Term+bash +|17: ls +|19: diff --git a/test/snapshots/ttyclick.golden b/test/snapshots/ttyclick.golden index 9334dd01..27b85c5f 100644 --- a/test/snapshots/ttyclick.golden +++ b/test/snapshots/ttyclick.golden @@ -1,8 +1,7 @@ -== snap tty-bodyclick grid=100x31 cursor=4,6 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -|$ /tmp/pardes-snap/ttyclick/cwd Term+bash Save Mod /tmp/pardes-snap/ttyclick/cwd Term+bash Save Mod -| e Filter Collapse Del e Filter Collapse Del +== snap tty-bodyclick grid=100x31 cursor=4,5 +| Find Grep Newcol Help Exit +| New Term Joincol Delcol New Term Joincol Delcol +|$ /tmp/pardes-snap/ttyclick/cwd Del Term+bash /tmp/pardes-snap/ttyclick/cwd Del Term+bash | $ ls ls | probe.txt probe.txt | $ @@ -15,8 +14,8 @@ | | | -| /tmp/pardes-snap/ttyclick/cwd Term+bash Save Mod -| e Filter Collapse Del +| +| /tmp/pardes-snap/ttyclick/cwd Del Term+bash | ls | probe.txt | @@ -29,10 +28,11 @@ | | | +| | /tmp/pardes-snap/ttyclick/cwd -== snap tty-tagedit grid=100x31 cursor=32,2 -== snap tty-tagexit grid=100x31 cursor=4,6 +== snap tty-tagedit grid=100x31 cursor=36,2 +== snap tty-tagexit grid=100x31 cursor=4,5 == snap ins-bodyclick grid=100x31 cursor=11,4 -|2: ^ /tmp/pardes-snap/ttyclick/cwd Term+bash Save Mod /tmp/pardes-snap/ttyclick/cwd Term+bash Save Mod -|4: ls ls -|6: +|2: ^ /tmp/pardes-snap/ttyclick/cwd Del Term+bash /tmp/pardes-snap/ttyclick/cwd Del Term+bash +|3: ls ls +|5: diff --git a/test/snapshots/ttyedit.golden b/test/snapshots/ttyedit.golden index d9f2d8a5..2ca2f525 100644 --- a/test/snapshots/ttyedit.golden +++ b/test/snapshots/ttyedit.golden @@ -1,8 +1,7 @@ -== snap before grid=100x31 cursor=7,8 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/ttyedit/cwd Term+bash Save Mode /tmp/pardes-snap/ttyedit/cwd Term+bash Save Mode -| Filter Collapse Del Filter Collapse Del +== snap before grid=100x31 cursor=7,7 +| Find Grep Newcol Help Exit +| New Term Joincol Delcol New Term Joincol Delcol +| /tmp/pardes-snap/ttyedit/cwd Del Term+bash /tmp/pardes-snap/ttyedit/cwd Del Term+bash | ls ls | words.txt words.txt | printf 'one two three\nfour five six\nseven ei @@ -15,8 +14,8 @@ | | | -| /tmp/pardes-snap/ttyedit/cwd Term+bash Save Mode -| Filter Collapse Del +| +| /tmp/pardes-snap/ttyedit/cwd Del Term+bash | ls | words.txt | @@ -29,26 +28,27 @@ | | | +| | /tmp/pardes-snap/ttyedit/cwd -== snap split grid=100x31 cursor=2,9 -|2: ^ /tmp/pardes-snap/ttyedit/cwd Term+bash Save Mode /tmp/pardes-snap/ttyedit/cwd Term+bash Save Mode -|8: one t -|9: wo three -|10: four five six -|11: seven eight nine +== snap split grid=100x31 cursor=2,8 +|2: ^ /tmp/pardes-snap/ttyedit/cwd Del Term+bash /tmp/pardes-snap/ttyedit/cwd Del Term+bash +|7: one t +|8: wo three +|9: four five six +|10: seven eight nine |30: · @p1 a copy of the terminal's text: Tab or B2 runs it; what the program dr… 1 message · SPC h m -== snap opened grid=100x31 cursor=6,10 -|2: /tmp/pardes-snap/ttyedit/cwd Term+bash Save Mode /tmp/pardes-snap/ttyedit/cwd Term+bash Save Mode -|10: OPEN -|11: four five six -|12: seven eight nine -== snap joined grid=100x31 cursor=10,9 -|9: wo threeOPEN +== snap opened grid=100x31 cursor=6,9 +|2: /tmp/pardes-snap/ttyedit/cwd Del Term+bash /tmp/pardes-snap/ttyedit/cwd Del Term+bash +|9: OPEN |10: four five six |11: seven eight nine -|12: -== snap undone grid=100x31 cursor=7,8 -|8: one two three +== snap joined grid=100x31 cursor=10,8 +|8: wo threeOPEN |9: four five six |10: seven eight nine |11: +== snap undone grid=100x31 cursor=7,7 +|7: one two three +|8: four five six +|9: seven eight nine +|10: diff --git a/test/snapshots/ttyfollow.golden b/test/snapshots/ttyfollow.golden index b7e9f527..37456c51 100644 --- a/test/snapshots/ttyfollow.golden +++ b/test/snapshots/ttyfollow.golden @@ -1,10 +1,10 @@ == snap held-pre grid=100x31 cursor=4,15 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/ttyfollow/cwd Term+bash Save Mo /tmp/pardes-snap/ttyfollow/cwd Term+bash Save Mo -| de Filter Collapse Del de Filter Collapse Del -| 187 ls -| 188 s.txt +| Find Grep Newcol Help Exit +| New Term Joincol Delcol New Term Joincol Delcol +| /tmp/pardes-snap/ttyfollow/cwd Del Term+bash /tmp/pardes-snap/ttyfollow/cwd Del Term+bash +| 186 ls +| 187 s.txt +| 188 | 189 | 190 | 191 @@ -15,8 +15,7 @@ | 196 | 197 | 198 -| /tmp/pardes-snap/ttyfollow/cwd Term+bash Save Mo -| de Filter Collapse Del +| /tmp/pardes-snap/ttyfollow/cwd Del Term+bash | ls | s.txt | @@ -29,22 +28,24 @@ | | | +| | /tmp/pardes-snap/ttyfollow/cwd -== snap held-post grid=100x31 cursor=54,9 -|2: /tmp/pardes-snap/ttyfollow/cwd Term+bash Save Mo$ /tmp/pardes-snap/ttyfollow/cwd Term+bash Save Mo -|4: 187 $ ls -|6: 189 $ touch go; until test -f done1; do sleep 0.05; -|7: 190 done; echo SYN''CED -|8: 191 SYNCED -|9: 192 $ +== snap held-post grid=100x31 cursor=54,8 +|2: /tmp/pardes-snap/ttyfollow/cwd Del Term+bash $ /tmp/pardes-snap/ttyfollow/cwd Del Term+bash +|3: 186 $ ls +|5: 188 $ touch go; until test -f done1; do sleep 0.05; +|6: 189 done; echo SYN''CED +|7: 190 SYNCED +|8: 191 $ == snap tty-follows grid=100x31 cursor=4,15 -|2: $ /tmp/pardes-snap/ttyfollow/cwd Term+bash Save Mo$ /tmp/pardes-snap/ttyfollow/cwd Term+bash Save Mo -|4: 294 $ ls -|5: 295 s.txt -|6: 296 $ touch go; until test -f done1; do sleep 0.05; -|7: 297 done; echo SYN''CED -|8: 298 SYNCED -|9: 299 $ +|2: $ /tmp/pardes-snap/ttyfollow/cwd Del Term+bash $ /tmp/pardes-snap/ttyfollow/cwd Del Term+bash +|3: 293 $ ls +|4: 294 s.txt +|5: 295 $ touch go; until test -f done1; do sleep 0.05; +|6: 296 done; echo SYN''CED +|7: 297 SYNCED +|8: 298 $ +|9: 299 |10: 300 |11: [1]+ Done ( until test -f |12: go; do diff --git a/test/snapshots/ttyhelp.golden b/test/snapshots/ttyhelp.golden index 92bb4675..ce70e204 100644 --- a/test/snapshots/ttyhelp.golden +++ b/test/snapshots/ttyhelp.golden @@ -1,7 +1,6 @@ -== snap boot grid=100x31 cursor=4,3 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -|$ /tmp/pardes-snap/ttyhelp/cwd Term+bash Save Mode Filter Collapse Del +== snap boot grid=100x31 cursor=4,2 +| New Term Find Grep Newcol Help Exit +|$ /tmp/pardes-snap/ttyhelp/cwd Del Term+bash | $ | | @@ -20,7 +19,7 @@ | | | -| /tmp/pardes-snap/ttyhelp/cwd/+New Save Term Collapse Follow Del +| /tmp/pardes-snap/ttyhelp/cwd/+New Del | 1 | | @@ -29,22 +28,23 @@ | | | +| | /tmp/pardes-snap/ttyhelp/cwd -== snap helped grid=100x31 cursor=7,22 -|21: /tmp/pardes-snap/ttyhelp/cwd/+Help Save Term Collapse Follow Del -|22: 1 pardes builtins: each one's keys and its name, then what it does. Run one by its keys, or by↩ -|23: its name anywhere: B2 on the word, Exec <name>, a line of a ctl file, or `pardes do <name>`↩ -|24: from a shell. `Help <name>` shows one builtin alone; `Help <keys>` (or SPC, those keys, the↩ -|25: n ?) the builtins under SPC and those keys. -|26: 2 -|27: 3 SPC ' Resume -|28: 4 Reopen the last picker as it was: its rows, marks, cursor and query. -|29: 5 In the tag of the pane its Enter lands in from this one: this pane if it reads, else its rea +== snap helped grid=100x31 cursor=7,21 +|20: /tmp/pardes-snap/ttyhelp/cwd/+Help Del +|21: 1 pardes builtins: each one's keys and its name, then what it does. Run one by its keys, or by↩ +|22: its name anywhere: B2 on the word, Exec <name>, a line of a ctl file, or `pardes do <name>`↩ +|23: from a shell. `Help <name>` shows one builtin alone; `Help <keys>` (or SPC, those keys, the↩ +|24: n ?) the builtins under SPC and those keys. +|25: 2 +|26: 3 SPC ' Resume +|27: 4 Reopen the last picker as it was: its rows, marks, cursor and query. +|28: 5 In the tag of the pane its Enter lands in from this one: this pane if it reads, else its rea↩ +|29: der. `SPC '`; again after its Esc, nothing typed between, the one before it; Ctrl-o and Ctrl |30: ✓ @p1 Help 1 message · SPC h m -== snap leaderworks grid=100x31 cursor=12,21 -|3: -|21: ^ Help tutor 1/1 -|22: ▶ SPC h t Tutor help │ t Tutor -|23: │ Open the tutor, a document to work through. -|24: │ keys SPC h t -|25: │ +== snap leaderworks grid=100x31 cursor=12,20 +|20: ^ Help tutor 1/1 +|21: ▶ SPC h t Tutor help │ t Tutor +|22: │ Open the tutor, a document to work through. +|23: │ keys SPC h t +|24: │ diff --git a/test/snapshots/ttylook.golden b/test/snapshots/ttylook.golden index 48e088d4..3dd8f470 100644 --- a/test/snapshots/ttylook.golden +++ b/test/snapshots/ttylook.golden @@ -1,8 +1,7 @@ -== snap tok1 grid=120x31 cursor=2,5 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/ttylook/cwd Term+bash Save Mode Filter Co /tmp/pardes-snap/ttylook/cwd Term+bash Save Mode Filter Co -| llapse Del llapse Del +== snap tok1 grid=120x31 cursor=2,4 +| Find Grep Newcol Help Exit +| New Term Joincol Delcol New Term Joincol Delcol +| /tmp/pardes-snap/ttylook/cwd Del Term+bash /tmp/pardes-snap/ttylook/cwd Del Term+bash | ls ls | big.txt plain.txt sub big.txt plain.txt sub | @@ -15,8 +14,8 @@ | | | -| /tmp/pardes-snap/ttylook/cwd Term+bash Save Mode Filter Co -| llapse Del +| +| /tmp/pardes-snap/ttylook/cwd Del Term+bash | ls | big.txt plain.txt sub | @@ -29,14 +28,15 @@ | | | +| | /tmp/pardes-snap/ttylook/cwd == style tok1 grid=120x31 -|0: 0-1 d,#1d2824, 2-119 #b2c3b8,#1d2824, +|0: 0-91 d,#1d2824, 92-119 #b2c3b8,#1d2824, |1: 0-1 d,#504733, 2-59 #becfc4,#314738, 60-61 #becfc4,#504733, 62-119 #b2c3b8,#1d2824, -|2: 0-1 d,#add38a, 2-30 #becfc4,#314738, 31-40 #ecc8f2,#314738, 41-59 #becfc4,#314738, 60-61 #becfc4,#465a43, 62-90 #b2c3b8,#1d2824, 91-100 #d3b0d9,#1d2824, 101-119 #b2c3b8,#1d2824, -|3: 0-1 d,#314738, 2-59 #becfc4,#314738, 60-61 #becfc4,#1d2824, 62-119 #b2c3b8,#1d2824, -|4: 0-0 d,#608269, 1-1 d,#0d1410, 2-59 #e5eee5,#0d1410, 60-60 #e5eee5,#608269, 61-119 #e5eee5,#0d1410, -|5: 0-0 d,#608269, 1-1 d,#0d1410, 2-8 #f5f7ee,#3c614a, 9-10 #f5f7ee,#0d1410, 11-59 #e5eee5,#0d1410, 60-60 #e5eee5,#608269, 61-119 #e5eee5,#0d1410, +|2: 0-1 d,#add38a, 2-34 #becfc4,#314738, 35-59 #ecc8f2,#314738, 60-61 #ecc8f2,#465a43, 62-94 #b2c3b8,#1d2824, 95-119 #d3b0d9,#1d2824, +|3: 0-0 d,#608269, 1-1 d,#0d1410, 2-59 #e5eee5,#0d1410, 60-60 #e5eee5,#608269, 61-119 #e5eee5,#0d1410, +|4: 0-0 d,#608269, 1-1 d,#0d1410, 2-8 #f5f7ee,#3c614a, 9-10 #f5f7ee,#0d1410, 11-59 #e5eee5,#0d1410, 60-60 #e5eee5,#608269, 61-119 #e5eee5,#0d1410, +|5: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, |6: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, |7: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, |8: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, @@ -47,10 +47,10 @@ |13: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, |14: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, |15: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, -|16: 0-1 d,#465a43, 2-30 #b2c3b8,#1d2824, 31-40 #d3b0d9,#1d2824, 41-59 #b2c3b8,#1d2824, 60-60 #b2c3b8,#608269, 61-119 #b2c3b8,#0d1410, -|17: 0-1 d,#1d2824, 2-59 #b2c3b8,#1d2824, 60-60 #b2c3b8,#608269, 61-119 #b2c3b8,#0d1410, +|16: 0-1 d,#465a43, 2-34 #b2c3b8,#1d2824, 35-59 #d3b0d9,#1d2824, 60-60 #d3b0d9,#608269, 61-119 #d3b0d9,#0d1410, +|17: 0-0 d,#608269, 1-1 d,#0d1410, 2-59 #e5eee5,#0d1410, 60-60 #e5eee5,#608269, 61-119 #e5eee5,#0d1410, |18: 0-0 d,#608269, 1-1 d,#0d1410, 2-59 #e5eee5,#0d1410, 60-60 #e5eee5,#608269, 61-119 #e5eee5,#0d1410, -|19: 0-0 d,#608269, 1-1 d,#0d1410, 2-59 #e5eee5,#0d1410, 60-60 #e5eee5,#608269, 61-119 #e5eee5,#0d1410, +|19: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, |20: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, |21: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, |22: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, @@ -62,20 +62,19 @@ |28: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, |29: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, |30: 0-1 d,#1d2824, 2-119 #b2c3b8,#1d2824, -== snap tok2 grid=120x31 cursor=11,5 -== snap tokback grid=120x31 cursor=2,5 -== snap insert grid=120x31 cursor=4,5 -|5: nnbig.txt plain.txt sub big.txt plain.txt sub +== snap tok2 grid=120x31 cursor=11,4 +== snap tokback grid=120x31 cursor=2,4 +== snap insert grid=120x31 cursor=4,4 +|4: nnbig.txt plain.txt sub big.txt plain.txt sub |30: · @p1 a copy of the terminal's text: Tab or B2 runs it; what the program draws next replaces it… 1 message · SPC h m -== snap tok3 grid=120x31 cursor=22,5 -|5: big.txt plain.txt sub big.txt plain.txt sub -== snap diropen grid=120x31 cursor=7,22 -|21: /tmp/pardes-snap/ttylook/cwd/sub/ Get Term Collapse Del -|22: 1 -== snap noop grid=120x31 cursor=2,5 -== snap cursorword grid=120x31 cursor=3,4 -|7: /tmp/pardes-snap/ttylook/cwd/+Search Save Term Collapse Fo -|8: llow LocationsConfig Del -|9: 1 @p1:1:1-2 -|10: 2 ls -|11: ~ +== snap tok3 grid=120x31 cursor=22,4 +|4: big.txt plain.txt sub big.txt plain.txt sub +== snap diropen grid=120x31 cursor=7,21 +|20: /tmp/pardes-snap/ttylook/cwd/sub/ Get Del +|21: 1 +== snap noop grid=120x31 cursor=2,4 +== snap cursorword grid=120x31 cursor=3,3 +|6: /tmp/pardes-snap/ttylook/cwd/+Search Del +|7: 1 @p1:1:1-2 +|8: 2 ls +|9: ~ diff --git a/test/snapshots/ttyonly.golden b/test/snapshots/ttyonly.golden index 61896622..1648a7d5 100644 --- a/test/snapshots/ttyonly.golden +++ b/test/snapshots/ttyonly.golden @@ -1,7 +1,6 @@ -== snap ttyonly grid=100x31 cursor=4,5 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -|$ /tmp/pardes-snap/ttyonly/cwd Term+bash Save Mode Filter Collapse Del +== snap ttyonly grid=100x31 cursor=4,4 +| New Term Find Grep Newcol Help Exit +|$ /tmp/pardes-snap/ttyonly/cwd Del Term+bash | $ echo TTY''ONLY | TTYONLY | $ @@ -20,7 +19,7 @@ | | | -| /tmp/pardes-snap/ttyonly/cwd/+New Save Term Collapse Follow Del +| /tmp/pardes-snap/ttyonly/cwd/+New Del | 1 | | @@ -29,14 +28,15 @@ | | | +| | /tmp/pardes-snap/ttyonly/cwd == style ttyonly grid=100x31 |0: 0-1 d,#1d2824, 2-99 #b2c3b8,#1d2824, -|1: 0-1 d,#504733, 2-99 #becfc4,#314738, -|2: 0-1 #000000,#add38a, 2-30 #becfc4,#314738, 31-40 #ecc8f2,#314738, 41-99 #becfc4,#314738, +|1: 0-1 #000000,#add38a, 2-34 #becfc4,#314738, 35-99 #ecc8f2,#314738, +|2: 0-0 d,#608269, 1-1 d,#0d1410, 2-99 #e5eee5,#0d1410, |3: 0-0 d,#608269, 1-1 d,#0d1410, 2-99 #e5eee5,#0d1410, |4: 0-0 d,#608269, 1-1 d,#0d1410, 2-99 #e5eee5,#0d1410, -|5: 0-0 d,#608269, 1-1 d,#0d1410, 2-99 #e5eee5,#0d1410, +|5: 0-0 d,#608269, 1-99 d,#0d1410, |6: 0-0 d,#608269, 1-99 d,#0d1410, |7: 0-0 d,#608269, 1-99 d,#0d1410, |8: 0-0 d,#608269, 1-99 d,#0d1410, @@ -51,9 +51,9 @@ |17: 0-0 d,#608269, 1-99 d,#0d1410, |18: 0-0 d,#608269, 1-99 d,#0d1410, |19: 0-0 d,#608269, 1-99 d,#0d1410, -|20: 0-0 d,#608269, 1-99 d,#0d1410, -|21: 0-1 d,#465a43, 2-30 #b2c3b8,#1d2824, 31-35 #d3b0d9,#1d2824, 36-99 #b2c3b8,#1d2824, -|22: 0-0 d,#608269, 1-4 d,#0d1410, 5-99 #59675c,#0d1410, +|20: 0-1 d,#465a43, 2-30 #b2c3b8,#1d2824, 31-35 #d3b0d9,#1d2824, 36-99 #b2c3b8,#1d2824, +|21: 0-0 d,#608269, 1-4 d,#0d1410, 5-99 #59675c,#0d1410, +|22: 0-0 d,#608269, 1-99 d,#0d1410, |23: 0-0 d,#608269, 1-99 d,#0d1410, |24: 0-0 d,#608269, 1-99 d,#0d1410, |25: 0-0 d,#608269, 1-99 d,#0d1410, diff --git a/test/snapshots/ttypaste.golden b/test/snapshots/ttypaste.golden index 35364d52..d555ef9e 100644 --- a/test/snapshots/ttypaste.golden +++ b/test/snapshots/ttypaste.golden @@ -1,8 +1,7 @@ -== snap bracketed-paste-reached-the-shell grid=100x31 cursor=18,6 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -|$ /tmp/pardes-snap/ttypaste/cwd Term+bash Save Mod /tmp/pardes-snap/ttypaste/cwd Term+bash Save Mod -| e Filter Collapse Del e Filter Collapse Del +== snap bracketed-paste-reached-the-shell grid=100x31 cursor=18,5 +| Find Grep Newcol Help Exit +| New Term Joincol Delcol New Term Joincol Delcol +|$ /tmp/pardes-snap/ttypaste/cwd Del Term+bash /tmp/pardes-snap/ttypaste/cwd Del Term+bash | $ ls ls | src.txt src.txt | $ echo BRACKETED @@ -15,8 +14,8 @@ | | | -| /tmp/pardes-snap/ttypaste/cwd Term+bash Save Mod -| e Filter Collapse Del +| +| /tmp/pardes-snap/ttypaste/cwd Del Term+bash | ls | src.txt | @@ -29,5 +28,6 @@ | | | +| | /tmp/pardes-snap/ttypaste/cwd -== snap ctrl-v-with-empty-register-is-inert grid=100x31 cursor=18,6 +== snap ctrl-v-with-empty-register-is-inert grid=100x31 cursor=18,5 diff --git a/test/snapshots/ttyprompt.golden b/test/snapshots/ttyprompt.golden index e0f76455..fbdbb1e3 100644 --- a/test/snapshots/ttyprompt.golden +++ b/test/snapshots/ttyprompt.golden @@ -1,8 +1,7 @@ -== snap greeted grid=100x31 cursor=4,6 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/ttyprompt/cwd Term+bash Save Mo /tmp/pardes-snap/ttyprompt/cwd Term+bash Save Mo -| de Filter Collapse Del de Filter Collapse Del +== snap greeted grid=100x31 cursor=4,5 +| Find Grep Newcol Help Exit +| New Term Joincol Delcol New Term Joincol Delcol +| /tmp/pardes-snap/ttyprompt/cwd Del Term+bash /tmp/pardes-snap/ttyprompt/cwd Del Term+bash | ls ls | probe.txt probe.txt | @@ -15,8 +14,8 @@ | | | -| /tmp/pardes-snap/ttyprompt/cwd Term+bash Save Mo -| de Filter Collapse Del +| +| /tmp/pardes-snap/ttyprompt/cwd Del Term+bash | ls | probe.txt | @@ -29,12 +28,13 @@ | | | +| | /tmp/pardes-snap/ttyprompt/cwd -== snap in-tty grid=100x31 cursor=17,6 -|2: $ /tmp/pardes-snap/ttyprompt/cwd Term+bash Save Mo /tmp/pardes-snap/ttyprompt/cwd Term+bash Save Mo -|4: $ ls ls -|6: $ echo ABCDEFGH -== snap out-of-tty grid=100x31 cursor=17,6 -|2: /tmp/pardes-snap/ttyprompt/cwd Term+bash Save Mo /tmp/pardes-snap/ttyprompt/cwd Term+bash Save Mo -|4: ls ls -|6: echo ABCDEFGH +== snap in-tty grid=100x31 cursor=17,5 +|2: $ /tmp/pardes-snap/ttyprompt/cwd Del Term+bash /tmp/pardes-snap/ttyprompt/cwd Del Term+bash +|3: $ ls ls +|5: $ echo ABCDEFGH +== snap out-of-tty grid=100x31 cursor=17,5 +|2: /tmp/pardes-snap/ttyprompt/cwd Del Term+bash /tmp/pardes-snap/ttyprompt/cwd Del Term+bash +|3: ls ls +|5: echo ABCDEFGH diff --git a/test/snapshots/ttytaken.golden b/test/snapshots/ttytaken.golden index 337072f1..9bca75d7 100644 --- a/test/snapshots/ttytaken.golden +++ b/test/snapshots/ttytaken.golden @@ -1,7 +1,6 @@ -== snap opened grid=210x31 cursor=4,5 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/ttytaken/cwd Term+bash Save Mode Filter Collapse Del +== snap opened grid=210x31 cursor=4,4 +| New Term Find Grep Newcol Help Exit +| /tmp/pardes-snap/ttytaken/cwd Del Term+bash | ls | big.txt | @@ -29,44 +28,46 @@ | | | +| | /tmp/pardes-snap/ttytaken/cwd -== snap at-prompt grid=210x31 cursor=4,5 -|2: /tmp/pardes-snap/ttytaken/cwd Term+bash Save Mode Filter Collapse Del @`echo TAKEN''ONE` -|5: echo TAKEN''ONE -|6: TAKENONE +== snap at-prompt grid=210x31 cursor=4,4 +|1: /tmp/pardes-snap/ttytaken/cwd Del Term+bash @`echo TAKEN''ONE` +|4: echo TAKEN''ONE +|5: TAKENONE |30: ✓ @p1 Exec 1 message · SPC h m == snap paging grid=210x31 cursor=9,29 -|3: line 1 -|4: line 2 -|5: line 3 -|6: line 4 -|7: line 5 -|8: line 6 -|9: line 7 -|10: line 8 -|11: line 9 -|12: line 10 -|13: line 11 -|14: line 12 -|15: line 13 -|16: line 14 -|17: line 15 -|18: line 16 -|19: line 17 -|20: line 18 -|21: line 19 -|22: line 20 -|23: line 21 -|24: line 22 -|25: line 23 -|26: line 24 -|27: line 25 -|28: line 26 +|2: line 1 +|3: line 2 +|4: line 3 +|5: line 4 +|6: line 5 +|7: line 6 +|8: line 7 +|9: line 8 +|10: line 9 +|11: line 10 +|12: line 11 +|13: line 12 +|14: line 13 +|15: line 14 +|16: line 15 +|17: line 16 +|18: line 17 +|19: line 18 +|20: line 19 +|21: line 20 +|22: line 21 +|23: line 22 +|24: line 23 +|25: line 24 +|26: line 25 +|27: line 26 +|28: line 27 |29: big.txt == snap spawned grid=210x31 cursor=hidden -|2: /tmp/pardes-snap/ttytaken/cwd Term+bash Save Mode Filter Collapse Del @`echo TAKEN''ONE` @`echo TAKEN''TWO` +|1: /tmp/pardes-snap/ttytaken/cwd Del Term+bash @`echo TAKEN''ONE` @`echo TAKEN''TWO` |15: : -|16: /tmp/pardes-snap/ttytaken/cwd (echo TAKEN''TWO) exit 0 Kill Save Collapse Del +|16: /tmp/pardes-snap/ttytaken/cwd (echo TAKEN''TWO) exit 0 Del |17: % echo TAKEN''TWO |18: TAKENTWO |19: exit 0 diff --git a/test/snapshots/tutor.golden b/test/snapshots/tutor.golden index c6316c73..f1b82c62 100644 --- a/test/snapshots/tutor.golden +++ b/test/snapshots/tutor.golden @@ -1,7 +1,7 @@ == snap tutor grid=150x31 cursor=7,20 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/tutor/cwd Term+bash Save Mode Filter Collapse Del /tmp/pardes-snap/tutor/cwd Term+bash Save Mode Filter Collapse Del +| Find Grep Newcol Help Exit Tutor +| New Term Joincol Delcol New Term Joincol Delcol +| /tmp/pardes-snap/tutor/cwd Del Term+bash /tmp/pardes-snap/tutor/cwd Del Term+bash | ls ls | | @@ -15,10 +15,10 @@ | | | -| /tmp/pardes-snap/tutor/cwd Term+bash Save Mode Filter Collapse Del +| /tmp/pardes-snap/tutor/cwd Del Term+bash | ls | -| /tmp/pardes-snap/tutor/cwd/+Tutor Keep Save Term Collapse Follow Del +| /tmp/pardes-snap/tutor/cwd/+Tutor Keep Del | 1 | 2 PARDES TUTOR | 3 diff --git a/test/snapshots/wheeldrift.golden b/test/snapshots/wheeldrift.golden index 7cb647d4..1a69560c 100644 --- a/test/snapshots/wheeldrift.golden +++ b/test/snapshots/wheeldrift.golden @@ -1,8 +1,6 @@ -== snap home grid=70x17 cursor=7,4 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config His -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/wheeldrift/cwd/drift.txt Keep Save Term Collapse Fo -| llow Del +== snap home grid=70x17 cursor=7,2 +| New Term Find Grep Newcol Help Exit +| /tmp/pardes-snap/wheeldrift/cwd/drift.txt Keep Del | 1 line 1_0123456789_abcdefghij_ZEND | 2 line 2_0123456789_abcdefghij_ZEND | 3 line 3_0123456789_abcdefghij_ZEND @@ -15,44 +13,52 @@ | 10 line 10_0123456789_abcdefghij_ZEND | 11 line 11_0123456789_abcdefghij_ZEND | 12 line 12_0123456789_abcdefghij_ZEND +| 13 line 13_0123456789_abcdefghij_ZEND +| 14 line 14_0123456789_abcdefghij_ZEND | ✓ …p/pardes-snap/wheeldrift/cwd/drift.txt Wrap 1 message · SPC h m == snap drifted grid=70x17 cursor=hidden -|4: 6 line 6_0123456789_abcdefghij_ZEND -|5: 7 line 7_0123456789_abcdefghij_ZEND -|6: 8 line 8_0123456789_abcdefghij_ZEND -|7: 9 line 9_0123456789_abcdefghij_ZEND -|8: 10 line 10_0123456789_abcdefghij_ZEND -|9: 11 line 11_0123456789_abcdefghij_ZEND -|10: 12 line 12_0123456789_abcdefghij_ZEND -|11: 13 line 13_0123456789_abcdefghij_ZEND -|12: 14 line 14_0123456789_abcdefghij_ZEND -|13: 15 line 15_0123456789_abcdefghij_ZEND -|14: 16 line 16_0123456789_abcdefghij_ZEND -|15: 17 line 17_0123456789_abcdefghij_ZEND +|2: 6 line 6_0123456789_abcdefghij_ZEND +|3: 7 line 7_0123456789_abcdefghij_ZEND +|4: 8 line 8_0123456789_abcdefghij_ZEND +|5: 9 line 9_0123456789_abcdefghij_ZEND +|6: 10 line 10_0123456789_abcdefghij_ZEND +|7: 11 line 11_0123456789_abcdefghij_ZEND +|8: 12 line 12_0123456789_abcdefghij_ZEND +|9: 13 line 13_0123456789_abcdefghij_ZEND +|10: 14 line 14_0123456789_abcdefghij_ZEND +|11: 15 line 15_0123456789_abcdefghij_ZEND +|12: 16 line 16_0123456789_abcdefghij_ZEND +|13: 17 line 17_0123456789_abcdefghij_ZEND +|14: 18 line 18_0123456789_abcdefghij_ZEND +|15: 19 line 19_0123456789_abcdefghij_ZEND == snap paying grid=70x17 cursor=hidden == snap moved grid=70x17 cursor=hidden -|4: 6 123456789_abcdefghij_ZEND -|5: 7 123456789_abcdefghij_ZEND -|6: 8 123456789_abcdefghij_ZEND -|7: 9 123456789_abcdefghij_ZEND -|8: 10 0123456789_abcdefghij_ZEND -|9: 11 0123456789_abcdefghij_ZEND -|10: 12 0123456789_abcdefghij_ZEND -|11: 13 0123456789_abcdefghij_ZEND -|12: 14 0123456789_abcdefghij_ZEND -|13: 15 0123456789_abcdefghij_ZEND -|14: 16 0123456789_abcdefghij_ZEND -|15: 17 0123456789_abcdefghij_ZEND +|2: 6 123456789_abcdefghij_ZEND +|3: 7 123456789_abcdefghij_ZEND +|4: 8 123456789_abcdefghij_ZEND +|5: 9 123456789_abcdefghij_ZEND +|6: 10 0123456789_abcdefghij_ZEND +|7: 11 0123456789_abcdefghij_ZEND +|8: 12 0123456789_abcdefghij_ZEND +|9: 13 0123456789_abcdefghij_ZEND +|10: 14 0123456789_abcdefghij_ZEND +|11: 15 0123456789_abcdefghij_ZEND +|12: 16 0123456789_abcdefghij_ZEND +|13: 17 0123456789_abcdefghij_ZEND +|14: 18 0123456789_abcdefghij_ZEND +|15: 19 0123456789_abcdefghij_ZEND == snap rearmed grid=70x17 cursor=hidden -|4: 5 123456789_abcdefghij_ZEND -|5: 6 123456789_abcdefghij_ZEND -|6: 7 123456789_abcdefghij_ZEND -|7: 8 123456789_abcdefghij_ZEND -|8: 9 123456789_abcdefghij_ZEND -|9: 10 0123456789_abcdefghij_ZEND -|10: 11 0123456789_abcdefghij_ZEND -|11: 12 0123456789_abcdefghij_ZEND -|12: 13 0123456789_abcdefghij_ZEND -|13: 14 0123456789_abcdefghij_ZEND -|14: 15 0123456789_abcdefghij_ZEND -|15: 16 0123456789_abcdefghij_ZEND +|2: 5 123456789_abcdefghij_ZEND +|3: 6 123456789_abcdefghij_ZEND +|4: 7 123456789_abcdefghij_ZEND +|5: 8 123456789_abcdefghij_ZEND +|6: 9 123456789_abcdefghij_ZEND +|7: 10 0123456789_abcdefghij_ZEND +|8: 11 0123456789_abcdefghij_ZEND +|9: 12 0123456789_abcdefghij_ZEND +|10: 13 0123456789_abcdefghij_ZEND +|11: 14 0123456789_abcdefghij_ZEND +|12: 15 0123456789_abcdefghij_ZEND +|13: 16 0123456789_abcdefghij_ZEND +|14: 17 0123456789_abcdefghij_ZEND +|15: 18 0123456789_abcdefghij_ZEND diff --git a/test/snapshots/winch.golden b/test/snapshots/winch.golden index 64d527c8..4200397e 100644 --- a/test/snapshots/winch.golden +++ b/test/snapshots/winch.golden @@ -1,8 +1,7 @@ -== snap storm grid=100x31 cursor=4,8 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -|$ /tmp/pardes-snap/winch/cwd Term+bash Save Mode F /tmp/pardes-snap/winch/cwd Term+bash Save Mode F -| ilter Collapse Del ilter Collapse Del +== snap storm grid=100x31 cursor=4,7 +| Find Grep Newcol Help Exit +| New Term Joincol Delcol New Term Joincol Delcol +|$ /tmp/pardes-snap/winch/cwd Del Term+bash /tmp/pardes-snap/winch/cwd Del Term+bash | $ ls ls | $ for i in $(seq 600); do kill -WINCH $PPID; don | e; echo SUR''VIVED @@ -15,8 +14,8 @@ | | | -| /tmp/pardes-snap/winch/cwd Term+bash Save Mode F -| ilter Collapse Del +| +| /tmp/pardes-snap/winch/cwd Del Term+bash | ls | | @@ -29,12 +28,12 @@ | | | +| | /tmp/pardes-snap/winch/cwd -== snap resized grid=106x35 cursor=4,8 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -|$ /tmp/pardes-snap/winch/cwd Term+bash Save Mode Filt /tmp/pardes-snap/winch/cwd Term+bash Save Mode Filt -| er Collapse Del er Collapse Del +== snap resized grid=106x35 cursor=4,7 +| Find Grep Newcol Help Exit +| New Term Joincol Delcol New Term Joincol Delcol +|$ /tmp/pardes-snap/winch/cwd Del Term+bash /tmp/pardes-snap/winch/cwd Del Term+bash | $ ls ls | $ for i in $(seq 600); do kill -WINCH $PPID; done; | echo SUR''VIVED @@ -49,8 +48,8 @@ | | | -| /tmp/pardes-snap/winch/cwd Term+bash Save Mode Filt -| er Collapse Del +| +| /tmp/pardes-snap/winch/cwd Del Term+bash | ls | | @@ -65,4 +64,5 @@ | | | +| | /tmp/pardes-snap/winch/cwd diff --git a/test/snapshots/windownav.golden b/test/snapshots/windownav.golden index 140e4618..af157123 100644 --- a/test/snapshots/windownav.golden +++ b/test/snapshots/windownav.golden @@ -1,8 +1,7 @@ -== snap start grid=100x31 cursor=7,4 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/windownav/cwd/w.txt Keep Save T /tmp/pardes-snap/windownav/cwd Term+bash Save Mo -| erm Collapse Follow Del de Filter Collapse Del +== snap start grid=100x31 cursor=7,3 +| Find Grep Newcol Help Exit +| New Term Joincol Delcol New Term Joincol Delcol +| /tmp/pardes-snap/windownav/cwd/w.txt Keep Del /tmp/pardes-snap/windownav/cwd Del Term+bash | 1 alpha ls | 2 beta w.txt | 3 gamma @@ -29,29 +28,29 @@ | | | +| | ✓ @p2 Window 1 message · SPC h m -== snap to-term grid=100x31 cursor=54,6 +== snap to-term grid=100x31 cursor=54,5 |30: ✓ /tmp/pardes-snap/windownav/cwd/w.txt Last 2 messages · SPC h m -== snap back-to-file grid=100x31 cursor=7,4 +== snap back-to-file grid=100x31 cursor=7,3 |30: ✓ @p2 Last 3 messages · SPC h m -== snap esc-to-term grid=100x31 cursor=54,6 +== snap esc-to-term grid=100x31 cursor=54,5 |30: ✓ /tmp/pardes-snap/windownav/cwd/w.txt Last 4 messages · SPC h m -== snap esc-back-to-file grid=100x31 cursor=7,4 +== snap esc-back-to-file grid=100x31 cursor=7,3 |30: ✓ @p2 Last 5 messages · SPC h m -== snap altn grid=100x31 cursor=4,11 -|7: /tmp/pardes-snap/windownav/cwd Term+bash Save Mo -|8: de Filter Collapse Del -|9: ls -|10: w.txt -== snap up grid=100x31 cursor=7,4 +== snap altn grid=100x31 cursor=4,9 +|6: /tmp/pardes-snap/windownav/cwd Del Term+bash +|7: ls +|8: w.txt +== snap up grid=100x31 cursor=7,3 |30: ✓ @p3 Window 6 messages · SPC h m -== snap right grid=100x31 cursor=54,6 +== snap right grid=100x31 cursor=54,5 |30: ✓ /tmp/pardes-snap/windownav/cwd/w.txt Window 7 messages · SPC h m -== snap left grid=100x31 cursor=7,4 +== snap left grid=100x31 cursor=7,3 |30: ✓ @p2 Window 8 messages · SPC h m -== snap down grid=100x31 cursor=4,11 +== snap down grid=100x31 cursor=4,9 |30: ✓ /tmp/pardes-snap/windownav/cwd/w.txt Window 9 messages · SPC h m -== snap toggle-doc grid=100x31 cursor=7,4 +== snap toggle-doc grid=100x31 cursor=7,3 |30: ✓ @p3 Last 10 messages · SPC h m -== snap toggle-back grid=100x31 cursor=4,11 +== snap toggle-back grid=100x31 cursor=4,9 |30: ✓ /tmp/pardes-snap/windownav/cwd/w.txt Last 11 messages · SPC h m diff --git a/test/snapshots/windowops.golden b/test/snapshots/windowops.golden index 5be07dfd..5cea8b0e 100644 --- a/test/snapshots/windowops.golden +++ b/test/snapshots/windowops.golden @@ -1,8 +1,7 @@ -== snap hover-v grid=100x31 cursor=4,6 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/windowops/cwd Term+bash Save Mo /tmp/pardes-snap/windowops/cwd Term+bash Save Mo -| de Filter Collapse Del de Filter Collapse Del +== snap hover-v grid=100x31 cursor=4,5 +| Find Grep Newcol Help Exit +| New Term Joincol Delcol New Term Joincol Delcol +| /tmp/pardes-snap/windowops/cwd Del Term+bash /tmp/pardes-snap/windowops/cwd Del Term+bash | ls ls | w.txt w.txt | @@ -15,8 +14,8 @@ | | | -| /tmp/pardes-snap/windowops/cwd Term+bash Save Mo -| de Filter Collapse Del +| +| /tmp/pardes-snap/windowops/cwd Del Term+bash | ls | w.txt | @@ -29,47 +28,47 @@ | | | +| | /tmp/pardes-snap/windowops/cwd -== snap hover-h grid=100x31 cursor=4,6 -== snap hborder-done grid=100x31 cursor=4,6 -|13: /tmp/pardes-snap/windowops/cwd Term+bash Save Mo -|14: de Filter Collapse Del -|15: ls -|16: w.txt +== snap hover-h grid=100x31 cursor=4,5 +== snap hborder-done grid=100x31 cursor=4,5 +|13: /tmp/pardes-snap/windowops/cwd Del Term+bash +|14: ls +|15: w.txt +|16: |17: |18: -|19: -== snap move-preview grid=100x31 cursor=4,17 -== snap moved grid=100x31 cursor=4,17 -== snap altn grid=100x31 cursor=4,22 -|18: /tmp/pardes-snap/windowops/cwd Term+bash Save Mo -|19: de Filter Collapse Del -|20: ls -|21: w.txt -== snap focus-right grid=100x31 cursor=54,6 +== snap move-preview grid=100x31 cursor=4,16 +== snap moved grid=100x31 cursor=4,16 +== snap altn grid=100x31 cursor=4,20 +|17: /tmp/pardes-snap/windowops/cwd Del Term+bash +|18: ls +|19: w.txt +== snap focus-right grid=100x31 cursor=54,5 |30: ✓ @p4 Window 1 message · SPC h m -== snap debug-on grid=100x31 cursor=54,6 -|1: New Term Find Grep Joincol Delcol New Term F╭────────────────────────────────────╮ -|2: /tmp/pardes-snap/windowops/cwd Term+bash Save Mo /tmp/parde│pardes resizes=1 │ -|3: de Filter Collapse Del de Filter │theme orchard │ -|4: ls ls │font default │ -|5: w.txt w.txt │terms 4 cols 2 │ -|6: │active #2 48x26 │ -|7: │scroll 0/26 │ +== snap debug-on grid=100x31 cursor=54,5 +|0: Find Grep Newcol Help Exit Debug +|1: New Term Joincol Delcol New Term J╭────────────────────────────────────╮ +|2: /tmp/pardes-snap/windowops/cwd Del Term+bash /tmp/parde│pardes resizes=1 │ +|3: ls ls │theme orchard │ +|4: w.txt w.txt │font default │ +|5: │terms 4 cols 2 │ +|6: │active #2 48x27 │ +|7: │scroll 0/27 │ |8: │frame virtual clock │ |9: │ │ |10: │ │ |11: │ │ |12: │ │ -|13: /tmp/pardes-snap/windowops/cwd Term+bash Save Mo ╰────────────────────────────────────╯ +|13: /tmp/pardes-snap/windowops/cwd Del Term+bash ╰────────────────────────────────────╯ |30: ✓ @p3 Debug 2 messages · SPC h m == style debug-on grid=100x31 -|0: 0-1 d,#1d2824, 2-74 #b2c3b8,#1d2824, 75-79 #f5f7ee,#3c614a, 80-80 #f5f7ee,#1d2824, 81-99 #b2c3b8,#1d2824, +|0: 0-66 d,#1d2824, 67-93 #b2c3b8,#1d2824, 94-98 #f5f7ee,#3c614a, 99-99 #f5f7ee,#1d2824, |1: 0-1 d,#504733, 2-49 #b2c3b8,#1d2824, 50-51 #b2c3b8,#504733, 52-61 #becfc4,#314738, 62-99 d,d, -|2: 0-1 d,#465a43, 2-32 #b2c3b8,#1d2824, 33-42 #d3b0d9,#1d2824, 43-49 #b2c3b8,#1d2824, 50-51 #b2c3b8,#add38a, 52-61 #becfc4,#314738, 62-62 d,d, 63-79 #b2c3b8,d, 80-98 #b2c3b8,#152019, 99-99 d,d, -|3: 0-1 d,#1d2824, 2-49 #b2c3b8,#1d2824, 50-51 #b2c3b8,#314738, 52-61 #becfc4,#314738, 62-62 d,d, 63-76 #b2c3b8,d, 77-98 #b2c3b8,#152019, 99-99 d,d, +|2: 0-1 d,#465a43, 2-36 #b2c3b8,#1d2824, 37-49 #d3b0d9,#1d2824, 50-51 #d3b0d9,#add38a, 52-61 #becfc4,#314738, 62-62 d,d, 63-79 #b2c3b8,d, 80-98 #b2c3b8,#152019, 99-99 d,d, +|3: 0-0 d,#608269, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-61 #e5eee5,#0d1410, 62-62 d,d, 63-76 #b2c3b8,d, 77-98 #b2c3b8,#152019, 99-99 d,d, |4: 0-0 d,#608269, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-61 #e5eee5,#0d1410, 62-62 d,d, 63-76 #b2c3b8,d, 77-98 #b2c3b8,#152019, 99-99 d,d, -|5: 0-0 d,#608269, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-61 #e5eee5,#0d1410, 62-62 d,d, 63-77 #b2c3b8,d, 78-98 #b2c3b8,#152019, 99-99 d,d, +|5: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-61 d,#0d1410, 62-62 d,d, 63-77 #b2c3b8,d, 78-98 #b2c3b8,#152019, 99-99 d,d, |6: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-61 d,#0d1410, 62-62 d,d, 63-78 #b2c3b8,d, 79-98 #b2c3b8,#152019, 99-99 d,d, |7: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-61 d,#0d1410, 62-62 d,d, 63-73 #b2c3b8,d, 74-98 #b2c3b8,#152019, 99-99 d,d, |8: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-61 d,#0d1410, 62-62 d,d, 63-82 #b2c3b8,d, 83-98 #b2c3b8,#152019, 99-99 d,d, @@ -77,15 +76,15 @@ |10: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-61 d,#0d1410, 62-62 d,d, 63-98 d,#152019, 99-99 d,d, |11: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-61 d,#0d1410, 62-62 d,d, 63-98 d,#152019, 99-99 d,d, |12: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-61 d,#0d1410, 62-62 d,d, 63-98 d,#152019, 99-99 d,d, -|13: 0-1 d,#465a43, 2-32 #b2c3b8,#1d2824, 33-42 #d3b0d9,#1d2824, 43-49 #b2c3b8,#1d2824, 50-50 #b2c3b8,#608269, 51-61 #b2c3b8,#0d1410, 62-99 d,d, -|14: 0-1 d,#1d2824, 2-49 #b2c3b8,#1d2824, 50-50 #b2c3b8,#608269, 51-99 #b2c3b8,#0d1410, +|13: 0-1 d,#465a43, 2-36 #b2c3b8,#1d2824, 37-49 #d3b0d9,#1d2824, 50-50 #d3b0d9,#608269, 51-61 #d3b0d9,#0d1410, 62-99 d,d, +|14: 0-0 d,#608269, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, |15: 0-0 d,#608269, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, -|16: 0-0 d,#608269, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, -|17: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, -|18: 0-1 d,#465a43, 2-32 #b2c3b8,#1d2824, 33-42 #d3b0d9,#1d2824, 43-49 #b2c3b8,#1d2824, 50-50 #b2c3b8,#608269, 51-99 #b2c3b8,#0d1410, -|19: 0-1 d,#1d2824, 2-49 #b2c3b8,#1d2824, 50-50 #b2c3b8,#608269, 51-99 #b2c3b8,#0d1410, -|20: 0-0 d,#608269, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, -|21: 0-0 d,#608269, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, +|16: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, +|17: 0-1 d,#465a43, 2-36 #b2c3b8,#1d2824, 37-49 #d3b0d9,#1d2824, 50-50 #d3b0d9,#608269, 51-99 #d3b0d9,#0d1410, +|18: 0-0 d,#608269, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, +|19: 0-0 d,#608269, 1-1 d,#0d1410, 2-49 #e5eee5,#0d1410, 50-50 #e5eee5,#608269, 51-99 #e5eee5,#0d1410, +|20: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, +|21: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, |22: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, |23: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, |24: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, @@ -95,12 +94,12 @@ |28: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, |29: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, |30: 0-1 d,#1d2824, 2-99 #6f7d75,#1d2824, -== snap debug-off grid=100x31 cursor=54,6 -|1: New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol -|2: /tmp/pardes-snap/windowops/cwd Term+bash Save Mo /tmp/pardes-snap/windowops/cwd Term+bash Save Mo -|3: de Filter Collapse Del de Filter Collapse Del -|4: ls ls -|5: w.txt w.txt +== snap debug-off grid=100x31 cursor=54,5 +|1: New Term Joincol Delcol New Term Joincol Delcol +|2: /tmp/pardes-snap/windowops/cwd Del Term+bash /tmp/pardes-snap/windowops/cwd Del Term+bash +|3: ls ls +|4: w.txt w.txt +|5: |6: |7: |8: @@ -108,5 +107,5 @@ |10: |11: |12: -|13: /tmp/pardes-snap/windowops/cwd Term+bash Save Mo +|13: /tmp/pardes-snap/windowops/cwd Del Term+bash |30: ✓ @p3 Debug ×2 2 messages · SPC h m diff --git a/test/snapshots/wrap.golden b/test/snapshots/wrap.golden index 5c9b085e..ec1b6339 100644 --- a/test/snapshots/wrap.golden +++ b/test/snapshots/wrap.golden @@ -1,8 +1,6 @@ -== snap on-narrow grid=48x15 cursor=7,4 -| Newcol Joincol Find Grep Help Changelog Tutor -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/wrap/cwd/long.txt Keep Save T -| erm Collapse Follow Del +== snap on-narrow grid=48x15 cursor=7,2 +| New Term Find Grep Newcol Help Exit +| /tmp/pardes-snap/wrap/cwd/long.txt Keep Del | 1 0---------1---------2---------3---------↩ | 4---------5---------6---------7---------↩ | 8---------9---------A---------B---------↩ @@ -13,39 +11,40 @@ | ~ | | +| +| | /tmp/pardes-snap/wrap/cwd/long.txt:1 == snap clicked grid=48x15 cursor=17,4 -== snap logical-j grid=48x15 cursor=17,9 +== snap logical-j grid=48x15 cursor=18,7 |14: /tmp/pardes-snap/wrap/cwd/long.txt:2 -== snap visual-gj grid=48x15 cursor=10,5 +== snap visual-gj grid=48x15 cursor=10,3 |14: /tmp/pardes-snap/wrap/cwd/long.txt:1 -== snap visual-gj-again grid=48x15 cursor=10,6 -== snap visual-gk grid=48x15 cursor=10,5 -== snap visual-count-gj grid=48x15 cursor=10,7 +== snap visual-gj-again grid=48x15 cursor=10,4 +== snap visual-gk grid=48x15 cursor=10,3 +== snap visual-count-gj grid=48x15 cursor=10,5 == snap off grid=48x15 cursor=hidden -|4: 1 0---------1---------2---------3---------4 -|5: 2 second line -|6: 3 third line -|7: ~ +|2: 1 0---------1---------2---------3---------4 +|3: 2 second line +|4: 3 third line +|5: ~ +|6: +|7: |8: |9: -|10: -|11: |14: ✓ …rap/cwd/long.txt Wrap 1 message · SPC h m -== snap on-again grid=48x15 cursor=10,7 -|4: 1 0---------1---------2---------3---------↩ -|5: 4---------5---------6---------7---------↩ -|6: 8---------9---------A---------B---------↩ -|7: C---------D---------E---------F---------↩ -|8: G---------H---------I---------J--------- -|9: 2 second line -|10: 3 third line -|11: ~ +== snap on-again grid=48x15 cursor=10,5 +|2: 1 0---------1---------2---------3---------↩ +|3: 4---------5---------6---------7---------↩ +|4: 8---------9---------A---------B---------↩ +|5: C---------D---------E---------F---------↩ +|6: G---------H---------I---------J--------- +|7: 2 second line +|8: 3 third line +|9: ~ |14: ✓ …/cwd/long.txt Wrap ×2 1 message · SPC h m -== snap on-wide grid=128x15 cursor=7,3 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/wrap/cwd/long.txt Keep Save Term Collapse Follow Del +== snap on-wide grid=128x15 cursor=7,2 +| New Term Find Grep Newcol Help Exit +| /tmp/pardes-snap/wrap/cwd/long.txt Keep Del | 1 0---------1---------2---------3---------4---------5---------6---------7---------8---------9---------A---------B---------↩ | C---------D---------E---------F---------G---------H---------I---------J--------- | 2 second line @@ -57,4 +56,5 @@ | | | +| | /tmp/pardes-snap/wrap/cwd/long.txt:1 diff --git a/test/snapshots/yankpaste.golden b/test/snapshots/yankpaste.golden index 2099cb82..17307919 100644 --- a/test/snapshots/yankpaste.golden +++ b/test/snapshots/yankpaste.golden @@ -1,7 +1,6 @@ -== snap linewise-below grid=100x31 cursor=13,6 -| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit -| New Term Find Grep Joincol Delcol -| */tmp/pardes-snap/yankpaste/cwd/f.txt Save Term Collapse Follow Del +== snap linewise-below grid=100x31 cursor=13,5 +| New Term Find Grep Newcol Help Exit +| */tmp/pardes-snap/yankpaste/cwd/f.txt Save Undo Del | 1 line 1 | 2 line 2 | 3 line 3 @@ -29,22 +28,23 @@ | | | +| | /tmp/pardes-snap/yankpaste/cwd/f.txt:4 -== snap linewise-above grid=100x31 cursor=13,7 -|8: 6 line 2 -|9: 7 line 4 -|10: 8 line 5 -|11: ~ +== snap linewise-above grid=100x31 cursor=13,6 +|7: 6 line 2 +|8: 7 line 4 +|9: 8 line 5 +|10: ~ |30: /tmp/pardes-snap/yankpaste/cwd/f.txt:5 -== snap charwise-inline grid=100x31 cursor=10,3 -|3: 1 liline 1 +== snap charwise-inline grid=100x31 cursor=10,2 +|2: 1 liline 1 |30: /tmp/pardes-snap/yankpaste/cwd/f.txt:1 -== snap blankline grid=100x31 cursor=7,5 -|4: 2 -|5: 3 -|7: 5 line 3 -|10: 8 line 2 -|11: 9 line 4 -|12: 10 line 5 -|13: ~ +== snap blankline grid=100x31 cursor=7,4 +|3: 2 +|4: 3 +|6: 5 line 3 +|9: 8 line 2 +|10: 9 line 4 +|11: 10 line 5 +|12: ~ |30: /tmp/pardes-snap/yankpaste/cwd/f.txt:3 diff --git a/test/soak.py b/test/soak.py index faf447ab..ca046453 100644 --- a/test/soak.py +++ b/test/soak.py @@ -890,10 +890,12 @@ class Run: return at def safe_tags(self): - """The workspace tag without Exit, Dump and the like: the monkey's keys - land in tags too, and an Enter there runs what the line names (a person - does not type Exit by chance; a monkey does, given minutes).""" - self.nine_write('/tag', b'Newcol Joincol Find Grep Help Themes') + """The window row's own text: Joincol and Themes, the old safe tag's + words its computed ones (`Find Grep Newcol Help Exit`, UX K'2) do not + hold. A write appends after those, which no write takes away: Exit + among them (the monkey's keys land in tags too, and an Enter there + runs what the line names), Dump and the like no longer there.""" + self.nine_write('/tag', b'Joincol Themes') def pane_count(self): """The session's panes (a script's view of /index), cached a second: diff --git a/test/tty.zig b/test/tty.zig index 97b64b7c..cbb4e446 100644 --- a/test/tty.zig +++ b/test/tty.zig @@ -128,9 +128,12 @@ pub const Tty = struct { _ = setenv("PARDES_NOTIME", "1", 1); _ = setenv("PARDES_TEST_CLOCK", "1", 1); // Hermetic language clients: `.rs` speaks to the mock, every other - // spec is off, so a stray `.c` never spawns this machine's clangd. + // spec but zls is off, so a stray `.c` never spawns this machine's + // clangd, and no server starts at a file's open (lsp_client.open): + // the `lsp` cases' zls is started by their first query. _ = setenv("PARDES_LSP_RS", try arena.dupeSentinel(u8, lspmock, 0), 1); for ([_][*:0]const u8{ "PARDES_LSP_C", "PARDES_LSP_GO", "PARDES_LSP_TS", "PARDES_LSP_PY" }) |v| _ = setenv(v, "", 1); + _ = setenv("PARDES_LSP_OPEN", "off", 1); const dump = try std.fmt.allocPrintSentinel(arena, "{s}/dump.zon", .{base}, 0); _ = setenv("PARDES_DUMP", dump, 1); if (replay) { |
