diff options
304 files changed, 10750 insertions, 12976 deletions
diff --git a/abi/pardes.h b/abi/pardes.h index 24eb6701..3bacd588 100644 --- a/abi/pardes.h +++ b/abi/pardes.h @@ -299,13 +299,6 @@ float pardes_tagline_origin_col(uint16_t col, uint16_t row); // read, so a host measuring in points passes points. uint16_t pardes_grid_col_at(float x, uint16_t row, float body_w, float tagline_w); -// The tag band's own background, the base a compact tag row is painted on: the -// pane-wide band goes down in THIS colour on the body grid, then each cell's -// own background on the narrower grid its glyph uses. One pass would put a -// highlighted word's box on body pitch and its letters on tagline pitch. -// PARDES_COLOR_DEFAULT before there is a session to ask. -uint32_t pardes_tagline_bg(void); - // The fallback font PREFERENCE ORDER, shared with the SDL shell. Only the order // travels: resolving a name is the host's business, because SDL matches font // FILE STEMS while walking the font directories and CoreText matches PostScript @@ -325,10 +318,6 @@ uint32_t pardes_topbar_pane_border_rgb(void); // pardes.TOPBAR_H, and runtime/macos.zig asserts the two agree. #define PARDES_TOPBAR_H 1u -// The active pane's tag row background, for hosts that afford the active -// tagline more than a tint — macOS raises it like an old-school bevel. -uint32_t pardes_tag_active_bg(void); - // Persistent full-window effect switches and their display-clock time. A zero // flags word means draw the CoreText frame directly; any nonzero combination // is one postprocess pass. Snapshot by value, with no borrowed storage. diff --git a/abi/term.zig b/abi/term.zig index e84d6998..2fb7c260 100644 --- a/abi/term.zig +++ b/abi/term.zig @@ -136,33 +136,33 @@ pub const Span = struct { start: u32, end: u32, style: CellStyle }; // ---- its colours on the body ---- -/// A theme's colours as a terminal's paint takes them. +/// A theme's colours as a terminal's paint takes them, worked out with the +/// theme (colors.Chrome, DESIGN.md R1, R14, R15): its page, its text, SGR +/// faint's ink on it, and its sixteen, which the filter keys a program's +/// colours to as well. `host`: a theme that leaves its page and sixteen to +/// the tty (`dark`), drawn in a tty, whose cells then name the tty's own. pub const Ink = struct { - fg: ?[3]u8, - bg: ?[3]u8, - tag_fg: [3]u8, - tag_bg: [3]u8, - /// The theme's own sixteen, when it has them. - palette: ?[16][3]u8, - /// The sixteen the filter keys a program's colours to: `palette`, else - /// made of the theme's roles. - base: [16][3]u8, + fg: [3]u8, + bg: [3]u8, + dim: [3]u8, + ansi: [16][3]u8, + host: bool, - /// A palette index as the theme draws it: its own sixteen, else the - /// index. + /// A palette index as the theme draws it: its sixteen, else the index. pub fn palColor(ink: *const Ink, idx: u8) Color { - if (ink.palette) |pal| if (idx < 16) return .{ .rgb = pal[idx] }; + if (!ink.host and idx < 16) return .{ .rgb = ink.ansi[idx] }; return .{ .index = idx }; } }; -/// The theme's 256 colours as the filter maps onto them, kept while the -/// theme is the same (`Pardes.tty_filter_palette`). +/// The theme's 256 colours as the filter maps onto them (ghostty's +/// generator over its sixteen, page and text), made once a theme and kept +/// while it is the same (`Pardes.tty_filter_palette`). pub const FilterPalette = struct { key: ?Key = null, colors: [256][3]u8 = undefined, - pub const Key = struct { bg: [3]u8, fg: [3]u8, base: [16][3]u8 }; + pub const Key = struct { bg: [3]u8, fg: [3]u8, ansi: [16][3]u8 }; }; /// A program's colours mapped to the theme, once a frame: what a +Pager's 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/build/core.zig b/build/core.zig index f9cb450f..c787fdc8 100644 --- a/build/core.zig +++ b/build/core.zig @@ -131,9 +131,11 @@ fn patchesHash(b: *std.Build, io: std.Io) u64 { return h; } -fn vendoredThemes(b: *std.Build, io: std.Io) []const []const u8 { +/// The theme sources in `sub` of vendor/themes, sorted: the ring's (`.`), +/// or the retired ones kept themes inherit from (`base`, read, never rung). +fn vendoredThemes(b: *std.Build, io: std.Io, sub: []const u8) []const []const u8 { var names: std.ArrayList([]const u8) = .empty; - var dir = b.root.root_dir.handle.openDir(io, "vendor/themes", .{ .iterate = true }) catch @panic("open vendor/themes"); + var dir = b.root.root_dir.handle.openDir(io, b.pathJoin(&.{ "vendor/themes", sub }), .{ .iterate = true }) catch @panic("open vendor/themes"); defer dir.close(io); var it = dir.iterate(); while (it.next(io) catch @panic("read vendor/themes")) |e| { @@ -161,7 +163,8 @@ pub fn generatedThemes(b: *std.Build, io: std.Io, target: std.Build.ResolvedTarg }); const run_theme_gen = b.addRunArtifact(theme_gen); const themes_out = run_theme_gen.addOutputDirectoryArg("themes"); - for (vendoredThemes(b, io)) |name| run_theme_gen.addFileArg(b.path(b.fmt("vendor/themes/{s}", .{name}))); + for (vendoredThemes(b, io, ".")) |name| run_theme_gen.addFileArg(b.path(b.fmt("vendor/themes/{s}", .{name}))); + for (vendoredThemes(b, io, "base")) |name| run_theme_gen.addPrefixedFileArg("base=", b.path(b.fmt("vendor/themes/base/{s}", .{name}))); return b.createModule(.{ .target = target, .optimize = optimize, diff --git a/build/tests.zig b/build/tests.zig index 8cf42acd..c35857f7 100644 --- a/build/tests.zig +++ b/build/tests.zig @@ -76,6 +76,11 @@ pub fn add(b: *std.Build, c: struct { core_test_step.dependOn(&run_core_test.step); if (core_match) |check| check.addArtifactArg(core_test); } + // The theme importer's own tests (tools/gen_themes.zig): its mapping, + // rule by rule, on the machine that builds. + const gen_themes_test = b.addTest(.{ .root_module = b.createModule(.{ .root_source_file = b.path("tools/gen_themes.zig"), .target = b.graph.host, .optimize = .debug }), .filters = c.test_filters }); + core_test_step.dependOn(&b.addRunArtifact(gen_themes_test).step); + if (core_match) |check| check.addArtifactArg(gen_themes_test); // The terminal module's own tests (core/term/): the emulator without a core. const run_term_test = units.add(b, b.addTest(.{ .root_module = c.parts.term, .filters = c.test_filters }), null); b.step("term-test", "run the terminal module's own tests (core/term/)").dependOn(&run_term_test.step); 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 4c98977a..3a2e1f51 100644 --- a/core/Core.zig +++ b/core/Core.zig @@ -351,8 +351,6 @@ custom_theme: ?LegacyTheme = null, /// session's own theme untouched under it. theme_preview: ?u16 = null, preview_chrome: ChromeTheme = undefined, -/// bodyChrome's: the theme it was worked out for, and it. -body_chrome: ?struct { theme: LegacyTheme, chrome: ChromeTheme } = null, theme_file_path: config.Settings.Text(limits.host_path_cap) = .{}, /// The ThemeFile last loaded whole: what /ctl and DumpConfig name, and /// what a failed ThemeFile goes back to (colors.revertThemeFile). @@ -547,7 +545,7 @@ pub const replica = .{ "opts", "dump_out", "dump_export", "tape", }, - .derived = .{ "shell_rows", "diff_output", "locations_cache", "retired_panes", "tty_filter_palette", "body_chrome", "theme_preview", "preview_chrome" }, + .derived = .{ "shell_rows", "diff_output", "locations_cache", "retired_panes", "tty_filter_palette", "theme_preview", "preview_chrome" }, // The host's handles, the state file every session of the user // shares (and Recent read from it), this session's closed panes, and // the files of a host with no file system of its own. (The 9P @@ -1006,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; } @@ -1172,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 |_| {} } @@ -2021,7 +2005,9 @@ pub fn layOut(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); @@ -2061,7 +2047,7 @@ pub fn layOut(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; @@ -2187,10 +2173,11 @@ fn sizes(p: *const Pardes, pane: *const Pane) bool { return pane.sized_by == p.live; } +/// The theme in the old names, for what still reads a theme's own +/// fields (colors.ChromeTheme.view). pub fn theme(p: *const Pardes) *const LegacyTheme { - if (p.theme_preview) |i| return &colors.legacy_themes[i]; - if (p.custom_theme) |*custom| return custom; - return &colors.legacy_themes[p.settings.theme]; + if (p.theme_preview == null) if (p.custom_theme) |*custom| return custom; + return &p.chromeTheme().view; } /// The colours of the chrome: the theme's, set as it changes. @@ -2205,16 +2192,6 @@ pub fn chrome(p: *const Pardes) *const colors.Chrome { return &p.chromeTheme().resolved; } -/// The theme's own chrome, not a fade's (`theme()`'s, worked out once -/// per theme: its contrast searches take pow calls, too many for a -/// grapheme or a row). -pub fn bodyChrome(p: *Pardes) *const ChromeTheme { - const th = p.theme(); - if (p.body_chrome) |*cached| if (std.meta.eql(cached.theme, th.*)) return &cached.chrome; - p.body_chrome = .{ .theme = th.*, .chrome = ChromeTheme.fromTheme(th) }; - return &p.body_chrome.?.chrome; -} - /// When the core next needs a frame, on the `stepped_ns` timeline: a /// frame from now while work goes on (places to find, a picture /// decoding, a PDF page on a lane), the end of the wait while something @@ -2585,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" { @@ -2614,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; @@ -2643,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, @@ -2662,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) { @@ -2736,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); @@ -2802,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); @@ -2832,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); @@ -2844,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); @@ -3116,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. @@ -3319,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" { @@ -3345,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. @@ -3385,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); @@ -3403,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; @@ -3425,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; @@ -3786,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.?); } @@ -3806,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"); @@ -3838,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" { @@ -3866,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); @@ -3879,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); } 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 72244f2b..6146df69 100644 --- a/core/Effect.zig +++ b/core/Effect.zig @@ -448,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" }); @@ -632,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 d16b0c73..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 }; } }; @@ -2197,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; @@ -2496,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 { @@ -2923,7 +2931,8 @@ pub const Layers = struct { pub const SynStyle = struct { fg: [3]u8, bold: bool }; pub fn synStyle(p: *Pardes, sy: syntax.Syn) ?SynStyle { - return .{ .fg = Colors.synInk(p.theme(), sy) orelse return null, .bold = false }; + if (sy == .none) return null; + return .{ .fg = p.chrome().syntax[@intFromEnum(sy)], .bold = false }; } /// syntax colors: recolor each content cell from its tree-sitter style byte; @@ -2946,9 +2955,9 @@ pub fn recolorSyntax(p: *Pardes, s: *Surface, pane: *Pane, f: *State, r: pardes. const tz_recolor = tracy.zone(@src(), "synRecolor"); defer tz_recolor.end(); // A row whose first byte names a hue (syntax.ground_add, _del): its - // grounds, the theme's, worked out once a frame and only for one. - var grounds: ?Colors.Grounds = null; - const ink = ansi.inkOf(p.theme()); + // grounds, the chrome's (R10). + const chrome = p.chrome(); + const ink = ansi.inkOf(p); var filtered_storage: pardes.Term.Filter = undefined; const filtered: ?*pardes.Term.Filter = if (pane.tty_filter and spans.len > 0) blk: { filtered_storage = pardes.Term.filter(&ink, &p.tty_filter_palette); @@ -2986,14 +2995,11 @@ pub fn recolorSyntax(p: *Pardes, s: *Surface, pane: *Pane, f: *State, r: pardes. const row_index: usize = @intCast(@max(0, pane.wrapAt(p.settings.tab, vr).line)); const metadata: ?locations.Row = if (row_index < f.location_rows.len) f.location_rows[row_index] else null; const decoration = Output.decorateRow(f.output, line, metadata); - const chrome: ?*const pardes.ChromeTheme = if (decoration.plain()) null else p.bodyChrome(); + const decorated = !decoration.plain(); // The row's first byte: its hue and its ground, on every wrapped // row of it (syntax.ground_add). const lead: u8 = if (base >= highlight_start and base - highlight_start < highlights.len) highlights[base - highlight_start] else 0; - const tint: ?Colors.Grounds.Ground = if (lead & (syntax.ground_add | syntax.ground_del) == 0) null else (grounds orelse ground: { - grounds = .of(p.theme()); - break :ground grounds.?; - }).forStyle(lead); + const tint: ?*const Colors.Chrome.Diff = if (lead & syntax.ground_add != 0) &chrome.add else if (lead & syntax.ground_del != 0) &chrome.del else null; // 2, the patch: the row's ground. if (tint) |t| if (prefix_width < tw) { const ground: ?[3]u8 = if (lead & syntax.ground_emph != 0) t.row else if (lead & syntax.ground_line != 0) t.line else null; @@ -3010,7 +3016,7 @@ pub fn recolorSyntax(p: *Pardes, s: *Surface, pane: *Pane, f: *State, r: pardes. var c: usize = 0; const pad: usize = if (vr < pane.wrap_n) pane.wrap_pad[vr] else 0; for (0..@min(pad, tw -| prefix_width)) |col| { - s.at(tx + @as(u16, @intCast(prefix_width + col)), body_y + vr).style.fg = .{ .rgb = p.bodyChrome().diagnostic_info }; + s.at(tx + @as(u16, @intCast(prefix_width + col)), body_y + vr).style.fg = .{ .rgb = chrome.page.dim }; } var screen_c: usize = pad; var table_buf: [Tables.max_pads]Tables.Pad = undefined; @@ -3058,7 +3064,7 @@ pub fn recolorSyntax(p: *Pardes, s: *Surface, pane: *Pane, f: *State, r: pardes. } // Results keep their exact live text. Only the location, // matched source range and diagnostic label gain emphasis. - if (if (chrome) |ch| decoration.styleAt(ch, hs + c) else null) |style| { + if (if (decorated) decoration.styleAt(chrome, hs + c) else null) |style| { var fill: usize = 0; while (fill < cells and prefix_width + screen_c + fill < tw) : (fill += 1) { const cell = s.at(tx + @as(u16, @intCast(prefix_width + screen_c + fill)), body_y + vr); @@ -3110,6 +3116,7 @@ pub fn paintWordSelection( word_lo: i32, word_hi: i32, bg: [3]u8, + fg: ?[3]u8, ) void { const tx = r.x + config.GUTTER; const tw = r.w - config.GUTTER; @@ -3128,7 +3135,7 @@ pub fn paintWordSelection( const c1 = @as(i32, prefix_width) + here.pad + displayEndOffset(p.settings.tab, pane, row, here.at, hi - 1); const col = @max(@as(i32, prefix_width), c0); const end = @min(c1 + 1, @as(i32, tw)); - if (col < end) s.tint(tx + @as(u16, @intCast(col)), body_y + @as(u16, @intCast(vr)), @intCast(end - col), bg, null); + if (col < end) s.tint(tx + @as(u16, @intCast(col)), body_y + @as(u16, @intCast(vr)), @intCast(end - col), bg, fg); } } @@ -3621,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/Kind.zig b/core/Kind.zig index e220ead7..4841a55c 100644 --- a/core/Kind.zig +++ b/core/Kind.zig @@ -325,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; diff --git a/core/Messages.zig b/core/Messages.zig index e05961b5..fb2c3cde 100644 --- a/core/Messages.zig +++ b/core/Messages.zig @@ -435,6 +435,18 @@ pub fn ink(chrome: *const pardes.colors.ChromeTheme, kind: Kind) [3]u8 { }; } +/// A message's ink on a ground of the chrome (R9): an error's, a warning's +/// and a question's their severity's held there (a question info's), an +/// echo, a notice and progress the ground's dim ink. +pub fn inkOn(inks: *const pardes.colors.Chrome.Inks, kind: Kind) [3]u8 { + return switch (kind) { + .@"error" => inks.severity[0], + .warn => inks.severity[1], + .question => inks.severity[2], + .echo, .notice, .progress => inks.dim, + }; +} + /// The places a compiler's report names put on `s`: each /// `path:line:col: error|warning|note: words` row (a relative path is /// `dir`'s), its words there, each place once, and the rows after the @@ -1554,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 01dbecf0..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 }; @@ -189,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; @@ -232,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]; diff --git a/core/Output.zig b/core/Output.zig index fe1543fe..f0b32c4e 100644 --- a/core/Output.zig +++ b/core/Output.zig @@ -70,27 +70,20 @@ const RowDecoration = struct { return row.guide_end == 0 and !row.declaration and row.location_end == 0 and row.prefix_end == 0 and row.mark_end <= row.mark_start; } - /// `chrome` is the theme's own (Pardes.bodyChrome): body paper changes - /// immediately, so its ink must change with it even while the - /// surrounding tags are still fading. Once a frame, never a grapheme: - /// working it out takes the contrast searches' pow calls. - pub fn styleAt(row: RowDecoration, chrome: *const pardes.ChromeTheme, byte: usize) ?pardes.CellStyle { + /// On the page (`chrome`, Pardes.chrome): a tree's guides in the dim + /// ink, a location in the line numbers', the match a hit, a + /// diagnostic's label in its severity's ink (R8, R9). + pub fn styleAt(row: RowDecoration, chrome: *const pardes.colors.Chrome, byte: usize) ?pardes.CellStyle { if (row.plain()) return null; - if (byte < row.guide_end) return .{ .fg = .{ .rgb = chrome.diagnostic_info } }; + if (byte < row.guide_end) return .{ .fg = .{ .rgb = chrome.page.dim } }; if (row.declaration or byte < @max(row.location_end, row.prefix_end)) - return .{ .fg = .{ .rgb = chrome.lineno } }; + return .{ .fg = .{ .rgb = chrome.line_number } }; if (byte < row.mark_start or byte >= row.mark_end) return null; if (row.severity == .none) return .{ - .fg = .{ .rgb = chrome.search_fg }, - .bg = .{ .rgb = chrome.search_bg }, + .fg = .{ .rgb = chrome.page.text }, + .bg = .{ .rgb = chrome.hit }, }; - return .{ .fg = .{ .rgb = switch (row.severity) { - .err => chrome.diagnostic_error, - .warning => chrome.diagnostic_warning, - .info => chrome.diagnostic_info, - .hint => chrome.diagnostic_hint, - .none => unreachable, - } }, .bold = true }; + return .{ .fg = .{ .rgb = chrome.page.severity[@intFromEnum(row.severity) - 1] }, .bold = true }; } }; @@ -198,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 { @@ -244,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 => {}, @@ -258,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 5951f925..c05ed084 100644 --- a/core/Pick.zig +++ b/core/Pick.zig @@ -482,7 +482,10 @@ 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(); @@ -551,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); @@ -621,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(); @@ -687,8 +706,22 @@ fn rowAt(p: *Pardes, pk: *const Pick, arena: std.mem.Allocator, i: usize) std.me 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 } } }; @@ -878,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 @@ -1285,8 +1318,8 @@ pub fn ghosts(p: *Pardes, s: *Surface, arena: std.mem.Allocator, pane: *Pane, r: if (rows <= first) return; const w: usize = s.cols; const old = try arena.dupe(Cell, s.cells[(y0 + first) * w .. (y0 + rows) * w]); - const grounds = colors.Grounds.of(p.theme()); - const ink = p.theme().fg orelse p.theme().tag_fg; + const chrome = p.chrome(); + const ink = chrome.page.text; const x0 = r.x + config.GUTTER + File.gutterWidth(pane); const width = r.w -| (x0 - r.x); var out: usize = first; @@ -1303,15 +1336,15 @@ pub fn ghosts(p: *Pardes, s: *Surface, arena: std.mem.Allocator, pane: *Pane, r: if (out >= rows) break; const y: u16 = @intCast(y0 + out); s.fill(0, y, @intCast(s.cols), 1, .{}); - s.fill(x0, y, width, 1, .{ .bg = .{ .rgb = grounds.add.row } }); - _ = s.print(x0, y, width, l, .{ .fg = .{ .rgb = ink }, .bg = .{ .rgb = grounds.add.row } }); + s.fill(x0, y, width, 1, .{ .bg = .{ .rgb = chrome.add.row } }); + _ = s.print(x0, y, width, l, .{ .fg = .{ .rgb = ink }, .bg = .{ .rgb = chrome.add.row } }); out += 1; }; } } if (out >= rows) break; @memcpy(s.cells[(y0 + out) * w ..][0..w], old[(vr - first) * w ..][0..w]); - if (g < groups.items.len and line >= groups.items[g].lo and line < groups.items[g].hi) s.tint(x0, @intCast(y0 + out), width, grounds.del.row, null); + if (g < groups.items.len and line >= groups.items[g].lo and line < groups.items[g].hi) s.tint(x0, @intCast(y0 + out), width, chrome.del.row, null); out += 1; } } @@ -1524,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); @@ -1623,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, @@ -2697,15 +2731,15 @@ test "code actions: a picker in the asking pane's tag, the one under the cursor const r = p.view().rects[id]; const x = r.x + config.GUTTER + File.gutterWidth(pane); const y = p.bodyTop(pane, r); - const grounds = colors.Grounds.of(p.theme()); + const chrome = p.chrome(); for ([_][]const u8{ "o", "t", "t", "t" }, [_][]const u8{ "n", "w", "w", "h" }, 0..) |c0, c1, row| { try std.testing.expectEqualStrings(c0, shot.at(x, y + @as(u16, @intCast(row))).grapheme()); try std.testing.expectEqualStrings(c1, shot.at(x + 1, y + @as(u16, @intCast(row))).grapheme()); } try std.testing.expectEqualStrings("a", shot.at(x + 4, y + 1).grapheme()); try std.testing.expectEqualStrings("s", shot.at(x + 4, y + 2).grapheme()); - try std.testing.expectEqual(pardes.Color{ .rgb = grounds.del.row }, shot.at(x, y + 1).style.bg); - try std.testing.expectEqual(pardes.Color{ .rgb = grounds.add.row }, shot.at(x, y + 2).style.bg); + try std.testing.expectEqual(pardes.Color{ .rgb = chrome.del.row }, shot.at(x, y + 1).style.bg); + try std.testing.expectEqual(pardes.Color{ .rgb = chrome.add.row }, shot.at(x, y + 2).style.bg); try std.testing.expectEqualStrings("one\ntwo add\nthree\n", pane.file.?.content); // An action lands nowhere: no landing line, no `▸` before the line it // changes, no sentence of where Enter lands (UX D7's are a jump's; an @@ -2722,10 +2756,10 @@ test "code actions: a picker in the asking pane's tag, the one under the cursor frame = std.heap.ArenaAllocator.init(std.testing.allocator); shot = try p.render(frame.allocator()); try std.testing.expectEqualStrings("/", shot.at(x, y).grapheme()); - try std.testing.expectEqual(pardes.Color{ .rgb = grounds.add.row }, shot.at(x, y).style.bg); + try std.testing.expectEqual(pardes.Color{ .rgb = chrome.add.row }, shot.at(x, y).style.bg); try std.testing.expectEqualStrings("o", shot.at(x, y + 1).grapheme()); - try std.testing.expect(!std.meta.eql(pardes.Color{ .rgb = grounds.del.row }, shot.at(x, y + 1).style.bg)); - try std.testing.expect(!std.meta.eql(pardes.Color{ .rgb = p.chromeTheme().roles.hit }, shot.at(x, y + 1).style.bg)); + try std.testing.expect(!std.meta.eql(pardes.Color{ .rgb = chrome.del.row }, shot.at(x, y + 1).style.bg)); + try std.testing.expect(!std.meta.eql(pardes.Color{ .rgb = p.chrome().hit }, shot.at(x, y + 1).style.bg)); // `3`: the rename applied, the tag at rest; one undo takes it back. p.update(.{ .key = .{ .cp = '3', .text = "3" } }); try std.testing.expectEqual(TagState.Kind.rest, s.kind); @@ -2832,16 +2866,16 @@ test "a picker's preview is legible as one (UX D7): its landing line on the hit }; try std.testing.expectEqual(@as(?u16, @intCast((pane.rows + 2) / 3)), at); const y = body_y + at.?; - const roles = &p.chromeTheme().roles; + const c = p.chrome(); const tx = r.x + pardes.config.GUTTER; const gutter = File.gutterWidth(pane); // Its text on the hit ground across the row; the row above as it was. - for (gutter..r.w - pardes.config.GUTTER) |x| try std.testing.expectEqual(pardes.Color{ .rgb = roles.hit }, s.at(tx + @as(u16, @intCast(x)), y).style.bg); - try std.testing.expect(!std.meta.eql(s.at(tx + gutter + 2, y - 1).style.bg, pardes.Color{ .rgb = roles.hit })); + for (gutter..r.w - pardes.config.GUTTER) |x| try std.testing.expectEqual(pardes.Color{ .rgb = c.hit }, s.at(tx + @as(u16, @intCast(x)), y).style.bg); + try std.testing.expect(!std.meta.eql(s.at(tx + gutter + 2, y - 1).style.bg, pardes.Color{ .rgb = c.hit })); // `▸` in the key ink in the gutter's cell after the number. const mark = s.at(tx + gutter - 1, y); try std.testing.expectEqualStrings("▸", mark.grapheme()); - try std.testing.expectEqual(pardes.Color{ .rgb = roles.key }, mark.style.fg); + try std.testing.expectEqual(pardes.Color{ .rgb = c.page.key }, mark.style.fg); // The notice row: where Enter lands, the owner's address a word in it. var buf: [pardes.Messages.notice_row_cap]u8 = undefined; const said = pardes.Messages.noticeRow(p, 120, &buf); @@ -3396,6 +3430,217 @@ test "Ctrl-r in a picker unrolls its source's earlier queries (UX L2's last line 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(); 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/Places.zig b/core/Places.zig index 8563d7c8..b4ef17aa 100644 --- a/core/Places.zig +++ b/core/Places.zig @@ -659,19 +659,17 @@ pub fn origin(set: *const Places, pane: *Pane) usize { } /// Every place on the rows shown, tinted over the text: the hit ground, -/// the current one the current hit's (colors.Roles, UX D4, D14). +/// the current one solid in the hue with the page's ink (R8, UX D14); a +/// search prompt's pattern that is no regex, its last places dimmed: the +/// current on the hit ground, the rest faint. pub fn paint(set: *Places, p: *Pardes, s: *Surface, pane: *Pane, r: pardes.Rect, body_h: u16) void { if (!set.shows(pane)) return; const f = &pane.file.?; - const th = p.theme(); - const roles = &p.chromeTheme().roles; - var strong = roles.hit_current; - var quiet = roles.hit; - // A search prompt's pattern that is no regex: its last places, dimmed. - if (pardes.Prompt.dims(p, pane)) { - strong = quiet; - quiet = colors.mix(th.bg orelse th.tag_bg, quiet); - } + const c = p.chrome(); + const dim = pardes.Prompt.dims(p, pane); + const strong = if (dim) c.hit else c.hit_current; + const strong_ink: ?[3]u8 = if (dim) null else c.hit_current_text; + const quiet = if (dim) c.hit_faint else c.hit; const hits = set.hits.items; if (hits.len == 0) return; const nlines = File.nlines(p.gpa, f); @@ -697,7 +695,7 @@ pub fn paint(set: *Places, p: *Pardes, s: *Surface, pane: *Pane, r: pardes.Rect, const b = @min(hits[i].end, le) - ls; if (b <= a) continue; const current = set.current != null and set.current.? == i; - File.paintWordSelection(p, s, pane, r, line, @intCast(a), @intCast(b), if (current) strong else quiet); + File.paintWordSelection(p, s, pane, r, line, @intCast(a), @intCast(b), if (current) strong else quiet, if (current) strong_ink else null); } } } @@ -903,3 +901,42 @@ test "a session's places loaded from its dump find what an edit makes as the ses b.panes[b.view().active].?.file.?.mtime = a.panes[a.view().active].?.file.?.mtime; try std.testing.expectEqual(pardes.walk.digest(Pardes, a), pardes.walk.digest(Pardes, b)); } + +test "places: each on the hit ground in its text's own ink, the current one solid, the hue its ground and the page its ink (R8, G7), the selection over it; a search whose field is no regex dims them, the rest faint" { + const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .cols = 80, .rows = 24 }); + defer p.deinit(); + colors.setThemeIndex(p, colors.themeIndex("orchard").?); + const pane = try p.setTestFile("alpha beta\ngamma alpha\nb\nb\nb\nb\nb\nb\nb\nzeta alpha\n"); + // Landed on the first, the caret then moved off it: the places stay. + typeKeys(p, "/alpha"); + p.update(.{ .key = .{ .cp = pardes.Key.enter } }); + typeKeys(p, "j"); + try std.testing.expect(pane.places.shows(pane)); + try std.testing.expectEqual(@as(?usize, 0), pane.places.current); + const c = p.chrome(); + var frame: std.heap.ArenaAllocator = .init(std.testing.allocator); + defer frame.deinit(); + const r = p.view().rects[0]; + const x = r.x + pardes.config.GUTTER + File.gutterWidth(pane); + const y = p.bodyTop(pane, r); + var s = try p.render(frame.allocator()); + for (0..5) |i| { + const current = s.at(x + @as(u16, @intCast(i)), y).style; + try std.testing.expectEqual(pardes.Color{ .rgb = c.hit_current }, current.bg); + try std.testing.expectEqual(pardes.Color{ .rgb = c.hit_current_text }, current.fg); + const other = s.at(x + 6 + @as(u16, @intCast(i)), y + 1).style; + try std.testing.expectEqual(pardes.Color{ .rgb = c.hit }, other.bg); + try std.testing.expectEqual(pardes.Color{ .rgb = c.page.text }, other.fg); + } + // Searched again from line 2: its place current and selected, drawn as + // the place (body_layer: one meaning, one look); then `(`, no regex: the + // others faint (line 10's: the prompt's words lie over the top rows). + typeKeys(p, "/alpha"); + try std.testing.expectEqual(@as(?usize, 1), pane.places.current); + s = try p.render(frame.allocator()); + for (0..4) |i| try std.testing.expectEqual(pardes.Color{ .rgb = c.hit_current }, s.at(x + 6 + @as(u16, @intCast(i)), y + 1).style.bg); + typeKeys(p, "("); + try std.testing.expect(pardes.Prompt.dims(p, pane)); + s = try p.render(frame.allocator()); + for (5..10) |i| try std.testing.expectEqual(pardes.Color{ .rgb = c.hit_faint }, s.at(x + @as(u16, @intCast(i)), y + 9).style.bg); +} diff --git a/core/Prompt.zig b/core/Prompt.zig index b76b2d9a..49a9645d 100644 --- a/core/Prompt.zig +++ b/core/Prompt.zig @@ -874,7 +874,7 @@ pub fn paintGutter(p: *Pardes, s: *Surface, pane: *Pane, r: pardes.Rect, body_h: const tab = p.settings.tab; const x = gutterX(pane, r); const y = p.bodyTop(pane, r); - const ink = p.chromeTheme().roles.key; + const ink = p.chrome().page.key; const nlines = File.nlines(p.gpa, f); // `▸` on the current place's line alone: the lines with places are the // rail's ticks (Places.addTicks), never glyphs of their own (UX D14). @@ -953,8 +953,8 @@ pub fn ghosts(p: *Pardes, s: *Surface, arena: std.mem.Allocator, pane: *Pane, r: if (rows <= first) return; const w: usize = s.cols; const old = try arena.dupe(Cell, s.cells[(y0 + first) * w .. (y0 + rows) * w]); - const grounds = colors.Grounds.of(p.theme()); - const ink = p.theme().fg orelse p.theme().tag_fg; + const chrome = p.chrome(); + const ink = chrome.page.text; const x0 = r.x + config.GUTTER + File.gutterWidth(pane); const width = r.w -| (x0 - r.x); const ranges = live_run.ranges[0..live_run.nranges]; @@ -969,18 +969,18 @@ pub fn ghosts(p: *Pardes, s: *Surface, arena: std.mem.Allocator, pane: *Pane, r: // `!`: its output before the selection's first line. var j = k; if (how == .insert and opens) while (j < ranges.len and lineAt(index, @min(ranges[j].anchor, ranges[j].head)) == line) : (j += 1) { - out = ghostRows(s, live_run, j, out, rows, y0, x0, width, grounds.add.row, ink); + out = ghostRows(s, live_run, j, out, rows, y0, x0, width, chrome.add.row, ink); }; if (out >= rows) break; @memcpy(s.cells[(y0 + out) * w ..][0..w], old[(vr - first) * w ..][0..w]); j = k; while (j < ranges.len and lineAt(index, @min(ranges[j].anchor, ranges[j].head)) <= line) : (j += 1) { - if (how == .replace and outcome(live_run, j) == 0) s.tint(x0, @intCast(y0 + out), width, grounds.del.row, null); + if (how == .replace and outcome(live_run, j) == 0) s.tint(x0, @intCast(y0 + out), width, chrome.del.row, null); } out += 1; // `|` and `A-!`: after the selection's last line. if (how != .insert and closes) while (k < ranges.len and lineAt(index, @max(ranges[k].anchor, ranges[k].head) -| 1) == line) : (k += 1) { - out = ghostRows(s, live_run, k, out, rows, y0, x0, width, grounds.add.row, ink); + out = ghostRows(s, live_run, k, out, rows, y0, x0, width, chrome.add.row, ink); }; } // What was pushed past the view leaves blank rows behind it, none. @@ -1027,7 +1027,7 @@ fn fence(p: *Pardes, s: *Surface, pane: *Pane, r: pardes.Rect, body_h: u16) void if (snap.len == 0) return; const x = gutterX(pane, r); const y = p.bodyTop(pane, r); - const ink = p.chromeTheme().box; + const ink = p.chrome().page.key; const nlines = File.nlines(p.gpa, f); const op = p.view().tag_state.prompt.op; var kept: [Text.max_selections]modal.Selection = undefined; @@ -1500,12 +1500,12 @@ test "/ searches the body as it is typed: the current place selected, `▸` in t { const s = try p.render(frame.allocator()); const r = p.view().rects[0]; - const roles = &p.chromeTheme().roles; + const c = p.chrome(); const x = r.x + config.GUTTER + File.gutterWidth(pane); const y = p.bodyTop(pane, r); - try std.testing.expectEqual(pardes.Color{ .rgb = roles.key }, s.at(x - 1 - File.laneCells(pane) - pane.layers.heat, y + 2).style.fg); + try std.testing.expectEqual(pardes.Color{ .rgb = c.page.key }, s.at(x - 1 - File.laneCells(pane) - pane.layers.heat, y + 2).style.fg); // Line 1's place (`dirty` at its start) on the hit ground. - try std.testing.expectEqual(pardes.Color{ .rgb = roles.hit }, s.at(x, y).style.bg); + try std.testing.expectEqual(pardes.Color{ .rgb = c.hit }, s.at(x, y).style.bg); } p.update(.{ .key = .{ .cp = Key.enter } }); try std.testing.expectEqual(TagState.Kind.rest, p.view().tag_state.kind); @@ -1651,8 +1651,10 @@ test "a pipe prompt runs a known filter live, a run a selection: the outputs gho const x = r.x + config.GUTTER + File.gutterWidth(pane); const y = p.bodyTop(pane, r); for ([_][]const u8{ "b", "B", "a", "A", "c" }, 0..) |want, row| try std.testing.expectEqualStrings(want, s.at(x, y + @as(u16, @intCast(row))).grapheme()); - try std.testing.expectEqual(pardes.Color{ .rgb = colors.Grounds.of(p.theme()).del.row }, s.at(x, y).style.bg); - try std.testing.expectEqual(pardes.Color{ .rgb = colors.Grounds.of(p.theme()).add.row }, s.at(x, y + 1).style.bg); + // On the chrome's diff rows (R10), the ghost in the page's text. + try std.testing.expectEqual(pardes.Color{ .rgb = p.chrome().del.row }, s.at(x, y).style.bg); + try std.testing.expectEqual(pardes.Color{ .rgb = p.chrome().add.row }, s.at(x, y + 1).style.bg); + try std.testing.expectEqual(pardes.Color{ .rgb = p.chrome().page.text }, s.at(x, y + 1).style.fg); try std.testing.expectEqualStrings("b\na\nc\n", pane.file.?.content); // Enter: what the live run made, applied. p.update(.{ .key = .{ .cp = Key.enter } }); diff --git a/core/Query.zig b/core/Query.zig index 1a420a68..f9651faf 100644 --- a/core/Query.zig +++ b/core/Query.zig @@ -471,8 +471,8 @@ fn makeNameRows(p: *Pardes, id: usize) !void { var rows: std.ArrayList(locations.Row) = .empty; var spans: std.ArrayList(pardes.Term.Span) = .empty; errdefer spans.deinit(p.gpa); - const chrome = p.bodyChrome(); - const tint: pardes.CellStyle = .{ .fg = .{ .rgb = chrome.search_fg }, .bg = .{ .rgb = chrome.search_bg }, .bold = true }; + const chrome = p.chrome(); + const tint: pardes.CellStyle = .{ .fg = .{ .rgb = chrome.page.text }, .bg = .{ .rgb = chrome.hit }, .bold = true }; const shown = @min(q.names.hits.items.len, Names.max_rows); var marks: [Names.max_query * 4]u16 = undefined; const base = lineOne(rp.file.?.content).len + 1; @@ -510,7 +510,7 @@ fn makeNameRows(p: *Pardes, id: usize) !void { // A closed pane's row is dimmer, the gutter's colour, between its // marks (spans are walked in order, never overlapping). const dim = q.source == .panes and p.paneBySerial(cand.ref) == null; - const dimmed: pardes.CellStyle = .{ .fg = .{ .rgb = chrome.lineno } }; + const dimmed: pardes.CellStyle = .{ .fg = .{ .rgb = chrome.line_number } }; var gap: usize = 0; var k: usize = 0; while (k < nmarks) { @@ -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)"; @@ -2093,8 +2125,7 @@ pub fn tagPrefix(q: *const Query, arena: std.mem.Allocator, path: []const u8) er pub fn paintMark(p: *Pardes, s: *Surface, pane: *Pane, r: pardes.Rect, body_h: u16) void { const q = pane.query orelse return; const c = q.current orelse return; - const th = p.theme(); - const mark = colors.mix(th.bg orelse th.tag_bg, th.sel_bg); + const mark = p.chrome().selection_secondary; const tx = r.x + config.GUTTER; const tw = r.w -| config.GUTTER; const col = File.gutterWidth(pane); @@ -2107,13 +2138,11 @@ pub fn paintMark(p: *Pardes, s: *Surface, pane: *Pane, r: pardes.Rect, body_h: u /// The other places on a hit row's line tinted, from the pane its rows are /// in (the first is the row's own mark, Output.decorateRow): the current -/// one strongest, as in that pane's text. +/// one solid, as in that pane's text (Places.paint). pub fn paint(p: *Pardes, s: *Surface, pane: *Pane, r: pardes.Rect, body_h: u16) void { const q = pane.query orelse return; const f = if (pane.file) |*file| file else return; - const th = p.theme(); - const strong = p.chromeTheme().search_bg; - const quiet = colors.mix(th.bg orelse th.tag_bg, strong); + const c = p.chrome(); var vr: i32 = 0; var last: i32 = -1; while (vr < body_h) : (vr += 1) { @@ -2145,7 +2174,7 @@ pub fn paint(p: *Pardes, s: *Surface, pane: *Pane, r: pardes.Rect, body_h: u16) const b = @min(line.len, meta.code_start + (@min(h.end, next) - ls - meta.source_column)); if (b <= a or a >= line.len) continue; const current = set.current != null and set.current.? == hi; - File.paintWordSelection(p, s, pane, r, row, @intCast(a), @intCast(b), if (current) strong else quiet); + File.paintWordSelection(p, s, pane, r, row, @intCast(a), @intCast(b), if (current) c.hit_current else c.hit, if (current) c.hit_current_text else null); } } } @@ -2816,3 +2845,48 @@ test "Grep: a row whose numbers a Found cannot hold (a column past u32) is passe // Taken or passed over, each: never cast (main: Query.zig:1267). try std.testing.expect(q.found.items.len <= 3); } + +test "a query pane's hits are the body's: a row's match on the hit ground in the text's ink, the owner's current place solid in the hue with the page's ink, the current row marked with the selection's faint half" { + const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .cols = 100, .rows = 40 }); + defer p.deinit(); + p.settings.jumps = .@"new-pane"; + colors.setThemeIndex(p, colors.themeIndex("orchard").?); + const pane = try p.setTestFile("alpha one alpha\nbeta\ngamma alpha\n"); + slash(p, "/alpha"); + const qid = queryPane(p).?; + const qp = p.panes[qid].?; + try std.testing.expectEqual(@as(?usize, 0), qp.query.?.current); + try std.testing.expectEqual(@as(?usize, 0), pane.places.current); + var frame = std.heap.ArenaAllocator.init(std.testing.allocator); + defer frame.deinit(); + const s = try p.render(frame.allocator()); + const c = p.chrome(); + const r = p.view().rects[qid]; + // Row 1 (line 1 is the query) the first place's line, row 2 the third's. + var rows: [2][]const u8 = undefined; + for (&rows, 1..) |*row, k| { + var text: std.ArrayList(u8) = .empty; + for (0..r.w) |x| try text.appendSlice(frame.allocator(), s.at(r.x + @as(u16, @intCast(x)), p.bodyTop(qp, r) + @as(u16, @intCast(k))).grapheme()); + row.* = text.items; + } + const y = p.bodyTop(qp, r) + 1; + const first = std.mem.indexOf(u8, rows[0], "alpha").?; + const second = std.mem.lastIndexOf(u8, rows[0], "alpha").?; + const third = std.mem.indexOf(u8, rows[1], "alpha").?; + try std.testing.expect(second > first + 5); + for (0..5) |i| { + const current = s.at(r.x + @as(u16, @intCast(first + i)), y).style; + try std.testing.expectEqual(pardes.Color{ .rgb = c.hit_current }, current.bg); + try std.testing.expectEqual(pardes.Color{ .rgb = c.hit_current_text }, current.fg); + const other = s.at(r.x + @as(u16, @intCast(second + i)), y).style; + try std.testing.expectEqual(pardes.Color{ .rgb = c.hit }, other.bg); + try std.testing.expectEqual(pardes.Color{ .rgb = c.page.text }, other.fg); + const below = s.at(r.x + @as(u16, @intCast(third + i)), y + 1).style; + try std.testing.expectEqual(pardes.Color{ .rgb = c.hit }, below.bg); + try std.testing.expectEqual(pardes.Color{ .rgb = c.page.text }, below.fg); + } + // The current row's mark between its places and to its end; none below. + try std.testing.expectEqual(pardes.Color{ .rgb = c.selection_secondary }, s.at(r.x + @as(u16, @intCast(first + 6)), y).style.bg); + try std.testing.expectEqual(pardes.Color{ .rgb = c.selection_secondary }, s.at(r.x + r.w - 2, y).style.bg); + try std.testing.expectEqual(pardes.Color{ .rgb = c.page.ground }, s.at(r.x + r.w - 2, y + 1).style.bg); +} diff --git a/core/Stream.zig b/core/Stream.zig index 93be5c1f..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 { @@ -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/Tables.zig b/core/Tables.zig index a0256d8a..99e464ac 100644 --- a/core/Tables.zig +++ b/core/Tables.zig @@ -645,16 +645,16 @@ fn glyph(cell: *Cell, g: []const u8) void { /// A pane's table rows drawn as tables: every unescaped `|` a rule, the /// delimiter row one rule across (its dashes, its blanks and its pads, its /// `:` kept in the rule's colour, since they say the alignment), the header -/// row bold on the tag's ground, as compact context rows are. Only glyphs +/// row bold on the tag's ground, as compact context rows are, the rules in +/// the page's rule ink (R11). Only glyphs /// and colours change, on the cells the row has: where each byte is and how /// wide is fillBody's, so nothing is drawn over anything, B1 on a rule is /// B1 on its `|`, and a selection's tint lies over the rules as over text. pub fn paint(p: *Pardes, s: *Surface, pane: *Pane, r: pardes.Rect, tx: u16, tw: u16, body_h: u16) void { const f = if (pane.file) |*file| file else return; if (f.tables.list.items.len == 0) return; - const th = p.theme(); - const rule_fg: Color = .{ .rgb = th.border orelse th.lineno }; - const head_bg: Color = .{ .rgb = th.tag_bg }; + const rule_fg: Color = .{ .rgb = p.chrome().page.rule }; + const head_bg: Color = .{ .rgb = p.chrome().tag[0].ground }; const prefix: usize = File.gutterWidth(pane); const body_y = p.bodyTop(pane, r); var vr: u16 = 0; 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/Trail.zig b/core/Trail.zig index 9b0d64ea..e42ab1e2 100644 --- a/core/Trail.zig +++ b/core/Trail.zig @@ -714,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. @@ -766,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"; @@ -869,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); @@ -946,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/ansi.zig b/core/ansi.zig index e4fbf5da..3fb866fc 100644 --- a/core/ansi.zig +++ b/core/ansi.zig @@ -20,33 +20,12 @@ const Surface = pardes.Surface; const BodyWalk = @import("body_layer.zig").BodyWalk; const EditBuffer = panes.Text.EditBuffer; -/// The theme's colours as a terminal's paint takes them. -pub fn inkOf(theme: *const pardes.LegacyTheme) Term.Ink { - return .{ - .fg = theme.fg, - .bg = theme.bg, - .tag_fg = theme.tag_fg, - .tag_bg = theme.tag_bg, - .palette = theme.palette, - .base = theme.palette orelse .{ - theme.bg orelse theme.tag_bg, - theme.kw, - theme.str, - theme.num, - theme.box, - theme.sel_bg, - theme.comment, - theme.fg orelse theme.tag_fg, - theme.lineno, - theme.kw, - theme.str, - theme.num, - theme.scroll_thumb, - theme.sel_fg, - theme.tag_fg, - theme.fg orelse theme.tag_fg, - }, - }; +/// The theme's colours as a terminal's paint takes them (Chrome's: its page, +/// text, faint and sixteen); a theme that leaves them to the host (`dark`) +/// leaves them to a tty, and a window draws its own (DESIGN.md R14). +pub fn inkOf(p: *const Pardes) Term.Ink { + const c = p.chrome(); + return .{ .fg = c.page.text, .bg = c.page.ground, .dim = c.page.dim, .ansi = c.ansi, .host = c.host_page and !p.view().frontend.windowed }; } /// Its program's colours over the body's rows, through the theme's filter @@ -85,7 +64,7 @@ pub fn recolor(p: *Pardes, s: *Surface, pane: *Pane, r: pardes.Rect, tx: u16, tw { const tz_paint = tracy.zone(@src(), "termPaint"); defer tz_paint.end(); - const ink = inkOf(p.theme()); + const ink = inkOf(p); Term.paint(state, &ink, &p.tty_filter_palette, pane.tty_filter, pane.scrolled_to, @intCast(lo), cols, cells, rows); } const filtered = pane.tty_filter; @@ -453,15 +432,15 @@ pub fn recolorDiffOutput(p: *Pardes, s: *Surface, pane: *Pane, r: pardes.Rect, t } if (lo > hi) return; const styles = syntax.highlightDiffRows(arena, flat, lo, hi, true) catch return; - const tints: Colors.Grounds = .of(p.theme()); - const ink = p.theme().fg orelse p.theme().tag_fg; + const chrome = p.chrome(); const body_y = p.bodyTop(pane, r); shown = std.mem.splitScalar(u8, body, '\n'); for (views, 0..) |maybe, vr| { const line = shown.next() orelse break; const view = maybe orelse continue; const base = @intFromPtr(rows[view.row].ptr) - flat_start - lo; - const tint = if (base < styles.len) tints.forStyle(styles[base]) else null; + const lead: u8 = if (base < styles.len) styles[base] else 0; + const tint: ?Colors.Chrome.Diff = if (lead & syntax.ground_add != 0) chrome.add else if (lead & syntax.ground_del != 0) chrome.del else null; if (tint) |t| s.tint(tx, body_y + @as(u16, @intCast(vr)), tw, t.row, null); var c: usize = 0; var screen_c: usize = 0; @@ -478,7 +457,7 @@ pub fn recolorDiffOutput(p: *Pardes, s: *Surface, pane: *Pane, r: pardes.Rect, t else if (panes.File.synStyle(p, @fromBackingInt(@intCast(style & syntax.syn_bits)))) |ss| ss else if (tint != null) - .{ .fg = ink, .bold = false } + .{ .fg = chrome.page.text, .bold = false } else null; if (paint) |ss| { diff --git a/core/body_layer.zig b/core/body_layer.zig index 513f9a6d..a1d76784 100644 --- a/core/body_layer.zig +++ b/core/body_layer.zig @@ -148,21 +148,12 @@ pub fn paintPointerSelection( } } -/// The selection colour of each pointer button's sweep: the select button's -/// and the look and exec buttons', each tinted toward its own accent. -pub fn buttonTints(th: *const colors.LegacyTheme) [3][3]u8 { - if (th.sweep_bg) |own| return own; - const accent2 = if (std.mem.eql(u8, &th.num, &th.str)) th.comment else th.num; - return .{ - colors.mix(th.sel_bg, colors.mix(th.sel_bg, th.kw)), - colors.mix(th.sel_bg, colors.mix(th.sel_bg, th.str)), - colors.mix(th.sel_bg, colors.mix(th.sel_bg, accent2)), - }; -} - -/// The ink over each button's sweep. -pub fn buttonInks(th: *const colors.LegacyTheme) [3][3]u8 { - return th.sweep_fg orelse @splat(th.sel_fg); +/// The rail's column in the theme's rail and thumb, and the column right +/// of it the page. +fn paintRail(c: *const colors.Chrome, s: *Surface, bar: pardes.Region) void { + s.fill(bar.rect.x, bar.rect.y, 1, bar.rect.h, .{ .bg = .{ .rgb = c.rail } }); + s.fill(bar.rect.x + 1, bar.rect.y, 1, bar.rect.h, .{ .bg = if (c.host_page) .default else .{ .rgb = c.page.ground } }); + s.fill(bar.rect.x, bar.rect.y + bar.thumb_y, 1, bar.thumb_h, .{ .bg = .{ .rgb = c.rail_thumb } }); } /// A pane's body, painted once. A file body with compact tree-sitter @@ -221,14 +212,7 @@ pub fn joinBody(p: *Pardes, s: *Surface, arena: std.mem.Allocator, pane: *Pane, if (layer.cursor) |cursor| if (cursor.y < viewport_rows) { s.cursor = .{ .x = body.rect.x + cursor.x, .y = body.rect.y + cursor.y, .bar = cursor.bar }; }; - const chrome = p.chromeTheme(); - const theme = p.theme(); - const pane_bg: Color = if (theme.bg) |c| .{ .rgb = c } else .default; - if (rail.rect.h > 0) { - s.fill(rail.rect.x, rail.rect.y, 1, rail.rect.h, .{ .bg = .{ .rgb = chrome.scroll_track } }); - s.fill(rail.rect.x + 1, rail.rect.y, 1, rail.rect.h, .{ .bg = pane_bg }); - s.fill(rail.rect.x, rail.rect.y + rail.thumb_y, 1, rail.thumb_h, .{ .bg = .{ .rgb = chrome.scroll_thumb } }); - } + if (rail.rect.h > 0) paintRail(p.chrome(), s, rail); } fn drawGutter(p: *Pardes, s: *Surface, pane: *Pane, r: pardes.Rect, tx: u16, tw: u16, body_h: u16, active: bool) void { @@ -239,12 +223,13 @@ fn drawGutter(p: *Pardes, s: *Surface, pane: *Pane, r: pardes.Rect, tx: u16, tw: const cur_line: i32 = if (active and typing_body) gcrow else std.math.minInt(i32); // the body's first row, the way renderPane derives it const body_y = p.bodyTop(pane, r); - const context_bg = p.theme().tag_bg; + const chrome = p.chrome(); + // The context rows on the tag's ground, as a header. for (0..@min(pane.context_rows, body_h)) |context_row| { for (0..tw) |col| { const cell = s.at(tx + @as(u16, @intCast(col)), body_y + @as(u16, @intCast(context_row))); cell.default = false; - cell.style.bg = .{ .rgb = context_bg }; + cell.style.bg = .{ .rgb = chrome.tag[0].ground }; cell.style.font_role = .tagline; } } @@ -259,10 +244,7 @@ fn drawGutter(p: *Pardes, s: *Surface, pane: *Pane, r: pardes.Rect, tx: u16, tw: while (c < prefix_width and c < tw) : (c += 1) { const cell = s.at(tx + c, body_y + vr); cell.default = false; // paints blank gutter rows too - cell.style.fg = .{ .rgb = if (on_cursor) - p.theme().lineno_active orelse p.theme().lineno - else - p.theme().lineno }; + cell.style.fg = .{ .rgb = if (on_cursor) chrome.line_number_current else chrome.line_number }; cell.style.bold = on_cursor; } } @@ -280,7 +262,7 @@ fn drawWrapMarkers( ) void { if (tw <= panes.File.gutterWidth(pane) + 1) return; const body_y = p.bodyTop(pane, r); - const marker_fg = p.chromeTheme().lineno; + const marker_fg = p.chrome().line_number; var row: u16 = 0; while (row + 1 < pane.wrap_n and row + 1 < body_h) : (row += 1) { if (pane.wrap_line[row + 1] != pane.wrap_line[row] or pane.wrap_col[row] < 0) continue; @@ -292,21 +274,20 @@ fn drawWrapMarkers( } pub fn renderBody(p: *Pardes, s: *Surface, arena: std.mem.Allocator, pane: *Pane, r: Rect, id: usize, active: bool, rail: ?pardes.Region) !void { - const th = p.theme(); - const chrome = p.chromeTheme(); + const c = p.chrome(); const tx = r.x + config.GUTTER; const tw = r.w - config.GUTTER; // Below the notice bands: they are stacked at the top of the body the // way tree-sitter context rows are, so the body starts under them // rather than being painted over by them. const body_y = p.bodyTop(pane, r); - const pane_bg: Color = if (th.bg) |c| .{ .rgb = c } else .default; - const page_rgb = th.bg orelse th.tag_bg; + // A theme that leaves its page to the host leaves it its text too. + const pane_bg: Color = if (c.host_page) .default else .{ .rgb = c.page.ground }; // body: emulator rows, prompt rows hidden outside tty mode const body_h = r.h -| pane.tag_rows; const body_bottom = r.h; const body_style: CellStyle = .{ - .fg = if (th.fg) |c| .{ .rgb = c } else .default, + .fg = if (c.host_page) .default else .{ .rgb = c.page.text }, .bg = pane_bg, }; const tz_body = tracy.zone(@src(), "bodyText"); @@ -319,7 +300,7 @@ pub fn renderBody(p: *Pardes, s: *Surface, arena: std.mem.Allocator, pane: *Pane // the rows, which paint over it. const sweep = pane.sel[pardes.sel_slot]; if (sweep.state != .none and (sweep.state != .done or pardes.sel_slot == 0) and @min(sweep.r0, sweep.r1) < pane.tag_rows) - paintPointerSelection(p, s, pane, r, sweep, pane.tag_rows, th.sel_bg, th.sel_fg); + paintPointerSelection(p, s, pane, r, sweep, pane.tag_rows, c.sweeps[pardes.sel_slot].ground, c.sweeps[pardes.sel_slot].text); { // The rows themselves. `bodyText` above is only the string BUILD; // this is what writes it into the surface. @@ -363,16 +344,14 @@ pub fn renderBody(p: *Pardes, s: *Surface, arena: std.mem.Allocator, pane: *Pane tz_color.end(); if (pane.isTerminal()) ansi.images(p, s, pane, id, tx, tw, body_y, body_h); - const sel_btn = buttonTints(th); if (p.look_hover_preview) |preview| { if (preview.pane == id and preview.serial == pane.serial) { // Preserve body ink, then let every real user selection below // win over this quiet affordance. - const preview_bg = colors.mix(page_rgb, colors.mix(page_rgb, th.sel_bg)); if (preview.file_word) |word| - panes.File.paintWordSelection(p, s, pane, r, word.row, word.lo, word.hi, preview_bg) + panes.File.paintWordSelection(p, s, pane, r, word.row, word.lo, word.hi, c.selection_secondary, null) else if (preview.sel) |sel| - paintPointerSelection(p, s, pane, r, sel, pane.tag_rows, preview_bg, null); + paintPointerSelection(p, s, pane, r, sel, pane.tag_rows, c.selection_secondary, null); } } const modal_hover = if (p.look_hover_preview) |preview| @@ -385,7 +364,7 @@ pub fn renderBody(p: *Pardes, s: *Surface, arena: std.mem.Allocator, pane: *Pane // A select sweep over the tag is the tag's selection, painted there // in the tag's own selection colours. if (b == pardes.sel_slot and @min(sl.r0, sl.r1) < pane.tag_rows) continue; - paintPointerSelection(p, s, pane, r, sl, pane.tag_rows, sel_btn[b], buttonInks(th)[b]); + paintPointerSelection(p, s, pane, r, sl, pane.tag_rows, c.sweeps[b].ground, c.sweeps[b].text); } // A selecting prompt's live result (Prompt.zig), dimmed while its // field is no regex. @@ -394,6 +373,17 @@ pub fn renderBody(p: *Pardes, s: *Surface, arena: std.mem.Allocator, pane: *Pane const show_prim = (pane.body.mode == .normal and pane.body.vsel.active) or preview or (modal_hover and pane.body.vsel.active); const show_extra = pane.body.mode != .tty and pane.body.nsel > 0; + // The primary selection that is the current place (a live `/`, `n`, a + // preview select it) is drawn as that place, its solid chip, not the + // selection: one meaning, one look; the caret still shows. + const on_place = place: { + const f = pane.file orelse break :place false; + const at = pane.places.current orelse break :place false; + if (!pane.places.shows(pane) or at >= pane.places.hits.items.len) break :place false; + const range = pane.body.primaryRange(f.content, 0); + const hit = pane.places.hits.items[at]; + break :place hit.start == @min(range.anchor, range.head) and hit.end == @max(range.anchor, range.head); + }; if (show_prim or show_extra) { const vpfx: i32 = if (pane.file != null) panes.File.gutterWidth(pane) else 0; var si: usize = 0; @@ -408,14 +398,14 @@ pub fn renderBody(p: *Pardes, s: *Surface, arena: std.mem.Allocator, pane: *Pane } else pane.body.sels[si]; const bnd = edit.cellBounds(sr); const hover_only = primary and modal_hover and pane.body.mode != .normal and !preview; - const bg = if (hover_only or (selecting != null and selecting.?.dim)) - colors.mix(page_rgb, colors.mix(page_rgb, th.sel_bg)) - else if (primary) - th.sel_bg - else - colors.mix(th.sel_bg, page_rgb); + // The primary on the selection in its ink; every other range, + // a hover and a dimmed preview on its faint half, the text's + // own ink kept (R7). + const full = primary and !hover_only and !(selecting != null and selecting.?.dim); + const bg = if (full) c.page.selection.ground else c.selection_secondary; var vr: i32 = 0; while (vr + @as(i32, pane.tag_rows) < @as(i32, body_bottom)) : (vr += 1) { + if (primary and on_place) break; const w = pane.wrapAt(p.settings.tab, vr); if (w.line < bnd.lo_row or w.line > bnd.hi_row) continue; const visible_line = modal.lineSlice(body, @intCast(vr)); @@ -452,7 +442,7 @@ pub fn renderBody(p: *Pardes, s: *Surface, arena: std.mem.Allocator, pane: *Pane @as(i32, tw) - 1; const col: i32 = @max(cstart, vpfx); const end = @min(cend + 1, tw); - if (col < end) s.tint(tx + @as(u16, @intCast(col)), body_y + @as(u16, @intCast(vr)), @intCast(end - col), bg, if (hover_only) null else th.sel_fg); + if (col < end) s.tint(tx + @as(u16, @intCast(col)), body_y + @as(u16, @intCast(vr)), @intCast(end - col), bg, if (full) c.page.selection.text else null); } if (primary and !preview and !hover_only) continue; // the hardware cursor IS the primary's if (hover_only) continue; // quiet preview preserves the source ink @@ -473,8 +463,8 @@ pub fn renderBody(p: *Pardes, s: *Surface, arena: std.mem.Allocator, pane: *Pane if (crow >= pane.tag_rows and crow < @as(i32, body_bottom) and ccol >= vpfx and ccol < tw) { const cell = s.at(tx + @as(u16, @intCast(ccol)), body_y + @as(u16, @intCast(crow - pane.tag_rows))); cell.default = false; - cell.style.bg = .{ .rgb = th.sel_fg }; - cell.style.fg = .{ .rgb = th.sel_bg }; + cell.style.bg = .{ .rgb = c.page.selection.text }; + cell.style.fg = .{ .rgb = c.page.selection.ground }; } } } @@ -492,7 +482,7 @@ pub fn renderBody(p: *Pardes, s: *Surface, arena: std.mem.Allocator, pane: *Pane if (pane.jump.items.len > 0) labels: { const flat = edit.flatSurface(p.editor(), &pane.body) catch break :labels; const letters = config.jump_label_alphabet; - const style: CellStyle = .{ .fg = .{ .rgb = th.sel_fg }, .bg = .{ .rgb = th.sel_bg }, .bold = true }; + const style: CellStyle = .{ .fg = .{ .rgb = c.page.selection.text }, .bg = .{ .rgb = c.page.selection.ground }, .bold = true }; for (pane.jump.items, 0..) |word, i| { if (pane.jump_first) |first| if (i / letters.len != first) continue; var at = @min(word.anchor, word.head); @@ -563,14 +553,10 @@ pub fn renderBody(p: *Pardes, s: *Surface, arena: std.mem.Allocator, pane: *Pane if (pane.file != null) try pardes.Prompt.ghosts(p, s, arena, pane, r, body_h); // A code action's edit, previewed (Pick.zig). if (pane.file != null) try pardes.Pick.ghosts(p, s, arena, pane, r, body_h); - if (rail) |bar| if (bar.rect.h > 0) { - // The rail covers the notice bands too: nothing else paints those - // two gutter columns, so a gap there keeps the frame-wide border - // fill and reads as a notch cut out of the scrollbar. - s.fill(bar.rect.x, bar.rect.y, 1, bar.rect.h, .{ .bg = .{ .rgb = chrome.scroll_track } }); - s.fill(bar.rect.x + 1, bar.rect.y, 1, bar.rect.h, .{ .bg = pane_bg }); - s.fill(bar.rect.x, bar.rect.y + bar.thumb_y, 1, bar.thumb_h, .{ .bg = .{ .rgb = chrome.scroll_thumb } }); - }; + // The rail covers the notice bands too: nothing else paints those two + // gutter columns, so a gap there keeps the frame-wide border fill and + // reads as a notch cut out of the scrollbar. + if (rail) |bar| if (bar.rect.h > 0) paintRail(c, s, bar); } /// A message at the lines it names, drawn and never written (SPEC §10.2, @@ -585,9 +571,8 @@ pub fn renderBody(p: *Pardes, s: *Surface, arena: std.mem.Allocator, pane: *Pane fn messageGhosts(p: *Pardes, s: *Surface, pane: *Pane, tx: u16, tw: u16, body_y: u16, body_h: u16) void { const Messages = pardes.Messages; const f = pane.file.?; - const chrome = p.chromeTheme(); - const th = p.theme(); - const pane_bg: Color = if (th.bg) |c| .{ .rgb = c } else .default; + const page = &p.chrome().page; + const pane_bg: Color = if (p.chrome().host_page) .default else .{ .rgb = page.ground }; const Hit = struct { line: usize, said: *const Messages.Said, place: *const Messages.Place }; var hits: [Messages.max_live * Messages.Said.max_places]Hit = undefined; var n: usize = 0; @@ -615,7 +600,7 @@ fn messageGhosts(p: *Pardes, s: *Surface, pane: *Pane, tx: u16, tw: u16, body_y: if (at < tw) { var buf: [160]u8 = undefined; const words = std.fmt.bufPrint(&buf, "{s} {s}", .{ hit.said.kind.glyph(), hit.place.text.slice() }) catch &buf; - _ = s.print(tx + @as(u16, @intCast(at)), body_y + row, @intCast(tw - at), words, .{ .fg = .{ .rgb = Messages.ink(chrome, hit.said.kind) }, .bg = pane_bg }); + _ = s.print(tx + @as(u16, @intCast(at)), body_y + row, @intCast(tw - at), words, .{ .fg = .{ .rgb = Messages.inkOn(page, hit.said.kind) }, .bg = pane_bg }); } if (pane.ghost_rows > 0 and row == pane.ghost_at) detail = hit.said; } @@ -634,7 +619,7 @@ fn messageGhosts(p: *Pardes, s: *Surface, pane: *Pane, tx: u16, tw: u16, body_y: for (said.detail[0..k], 0..) |*text, i| { const y = body_y + under_row + 1 + @as(u16, @intCast(i)); s.fill(tx, y, tw, 1, .{ .bg = pane_bg }); - if (gutter + 2 < tw) _ = s.print(tx + gutter + 2, y, tw - gutter - 2, text.slice(), .{ .fg = .{ .rgb = Messages.ink(chrome, said.kind) }, .bg = pane_bg }); + if (gutter + 2 < tw) _ = s.print(tx + gutter + 2, y, tw - gutter - 2, text.slice(), .{ .fg = .{ .rgb = Messages.inkOn(page, said.kind) }, .bg = pane_bg }); } } @@ -682,7 +667,7 @@ fn drawnRow(p: *Pardes, arena: std.mem.Allocator, id: usize, row: usize) !?[]con /// number (the one a prompt's current place has, Prompt.paintGutter), on /// each row it wraps onto. fn paintLanding(p: *Pardes, s: *Surface, pane: *Pane, r: Rect, tx: u16, tw: u16, body_h: u16, line: usize) void { - const roles = &p.chromeTheme().roles; + const c = p.chrome(); const gutter = File.gutterWidth(pane); const number = gutter -| File.laneCells(pane) -| pane.layers.heat -| 1; const body_y = p.bodyTop(pane, r); @@ -693,18 +678,19 @@ fn paintLanding(p: *Pardes, s: *Surface, pane: *Pane, r: Rect, tx: u16, tw: u16, for (gutter..tw) |x| { const cell = s.at(tx + @as(u16, @intCast(x)), body_y + vr); cell.default = false; - cell.style.bg = .{ .rgb = roles.hit }; + cell.style.bg = .{ .rgb = c.hit }; } if (gutter > 0 and w.at == 0) { var style = s.at(tx + number, body_y + vr).style; - style.fg = .{ .rgb = roles.key }; + style.fg = .{ .rgb = c.page.key }; s.set(tx + number, body_y + vr, "▸", style); } } } -/// The landing line's matched span (a Grep's match at the row's column) on -/// the current hit's ground, over the places lit on it (UX D7). +/// The landing line's matched span (a Grep's match at the row's column) as +/// the current hit, solid in the hue with the page's ink, over the places +/// lit on it (UX D7, R8). fn paintLandingSpan(p: *Pardes, s: *Surface, pane: *Pane, r: Rect, f: *panes.File.State, line: usize) void { if (!pane.places.shows(pane)) return; const hits = pane.places.hits.items; @@ -713,7 +699,7 @@ fn paintLandingSpan(p: *Pardes, s: *Surface, pane: *Pane, r: Rect, f: *panes.Fil var i = panes.Places.firstFrom(hits, ls); while (i < hits.len and hits[i].start <= caret) : (i += 1) { if (hits[i].end <= caret) continue; - File.paintWordSelection(p, s, pane, r, @intCast(line), @intCast(hits[i].start - ls), @intCast(hits[i].end - ls), p.chromeTheme().roles.hit_current); + File.paintWordSelection(p, s, pane, r, @intCast(line), @intCast(hits[i].start - ls), @intCast(hits[i].end - ls), p.chrome().hit_current, p.chrome().hit_current_text); return; } } @@ -768,9 +754,7 @@ fn paintTargets(p: *Pardes, s: *Surface, arena: std.mem.Allocator, pane: *Pane, .hi = if (line == last) to - lineStart(f, line) else File.sourceLine(pane, @intCast(line)).len, .to_edge = line != last, }; - const th = p.theme(); - const page = th.bg orelse th.tag_bg; - paintSourceSelection(p, s, pane, r, rows, colors.mix(page, colors.mix(page, th.sel_bg)), null); + paintSourceSelection(p, s, pane, r, rows, p.chrome().selection_secondary, null); return; } if (cur.root != .goto and cur.root != .next and cur.root != .prev) return; @@ -796,7 +780,7 @@ fn paintTargets(p: *Pardes, s: *Surface, arena: std.mem.Allocator, pane: *Pane, // row's keys, as many as they hold, right-aligned to its last digit, // bold in the key ink on the gutter's ground. With no numbers, over // the line's first cells on the selection's ground. Never a shift. - const ink = p.chromeTheme().roles.key; + const ink = p.chrome().page.key; const number = File.gutterWidth(pane) -| File.laneCells(pane) -| pane.layers.heat -| 1; const cells = @min(if (number > 0) number else tw, tw); for (rows[0..n], 0..) |row, i| { @@ -811,7 +795,7 @@ fn paintTargets(p: *Pardes, s: *Surface, arena: std.mem.Allocator, pane: *Pane, for (rows[i..n], keys[i..n]) |other, key| { if (other != row) continue; if (x >= (if (number > 0) cells else shown)) break; - const bg = if (number > 0) s.at(tx + x, y).style.bg else pardes.Color{ .rgb = p.theme().sel_bg }; + const bg = if (number > 0) s.at(tx + x, y).style.bg else pardes.Color{ .rgb = p.chrome().page.selection.ground }; s.set(tx + x, y, bindings.keyName(key), .{ .fg = .{ .rgb = ink }, .bg = bg, .bold = true }); x += 1; } @@ -844,13 +828,14 @@ fn hoverGhosts(p: *Pardes, s: *Surface, pane: *Pane, tx: u16, tw: u16, body_y: u const from = @as(usize, body_y + dst - k) * s.cols + tx; @memcpy(s.cells[to..][0..tw], s.cells[from..][0..tw]); } - const th = p.theme(); - const style: CellStyle = .{ .fg = .{ .rgb = th.tag_fg }, .bg = .{ .rgb = th.tag_bg } }; + // On the tag's ground in its ink, as a header. + const tag = &p.chrome().tag[0]; + const style: CellStyle = .{ .fg = .{ .rgb = tag.text }, .bg = .{ .rgb = tag.ground } }; const gutter: u16 = File.gutterWidth(pane); var lines = std.mem.splitScalar(u8, text, '\n'); for (0..k) |i| { const y = body_y + at + 1 + @as(u16, @intCast(i)); - s.fill(tx, y, tw, 1, .{ .bg = .{ .rgb = th.tag_bg } }); + s.fill(tx, y, tw, 1, .{ .bg = .{ .rgb = tag.ground } }); if (gutter + 2 < tw) _ = s.print(tx + gutter + 2, y, tw - gutter - 2, lines.next() orelse "", style); } } @@ -865,9 +850,8 @@ fn renameGhosts(p: *Pardes, s: *Surface, pane: *Pane, tx: u16, tw: u16, body_y: const old = @import("lsp/Ask.zig").renamedWord(pane) orelse return; const new = p.view().tag_state.field.text(); const tab = p.settings.tab; - const chrome = p.chromeTheme(); - const th = p.theme(); - const added: CellStyle = .{ .fg = .{ .rgb = chrome.diagnostic_hint }, .bg = if (th.bg) |c| .{ .rgb = c } else .default, .bold = true }; + const chrome = p.chrome(); + const added: CellStyle = .{ .fg = .{ .rgb = chrome.page.severity[3] }, .bg = if (chrome.host_page) .default else .{ .rgb = chrome.page.ground }, .bold = true }; const wide: u16 = @intCast(@min(File.displayWidth(tab, new), tw)); const gutter: i32 = File.gutterWidth(pane); var row: u16 = pane.context_rows; @@ -894,7 +878,7 @@ fn renameGhosts(p: *Pardes, s: *Surface, pane: *Pane, tx: u16, tw: u16, body_y: while (c < c1) : (c += 1) { const cell = s.at(tx + c, y); cell.style.strikethrough = true; - cell.style.fg = .{ .rgb = chrome.diagnostic_error }; + cell.style.fg = .{ .rgb = chrome.page.severity[0] }; } const x: u16 = @intCast(c1); if (x + wide < tw) { @@ -1193,6 +1177,12 @@ test "a build error is said where its cause is: the mark on its file's tag, its // elsewhere. try std.testing.expect(std.mem.indexOf(u8, rowText(s, body.x, body.y + 2, &buf), "three \u{2717} expected 2 argument(s), found 3") != null); try std.testing.expect(std.mem.indexOf(u8, rowText(s, body.x, body.y + 3, &buf), "four") != null); + // In the error's ink on the page (R9). + const mark = for (0..body.w) |i| { + const cell = s.at(body.x + @as(u16, @intCast(i)), body.y + 2); + if (std.mem.eql(u8, cell.grapheme(), "\u{2717}")) break cell; + } else return error.TestUnexpectedResult; + try std.testing.expectEqual(pardes.Color{ .rgb = p.chrome().page.severity[0] }, mark.style.fg); // The caret on line 3 and its detail asked for (K, UX D13): under the // line, the rows below two rows down. pane.body.cur_row = 2; @@ -1312,7 +1302,7 @@ test "a motion root's level paints its targets in place of their lines' numbers, try std.testing.expectEqualStrings("p", Field.of(s, gutter, body.y + 4, number, &buf)); const key = s.at(gutter + number - 1, body.y + 4); try std.testing.expectEqualStrings("p", key.grapheme()); - try std.testing.expectEqual(pardes.Color{ .rgb = p.chromeTheme().roles.key }, key.style.fg); + try std.testing.expectEqual(pardes.Color{ .rgb = p.chrome().page.key }, key.style.fg); try std.testing.expect(key.style.bold); try std.testing.expect(std.mem.indexOfScalar(u8, Field.of(s, gutter, body.y + 5, number, &buf), 'g') != null); try std.testing.expect(std.mem.indexOfAny(u8, Field.of(s, gutter, body.y + 5, number, &buf), "0123456789") == null); @@ -1417,3 +1407,118 @@ test "a message's detail unrolls only on request (UX D13): the caret passing its p.update(.{ .key = .{ .cp = 'K' } }); try std.testing.expectEqual(pardes.TagState.Kind.prompt, p.view().tag_state.kind); } + +test "the body's selections are one family (R7): the primary on the selection in its ink, another range on its faint half in the text's own ink, its head the selection reversed, a B2 sweep on the chrome's exec sweep" { + const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .cols = 80, .rows = 20 }); + defer p.deinit(); + colors.setThemeIndex(p, colors.themeIndex("orchard").?); + const pane = try p.setTestFile("alpha beta\ngamma delta\n"); + const id = p.view().active; + pane.focus = .body; + // `e` selects alpha, `C` copies it below: gamma the primary. + for ("eC") |c| p.update(.{ .key = .{ .cp = c, .text = &[_]u8{c} } }); + try std.testing.expectEqual(@as(i32, 1), pane.body.cur_row); + try std.testing.expect(pane.body.vsel.active and pane.body.nsel == 1); + var frame = std.heap.ArenaAllocator.init(std.testing.allocator); + defer frame.deinit(); + const c = p.chrome(); + const r = p.view().rects[id]; + const x = r.x + config.GUTTER + panes.File.gutterWidth(pane); + const y = p.bodyTop(pane, r); + var s = try p.render(frame.allocator()); + for (0..5) |i| { + const primary = s.at(x + @as(u16, @intCast(i)), y + 1).style; + try std.testing.expectEqual(pardes.Color{ .rgb = c.page.selection.ground }, primary.bg); + if (i < 4) try std.testing.expectEqual(pardes.Color{ .rgb = c.page.selection.text }, primary.fg); + const other = s.at(x + @as(u16, @intCast(i)), y).style; + if (i < 4) { + try std.testing.expectEqual(pardes.Color{ .rgb = c.selection_secondary }, other.bg); + try std.testing.expectEqual(pardes.Color{ .rgb = c.page.text }, other.fg); + } else { + try std.testing.expectEqual(pardes.Color{ .rgb = c.page.selection.text }, other.bg); + try std.testing.expectEqual(pardes.Color{ .rgb = c.page.selection.ground }, other.fg); + } + } + // B2 swept over beta, not let go: the exec sweep. + p.update(.{ .mouse = .{ .button = .middle, .kind = .press, .col = x + 6, .row = y } }); + p.update(.{ .mouse = .{ .button = .middle, .kind = .drag, .col = x + 9, .row = y } }); + _ = frame.reset(.retain_capacity); + s = try p.render(frame.allocator()); + for (6..10) |i| { + const swept = s.at(x + @as(u16, @intCast(i)), y).style; + try std.testing.expectEqual(pardes.Color{ .rgb = c.sweeps[1].ground }, swept.bg); + try std.testing.expectEqual(pardes.Color{ .rgb = c.sweeps[1].text }, swept.fg); + } +} + +test "the body's surfaces take every colour from the chrome: none reads a theme's own fields or the old views (DESIGN.md B6)" { + const sources = [_]struct { []const u8, []const u8 }{ + .{ "body_layer.zig", @embedFile("body_layer.zig") }, + .{ "Places.zig", @embedFile("Places.zig") }, + .{ "Query.zig", @embedFile("Query.zig") }, + .{ "Output.zig", @embedFile("Output.zig") }, + .{ "Tables.zig", @embedFile("Tables.zig") }, + .{ "File.zig", @embedFile("File.zig") }, + .{ "Prompt.zig", @embedFile("Prompt.zig") }, + .{ "Pick.zig", @embedFile("Pick.zig") }, + .{ "jj.zig", @embedFile("jj.zig") }, + .{ "ansi.zig", @embedFile("ansi.zig") }, + }; + var wrong: usize = 0; + for (sources) |source| { + const name, const text = source; + // The code, not its tests. + const code = text[0 .. std.mem.indexOf(u8, text, "\ntest \"") orelse text.len]; + // A theme is read for its name alone. + var at: usize = 0; + while (std.mem.indexOfPos(u8, code, at, "theme()")) |i| : (at = i + 1) { + if (std.mem.startsWith(u8, code[i + "theme()".len ..], ".name")) continue; + std.debug.print("{s}: a theme's own colours read at byte {d}\n", .{ name, i }); + wrong += 1; + } + for ([_][]const u8{ "chromeTheme()", "bodyChrome", ".roles", "Grounds", "LegacyTheme" }) |old| if (std.mem.indexOf(u8, code, old)) |i| { + std.debug.print("{s}: `{s}` at byte {d}\n", .{ name, old, i }); + wrong += 1; + }; + } + try std.testing.expectEqual(@as(usize, 0), wrong); +} + +test "a selection that is the current place is drawn as the current place, its solid chip, not the selection: one meaning, one look (the coordinator's ruling on L2b's open point); the caret still shows, and any other selection is the selection" { + const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .cols = 80, .rows = 24 }); + defer p.deinit(); + colors.setThemeIndex(p, colors.themeIndex("orchard").?); + const pane = try p.setTestFile("alpha beta\ngamma alpha\nb\n"); + const c = p.chrome(); + var frame: std.heap.ArenaAllocator = .init(std.testing.allocator); + defer frame.deinit(); + const r = p.view().rects[0]; + const x = r.x + config.GUTTER + panes.File.gutterWidth(pane); + const y = p.bodyTop(pane, r); + const keys = struct { + fn typed(q: *Pardes, text: []const u8) void { + for (text) |ch| q.update(.{ .key = .{ .cp = ch, .text = &[_]u8{ch} } }); + } + }.typed; + // A live `/`: the first place current, and selected. + keys(p, "/alpha"); + try std.testing.expectEqual(@as(?usize, 0), pane.places.current); + var s = try p.render(frame.allocator()); + for (0..5) |i| { + const cell = s.at(x + @as(u16, @intCast(i)), y).style; + try std.testing.expectEqual(Color{ .rgb = c.hit_current }, cell.bg); + try std.testing.expectEqual(Color{ .rgb = c.hit_current_text }, cell.fg); + } + // Landed, then `n`: the next one current and selected, the same chip, + // and the caret on it. + p.update(.{ .key = .{ .cp = pardes.Key.enter } }); + keys(p, "n"); + try std.testing.expectEqual(@as(?usize, 1), pane.places.current); + s = try p.render(frame.allocator()); + for (6..11) |i| try std.testing.expectEqual(Color{ .rgb = c.hit_current }, s.at(x + @as(u16, @intCast(i)), y + 1).style.bg); + try std.testing.expect(s.cursor != null and s.cursor.?.y == y + 1 and s.cursor.?.x >= x + 6 and s.cursor.?.x <= x + 10); + // The line selected, past the place: a selection again. + keys(p, "x"); + s = try p.render(frame.allocator()); + try std.testing.expectEqual(Color{ .rgb = c.page.selection.ground }, s.at(x + 6, y + 1).style.bg); +} 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 eefb2b67..6c83f5c8 100644 --- a/core/colors.zig +++ b/core/colors.zig @@ -3,6 +3,7 @@ //! themes programme's), theme files, and switching themes at runtime. //! What a theme says is theme_schema.zig's. const pardes = @import("root.zig"); +const builtin = @import("builtin"); const schema = @import("theme_schema.zig"); pub const Theme = schema.Theme; pub const LegacyTheme = schema.LegacyTheme; @@ -85,7 +86,7 @@ pub const separator_floor: f32 = 1.5; /// the GUI's default ground, and a dark terminal's. pub const null_page: [3]u8 = .{ 18, 18, 18 }; /// The ink of a theme with none, on a dark page and on a light one. -const null_text: [3]u8 = .{ 0xcc, 0xcc, 0xcc }; +pub const null_text: [3]u8 = .{ 0xcc, 0xcc, 0xcc }; const null_text_light: [3]u8 = .{ 0x22, 0x22, 0x22 }; fn separatorOf(th: *const LegacyTheme) [3]u8 { const base = th.border orelse th.scroll_track; @@ -552,10 +553,13 @@ pub const Chrome = struct { selection_secondary: [3]u8, /// The pointer buttons' sweeps: select, exec, look (acme's meanings). sweeps: [3]Theme.Sweep, - /// Search: a hit's ground, and the current one's ground and ink. + /// Search: a hit's ground, and the current one's ground and ink; a + /// search's last places while its field is no regex, dimmed: the page + /// halfway toward the hit (as `selection_secondary` is the selection's). hit: [3]u8, hit_current: [3]u8, hit_current_text: [3]u8, + hit_faint: [3]u8, add: Diff, del: Diff, /// The Changes layer's lanes, a pin each (`lanes_len` of them), and @@ -584,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, @@ -594,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, }; @@ -696,12 +703,17 @@ pub const Chrome = struct { }; const severity = severitiesOn(page, text, candidates, null); - // R8: the hits' hue and grounds. + // R8: the hits' hue and grounds; a theme's own where it is a ground + // you see and the text reads on: 1.5:1 off the page, or, where the + // text leaves no room for that (no ground 1.5:1 off keeps it its + // floor), 1.1:1 with 0.08 OKLab (R0). const ink_floor = @min(text_floor, contrast(text, page) * 0.9); - const own_hit: ?[3]u8 = if (th.hit) |own| - (if (contrast(own, page) >= hit_floor - 0.01 and contrast(text, own) >= ink_floor - 0.01) own else null) - else - null; + const own_hit: ?[3]u8 = if (th.hit) |own| own: { + const off = contrast(own, page); + const no_room = contrast(text, page) < hit_floor * ink_floor; + const seen = off >= hit_floor - 0.01 or (no_room and off >= 1.1 and oklabDistance(labOf(own), labOf(page)) >= 0.08); + break :own if (seen and contrast(text, own) >= ink_floor - 0.01) own else null; + } else null; var hue = severity[1]; if (own_hit) |own| { hue = own; @@ -725,6 +737,7 @@ pub const Chrome = struct { // ink (vim's IncSearch): room for it in every theme. c.hit_current = hold(hue, &.{page}, text_floor); c.hit_current_text = page; + c.hit_faint = mixOklab(page, c.hit, 0.5); // Every ground's inks; on the tags and the status row, the // tag's selection rebuilt on each where it stands too near it. @@ -791,6 +804,11 @@ pub const Chrome = struct { // R10: the lanes (the accents but green and red, hue-sorted) and // churn's steps from the line numbers' ink to the deleted hue. c.lanes_len = lanesOf(.{ ansi[3], ansi[4], ansi[5], ansi[6], th.number, th.keyword }, .{ th.deleted orelse ansi[1], th.added orelse ansi[2] }, &c.lanes); + // A theme with no accent (a grey one) draws its lanes in one grey. + if (c.lanes_len == 0) { + c.lanes[0] = c.line_number; + c.lanes_len = 1; + } for (&c.heat, 1..) |*h, k| h.* = mixOklab(c.line_number, th.deleted orelse ansi[1], @as(f32, @floatFromInt(k)) / 8); return c; } @@ -971,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, @@ -1044,42 +1063,28 @@ fn hsvApart(a: [3]u8, b: [3]u8) f32 { } /// The ink a syntax class is drawn in; a byte of none keeps its text's own. -pub fn synInk(th: *const LegacyTheme, sy: @import("syntax.zig").Syn) ?[3]u8 { +pub fn synInk(th: *const Theme, sy: @import("syntax.zig").Syn) ?[3]u8 { return switch (sy) { .none => null, - .keyword => th.kw, - .string => th.str, - .number => th.num, + .keyword => th.keyword, + .string => th.string, + .number => th.number, .comment => th.comment, }; } /// The grounds a style byte's high bits name (syntax.ground_add and the -/// rest) in a theme: a row added or removed on a ground a little way from -/// the page toward the theme's green or red (its own ANSI ones where it has -/// a palette), a stronger one, a faint one, and the row's marker in that -/// hue, pushed toward the ink until it reads on the row's ground. Syntax -/// colours are drawn over a ground unchanged. +/// rest) in a theme, for the library: its chrome's added and deleted rows +/// (R10). Syntax colours are drawn over a ground unchanged. pub const Grounds = struct { add: Ground, del: Ground, - pub const Ground = struct { row: [3]u8, emph: [3]u8, line: [3]u8, ink: [3]u8 }; - - pub fn of(th: *const LegacyTheme) Grounds { - const page = th.bg orelse th.tag_bg; - const ink = th.fg orelse th.tag_fg; - const green: [3]u8 = if (th.palette) |pal| pal[2] else .{ 0x2e, 0xa0, 0x43 }; - const red: [3]u8 = if (th.palette) |pal| pal[1] else .{ 0xcf, 0x22, 0x2e }; - return .{ .add = ground(page, ink, green), .del = ground(page, ink, red) }; - } + pub const Ground = Chrome.Diff; - fn ground(page: [3]u8, ink: [3]u8, hue: [3]u8) Ground { - const row = mixOklab(page, hue, 0.18); - var marker = hue; - var step: usize = 0; - while (step < 4 and contrast(marker, row) < 3) : (step += 1) marker = mixOklab(marker, ink, 0.4); - return .{ .row = row, .emph = mixOklab(page, hue, 0.28), .line = mixOklab(page, hue, 0.07), .ink = marker }; + pub fn of(th: *const Theme) Grounds { + const c = Chrome.of(th); + return .{ .add = c.add, .del = c.del }; } /// The ground of a byte's hue, if it has one. @@ -1091,27 +1096,37 @@ pub const Grounds = struct { } }; -/// One family, its twelve backgrounds a theme each (`curated`). +/// One family, its eight backgrounds a theme each (`curated`). const seoul256 = @import("themes/seoul256.zig"); const curated = struct { + // DESIGN.md E's groups, the picker's sections (`theme_groups`): pardes's + // own, dark first (the host's page, the favourite), orchard the default + // (`default_theme`, by name). + pub const dark = @import("themes/dark.zig"); + pub const light = @import("themes/light.zig"); pub const orchard = @import("themes/orchard.zig"); - pub const dusk = @import("themes/dusk.zig"); + pub const orchard_black = @import("themes/orchard_black.zig"); pub const ink = @import("themes/ink.zig"); + pub const mono = @import("themes/mono.zig"); + pub const okabe = @import("themes/okabe.zig"); + pub const sepia = @import("themes/sepia.zig"); pub const paper = @import("themes/paper.zig"); pub const daybreak = @import("themes/daybreak.zig"); - pub const atelier = @import("themes/atelier.zig"); + pub const dusk = @import("themes/dusk.zig"); + pub const lapis = @import("themes/lapis.zig"); + // Pardes's, after a classic. pub const forge = @import("themes/forge.zig"); + pub const forge_black = @import("themes/forge_black.zig"); + pub const forge_soft = @import("themes/forge_soft.zig"); pub const lagoon = @import("themes/lagoon.zig"); pub const solarium = @import("themes/solarium.zig"); pub const spectrum = @import("themes/spectrum.zig"); pub const harvest = @import("themes/harvest.zig"); pub const clay = @import("themes/clay.zig"); - pub const forge_black = @import("themes/forge_black.zig"); - pub const forge_soft = @import("themes/forge_soft.zig"); - pub const orchard_black = @import("themes/orchard_black.zig"); + // acme's. pub const acme = @import("themes/acme.zig"); - pub const lapis = @import("themes/lapis.zig"); + pub const atelier = @import("themes/atelier.zig"); // Faithful ports of well-known themes, a family at a time (core/themes/ // <name>.zig says where each value came from): `theme_groups`. pub const dark_plus = @import("themes/dark_plus.zig"); @@ -1145,10 +1160,6 @@ const curated = struct { pub const seoul256_dark_235 = seoul256.dark(235); pub const seoul256_dark_236 = seoul256.dark(236); pub const seoul256_dark_237 = seoul256.dark(237); - pub const seoul256_dark_238 = seoul256.dark(238); - pub const seoul256_dark_239 = seoul256.dark(239); - pub const seoul256_light_252 = seoul256.light(252); - pub const seoul256_light_253 = seoul256.light(253); pub const seoul256_light_254 = seoul256.light(254); pub const seoul256_light_255 = seoul256.light(255); pub const seoul256_light_256 = seoul256.light(256); @@ -1177,24 +1188,25 @@ const curated = struct { pub const ayu_light = @import("themes/ayu_light.zig"); pub const doom_one = @import("themes/doom_one.zig"); pub const doom_one_light = @import("themes/doom_one_light.zig"); - // The legacy pair last. + // Captured: an old helix setup, kept (it works). pub const helix = @import("themes/helix.zig"); - pub const dark = @import("themes/dark.zig"); }; -/// A struct of theme files as themes in the old names: each file's -/// `theme`, a field it leaves out its default. -fn fold(comptime C: type) [@typeInfo(C).@"struct".decl_names.len]LegacyTheme { +/// A struct of theme files as themes: each file's `theme`, a field it +/// leaves out its default. +fn fold(comptime C: type) [@typeInfo(C).@"struct".decl_names.len]Theme { comptime { @setEvalBranchQuota(400000); - var out: [@typeInfo(C).@"struct".decl_names.len]LegacyTheme = undefined; - const theme_info = @typeInfo(LegacyTheme).@"struct"; + var out: [@typeInfo(C).@"struct".decl_names.len]Theme = undefined; + const theme_info = @typeInfo(Theme).@"struct"; for (@typeInfo(C).@"struct".decl_names, 0..) |d, i| { - var t: LegacyTheme = undefined; + var t: Theme = undefined; const source = @field(C, d).theme; + for (@typeInfo(@TypeOf(source)).@"struct".field_names) |name| if (!@hasField(Theme, name)) + @compileError("theme " ++ d ++ " has no field " ++ name ++ " (core/theme_schema.zig)"); for (theme_info.field_names, theme_info.field_types, theme_info.field_attrs) |name, T, attrs| { @field(t, name) = if (@hasField(@TypeOf(source), name)) - @field(source, name) + as(T, @field(source, name)) else if (attrs.defaultValue(T)) |value| value else @@ -1206,30 +1218,40 @@ fn fold(comptime C: type) [@typeInfo(C).@"struct".decl_names.len]LegacyTheme { } } -/// The ring in the old names: what `Pardes.theme()` hands the surfaces -/// that still read a theme's own fields, until they read `Chrome` (the -/// themes programme's L2 lines). -pub const legacy_themes = fold(curated) ++ fold(@import("generated_themes")); +/// A theme file's literal as the field's type: a struct field by field +/// (acme's sweeps), which a literal's own struct type does not coerce to. +fn as(comptime T: type, comptime value: anytype) T { + return switch (@typeInfo(T)) { + .optional => |o| if (@TypeOf(value) == @TypeOf(null)) null else as(o.child, value), + .array => |a| blk: { + var out: T = undefined; + for (&out, 0..) |*e, i| e.* = as(a.child, value[i]); + break :blk out; + }, + .@"struct" => blk: { + var out: T = undefined; + for (@typeInfo(T).@"struct".field_names) |name| @field(out, name) = as(@FieldType(T, name), @field(value, name)); + break :blk out; + }, + else => value, + }; +} + /// The ring: pardes's own (`native_count` of them), then the imported. -/// The files still speak the old names: renamed here, at comptime. -pub const themes: [legacy_themes.len]Theme = blk: { - @setEvalBranchQuota(400000); - var out: [legacy_themes.len]Theme = undefined; - for (&out, legacy_themes) |*t, old| t.* = .fromLegacy(old); - break :blk out; -}; +pub const themes = fold(curated) ++ fold(@import("generated_themes")); /// The first `native_count` of `themes` are pardes's own; the rest imported. pub const native_count = @typeInfo(curated).@"struct".decl_names.len; /// The picker's sections (`Themes`), in ring order, each running from /// the theme it names to the next section's; `NextColor` and `Theme` still -/// see one flat ring. The current pardes themes, then the faithful ports a -/// family at a time, then the legacy pair (`helix`, captured from an old -/// helix setup and the boot default before orchard; `dark`, the host -/// terminal's own ground), then everything imported. +/// see one flat ring (DESIGN.md E): pardes's own, those after a classic, +/// acme's, the faithful ports a family at a time, the captured helix setup; +/// then the imported, a family at a time (`import_heads`). pub const ThemeGroup = struct { title: []const u8, first: []const u8 }; const theme_groups = [_]ThemeGroup{ - .{ .title = "Pardes themes", .first = "orchard" }, + .{ .title = "Pardes", .first = "dark" }, + .{ .title = "Pardes, after a classic", .first = "forge" }, + .{ .title = "acme", .first = "acme" }, .{ .title = "Visual Studio Code", .first = "dark_plus" }, .{ .title = "Solarized", .first = "solarized_dark" }, .{ .title = "Dracula", .first = "dracula" }, @@ -1243,9 +1265,77 @@ const theme_groups = [_]ThemeGroup{ .{ .title = "Nord", .first = "nord" }, .{ .title = "Ayu", .first = "ayu_dark" }, .{ .title = "Doom One", .first = "doom_one" }, - .{ .title = "Legacy themes", .first = "helix" }, + .{ .title = "Captured", .first = "helix" }, +}; + +/// The theme a session starts in, by name: never a place in the ring. +pub const default_theme = indexOfTheme("orchard"); + +/// The themes retired (DESIGN.md E, under the user's ruling of 2026-11-25) +/// and the kept one each stands for where its name is still read: an init +/// file's `Theme`, a /ctl write, a dump; null, the default. +const retired = [_]struct { []const u8, ?[]const u8 }{ + .{ "seoul256_dark_238", "seoul256_dark_237" }, + .{ "seoul256_dark_239", "seoul256_dark_237" }, + .{ "seoul256_light_252", "seoul256_light_254" }, + .{ "seoul256_light_253", "seoul256_light_254" }, + .{ "ayu_dark_helix", "ayu_dark" }, + .{ "ayu_dark_zed", "ayu_dark" }, + .{ "ayu_light_zed", "ayu_light" }, + .{ "ayu_mirage_zed", "ayu_mirage" }, + .{ "base16_default_light", "base16_default_dark" }, + .{ "base16_terminal", "dark" }, + .{ "base16_transparent", "base16_default_dark" }, + .{ "bogster_light", "bogster" }, + .{ "cyan_light", "jetbrains_cyan_light" }, + .{ "eldritch_transparent", "eldritch" }, + .{ "gruvbox_dark_hard_zed", "gruvbox_dark_hard" }, + .{ "gruvbox_dark_soft_zed", "gruvbox_dark_soft" }, + .{ "gruvbox_dark_zed", "gruvbox" }, + .{ "gruvbox_light_hard_zed", "gruvbox_light_hard" }, + .{ "gruvbox_light_soft_zed", "gruvbox_light_soft" }, + .{ "gruvbox_light_zed", "gruvbox_light" }, + .{ "gruvbox_material", "gruvbox_material_dark_medium" }, + .{ "hex_lavender", "hex_toxic" }, + .{ "hex_poison", "hex_toxic" }, + .{ "hex_steel", "hex_toxic" }, + .{ "ingrid", null }, + .{ "iroaseta", "ao" }, + .{ "nord_helix", "nord" }, + .{ "nord_light", "nord" }, + .{ "nyxvamp_transparent", "nyxvamp_veil" }, + .{ "peachpuff", "dark" }, + .{ "seoul256_dark", "seoul256_dark_235" }, + .{ "seoul256_dark_hard", "seoul256_dark_233" }, + .{ "seoul256_dark_soft", "seoul256_dark_237" }, + .{ "seoul256_light", "seoul256_light_254" }, + .{ "seoul256_light_hard", "seoul256_light_256" }, + .{ "seoul256_light_soft", "seoul256_light_254" }, + .{ "term16_dark", "dark" }, + .{ "term16_light", "light" }, + .{ "tokyonight", "tokyonight_night" }, + .{ "ttox", "dark" }, + .{ "ttox_soft", "dark" }, + .{ "vesper_transparent", "vesper" }, + .{ "zed_onedark", "one_dark_zed" }, + .{ "zed_onelight", "one_light_zed" }, }; +/// The ring's place for the kept theme a retired `name` stands for, +/// whatever its case. +pub fn successorOf(name: []const u8) ?usize { + for (retired) |r| if (std.ascii.eqlIgnoreCase(r[0], name)) return if (r[1]) |kept| themeIndex(kept).? else default_theme; + return null; +} + +/// The theme a dump naming `name` restores: that one, a retired one's +/// successor, else the one in effect (`was`) where this build has it, else +/// the default. +pub fn restoredIndex(name: []const u8, was: usize) usize { + for (themes, 0..) |t, i| if (std.mem.eql(u8, t.name, name)) return i; + return successorOf(name) orelse if (was < themes.len) was else default_theme; +} + fn indexOfTheme(comptime name: []const u8) usize { return comptime blk: { @setEvalBranchQuota(100000); @@ -1257,12 +1347,38 @@ fn indexOfTheme(comptime name: []const u8) usize { /// The heading of the picker section that starts at ring index `index`. pub fn groupAt(index: usize) ?[]const u8 { inline for (theme_groups) |g| if (index == comptime indexOfTheme(g.first)) return g.title; - if (index == native_count) return "Imported themes (helix, zed)"; - return null; + return if (index >= native_count) import_heads[index - native_count] else null; } -/// Original and classic-inspired Pardes palettes precede retained imports. -pub const native_theme_count = 15; +/// A theme's family: its name's first word (gruvbox_dark_hard's gruvbox). +fn familyOf(name: []const u8) []const u8 { + return name[0 .. std.mem.indexOfScalar(u8, name, '_') orelse name.len]; +} + +/// The imported themes' headings, a family's at its first (DESIGN.md E: a +/// heading per family, not one flat run), and one over the lone ones the +/// generator rings after every family (tools/gen_themes.zig `byFamily`). +const import_heads: [themes.len - native_count]?[]const u8 = blk: { + @setEvalBranchQuota(2_000_000); + const imported = themes[native_count..]; + var out: [imported.len]?[]const u8 = @splat(null); + var lone_seen = false; + for (imported, 0..) |t, i| { + const family = familyOf(t.name); + var members: usize = 0; + for (imported) |u| { + if (std.mem.eql(u8, familyOf(u.name), family)) members += 1; + } + if (members < 2) { + if (!lone_seen) out[i] = "Imported, one of a kind"; + lone_seen = true; + } else if (i == 0 or !std.mem.eql(u8, familyOf(imported[i - 1].name), family)) { + if (lone_seen) @compileError("imported family " ++ family ++ " rings after a lone theme (tools/gen_themes.zig byFamily)"); + out[i] = "Imported: " ++ family; + } + } + break :blk out; +}; comptime { if (themes.len > std.math.maxInt(u16) + 1) @@ -1288,17 +1404,13 @@ pub const ChromeTheme = struct { border: [3]u8, empty_col: [3]u8, search_bg: [3]u8, - search_fg: [3]u8, tag_reading_bg: [3]u8, diagnostic_error: [3]u8, diagnostic_warning: [3]u8, - diagnostic_info: [3]u8, - diagnostic_hint: [3]u8, box: [3]u8, box_dim: [3]u8, column_box: [3]u8, column_box_dim: [3]u8, - lineno: [3]u8, scroll_track: [3]u8, scroll_thumb: [3]u8, roles: Roles, @@ -1307,14 +1419,25 @@ pub const ChromeTheme = struct { /// the surfaces that still read them until they do (the themes /// programme's L2 lines), so no frame moves before its surface does. resolved: Chrome, + /// The theme in the old names (`Pardes.theme()`), for what still reads + /// a theme's own fields: a ThemeFile in them, itself; any other theme's + /// filled from its chrome where the new names derive (`viewOf`). + view: LegacyTheme, /// A theme in the old names' chrome. pub fn fromTheme(th: *const LegacyTheme) ChromeTheme { - return .of(&.fromLegacy(th.*), th); + return .of(&.fromLegacy(th.*), th, .of(&.fromLegacy(th.*))); + } + + /// A theme in the new names' chrome: the ring's, a ThemeFile's. + pub fn ofTheme(theme: *const Theme) ChromeTheme { + const resolved: Chrome = .of(theme); + return .of(theme, &viewOf(theme, &resolved), resolved); } - /// A theme's chrome, from the theme and its old names' view. - pub fn of(theme: *const Theme, th: *const LegacyTheme) ChromeTheme { + /// A theme's chrome, from the theme, its old names' view and what B4 + /// derives of it. + fn of(theme: *const Theme, th: *const LegacyTheme, resolved: Chrome) ChromeTheme { const active_bg = focusTint(th); const active_fg = th.tag_active_fg orelse th.tag_fg; // A name is always tinted: a theme that names no tint gets one of @@ -1336,26 +1459,45 @@ pub const ChromeTheme = struct { .border = separatorOf(th), .empty_col = th.empty_col orelse separatorOf(th), .search_bg = th.search_bg orelse th.sel_bg, - .search_fg = th.search_fg orelse th.sel_fg, .tag_reading_bg = reading, // A theme's error ink, else its palette's red (UX E3). .diagnostic_error = th.diagnostic_error orelse if (th.palette) |pal| pal[1] else (th.fg orelse th.tag_fg), .diagnostic_warning = th.diagnostic_warning orelse (th.fg orelse th.tag_fg), - .diagnostic_info = th.diagnostic_info orelse (th.fg orelse th.tag_fg), - .diagnostic_hint = th.diagnostic_hint orelse (th.fg orelse th.tag_fg), - .box = th.box, + // The focused grip the chrome's (the accent held 3:1, R6). + .box = resolved.grip.focus, .box_dim = th.box_dim, .column_box = th.column_box orelse th.num, .column_box_dim = th.column_box_dim orelse mix(th.column_box orelse th.num, th.tag_bg), - .lineno = th.lineno, .scroll_track = th.scroll_track, .scroll_thumb = th.scroll_thumb, .roles = .of(th, th.tag_bg, active_bg, reading), - .resolved = .of(theme), + .resolved = resolved, + .view = th.*, }; } }; +/// A theme in the new names as the old names say it: the fields they +/// require and the new ones derive, from its chrome. `box_dim`, a resting +/// grip's fill: the tag's own ground where the theme rings its grips itself +/// (acme's clean button, R6), else the resting ring. The focused name the +/// chrome's, unless it lands on the theme's own focused ink, which the old +/// surfaces draw unheld (ferra's #fecdb2): then the plain tag's. +fn viewOf(theme: *const Theme, r: *const Chrome) LegacyTheme { + const fill = if (theme.grip_ring != null) r.tag[0].ground else r.grip.ring; + const own_focus_ink = theme.tag_focus_text orelse theme.tag_text; + const focused_name = if (std.mem.eql(u8, &r.name[1], &own_focus_ink)) r.name[0] else r.name[1]; + return theme.toLegacy(.{ + .sel_fg = r.page.selection.text, + .lineno = r.line_number, + .scroll_track = r.rail, + .scroll_thumb = r.rail_thumb, + .box_dim = fill, + .tag_active_name_fg = focused_name, + .column_box_dim = r.grip.column_rest, + }); +} + /// A tag's ground in the walk UI (UX DESIGN.md D4): the plain tag's, the /// focused one's tint, a reading pane's tint, focused or not (its ink is /// the focused tag's while it has the keyboard). @@ -1381,10 +1523,6 @@ pub const Roles = struct { /// The letters a query matched: an ink, never a ground, 4.5:1 on every /// tag ground and on the selection. match: [3]u8, - /// The body's places and a preview's landing line, and the current - /// one (its matched span): grounds off the page, its ink on them 4.5:1. - hit: [3]u8, - hit_current: [3]u8, /// A message's ink by its kind (Messages.ink): 4.5:1 on the tags and /// the page. err: [3]u8, @@ -1397,8 +1535,6 @@ pub const Roles = struct { pub const rule_floor: f32 = 1.8; pub const rule_ceiling: f32 = 2.5; pub const ink_floor: f32 = 4.5; - pub const hit_floor: f32 = 1.5; - pub const hit_current_floor: f32 = 1.9; pub const reading_distance: f32 = 0.04; pub fn on(r: *const Roles, ground: TagGround) *const RoleInks { @@ -1430,20 +1566,6 @@ pub const Roles = struct { r.key = pushAway(th.box, &tag_grounds, ink_floor); r.match = pushAway(matchHue(th), &tag_grounds, ink_floor); const page = th.bg orelse null_page; - const body_ink = th.fg orelse th.tag_fg; - const dark = relativeLuminance(page) < 0.18; - // The theme's search ground where it stands off the page and the - // body reads on it; else the page a little way toward its hue (the - // warm accent's without one). The current one as far past the hit - // as 32 % is past 18 % (38 past 22 on a light page). - const hue = th.search_bg orelse th.num; - const own = th.search_bg != null and contrast(hue, page) >= hit_floor and contrast(body_ink, hue) >= ink_floor; - const at: f32 = if (own) 1 else if (dark) 0.18 else 0.22; - r.hit = if (own) hue else hitOf(page, hue, body_ink, at, hit_floor); - const past: f32 = if (dark) 0.32 / 0.18 else 0.38 / 0.22; - r.hit_current = hitOf(page, hue, body_ink, at * past, hit_current_floor); - // Never fainter than the hit, where the ink holds both short. - if (contrast(r.hit_current, page) < contrast(r.hit, page)) r.hit_current = r.hit; const message_grounds = [_][3]u8{ plain, focused, reading, page }; const ink = th.fg orelse th.tag_fg; r.err = pushAway(th.diagnostic_error orelse if (th.palette) |pal| pal[1] else ink, &message_grounds, ink_floor); @@ -1546,48 +1668,6 @@ fn selectionOf(own: [3]u8, ground: [3]u8, text: [3]u8) [3]u8 { return best; } -/// A ground off `page` toward `hue` at `t` (past 1, beyond the hue, as far -/// as the gamut goes), held where the body's `ink` reads on it at 4.5:1 -/// (or its own on the page, where that is less); on toward the hue, the -/// least way that stands off the page at `floor`, where the ink still -/// reads on it; else moved on toward the ink until it stands off the page -/// at `floor`, as far as the ink allows. -fn hitOf(page: [3]u8, hue: [3]u8, ink: [3]u8, t: f32, floor: f32) [3]u8 { - const a = toOklab(page); - const b = toOklab(hue); - const ink_floor = @min(Roles.ink_floor, contrast(ink, page)); - var k = t; - var c = fromOklab(.{ a[0] + (b[0] - a[0]) * k, a[1] + (b[1] - a[1]) * k, a[2] + (b[2] - a[2]) * k }); - while (contrast(ink, c) < ink_floor and k > 0) { - k -= t / 50; - c = fromOklab(.{ a[0] + (b[0] - a[0]) * k, a[1] + (b[1] - a[1]) * k, a[2] + (b[2] - a[2]) * k }); - } - // Found by halves, seven mixes: the nearer the hue, the further off - // the page (UX E7 7b: a landing line 1.5:1, its span 1.9:1). - if (contrast(c, page) < floor and k < 1 and contrast(hue, page) >= floor) { - var lo = k; - var hi: f32 = 1; - var far = hue; - for (0..7) |_| { - const mid = (lo + hi) / 2; - const m = fromOklab(.{ a[0] + (b[0] - a[0]) * mid, a[1] + (b[1] - a[1]) * mid, a[2] + (b[2] - a[2]) * mid }); - if (contrast(m, page) < floor) lo = mid else { - hi = mid; - far = m; - } - } - if (contrast(ink, far) >= ink_floor) c = far; - } - const start = c; - var step: f32 = 1; - while (contrast(c, page) < floor and step <= 50) : (step += 1) { - const next = mixOklab(start, ink, step / 100); - if (contrast(ink, next) < ink_floor) break; - c = next; - } - return c; -} - /// A reading pane's tag (UX DESIGN.md D4): the theme's own where it stands /// off the tag, else the tag shifted toward paper yellow by 0.04 in OKLab /// and lighter by half that on a dark tag (darker on a light), so it reads @@ -1765,27 +1845,27 @@ pub fn loadThemeFile(p: *Pardes, generation: u32, bytes: []const u8) bool { // user's own, an older DumpThemes') is read in them and renamed; its // old names' view is the file itself. var theme: Theme = undefined; - var view: LegacyTheme = undefined; + var chrome: ChromeTheme = undefined; if (inOldNames(source)) { - view = std.zon.parse.fromSlice(LegacyTheme, options) catch |err| return zonFailed(p, request, err, &diagnostics); + const view = std.zon.parse.fromSlice(LegacyTheme, options) catch |err| return zonFailed(p, request, err, &diagnostics); + chrome = .fromTheme(&view); theme = .fromLegacy(view); } else { theme = std.zon.parse.fromSlice(Theme, options) catch |err| return zonFailed(p, request, err, &diagnostics); - const r = Chrome.of(&theme); - view = theme.toLegacy(.{ .sel_fg = r.page.selection.text, .lineno = r.line_number, .scroll_track = r.rail, .scroll_thumb = r.rail_thumb, .box_dim = r.grip.ring }); + chrome = .ofTheme(&theme); } if (theme.name.len == 0 or theme.name.len > 255) { themeFileError(p, request, error.InvalidThemeName); return false; } + var view = chrome.view; view.name = p.gpa.dupe(u8, theme.name) catch |err| { themeFileError(p, request, err); return false; }; - theme.name = view.name; + chrome.view.name = view.name; - p.theme_chrome = .of(&theme, &view); - p.body_chrome = .{ .theme = view, .chrome = p.theme_chrome }; + p.theme_chrome = chrome; const old = p.custom_theme; p.custom_theme = view; if (old) |theme_value| p.gpa.free(theme_value.name); @@ -1822,13 +1902,9 @@ fn inOldNames(source: [:0]const u8) bool { } /// The session's theme's chrome, at its start (Pardes.init, a Restore): -/// never one the window previews (`previewTheme`); the body's copy of it -/// (Core.bodyChrome's, keyed by the theme) made with it, not again at the -/// first frame. +/// never one the window previews (`previewTheme`). pub fn finishThemeInitialization(p: *Pardes) void { - const theme = if (p.custom_theme) |*custom| custom else &legacy_themes[p.settings.theme]; - p.theme_chrome = if (p.custom_theme != null) .fromTheme(theme) else .of(&themes[p.settings.theme], theme); - p.body_chrome = .{ .theme = theme.*, .chrome = p.theme_chrome }; + p.theme_chrome = if (p.custom_theme) |*custom| .fromTheme(custom) else .ofTheme(&themes[p.settings.theme]); } /// Themes near `name`, a line of them, for a Theme given a name there is @@ -1908,16 +1984,14 @@ pub fn previewTheme(p: *Pardes, index: ?usize) void { if (i >= themes.len) return; if (p.theme_preview) |had| if (had == i) return; p.theme_preview = @intCast(i); - p.preview_chrome = .of(&themes[i], &legacy_themes[i]); - p.body_chrome = .{ .theme = legacy_themes[i], .chrome = p.preview_chrome }; + p.preview_chrome = .ofTheme(&themes[i]); } pub fn setThemeIndex(p: *Pardes, index: usize) void { if (index >= themes.len or (p.custom_theme == null and p.theme_file_path.get().len == 0 and index == @as(usize, p.settings.theme))) return; - p.theme_chrome = .of(&themes[index], &legacy_themes[index]); - p.body_chrome = .{ .theme = legacy_themes[index], .chrome = p.theme_chrome }; + p.theme_chrome = .ofTheme(&themes[index]); if (p.custom_theme) |theme_value| { p.custom_theme = null; p.gpa.free(theme_value.name); @@ -1932,13 +2006,14 @@ pub fn setThemeIndex(p: *Pardes, index: usize) void { } test "every native theme's separators stand off its page, and its focus tint off its tag" { - for (legacy_themes[0..native_count]) |*theme| { + for (themes[0..native_count]) |*ring_theme| { + const view = ChromeTheme.ofTheme(ring_theme).view; + const theme = &view; const chrome = ChromeTheme.fromTheme(theme); const page = theme.bg orelse null_page; try std.testing.expect(contrast(chrome.border, page) >= separator_floor); - // A dark page's focused tag is told by its band too, not the grip - // alone; acme's (light, and acme's own) is told by its button. - if (relativeLuminance(page) < 0.18) try std.testing.expect(theme.tag_active_bg != null); + // A focused tag of its own stands off the plain one (R4 derives the + // rest: the ring test's `focus`). if (theme.tag_active_bg) |own| { try std.testing.expect(contrast(chrome.tag_active_bg, theme.tag_bg) >= focusTintFloor(theme)); // And its text still reads. @@ -1949,9 +2024,11 @@ test "every native theme's separators stand off its page, and its focus tint off } test "every faithful port meets pardes's chrome floors in its own colours, with nothing left to derive" { - const first = comptime indexOfTheme("lapis") + 1; + const first = comptime indexOfTheme("dark_plus"); const last = comptime indexOfTheme("helix"); - for (legacy_themes[first..last]) |*th| { + for (themes[first..last]) |*ring_theme| { + const view = ChromeTheme.ofTheme(ring_theme).view; + const th = &view; const chrome = ChromeTheme.fromTheme(th); const page = th.bg.?; // Written out already adjusted: the run-time lift and push leave @@ -1972,11 +2049,8 @@ test "every faithful port meets pardes's chrome floors in its own colours, with } test "a derived separator or tint keeps the theme's own when it already stands off" { - const forge = &legacy_themes[ - for (legacy_themes[0..native_count], 0..) |t, i| { - if (std.mem.eql(u8, t.name, "forge")) break i; - } else unreachable - ]; + const view = ChromeTheme.ofTheme(&themes[comptime indexOfTheme("forge")]).view; + const forge = &view; const chrome = ChromeTheme.fromTheme(forge); try std.testing.expectEqual(forge.border.?, chrome.border); // forge's own tint is 1.23:1 off its tag: pushed on the way it leans. @@ -2006,22 +2080,34 @@ test "the picker's sections run in ring order and cover it" { if (n == 0) try std.testing.expectEqual(@as(usize, 0), at) else try std.testing.expect(at > last); last = at; } - try std.testing.expectEqualStrings("Pardes themes", groupAt(0).?); + try std.testing.expectEqualStrings("Pardes", groupAt(0).?); + try std.testing.expectEqualStrings("dark", themes[0].name); + try std.testing.expectEqualStrings("orchard", themes[default_theme].name); // acme is a current theme, not a legacy one. try std.testing.expect(indexOfTheme("acme") < indexOfTheme("helix")); - try std.testing.expect(groupAt(native_count) != null); + // The imported a family at a time, each under its heading, the lone + // ones last under one. + try std.testing.expect(std.mem.startsWith(u8, groupAt(native_count).?, "Imported: ")); + const gruvbox = for (themes, 0..) |t, i| { + if (std.mem.eql(u8, t.name, "gruvbox")) break i; + } else unreachable; + try std.testing.expectEqualStrings("Imported: gruvbox", groupAt(gruvbox).?); + try std.testing.expectEqual(null, groupAt(gruvbox + 1)); + const lone = for (themes[native_count..], native_count..) |_, i| { + if (groupAt(i)) |title| if (std.mem.eql(u8, title, "Imported, one of a kind")) break i; + } else unreachable; + for (themes[lone + 1 ..], lone + 1..) |_, i| try std.testing.expectEqual(null, groupAt(i)); } -test "seoul256's twelve backgrounds ring in their order, after Catppuccin and before Zenbones" { +test "seoul256's eight backgrounds ring in their order, after Catppuccin and before Zenbones" { const names = [_][]const u8{ - "seoul256_dark_233", "seoul256_dark_234", "seoul256_dark_235", "seoul256_dark_236", - "seoul256_dark_237", "seoul256_dark_238", "seoul256_dark_239", "seoul256_light_252", - "seoul256_light_253", "seoul256_light_254", "seoul256_light_255", "seoul256_light_256", + "seoul256_dark_233", "seoul256_dark_234", "seoul256_dark_235", "seoul256_dark_236", + "seoul256_dark_237", "seoul256_light_254", "seoul256_light_255", "seoul256_light_256", }; const first = indexOfTheme("seoul256_dark_233"); - for (names, legacy_themes[first..][0..names.len]) |name, t| try std.testing.expectEqualStrings(name, t.name); - try std.testing.expectEqualStrings("catppuccin_mocha", legacy_themes[first - 1].name); - try std.testing.expectEqualStrings("zenbones_light", legacy_themes[first + names.len].name); + for (names, themes[first..][0..names.len]) |name, t| try std.testing.expectEqualStrings(name, t.name); + try std.testing.expectEqualStrings("catppuccin_mocha", themes[first - 1].name); + try std.testing.expectEqualStrings("zenbones_light", themes[first + names.len].name); } test "a theme hint drops whole names to fit, never cutting one" { @@ -2087,7 +2173,7 @@ test "ThemeFile parses ZON atomically and Theme returns to the compiled ring" { return error.MissingThemeFileRequest; try std.testing.expectEqualStrings("/tmp/pardes-config/themes/mine.zon", request.path); - var custom = themes[0]; + var custom = themes[default_theme]; custom.name = "mine"; custom.page = .{ 1, 2, 3 }; custom.tag = .{ 4, 5, 6 }; @@ -2107,8 +2193,8 @@ test "ThemeFile parses ZON atomically and Theme returns to the compiled ring" { try std.testing.expectEqualStrings("mine", p.theme().name); try std.testing.expectEqual(@as(?[3]u8, .{ 1, 2, 3 }), p.theme().bg); - setThemeIndex(p, 0); - try std.testing.expectEqualStrings(legacy_themes[0].name, p.theme().name); + setThemeIndex(p, default_theme); + try std.testing.expectEqualStrings(themes[default_theme].name, p.theme().name); try std.testing.expect(themeFileRequest(p, request_effect.generation) == null); const stop = while (p.nextEffect()) |effect| switch (effect) { .theme_file => |theme_file| break theme_file, @@ -2118,16 +2204,13 @@ test "ThemeFile parses ZON atomically and Theme returns to the compiled ring" { } test "native themes keep text and UI roles readable on their own surfaces" { - const names = [_][]const u8{ "orchard", "dusk", "ink", "paper", "daybreak", "atelier", "forge", "lagoon", "solarium", "spectrum", "harvest", "clay", "forge_black", "forge_soft", "orchard_black" }; - try std.testing.expectEqual(names.len, native_theme_count); - for (legacy_themes[0..names.len], names) |th, name| { - try std.testing.expectEqualStrings(name, th.name); + for (designed) |name| { + const th = ChromeTheme.ofTheme(&themes[themeIndex(name).?]).view; const chrome = ChromeTheme.fromTheme(&th); const minimum: f32 = if (std.mem.eql(u8, name, "ink") or std.mem.eql(u8, name, "daybreak")) 7 else 4.5; const text_colors = [_][3]u8{ - th.fg.?, th.kw, th.str, th.num, th.comment, - chrome.diagnostic_error, chrome.diagnostic_warning, chrome.diagnostic_info, chrome.diagnostic_hint, - }; + th.fg.?, th.kw, th.str, th.num, th.comment, + } ++ chrome.resolved.page.severity; for (text_colors) |fg| try std.testing.expect(contrast(fg, th.bg.?) >= minimum); // Gutters are orientation aids, not source text: stay visible without // competing with comments or pulling attention away from the body. @@ -2147,20 +2230,25 @@ test "native themes keep text and UI roles readable on their own surfaces" { try std.testing.expect(contrast(chrome.tag_active_bg, th.tag_bg) <= 1.6); try std.testing.expect(contrast(chrome.tag_active_fg, th.tag_fg) <= 1.6); try std.testing.expect(contrast(th.sel_fg, th.sel_bg) >= minimum); - try std.testing.expect(contrast(chrome.search_fg, chrome.search_bg) >= minimum); + try std.testing.expect(contrast(chrome.resolved.hit_current_text, chrome.resolved.hit_current) >= Chrome.text_floor); // ANSI black can intentionally match the page (for backgrounds). All // other ANSI foregrounds, including bright black, remain legible. for (th.palette.?[1..]) |fg| try std.testing.expect(contrast(fg, th.bg.?) >= minimum); } } +/// The natives written before the colour system (DESIGN.md B), each with a +/// name tint and a column grip of its own: what the tests of their own +/// values below hold (the ring test holds every theme to B4's floors). +const designed = [_][]const u8{ "orchard", "dusk", "ink", "paper", "daybreak", "atelier", "forge", "lagoon", "solarium", "spectrum", "harvest", "clay", "forge_black", "forge_soft", "orchard_black" }; + test "native filename tints change hue without changing perceived lightness" { - for (legacy_themes[0..native_theme_count]) |th| { - try std.testing.expect(th.tag_name_fg != null and th.tag_active_name_fg != null); - const chrome = ChromeTheme.fromTheme(&th); - const pairs = [2][2][3]u8{ - .{ chrome.tag_fg, chrome.tag_name_fg }, - .{ chrome.tag_active_fg, chrome.tag_active_name_fg }, + for (designed) |native| { + const th = &themes[themeIndex(native).?]; + // The theme's own tint at its tag ink's lightness (the focused one + // Chrome.of's, R13). + const pairs = [1][2][3]u8{ + .{ th.tag_text, th.tag_name.? }, }; for (pairs) |pair| { const base = toOklab(pair[0]); @@ -2180,7 +2268,8 @@ test "native filename tints change hue without changing perceived lightness" { } test "native dark palettes choose near-black or deliberately soft contrast" { - for (legacy_themes[0..native_theme_count]) |th| { + for (designed) |name| { + const th = ChromeTheme.ofTheme(&themes[themeIndex(name).?]).view; if (contrast(th.bg.?, .{ 0, 0, 0 }) > 10) continue; // light paper const soft = std.mem.eql(u8, th.name, "dusk") or std.mem.eql(u8, th.name, "lagoon") or std.mem.eql(u8, th.name, "solarium") or std.mem.eql(u8, th.name, "forge_soft"); @@ -2193,12 +2282,12 @@ test "native dark palettes choose near-black or deliberately soft contrast" { } } const forge = curated.forge.theme; - try std.testing.expectEqual(forge.bg[0], forge.bg[1]); + try std.testing.expectEqual(forge.page[0], forge.page[1]); // Forge chrome is cool-neutral, never the old green-over-blue mint cast. - for ([_][3]u8{ forge.tag_bg, forge.tag_active_bg, forge.box, forge.border }) |rgb| + for ([_][3]u8{ forge.tag, forge.tag_focus, forge.accent, forge.rule }) |rgb| try std.testing.expect(rgb[2] >= rgb[1]); - try std.testing.expectEqual([3]u8{ 0, 0, 0 }, @as([3]u8, curated.forge_black.theme.bg)); - try std.testing.expectEqual([3]u8{ 0, 0, 0 }, @as([3]u8, curated.orchard_black.theme.bg)); + try std.testing.expectEqual([3]u8{ 0, 0, 0 }, @as([3]u8, curated.forge_black.theme.page)); + try std.testing.expectEqual([3]u8{ 0, 0, 0 }, @as([3]u8, curated.orchard_black.theme.page)); } test "line numbers stay quiet without a current-line tag background" { @@ -2208,11 +2297,12 @@ test "line numbers stay quiet without a current-line tag background" { const pane = try p.setTestFile("first\nsecond\n"); pane.body.cur_pinned = true; pane.body.cur_row = 0; - var custom = legacy_themes[0]; + var custom = ChromeTheme.ofTheme(&themes[default_theme]).view; custom.name = try gpa.dupe(u8, "quiet-gutter"); custom.lineno = .{ 70, 70, 70 }; custom.lineno_active = .{ 95, 95, 95 }; p.custom_theme = custom; + finishThemeInitialization(p); p.sync(); const x = p.view().rects[0].x + config.GUTTER; const y = p.view().rects[0].y + BOX_H; @@ -2222,10 +2312,13 @@ test "line numbers stay quiet without a current-line tag background" { try std.testing.expectEqual(Color{ .rgb = custom.bg.? }, surface.at(x, y).style.bg); try std.testing.expect(surface.at(x, y).style.bold); try std.testing.expect(!surface.at(x, y + 1).style.bold); - // Old ThemeFile palettes need no new field, and do not regain the block. + // Old ThemeFile palettes need no new field: the current number is the + // text toward the page to 4.5:1 (R12), and the block not regained. p.custom_theme.?.lineno_active = null; + finishThemeInitialization(p); const fallback = try p.render(p.scratch.allocator()); - try std.testing.expectEqual(Color{ .rgb = .{ 70, 70, 70 } }, fallback.at(x, y).style.fg); + try std.testing.expectEqual(Color{ .rgb = p.chrome().line_number_current }, fallback.at(x, y).style.fg); + try std.testing.expect(contrast(p.chrome().line_number_current, custom.bg.?) >= Chrome.text_floor - 0.05); try std.testing.expectEqual(Color{ .rgb = custom.bg.? }, fallback.at(x, y).style.bg); try std.testing.expect(fallback.at(x, y).style.bold); // Moving the caret clears the previous cue; editing the tag parks it. @@ -2242,14 +2335,16 @@ test "legacy ThemeFile documents inherit Pardes UI roles without new fields" { @setEvalBranchQuota(10000); var encoded: std.Io.Writer.Allocating = .init(std.testing.allocator); defer encoded.deinit(); - try std.zon.stringify.serialize(curated.helix.theme, .{ .whitespace = false }, &encoded.writer); - // helix without the focused tag's pair it has since gained: a document - // written before those fields existed. + try std.zon.stringify.serialize(ChromeTheme.ofTheme(&themes[comptime indexOfTheme("helix")]).view, .{ .whitespace = false }, &encoded.writer); + // helix without the focused tag's pair it has since gained, and the + // names' and column grip's dim fills: a document written before those + // fields existed. var legacy: std.ArrayList(u8) = .empty; defer legacy.deinit(std.testing.allocator); var rest: []const u8 = encoded.written(); while (true) { - const at = @min(std.mem.indexOf(u8, rest, ".tag_active_bg") orelse rest.len, std.mem.indexOf(u8, rest, ".tag_active_fg") orelse rest.len); + var at = rest.len; + for ([_][]const u8{ ".tag_active_bg", ".tag_active_fg", ".tag_active_name_fg", ".column_box_dim" }) |field| at = @min(at, std.mem.indexOf(u8, rest, field) orelse rest.len); try legacy.appendSlice(std.testing.allocator, rest[0..at]); if (at == rest.len) break; rest = rest[at + std.mem.indexOfScalar(u8, rest[at..], '}').? + 1 ..]; @@ -2279,12 +2374,11 @@ test "legacy ThemeFile documents inherit Pardes UI roles without new fields" { } test "column grip colors remain distinct from pane grips across native themes" { - for (legacy_themes[0..native_theme_count]) |th| { - try std.testing.expect(th.column_box != null and th.column_box_dim != null); - const chrome = ChromeTheme.fromTheme(&th); + for (designed) |name| { + const th = &themes[themeIndex(name).?]; + // The theme's own (their rest and grabbed inks Chrome.of's, R6, H). for ([_][2][3]u8{ - .{ chrome.box, chrome.column_box }, - .{ chrome.box_dim, chrome.column_box_dim }, + .{ th.accent, th.column_grip.? }, }) |pair| { var distance: u32 = 0; for (pair[0], pair[1]) |a, b| { @@ -2294,7 +2388,7 @@ test "column grip colors remain distinct from pane grips across native themes" { try std.testing.expect(distance >= 30 * 30); } } - var custom = legacy_themes[0]; + var custom = ChromeTheme.ofTheme(&themes[default_theme]).view; custom.column_box = .{ 90, 130, 170 }; custom.column_box_dim = null; var chrome = ChromeTheme.fromTheme(&custom); @@ -2306,7 +2400,7 @@ test "column grip colors remain distinct from pane grips across native themes" { } test "custom filename tints preserve optional active fallback precedence" { - var theme = legacy_themes[0]; + var theme = ChromeTheme.ofTheme(&themes[default_theme]).view; theme.tag_name_fg = null; theme.tag_active_name_fg = null; var chrome = ChromeTheme.fromTheme(&theme); @@ -2328,14 +2422,18 @@ test "custom filename tints preserve optional active fallback precedence" { } test "every theme tints its names off the tag's ink, and they read on both grounds" { - for (&legacy_themes) |*th| { - const chrome = ChromeTheme.fromTheme(th); + for (&themes) |*th| { + const c = Chrome.of(th); const pairs = [2][3][3]u8{ - .{ chrome.tag_fg, chrome.tag_name_fg, chrome.tag_bg }, - .{ chrome.tag_active_fg, chrome.tag_active_name_fg, chrome.tag_active_bg }, + .{ c.tag[0].text, c.name[0], c.tag[0].ground }, + .{ c.tag[1].text, c.name[1], c.tag[1].ground }, }; for (pairs) |pair| { const ink, const name, const ground = pair; + // An ink held to the end of the gamut (white or black, H's 7:1 + // on a mid-grey tag: ao's, modus_vivendi's) has no hue at its + // lightness: the name is the ink. + if (std.mem.eql(u8, &name, &ink) and (std.mem.eql(u8, &ink, &@as([3]u8, @splat(255))) or std.mem.eql(u8, &ink, &@as([3]u8, @splat(0))))) continue; const apart = oklabDistance(toOklab(ink), toOklab(name)); const floor = nameTintFloor(ink, ground); if (apart < name_tint_distance or contrast(name, ground) < floor - 0.01) @@ -2363,12 +2461,13 @@ test "every theme's walk UI roles meet their floors on every ground they are dra var checks: std.ArrayList(Check) = .empty; defer checks.deinit(a); var failed: usize = 0; - for (&legacy_themes) |*th| { + for (&themes) |*ring_theme| { + const view = ChromeTheme.ofTheme(ring_theme).view; + const th = &view; checks.clearRetainingCapacity(); const chrome = ChromeTheme.fromTheme(th); const r = &chrome.roles; const page = th.bg orelse null_page; - const body_ink = th.fg orelse th.tag_fg; const tags = [_][3]u8{ r.tag[0].ground, r.tag[1].ground, r.tag[2].ground, r.selected[0].ground, r.selected[1].ground, r.selected[2].ground, r.selected[3].ground }; const messages = [_][3]u8{ r.tag[0].ground, r.tag[1].ground, r.tag[2].ground, page }; for (r.tag ++ r.selected ++ [1]RoleInks{r.notice}) |inks| { @@ -2395,15 +2494,6 @@ test "every theme's walk UI roles meet their floors on every ground they are dra try checks.append(a, .{ .what = "reading", .got = oklabDistance(toOklab(chrome.tag_reading_bg), toOklab(th.tag_bg)), .floor = Roles.reading_distance }); for ([_][3]u8{ th.tag_fg, th.tag_active_fg orelse th.tag_fg }) |ink| try checks.append(a, .{ .what = "text on reading", .got = contrast(ink, chrome.tag_reading_bg), .floor = @min(7, contrast(ink, th.tag_bg)) - 0.02 }); - const ink_floor = @min(Roles.ink_floor, contrast(body_ink, page)); - // A preview's landing line 1.5:1 off the page, its matched span (the - // current hit) a step stronger, 1.9:1 (UX E7 7b: 1.29 read as faint). - for ([_][3]u8{ r.hit, r.hit_current }, [_]f32{ 1.5, 1.9 }) |ground, floor| { - const on = contrast(body_ink, ground); - try checks.append(a, .{ .what = "hit", .got = contrast(ground, page), .floor = if (on < ink_floor + 0.3) 0 else floor }); - try checks.append(a, .{ .what = "ink on hit", .got = on, .floor = ink_floor - 0.01 }); - } - try checks.append(a, .{ .what = "current over hit", .got = contrast(r.hit_current, page) - contrast(r.hit, page), .floor = 0 }); for (checks.items) |c| if (c.got < c.floor - 0.005) { failed += 1; std.debug.print("{s}: {s} {d:.2} under {d:.2}\n", .{ th.name, c.what, c.got, c.floor }); @@ -2417,12 +2507,14 @@ test "neonotte84's and acme's inks on the plain tag, their reading mark and thei const wants = [_]Want{ // Text, dim, rule and key as D4 derived them; the match the hits' // amber held on this ground alone (D4's pushed neonotte84's number - // over all seven grounds at once: #f1a271); the reading mark sky + // over all seven grounds at once: #f1a271; L1's #e29e47 the warning + // pardes derived, its own palette's since B7, #e59d3c, the current + // hit's too); the reading mark sky // on the grip, 3:1 on both tags (D4 tinted the whole tag #29271e); // the hit an amber ground 1.5:1 off the page (D4's mixed the // number in: #47322e) and the current one that amber itself, solid // (D4's a 1.9:1 ground, #5f3f33). - .{ .name = "neonotte84", .text = .{ 0xb5, 0xbf, 0xe3 }, .dim = .{ 0x70, 0x76, 0x8f }, .rule = .{ 0x4c, 0x50, 0x63 }, .key = .{ 0xf8, 0xde, 0xd9 }, .match = .{ 0xe2, 0x9e, 0x47 }, .mode = .{ 0x2b, 0x92, 0xbc }, .hit = .{ 0x4c, 0x30, 0x1a }, .hit_current = .{ 0xe2, 0x9e, 0x47 } }, + .{ .name = "neonotte84", .text = .{ 0xb5, 0xbf, 0xe3 }, .dim = .{ 0x70, 0x76, 0x8f }, .rule = .{ 0x4c, 0x50, 0x63 }, .key = .{ 0xf8, 0xde, 0xd9 }, .match = .{ 0xe5, 0x9d, 0x3c }, .mode = .{ 0x2b, 0x92, 0xbc }, .hit = .{ 0x4c, 0x30, 0x1a }, .hit_current = .{ 0xe5, 0x9d, 0x3c } }, // acme's key and match on its plain tag alone, never held to its // #9eeeee selection and its reading ground at once (D4's #555583, // #8f4800): its #8888cc darkened to 4.5:1, its number as it is; the @@ -2515,7 +2607,7 @@ const RingCheck = enum { }; /// The checks `th`'s chrome fails. -fn ringFailures(th: *const Theme, c: *const Chrome) std.EnumSet(RingCheck) { +fn ringFailures(th: *const Theme, c: *const Chrome, designed_here: bool) std.EnumSet(RingCheck) { var f: std.EnumSet(RingCheck) = .empty; const de = struct { fn of(a: [3]u8, b: [3]u8) f32 { @@ -2602,7 +2694,15 @@ fn ringFailures(th: *const Theme, c: *const Chrome) std.EnumSet(RingCheck) { f.setPresent(.severities4, apart4 < Chrome.severity_apart); const err = lch(c.page.severity[0]); f.setPresent(.error_red, !(err[1] >= 0.08 and (err[2] <= 50 or err[2] >= 330))); - f.setPresent(.diff, @min(contrast(c.add.row, page), contrast(c.del.row, page)) < 1.1 or de(c.add.row, c.del.row) < 0.05); + // R10: each diff row 1.15:1 off the page, and the two 0.05 apart; a + // port's or an import's nearer where its own text holds it (never + // under its floor there: tokyonight_day's text, 4.9:1, leaves 1.11:1); + // pardes's own themes always (the coordinator's ruling). + const diff_floor = @min(4.5, text * 0.9); + for ([2][3]u8{ c.add.row, c.del.row }) |row| { + if (contrast(row, page) < Chrome.row_step - 0.005 and (designed_here or contrast(ink, row) > diff_floor + 0.05)) f.insert(.diff); + } + if (de(c.add.row, c.del.row) < 0.05) f.insert(.diff); var ansi_least: f32 = 21; for (c.ansi[1..], 1..) |a, i| { ansi_least = @min(ansi_least, contrast(a, page)); @@ -2620,54 +2720,30 @@ fn ringFailures(th: *const Theme, c: *const Chrome) std.EnumSet(RingCheck) { 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); } return f; } -/// The themes that fail a check they are held to until the line that fixes -/// them lands (DESIGN.md E1, F): the list shrinks as each does, and a theme -/// on it that passes fails the test, so it is taken off. -const ring_expected = [_]struct { []const u8, []const u8 }{ - // L3 (core/themes): the overrides DESIGN.md E1 names. - .{ "acme", "L3: its own sixteen where pardes's picks read under 3:1 (ANSI 10, 14)" }, - .{ "solarized_dark", "L3: `hit` and `added`/`deleted` of its own" }, - .{ "solarized_light", "L3: `hit` of its own" }, - .{ "seoul256_light_254", "L3: `hit` of its own" }, - .{ "seoul256_light_255", "L3: `hit` of its own" }, - // L4 (tools/gen_themes.zig): B7's mapping, or an import's override. - .{ "everforest_light", "L4: `hit` of its own" }, - .{ "github_dark_dimmed", "L4: its text from helix's `variable`" }, - .{ "gruvbox_material_light_hard", "L4: `info`/`hint` from its own scopes" }, - .{ "gruvbox_material_light_medium", "L4: `info`/`hint` from its own scopes" }, - .{ "gruvbox_material_light_soft", "L4: `info`/`hint` from its own scopes" }, - .{ "hex_toxic", "L4: `hit` and `added`/`deleted` of its own" }, - // L5: dark's own sixteen (its derived ANSI 8 is 3:1, under the pro 4.5). - .{ "dark", "L5: its designed ANSI (DESIGN.md C)" }, - // L7: retired. - .{ "seoul256_dark_238", "L7: retired" }, - .{ "seoul256_dark_239", "L7: retired" }, - .{ "seoul256_light_252", "L7: retired" }, - .{ "seoul256_light_253", "L7: retired" }, - .{ "hex_lavender", "L7: retired" }, - .{ "hex_poison", "L7: retired" }, - .{ "hex_steel", "L7: retired" }, - .{ "ingrid", "L7: retired" }, - // No line: the soft natives' text is 4.5-7:1 by design (the native - // test below), under the professional 7:1. C1's ruling. - .{ "dusk", "soft by design: text under the pro 7:1" }, - .{ "lagoon", "soft by design: text under the pro 7:1" }, - .{ "solarium", "soft by design: text under the pro 7:1" }, - .{ "forge_soft", "soft by design: text under the pro 7:1" }, -}; +/// The soft natives: their text 4.5-7:1 by design, held at AA, never the +/// professional 7:1, and never retuned (the coordinator's ruling; solarium +/// is the user's). +const soft_themes = [_][]const u8{ "dusk", "lagoon", "solarium", "forge_soft" }; test "every theme in the ring meets every floor pardes owns (DESIGN.md B4), natives and dark the professional ones too; the original's own colours never moved" { - const lapis = comptime indexOfTheme("lapis"); - const dark = comptime indexOfTheme("dark"); + // pardes's own: every theme before the first faithful port (dark and + // the new ones among them), and the captured helix's originals. + const ports = comptime indexOfTheme("dark_plus"); const helix = comptime indexOfTheme("helix"); var passing: usize = 0; - var wrong: usize = 0; for (&themes, 0..) |*th, i| { const c = Chrome.of(th); // The original's own (B1.5): never moved. @@ -2676,58 +2752,110 @@ test "every theme in the ring meets every floor pardes owns (DESIGN.md B4), nati if (th.page) |own| try std.testing.expectEqual(own, c.page.ground); if (th.ansi) |own| try std.testing.expectEqual(own, c.ansi); if (th.line_number) |own| try std.testing.expectEqual(own, c.line_number); - const ours = i <= lapis or i == dark or i == helix; - const failures = ringFailures(th, &c); + const ours = i < ports or i == helix; + const soft = for (soft_themes) |name| { + if (std.mem.eql(u8, name, th.name)) break true; + } else false; + const failures = ringFailures(th, &c, i < ports); var held: std.EnumSet(RingCheck) = .empty; var it = failures.iterator(); while (it.next()) |check| { - if (check.pro() and !(i <= lapis or i == dark)) continue; + if (check.pro() and i >= ports) continue; + // A soft theme's text is held at AA, 4.5:1, never the pro 7:1. + if (soft and (check == .text7 or check == .tag_text7)) continue; if (check.original() and !ours and !(std.mem.startsWith(u8, @tagName(check), "ansi") and th.ansi == null)) continue; held.insert(check); } - const expected = for (ring_expected) |e| { - if (std.mem.eql(u8, e[0], th.name)) break true; - } else false; - if (held.count() == 0) passing += 1; - if (held.count() > 0 and !expected) { - wrong += 1; - std.debug.print("{s} fails:", .{th.name}); - var failed = held.iterator(); - while (failed.next()) |check| std.debug.print(" {s}", .{@tagName(check)}); - std.debug.print("\n", .{}); - } - if (held.count() == 0 and expected) { - wrong += 1; - std.debug.print("{s} passes now: take it off ring_expected\n", .{th.name}); + if (held.count() == 0) { + passing += 1; + continue; } + std.debug.print("{s} fails:", .{th.name}); + var failed = held.iterator(); + while (failed.next()) |check| std.debug.print(" {s}", .{@tagName(check)}); + std.debug.print("\n", .{}); + } + std.debug.print("ring floors: {d} of {d} themes pass\n", .{ passing, themes.len }); + try std.testing.expectEqual(themes.len, passing); +} + +/// A faithful port's own colours pardes moves where they miss a floor: its +/// indicators and grounds (B1.6, G4: only that colour, and its file says +/// so); its text, syntax, comments and sixteen never move (the ring test). +/// Each with the ground it is held on, for the words its file says. +fn portMoves(th: *const Theme, c: *const Chrome) [12]struct { role: []const u8, own: ?[3]u8, got: [3]u8, on: [3]u8 } { + const page = c.page.ground; + return .{ + .{ .role = "tag ground", .own = th.tag, .got = c.tag[0].ground, .on = page }, + .{ .role = "focused tag ground", .own = th.tag_focus, .got = c.tag[1].ground, .on = c.tag[0].ground }, + .{ .role = "focused grip", .own = th.accent, .got = c.grip.focus, .on = c.tag[1].ground }, + .{ .role = "grip ring", .own = th.grip_ring, .got = c.grip.ring, .on = c.tag[0].ground }, + .{ .role = "unsaved grip", .own = th.dirty, .got = c.grip.dirty, .on = c.tag[0].ground }, + .{ .role = "selection", .own = th.selection, .got = c.page.selection.ground, .on = page }, + .{ .role = "selection text", .own = th.selection_text, .got = c.page.selection.text, .on = c.page.selection.ground }, + .{ .role = "search hit", .own = th.hit, .got = c.hit, .on = page }, + .{ .role = "error", .own = th.@"error", .got = c.page.severity[0], .on = page }, + .{ .role = "warning", .own = th.warning, .got = c.page.severity[1], .on = page }, + .{ .role = "info", .own = th.info, .got = c.page.severity[2], .on = page }, + .{ .role = "hint", .own = th.hint, .got = c.page.severity[3], .on = page }, + }; +} + +test "every faithful port's file says each of its own colours pardes moves to meet a floor (DESIGN.md G4)" { + const first = comptime indexOfTheme("dark_plus"); + const last = comptime indexOfTheme("doom_one_light"); + var unsaid: usize = 0; + inline for (@typeInfo(curated).@"struct".decl_names[first .. last + 1], first..) |d, i| { + const file = comptime if (std.mem.startsWith(u8, d, "seoul256_")) "seoul256" else d; + const source = @embedFile("themes/" ++ file ++ ".zig"); + const c = Chrome.of(&themes[i]); + for (portMoves(&themes[i], &c)) |m| if (m.own) |own| if (!std.mem.eql(u8, &own, &m.got)) { + var buf: [64]u8 = undefined; + const said = try std.fmt.bufPrint(&buf, "{s} #{x:0>2}{x:0>2}{x:0>2} -> #{x:0>2}{x:0>2}{x:0>2}", .{ m.role, own[0], own[1], own[2], m.got[0], m.got[1], m.got[2] }); + if (std.mem.indexOf(u8, source, said) == null) { + unsaid += 1; + std.debug.print("unsaid\t{s}\t{s}\t{s}\t{d:.2}\t{d:.2}\n", .{ themes[i].name, file, said, contrast(own, m.on), contrast(m.got, m.on) }); + } + }; } - std.debug.print("ring floors: {d} of {d} themes pass; {d} on the expected list\n", .{ passing, themes.len, ring_expected.len }); - try std.testing.expectEqual(0, wrong); + try std.testing.expectEqual(0, unsaid); } -test "the whole ring resolves in 150 ms of CPU, no theme in over 0.5 ms (Debug)" { - const io = std.testing.io; - var total: i96 = 0; - var worst: i96 = 0; +/// B9's budget, about 0.5 ms a theme and the ring in 150 ms on an idle +/// machine (Debug), in user-space instructions, which a loaded machine does +/// not move: Chrome.of retires about 7 a nanosecond here (the ring's 304 M +/// in 42 ms of an idle CPU, 2026-11-26). +const theme_instructions: u64 = 3_500_000; +const ring_instructions: u64 = 1_050_000_000; + +test "the whole ring resolves within B9's budget, about 0.5 ms a theme and 150 ms in all on an idle machine, counted in instructions (Debug)" { + if (builtin.os.tag != .linux) return error.SkipZigTest; + const linux = std.os.linux; + var attr: linux.perf_event_attr = .{ .type = .HARDWARE, .config = @intFromEnum(linux.PERF.COUNT.HW.INSTRUCTIONS), .flags = .{ .exclude_kernel = true, .exclude_hv = true } }; + const rc = linux.perf_event_open(&attr, 0, -1, -1, 0); + // No counter here (a container, perf_event_paranoid 3): nothing to count. + if (linux.errno(rc) != .SUCCESS) return error.SkipZigTest; + const fd: i32 = @intCast(rc); + defer _ = linux.close(fd); + var total: u64 = 0; + var worst: u64 = 0; var worst_at: usize = 0; for (&themes, 0..) |*th, i| { - // The least of five: a theme's own cost, not a page fault's. - var least: i96 = std.math.maxInt(i96); - for (0..5) |_| { - const start = std.Io.Clock.cpu_thread.now(io); - var c = Chrome.of(th); - std.mem.doNotOptimizeAway(&c); - least = @min(least, start.durationTo(std.Io.Clock.cpu_thread.now(io)).toNanoseconds()); - } - total += least; - if (least > worst) { - worst = least; + var before: u64 = 0; + var after: u64 = 0; + _ = linux.read(fd, std.mem.asBytes(&before), 8); + var c = Chrome.of(th); + std.mem.doNotOptimizeAway(&c); + _ = linux.read(fd, std.mem.asBytes(&after), 8); + total += after - before; + if (after - before > worst) { + worst = after - before; worst_at = i; } } - std.debug.print("ring resolved in {d} us, the slowest {s} in {d} us\n", .{ @divTrunc(total, 1000), themes[worst_at].name, @divTrunc(worst, 1000) }); - try std.testing.expect(total < 150 * std.time.ns_per_ms); - try std.testing.expect(worst <= std.time.ns_per_ms / 2); + std.debug.print("ring resolved in {d} instructions, the most {s}'s {d}\n", .{ total, themes[worst_at].name, worst }); + try std.testing.expect(total < ring_instructions); + try std.testing.expect(worst <= theme_instructions); } test "a theme file in the old names, a user's own or an older DumpThemes', and DumpThemes' now in the new names, load to the same Chrome" { @@ -2797,3 +2925,51 @@ test "a theme file in the old names, a user's own or an older DumpThemes', and D try std.testing.expect(!loadThemeFile(p, p.theme_file_generation, ".{ .name = \"x\", .page = null, .txet = null }")); try std.testing.expectEqualStrings("one_dark_zed", p.theme().name); } + +test "a retired theme's name stands for its successor in an init file and a dump, said once; an unknown one leaves the default, in today's words (DESIGN.md E)" { + const gpa = std.testing.allocator; + const Said = struct { + fn count(p: *const Pardes, needle: []const u8) usize { + var n: usize = 0; + for (p.messages.log[0..p.messages.len]) |m| { + if (std.mem.indexOf(u8, m.text[0..m.len], needle) != null) n += 1; + } + return n; + } + }; + for ([_][3][]const u8{ + .{ "gruvbox_dark_zed", "gruvbox", "Theme gruvbox_dark_zed was retired: gruvbox instead" }, + .{ "TTOX", "dark", "Theme TTOX was retired: dark instead" }, + // a retired one with no kept twin: the default + .{ "ingrid", "orchard", "Theme ingrid was retired: orchard instead" }, + .{ "no-such-theme", "orchard", "Theme: no theme \"no-such-theme\"; like it: " }, + }) |case| { + const line = try std.fmt.allocPrint(gpa, "Theme {s}\n", .{case[0]}); + defer gpa.free(line); + const p = try Pardes.init(gpa, .{ .tty_only = true, .startup_config = line }); + defer p.deinit(); + try std.testing.expectEqualStrings(case[1], p.theme().name); + try std.testing.expectEqual(1, Said.count(p, case[2])); + } + // A dump naming one (this build writes none: a dump of an older one, + // its theme's name put in): its successor. + const source = try Pardes.init(gpa, .{ .tty_only = true, .startup_config = "Theme acme\n" }); + defer source.deinit(); + try @import("dump.zig").dumpState(source); + const bytes = try gpa.dupe(u8, source.dump_out.?); + defer gpa.free(bytes); + const at = std.mem.indexOf(u8, bytes, "acme").?; + try std.testing.expect(std.mem.indexOfPos(u8, bytes, at + 4, "acme") == null); + @memcpy(bytes[at..][0..4], "ttox"); + const restored = try @import("dump.zig").initFromDump(gpa, .{ .tty_only = true }, bytes); + defer restored.deinit(); + try std.testing.expectEqualStrings("dark", restored.theme().name); +} + +test "every retired theme's successor is in the ring, and no retired name is" { + for (retired) |r| { + try std.testing.expectEqual(null, themeIndex(r[0])); + if (r[1]) |kept| try std.testing.expect(themeIndex(kept) != null); + } + try std.testing.expectEqual(44, retired.len); +} diff --git a/core/config.zig b/core/config.zig index 03cb6044..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; @@ -614,7 +626,7 @@ pub const kill_to_line_start: []const Chord = &.{.{ .cp = 'u', .ctrl = true }}; pub const kill_to_line_end: []const Chord = &.{.{ .cp = 'k', .ctrl = true }}; pub const Settings = struct { - theme: usize = 0, + theme: usize = pardes.colors.default_theme, wrap: bool = true, debug: bool = false, /// The workspace tag row. Native shells with their own chrome (the macOS @@ -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 4d47f895..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; @@ -330,11 +336,14 @@ pub fn render(p: *Pardes, arena: std.mem.Allocator) !*Surface { s.placements.clearRetainingCapacity(); @memset(&s.gpu_frames, null); const chrome = p.chromeTheme(); + // The window's rules and grips from the chrome (the themes programme's + // L2e; DESIGN.md R6, R11, G1'). + const resolved = p.chrome(); s.chrome = .{ .page = p.theme().bg, .fg = p.theme().fg, - .border = chrome.border, - .topbar_rule = config.gui_topbar_pane_border_rgb orelse chrome.border, + .border = resolved.rule, + .topbar_rule = config.gui_topbar_pane_border_rgb orelse resolved.rule, .tag_bg = chrome.tag_bg, .tagline_bg = chrome.tagline_bg, .tag_focus_bg = chrome.tag_active_bg, @@ -344,12 +353,14 @@ pub fn render(p: *Pardes, arena: std.mem.Allocator) !*Surface { .scroll_thumb = chrome.scroll_thumb, .match_tick = chrome.search_bg, .match_current = p.theme().fg orelse chrome.tag_fg, - .rule_px = p.theme().rule_px orelse 2, - .grip_border = boxBorder(p), - .grip_focus_ring = chrome.box, - .grip_dirty = boxDirty(p), - .tag_rule = p.theme().tag_rule, - .rail_px = @intCast(@min(255, @as(u32, p.theme().rail_px orelse 12) * p.settings.grip_width / 100)), + .rule_px = resolved.rule_px, + .grip_border = resolved.grip.ring, + .grip_focus_ring = resolved.grip.focus, + .grip_dirty = resolved.grip.dirty, + .grip_mode = resolved.grip.mode, + .grip_ink = resolved.grip.ink, + .tag_rule = resolved.tag_rule, + .rail_px = @intCast(@min(255, @as(u32, resolved.rail_px) * p.settings.grip_width / 100)), }; place(p, s); // Separators have their own role; a scrollbar need not frame the page. @@ -590,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); } @@ -844,8 +861,8 @@ fn renderHeaderLayer(p: *Pardes, layer: *pardes.Layer, kind: TagKind, id: u16, v var col = panes.File.rawDisplayCol(p.settings.tab, shown, @max(swept.lo, start) - start) -| scroll; const stop = panes.File.rawDisplayCol(p.settings.tab, shown, @min(swept.hi, end) - start) -| scroll; while (col < stop and col < columns) : (col += 1) { - surface.at(@intCast(col), 0).style.bg = .{ .rgb = body_layer.buttonTints(p.theme())[button] }; - surface.at(@intCast(col), 0).style.fg = .{ .rgb = body_layer.buttonInks(p.theme())[button] }; + surface.at(@intCast(col), 0).style.bg = .{ .rgb = p.chrome().sweeps[button].ground }; + surface.at(@intCast(col), 0).style.fg = .{ .rgb = p.chrome().sweeps[button].text }; } } } else |_| {}; @@ -928,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); @@ -972,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; @@ -1223,12 +1244,11 @@ fn paintPaneTag(p: *Pardes, s: *Surface, arena: std.mem.Allocator, pane: *Pane, body_layer.paintPointerSelection(p, s, pane, r, sel, 0, preview_bg, null); }; } - const sel_btn = body_layer.buttonTints(th); - const sel_ink = body_layer.buttonInks(th); + const sweeps = &p.chrome().sweeps; for (pane.sel, 0..) |selection, button| { if (selection.state == .none or (selection.state == .done and button != 0)) continue; if (button == pardes.sel_slot or @min(selection.r0, selection.r1) >= rows) continue; - body_layer.paintPointerSelection(p, s, pane, r, selection, 0, sel_btn[button], sel_ink[button]); + body_layer.paintPointerSelection(p, s, pane, r, selection, 0, sweeps[button].ground, sweeps[button].text); } } diff --git a/core/dump.zig b/core/dump.zig index d7c44b71..0cefa157 100644 --- a/core/dump.zig +++ b/core/dump.zig @@ -422,10 +422,8 @@ fn loadKnowing(gpa: std.mem.Allocator, opts: Options, bytes: []const u8, notes: const was = try l.get(OnDisk); if (on_disk) |out| out.* = was; const theme = try l.get([]const u8); - // This build's place for that theme; one it has not, its first. - p.settings.theme = for (colors.themes, 0..) |t, i| { - if (std.mem.eql(u8, t.name, theme)) break i; - } else if (p.settings.theme < colors.themes.len) p.settings.theme else 0; + // This build's place for that theme, a retired one's successor's. + p.settings.theme = colors.restoredIndex(theme, p.settings.theme); // A mount this process was started with stands; one of the same name // to elsewhere is refused, never silently put over it. for (mounts) |m| { @@ -515,9 +513,7 @@ fn loadImage(gpa: std.mem.Allocator, opts: Options, bytes: []const u8, notes: ?* if (on_disk) |out| out.* = was; const theme: []const u8 = if (try walk.Get.member(root, "theme")) |c| try l.get([]const u8, c) else ""; defer gpa.free(theme); - p.settings.theme = for (colors.themes, 0..) |t, i| { - if (std.mem.eql(u8, t.name, theme)) break i; - } else if (p.settings.theme < colors.themes.len) p.settings.theme else 0; + p.settings.theme = colors.restoredIndex(theme, p.settings.theme); for (mounts) |m| { const existing = for (p.fs.mounts.items) |e| { if (std.mem.eql(u8, e.name, m.name)) break e; @@ -639,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); @@ -661,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 @@ -1381,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, @@ -1407,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/exec.zig b/core/exec.zig index a56c17f9..44cfea64 100644 --- a/core/exec.zig +++ b/core/exec.zig @@ -1008,6 +1008,13 @@ pub fn applySettingBuiltin(p: *Pardes, setting: config.Settings.Setting, arg: ?[ .theme => { const want = std.mem.trim(u8, arg orelse return, " \t\r\n"); if (colors.themeIndex(want)) |i| return colors.setThemeIndex(p, i); + // A retired theme's name (DESIGN.md E): its successor, said. + if (colors.successorOf(want)) |i| { + colors.setThemeIndex(p, i); + var said: pardes.Kind.Buf(128) = .{}; + _ = pardes.Messages.say(p, .notice, v.active, said.print("Theme {s} was retired: {s} instead", .{ want[0..@min(want.len, 40)], colors.themes[i].name })); + return; + } // A failure is said, the init file's too (applyStartupConfig // logs it with its line): never silent. // All of it within the 128 bytes a 9P error carries, so a write diff --git a/core/jj.zig b/core/jj.zig index bc2cea32..618f363e 100644 --- a/core/jj.zig +++ b/core/jj.zig @@ -1942,9 +1942,9 @@ fn ghostLanes(ch: *const Changes, ghosts: []const Ghost, gi: usize, first_row: b /// a changed line's old text grey, the words that went red; a /// description's id and title in its lane's colour `lane`, or with one /// change pinned (no one colour a lane) its id in the theme's keyword ink, -/// its author and age grey. +/// its author and age grey. All of them the chrome's (Chrome.add, .del). fn inkGhost(p: *Pardes, s: *pardes.Surface, pane: *const Pane, g: Ghost, row: i32, from: usize, to: usize, pad: i32, marks: []const [2]u32, lane: ?[3]u8, x: u16, y: u16, w: u16) void { - const th = p.theme(); + const chrome = p.chrome(); const tab = p.settings.tab; const said = File.sourceLine(pane, row); const Ink = struct { @@ -1975,13 +1975,13 @@ fn inkGhost(p: *Pardes, s: *pardes.Surface, pane: *const Pane, g: Ghost, row: i3 const ink: Ink = .{ .q = p, .s = s, .pane = pane, .row = row, .from = from, .to = to, .pad = pad, .x = x, .y = y, .w = w }; _ = tab; switch (g.kind) { - .deleted => s.tint(x, y, w, pardes.colors.Grounds.of(th).del.row, th.lineno), - .added => s.tint(x, y, w, pardes.colors.Grounds.of(th).add.row, null), + .deleted => s.tint(x, y, w, chrome.del.row, chrome.line_number), + .added => s.tint(x, y, w, chrome.add.row, null), .changed => { - ink.fg(0, said.len, th.lineno); + ink.fg(0, said.len, chrome.line_number); for (marks[g.marks..][0..g.nmarks]) |m| { const c = ink.cells(m[0], m[1]); - if (c[0] < c[1]) s.tint(x + c[0], y, c[1] - c[0], pardes.colors.Grounds.of(th).del.emph, null); + if (c[0] < c[1]) s.tint(x + c[0], y, c[1] - c[0], chrome.del.emph, null); } }, .description => { @@ -1989,8 +1989,8 @@ fn inkGhost(p: *Pardes, s: *pardes.Surface, pane: *const Pane, g: Ghost, row: i3 // title) in the lane's colour, the author and the age grey. const id_end = std.mem.indexOfScalar(u8, said, ' ') orelse said.len; const author = @min(g.author, said.len); - ink.fg(0, if (lane != null) author else id_end, lane orelse th.kw); - ink.fg(author, said.len, th.lineno); + ink.fg(0, if (lane != null) author else id_end, lane orelse chrome.syntax[@intFromEnum(syntax.Syn.keyword)]); + ink.fg(author, said.len, chrome.line_number); }, } } @@ -2010,7 +2010,7 @@ fn inkCame(p: *Pardes, s: *pardes.Surface, pane: *Pane, marks: []const [2]u32, r if (lo >= hi) continue; const from = here.pad + File.displayOffset(tab, pane, row, @intCast(first), @intCast(lo)); const to = @min(@as(i32, w), here.pad + File.displayOffset(tab, pane, row, @intCast(first), @intCast(hi))); - if (from >= 0 and from < to) s.tint(x + @as(u16, @intCast(from)), y, @intCast(to - from), pardes.colors.Grounds.of(p.theme()).add.emph, null); + if (from >= 0 and from < to) s.tint(x + @as(u16, @intCast(from)), y, @intCast(to - from), p.chrome().add.emph, null); } } @@ -2245,82 +2245,6 @@ fn nest(lines: []Line, npins: usize) void { } } -/// A diff's two inks (one change pinned, `paintLanes`): its lane's colour -/// says the kind of the row it stands beside (the user's rulings of -/// 2026-11-23), `added` beside a row it wrote (a line added whole, a changed -/// line's new text), `taken` beside a row it took away (a line taken away, a -/// changed line's old text). -pub const Inks = struct { added: [3]u8, taken: [3]u8 }; - -/// The diff's own two colours: the theme's green and its red (the grounds' -/// and the changed words' hues), each pushed toward the ink until it reads -/// 3:1 on the page (or nearly as the ink does, where the ink reads less). -pub fn laneInks(th: *const pardes.LegacyTheme) Inks { - var inks: [2][3]u8 = .{ if (th.palette) |c| c[2] else .{ 0x2e, 0xa0, 0x43 }, themeRed(th) }; - const page = th.bg orelse th.tag_bg; - for (&inks) |*ink| { - var step: usize = 0; - while (step < 8 and pardes.colors.contrast(ink.*, page) < 3) : (step += 1) ink.* = pardes.colors.mixOklab(ink.*, th.fg orelse th.tag_fg, 0.4); - } - return .{ .added = inks[0], .taken = inks[1] }; -} - -/// The lanes' colours, a pin's the `pin % len`th, oldest first: the -/// theme's accents but the two that mean written and taken away (its green -/// and red), in hue order from the top, each a hue `hue_apart` or more from -/// the one kept before it (doom one: magenta, blue, yellow; cyan and -/// orange go). Distinct colours, never one between two. -pub fn laneColours(th: *const pardes.LegacyTheme, buf: *[8][3]u8) []const [3]u8 { - const pal = th.palette; - const grounds = [2][3]u8{ themeRed(th), if (pal) |c| c[2] else .{ 0x2e, 0xa0, 0x43 } }; - const accents: [6][3]u8 = if (pal) |c| .{ c[3], c[4], c[5], c[6], th.num, th.kw } else .{ th.kw, th.num, th.str, th.box, th.column_box orelse th.box, th.comment }; - var sorted: [6][3]u8 = undefined; - var n: usize = 0; - for (accents) |c| { - // A grey is no accent; one near written or taken away means that. - if (chroma(c) < 48 or hueApart(c, grounds[0]) < hue_apart or hueApart(c, grounds[1]) < hue_apart) continue; - sorted[n] = c; - n += 1; - } - std.sort.insertion([3]u8, sorted[0..n], {}, struct { - fn above(_: void, a: [3]u8, b: [3]u8) bool { - return hue(a) > hue(b); - } - }.above); - var kept: usize = 0; - for (sorted[0..n]) |c| { - if (kept > 0 and hueApart(c, buf[kept - 1]) < hue_apart) continue; - buf[kept] = c; - kept += 1; - } - return buf[0..kept]; -} - -/// Two hues closer than this are one colour to a lane (doom one's cyan is -/// 12 degrees from its blue, its orange 11 from its yellow). -const hue_apart = 15; - -fn chroma(c: [3]u8) u8 { - return @max(c[0], c[1], c[2]) - @min(c[0], c[1], c[2]); -} - -/// HSV's hue, in degrees. -fn hue(c: [3]u8) f32 { - const r: f32 = @floatFromInt(c[0]); - const g: f32 = @floatFromInt(c[1]); - const b: f32 = @floatFromInt(c[2]); - const hi = @max(r, g, b); - const d = hi - @min(r, g, b); - if (d == 0) return 0; - const h = if (hi == r) @mod((g - b) / d, 6) else if (hi == g) (b - r) / d + 2 else (r - g) / d + 4; - return 60 * h; -} - -fn hueApart(a: [3]u8, b: [3]u8) f32 { - const d = @abs(hue(a) - hue(b)); - return @min(d, 360 - d); -} - /// The pane's pinned changes as a view shows them, on its body's rows (body_layer.zig, while /// File.Layers.lanes is set): in the gutter's lane cells after the number a /// lane each pin whose block runs down the row, at its level, a glyph in a @@ -2333,18 +2257,13 @@ pub fn paint(p: *Pardes, s: *pardes.Surface, pane: *Pane, r: pardes.Rect, tx: u1 if (pane.layers.lanes > 0) paintLanes(p, s, pane, r, tx, tw, body_h); } -/// The theme's red: what a change took away; churn's top. -pub fn themeRed(th: *const pardes.LegacyTheme) [3]u8 { - return if (th.palette) |c| c[1] else .{ 0xcf, 0x22, 0x2e }; -} - -/// A count's colour on churn's gradient: smooth from the line numbers' -/// grey to the theme's red, on a log scale of the count against the -/// hottest; null for none. -fn heatColour(th: *const pardes.LegacyTheme, count: u16, hottest: u16) ?[3]u8 { +/// A count's colour on churn's eight steps from the line numbers' grey to +/// the deleted hue (Chrome.heat, worked out with the theme), on a log scale +/// of the count against the hottest; null for none. +fn heatColour(c: *const pardes.colors.Chrome, count: u16, hottest: u16) ?[3]u8 { if (count == 0 or hottest == 0) return null; const t = @log(@as(f32, @floatFromInt(count)) + 1) / @log(@as(f32, @floatFromInt(hottest)) + 1); - return pardes.colors.mixOklab(th.lineno, themeRed(th), t); + return c.heat[@min(c.heat.len, @as(usize, @intFromFloat(@ceil(t * c.heat.len)))) -| 1]; } /// The heat lane: a cell after the line number (before the changes' @@ -2362,7 +2281,7 @@ fn paintHeat(p: *Pardes, s: *pardes.Surface, pane: *Pane, r: pardes.Rect, tx: u1 if (row < 0 or File.readOnlyRow(f, @intCast(row)) != null) continue; const line = File.fileRow(f, @intCast(row)); if (line >= heat.lines.len) continue; - const rgb = heatColour(p.theme(), heat.lines[line], heat.hottest) orelse continue; + const rgb = heatColour(p.chrome(), heat.lines[line], heat.hottest) orelse continue; var style = s.at(x, body_y + vr).style; style.fg = .{ .rgb = rgb }; s.set(x, body_y + vr, "\u{258c}", style); @@ -2380,7 +2299,7 @@ pub fn railHeat(p: *Pardes, s: *pardes.Surface, pane: *Pane, id: usize, rail: pa for (0..rail.h) |row| { const lo = row * total / rail.h; const hi = @max(lo + 1, (row + 1) * total / rail.h); - const rgb = heatColour(p.theme(), std.mem.max(u16, heat.lines[lo..@min(hi, total)]), heat.hottest) orelse continue; + const rgb = heatColour(p.chrome(), std.mem.max(u16, heat.lines[lo..@min(hi, total)]), heat.hottest) orelse continue; if (p.view().frontend.windowed) s.heat.append(p.gpa, .{ .owner = @intCast(id), .row = @intCast(row), .rgb = rgb }) catch {} else @@ -2393,18 +2312,18 @@ fn paintLanes(p: *Pardes, s: *pardes.Surface, pane: *Pane, r: pardes.Rect, tx: u const ch = answered(p, f.layer.owner) orelse return; if (ch.lines.len == 0) return; const tab = p.settings.tab; - var buf: [8][3]u8 = undefined; - const colours = laneColours(p.theme(), &buf); - if (colours.len == 0) return; - // One change pinned is a diff: its lane in the diff's own two colours, - // by the row's kind; several, a colour a change, to tell them apart. - const one: ?Inks = if (ch.pins.len == 1) laneInks(p.theme()) else null; + const chrome = p.chrome(); + const colours = chrome.lanes[0..chrome.lanes_len]; + // One change pinned is a diff: its lane in the diff's own two markers + // (the user's rulings of 2026-11-23: added beside a row it wrote, deleted + // beside one it took away); several, a colour a change, to tell them + // apart. + const one = ch.pins.len == 1; const gutter = File.gutterWidth(pane); const cells = File.laneCells(pane); if (gutter >= tw or cells == 0) return; const first = tx + gutter - cells; const windowed = p.view().frontend.windowed; - const ground = pardes.colors.Grounds.of(p.theme()).add.row; const body_y = p.bodyTop(pane, r); const nrows = File.lineCount(f.content); var vr: u16 = pane.context_rows; @@ -2424,7 +2343,7 @@ fn paintLanes(p: *Pardes, s: *pardes.Surface, pane: *Pane, r: pardes.Rect, tx: u const next = pane.wrapAt(tab, @as(i32, vr) + 1); const to: usize = if (next.line == w.line) @intCast(next.at) else File.sourceLine(pane, w.line).len; const first_row = w.at <= 0; - inkGhost(p, s, pane, g, w.line, @intCast(@max(0, w.at)), to, w.pad, ch.marks, if (one == null) colours[g.pin % colours.len] else null, tx + gutter, y, tw - gutter); + inkGhost(p, s, pane, g, w.line, @intCast(@max(0, w.at)), to, w.pad, ch.marks, if (one) null else colours[g.pin % colours.len], tx + gutter, y, tw - gutter); if (g.kind == .description and first_row) points = @enumFromInt(g.pin); taken = g.kind == .deleted or g.kind == .changed or (g.kind == .description and takenAbove(ch.ghosts, gi)); break :ghost ghostLanes(ch, ch.ghosts, gi, first_row); @@ -2432,9 +2351,9 @@ fn paintLanes(p: *Pardes, s: *pardes.Surface, pane: *Pane, r: pardes.Rect, tx: u const at = File.fileRow(f, row); if (at >= ch.lines.len) continue; const line = ch.lines[at]; - if (line.whole and line.pin != .none) s.tint(tx + gutter, y, tw - gutter, ground, null); + if (line.whole and line.pin != .none) s.tint(tx + gutter, y, tw - gutter, chrome.add.row, null); // Going: a pin ahead takes it away. - if (line.going != .none) s.tint(tx + gutter, y, tw - gutter, pardes.colors.Grounds.of(p.theme()).del.row, null); + if (line.going != .none) s.tint(tx + gutter, y, tw - gutter, chrome.del.row, null); taken = line.going != .none; if (!line.whole and line.nmarks > 0) inkCame(p, s, pane, ch.marks[line.marks..][0..line.nmarks], w.line, vr, tx + gutter, y, tw - gutter); break :line line.lanes; @@ -2442,7 +2361,7 @@ fn paintLanes(p: *Pardes, s: *pardes.Surface, pane: *Pane, r: pardes.Rect, tx: u for (lanes, 0..) |lane, level| { if (lane == .none) break; const arrow = lane == points; - const rgb = if (one) |d| (if (taken) d.taken else d.added) else colours[@intFromEnum(lane) % colours.len]; + const rgb = if (one) (if (taken) chrome.del.ink else chrome.add.ink) else colours[@intFromEnum(lane) % colours.len]; if (windowed) { // A body a pixel shell draws as a layer is painted on a // temporary surface first: its lanes are not drawn yet. @@ -2567,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. @@ -2877,10 +2796,10 @@ test "Changes draws a lane a pinned change after the line number, nested ones a const s = try p.render(arena.allocator()); const body = s.region(.body, id).?.rect; const first = body.x + before; - var buf: [8][3]u8 = undefined; - const colours = laneColours(p.theme(), &buf); + const c = p.chrome(); + const colours = c.lanes[0..c.lanes_len]; try testing.expect(colours.len >= 3); - const ground = pardes.colors.Grounds.of(p.theme()).add.row; + const ground = c.add.row; // Lines 1-10, each on the row the view draws it at (ghost rows // stand between): `fn`'s spine on all; `mid` on 3-6; `shift` on 4. const want = [_][]const u8{ "0", "0", "01", "012", "01", "01", "0", "0", "0", "0" }; @@ -2917,16 +2836,15 @@ test "Changes draws a lane a pinned change after the line number, nested ones a } } -test "a diff's two lane inks in every theme: its green and its red, never one colour, each read on the page" { - for (&pardes.colors.legacy_themes) |*th| { - const inks = laneInks(th); - errdefer std.debug.print("{s}: added {any} taken {any}\n", .{ th.name, inks.added, inks.taken }); - try testing.expect(!std.meta.eql(inks.added, inks.taken)); - const page = th.bg orelse th.tag_bg; - // 3:1, or as near the theme's own ink's as it reads (hex_poison's). - const floor = @min(3, pardes.colors.contrast(th.fg orelse th.tag_fg, page)) - 0.1; - try testing.expect(pardes.colors.contrast(inks.added, page) >= floor); - try testing.expect(pardes.colors.contrast(inks.taken, page) >= floor); +test "a diff's two lane inks in every theme are its added and deleted markers (DESIGN.md R10): never one colour, each 4.5:1 on its rows, as near as the theme reaches" { + for (&pardes.colors.themes) |*th| { + const c: pardes.colors.Chrome = .of(th); + errdefer std.debug.print("{s}: added {any} deleted {any}\n", .{ th.name, c.add, c.del }); + try testing.expect(!std.meta.eql(c.add.ink, c.del.ink)); + for ([2]pardes.colors.Chrome.Diff{ c.add, c.del }) |d| for ([2][3]u8{ d.row, d.emph }) |ground| { + const reach = @max(pardes.colors.contrast(@splat(255), ground), pardes.colors.contrast(@splat(0), ground)); + try testing.expect(pardes.colors.contrast(d.ink, ground) >= @min(4.5, reach) - 0.01); + }; } } @@ -3003,9 +2921,8 @@ test "Changes draws what the text has not where it stood, as ghost rows: a line const s = try p.render(arena.allocator()); const body = s.region(.body, id).?.rect; const first = body.x + File.gutterWidth(pane) - File.laneCells(pane); - var cbuf: [8][3]u8 = undefined; - const colours = laneColours(p.theme(), &cbuf); - const grounds = pardes.colors.Grounds.of(p.theme()); + const grounds = p.chrome(); + const colours = grounds.lanes[0..grounds.lanes_len]; const lanes = [_][]const u8{ "0", "0", "02", "02", "02", "02", "01", "01", "01", "0", "0", "0" }; const Ground = enum { none, add, del }; const ground = [_]Ground{ .add, .add, .none, .none, .add, .none, .del, .del, .none, .add, .add, .none }; @@ -3048,7 +2965,7 @@ test "Changes draws what the text has not where it stood, as ghost rows: a line try testing.expectEqual(pardes.Color{ .rgb = colours[pin] }, s.at(body.x + File.gutterWidth(pane), body.y + row).style.fg); try testing.expectEqual(pardes.Color{ .rgb = colours[pin] }, s.at(body.x + File.gutterWidth(pane) + 5, body.y + row).style.fg); } - try testing.expectEqual(pardes.Color{ .rgb = p.theme().lineno }, s.at(body.x + File.gutterWidth(pane) + 4, body.y + 6).style.fg); + try testing.expectEqual(pardes.Color{ .rgb = grounds.line_number }, s.at(body.x + File.gutterWidth(pane) + 4, body.y + 6).style.fg); // The changed line: on its old text the word that went (`b`) red, // on it the word that came (`b2`) green; the rest of each neither. const text_x = body.x + File.gutterWidth(pane); @@ -3071,10 +2988,9 @@ test "Changes draws what the text has not where it stood, as ghost rows: a line const s1 = try p.render(arena.allocator()); const top = s1.region(.body, id).?.rect.y; const at = body.x + File.gutterWidth(pane) - File.laneCells(pane); - const inks = laneInks(p.theme()); - try testing.expect(!std.meta.eql(inks.added, inks.taken)); + try testing.expect(!std.meta.eql(grounds.add.ink, grounds.del.ink)); for ([_]u16{ 2, 3, 4, 5 }, [_]bool{ true, false, false, false }) |row, red| { - const ink = if (red) inks.taken else inks.added; + const ink = if (red) grounds.del.ink else grounds.add.ink; if (windowed) { var n: usize = 0; for (s1.lanes.items) |lane| if (lane.y == top + row) { @@ -3084,8 +3000,9 @@ test "Changes draws what the text has not where it stood, as ghost rows: a line try testing.expectEqual(@as(usize, 1), n); } else try testing.expectEqual(pardes.Color{ .rgb = ink }, s1.at(at, top + row).style.fg); } - try testing.expectEqual(pardes.Color{ .rgb = p.theme().kw }, s1.at(text_x, top + 5).style.fg); - try testing.expect(!std.meta.eql(pardes.Color{ .rgb = p.theme().kw }, s1.at(text_x + 5, top + 5).style.fg)); + const keyword = grounds.syntax[@intFromEnum(syntax.Syn.keyword)]; + try testing.expectEqual(pardes.Color{ .rgb = keyword }, s1.at(text_x, top + 5).style.fg); + try testing.expect(!std.meta.eql(pardes.Color{ .rgb = keyword }, s1.at(text_x + 5, top + 5).style.fg)); } } @@ -3299,12 +3216,12 @@ test "a description is whole, its title and its author never cut: in a pane narr const s = try p.render(arena.allocator()); const body = s.region(.body, id).?.rect; const x = body.x + File.gutterWidth(pane); - try testing.expectEqual(pardes.Color{ .rgb = p.theme().kw }, s.at(x, body.y + 3).style.fg); + try testing.expectEqual(pardes.Color{ .rgb = p.chrome().syntax[@intFromEnum(syntax.Syn.keyword)] }, s.at(x, body.y + 3).style.fg); const last: u16 = body.y + 3 + @as(u16, @intCast(n - 1)); const end = x + @as(u16, @intCast(File.displayWidth(p.settings.tab, Ghosts.text(pane, got[3 + n - 1])))) - 1; try testing.expectEqualStrings("w", s.at(end, last).grapheme()); - try testing.expectEqual(pardes.Color{ .rgb = p.theme().lineno }, s.at(end, last).style.fg); - try testing.expectEqual(pardes.Color{ .rgb = p.theme().lineno }, s.at(end - 4, last).style.fg); + try testing.expectEqual(pardes.Color{ .rgb = p.chrome().line_number }, s.at(end, last).style.fg); + try testing.expectEqual(pardes.Color{ .rgb = p.chrome().line_number }, s.at(end - 4, last).style.fg); const first = x - File.laneCells(pane); for (0..n) |k| { const y = body.y + 3 + @as(u16, @intCast(k)); @@ -4068,7 +3985,7 @@ test "from the middle: in a revision's pane a pin behind it shows the lines it t const s = try p.render(arena.allocator()); const body = s.region(.body, id).?.rect; const x = body.x + File.gutterWidth(pane) + 1; - const grounds = pardes.colors.Grounds.of(p.theme()); + const grounds = p.chrome(); for ([_]u16{ 1, 8 }) |row| try testing.expectEqual(pardes.Color{ .rgb = grounds.add.row }, s.at(x, body.y + row).style.bg); for ([_]u16{ 7, 11 }) |row| try testing.expectEqual(pardes.Color{ .rgb = grounds.del.row }, s.at(x, body.y + row).style.bg); } @@ -4255,8 +4172,10 @@ test "Churn counts the changes that touched each declaration and draws them afte const s = try p.render(arena.allocator()); const body = s.region(.body, id).?.rect; const x = body.x + File.gutterWidth(pane) - 1; - const red = themeRed(p.theme()); - const warm = pardes.colors.mixOklab(p.theme().lineno, red, @log(3.0) / @log(4.0)); + // Churn's steps (Chrome.heat): the hottest the last, f's 3 of 4's + // log, the seventh. + const red = p.chrome().heat[7]; + const warm = p.chrome().heat[6]; for (0..7) |row| { const cell = s.at(x, body.y + @as(u16, @intCast(row))); if (row == 3) { @@ -4465,8 +4384,7 @@ test "Compare pins the whole difference between each two points as one change: t const s = try p.render(arena.allocator()); const body = s.region(.body, id).?.rect; const first = body.x + File.gutterWidth(pane) - File.laneCells(pane); - var cbuf: [8][3]u8 = undefined; - const colours = laneColours(p.theme(), &cbuf); + const colours = p.chrome().lanes[0..p.chrome().lanes_len]; for ([_]u16{ 3, 7, 8 }, [_]usize{ 0, 1, 1 }) |row, pin| { if (windowed) { var n: usize = 0; 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 a6e6419b..c8fb91f9 100644 --- a/core/layout.zig +++ b/core/layout.zig @@ -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/lib_syntax.zig b/core/lib_syntax.zig index fa6812ee..448ac7f3 100644 --- a/core/lib_syntax.zig +++ b/core/lib_syntax.zig @@ -102,21 +102,22 @@ pub const NodeWalk = syntax.NodeWalk; pub const Span = syntax.Span; pub const walkNodes = syntax.walkNodes; -pub const Theme = colors.LegacyTheme; -/// Every theme: pardes's own, then those imported from helix and zed. The -/// first is the default. -pub const themes: []const Theme = &colors.legacy_themes; +pub const Theme = colors.Theme; +/// Every theme: pardes's own, then those imported from helix and zed. +pub const themes: []const Theme = &colors.themes; +/// The one a session starts in (`orchard`), its place in `themes`. +pub const default_theme = colors.default_theme; /// The theme named `name`, whatever its case. pub fn theme(name: []const u8) ?*const Theme { - return &colors.legacy_themes[colors.themeIndex(name) orelse return null]; + return &colors.themes[colors.themeIndex(name) orelse return null]; } /// A theme's page and its text's ink as a file pane has them: its own, or /// its tag's for the one theme with none (`dark`, a terminal's own). pub fn page(th: *const Theme) [3]u8 { - return th.bg orelse th.tag_bg; + return th.page orelse th.tag; } pub fn ink(th: *const Theme) [3]u8 { - return th.fg orelse th.tag_fg; + return th.text orelse th.tag_text; } pub const synInk = colors.synInk; diff --git a/core/look.zig b/core/look.zig index c7e0feb9..3ce1e48c 100644 --- a/core/look.zig +++ b/core/look.zig @@ -2152,8 +2152,9 @@ test "Look hover waits without mutating the pane and input cancels it" { _ = frame.reset(.retain_capacity); const surface = try p.render(frame.allocator()); + // On the selection's faint half (R7); a tag's (below) is the tags' own. + try std.testing.expectEqual(Color{ .rgb = p.chrome().selection_secondary }, surface.at(word_x, body_y).style.bg); const expected_bg = colors.mix(p.theme().bg orelse p.theme().tag_bg, colors.mix(p.theme().bg orelse p.theme().tag_bg, p.theme().sel_bg)); - try std.testing.expectEqual(Color{ .rgb = expected_bg }, surface.at(word_x, body_y).style.bg); // Background traffic in another pane does not change the text or geometry // under this pointer and must not strand a stationary hover unarmed. 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/mouse.zig b/core/mouse.zig index 37c3a97f..04bbaeb4 100644 --- a/core/mouse.zig +++ b/core/mouse.zig @@ -366,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); @@ -681,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; @@ -1992,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 17f58e7f..6d78bc44 100644 --- a/core/ninep/ctl.zig +++ b/core/ninep/ctl.zig @@ -555,7 +555,7 @@ fn checkBuiltin(p: *Pardes, req: Req, line: []const u8, scope: builtins.Scope) ? if (arg.len == 0 and builtins.registry.requiresArg(b)) return refuse(p, req, "wrong #args in control message", line); const setting = config.Settings.find(word) orelse return null; const takes = switch (setting.action) { - .theme => if (pardes.colors.themeIndex(arg) != null) true else { + .theme => if (pardes.colors.themeIndex(arg) != null or pardes.colors.successorOf(arg) != null) true else { // `refuse` quotes the line after it, all in the 128 bytes an // Rerror carries: the names get what is left. const head = "bad value in control message; like it: "; 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/replica.zig b/core/replica.zig index d07ce9d3..6c037cd2 100644 --- a/core/replica.zig +++ b/core/replica.zig @@ -8003,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 8d5f8c40..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"); @@ -764,11 +784,11 @@ test "what core/ asks of the machine is where the list says, with why: a new lin /// state did not make it diverged a client: Pane.notices, then Tables' /// reading, 2026-11-19). A file, its names, the reason. const kept_out = [_]struct { []const u8, []const u8, []const u8 }{ - .{ "Core.zig", "surface facts frames own_frames theme_chrome frame_arena scratch echo undrawn", "the frame's own and the views drawn here: written by frames (and chrome by a theme's step), read by frames and the runner; no step reads them" }, + .{ "Core.zig", "surface facts frames own_frames theme_chrome frame_arena scratch echo undrawn", "the frame's own and the views drawn here: written by frames (and chrome by a theme's step), read by frames and the runner, and the chrome by a query's rows for colours only (out of their digest, locations.Row.digest); no step's outcome reads them" }, .{ "Core.zig", "needs_frame", "whether to draw: steps set it, the loop reads it; no step's outcome reads it" }, .{ "Core.zig", "effects effects_head effects_len in_q in_head in_len opts dump_out dump_export tape", "this process's queues, options and tape, drained or set by its host" }, .{ "Core.zig", "shell_rows", "a terminal's rows as read here, swept at every update; the terminal's own digest covers its active area, not its history (Term.zig `calls`)" }, - .{ "Core.zig", "diff_output locations_cache tty_filter_palette body_chrome", "caches of pure functions of their key (a text, a theme): a step finds what it would make; a query row's colours from them are out of its digest (locations.Row.digest), and what a step asks a worker to paint is never decided by them (Stream.paintRows)" }, + .{ "Core.zig", "diff_output locations_cache tty_filter_palette", "caches of pure functions of their key (a text, a theme): a step finds what it would make; a query row's colours from them are out of its digest (locations.Row.digest), and what a step asks a worker to paint is never decided by them (Stream.paintRows)" }, .{ "Core.zig", "retired_panes", "panes torn down this step, freed at its end" }, .{ "Core.zig", "theme_preview preview_chrome", "a themes picker's preview (colors.previewTheme): made from the live picker's cursor, in the digest with it, after every step (Pick.produceAll) and gone at its roll-up; a step reading a theme meanwhile reads the one its own state previews" }, .{ "Core.zig", "multi_first multi_stop multi_index multi_count exec_depth exec_column", "a step's own: set by a key's replay across the ranges (normal.replaySels) and a word's run (exec.zig), each put back before the step ends; between steps what `init` makes, so a load takes them as it makes them (a dump's said 2^30 ranges once: a yank sized its register by it)" }, diff --git a/core/surface.zig b/core/surface.zig index b78b58de..ce8898ad 100644 --- a/core/surface.zig +++ b/core/surface.zig @@ -206,9 +206,12 @@ pub const Chrome = struct { grip_focus_ring: [3]u8 = .{ 0, 0, 0 }, /// A dirty pane's button fill. grip_dirty: [3]u8 = .{ 0, 0, 0 }, - /// The rule between a pane's tag and its body; null is halfway between - /// the tag's ground and the page the shell actually draws. - tag_rule: ?[3]u8 = null, + /// A reading pane's ring (DESIGN.md G1'), and the ink on a filled + /// button. + grip_mode: [3]u8 = .{ 0, 0, 0 }, + grip_ink: [3]u8 = .{ 0, 0, 0 }, + /// The rule between a pane's tag and its body. + tag_rule: [3]u8 = .{ 0, 0, 0 }, /// The scroll column's width, button and scrollbar alike, in pixels at /// a 17px tagline (acme's 12 at its font); a pixel shell scales it. rail_px: u8 = 12, 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/term/terminal.zig b/core/term/terminal.zig index 88eb1443..1c2310b1 100644 --- a/core/term/terminal.zig +++ b/core/term/terminal.zig @@ -418,10 +418,10 @@ pub const min_contrast: f64 = 1.5; /// `generate256Color` over the theme's sixteen), made again only when the /// theme's are not the ones `cache` was made of. pub fn filterPalette(cache: *FilterPalette, ink: *const Ink) *const [256][3]u8 { - const wanted: FilterPalette.Key = .{ .bg = ink.bg orelse ink.tag_bg, .fg = ink.fg orelse ink.tag_fg, .base = ink.base }; + const wanted: FilterPalette.Key = .{ .bg = ink.bg, .fg = ink.fg, .ansi = ink.ansi }; if (cache.key) |old| if (std.meta.eql(old, wanted)) return &cache.colors; var seed = GColor.default; - for (ink.base, 0..) |rgb, i| seed[i] = asGhostRgb(rgb); + for (ink.ansi, 0..) |rgb, i| seed[i] = asGhostRgb(rgb); const colors = GColor.generate256Color(seed, .empty, asGhostRgb(wanted.bg), asGhostRgb(wanted.fg), false); for (&cache.colors, colors) |*dst, src| dst.* = asTriple(src); cache.key = wanted; @@ -1333,6 +1333,12 @@ fn cellStyle(ink: *const Ink, ci: ghostty_vt.PageList.Cell, filtered: ?*Filter, }, else => {}, }; + // SGR faint on the page's text is the page's dim ink (DESIGN.md R15): + // toward the page, so as faint on a light theme as on a dark one. + if (cs.dim and std.meta.eql(cs.fg, plain.Color{ .rgb = ink.fg })) { + cs.fg = .{ .rgb = ink.dim }; + cs.dim = false; + } return cs; } @@ -1353,8 +1359,8 @@ pub fn filterOf(ink: *const Ink, palette: *FilterPalette, vt: ?*const ghostty_vt for (&source, 0..) |*rgb, i| rgb.* = t.colorForXterm(.{ .palette = @intCast(i) }) orelse rgb.*; } - var theme_bg = asGhostRgb(ink.bg orelse ink.tag_bg); - var theme_fg = asGhostRgb(ink.fg orelse ink.tag_fg); + var theme_bg = asGhostRgb(ink.bg); + var theme_fg = asGhostRgb(ink.fg); var dynamic_bg = if (vt) |t| t.colorForXterm(.{ .dynamic = .background }) else null; var dynamic_fg = if (vt) |t| t.colorForXterm(.{ .dynamic = .foreground }) else null; if (vt != null and vt.?.modes.get(.reverse_colors)) { @@ -1504,10 +1510,7 @@ fn colorDistance(a: GColor.RGB, b: GColor.RGB) u32 { fn ghostColor(ink: *const Ink, color: ghostty_vt.Style.Color, is_bg: bool) plain.Color { return switch (color) { - .none => blk: { - const t = if (is_bg) ink.bg else ink.fg; - break :blk if (t) |c| .{ .rgb = c } else .default; - }, + .none => if (ink.host) .default else .{ .rgb = if (is_bg) ink.bg else ink.fg }, .palette => |idx| ink.palColor(idx), .rgb => |rgb| .{ .rgb = .{ rgb.r, rgb.g, rgb.b } }, }; diff --git a/core/themes/acme.zig b/core/themes/acme.zig index 34d99805..030874fc 100644 --- a/core/themes/acme.zig +++ b/core/themes/acme.zig @@ -1,10 +1,16 @@ //! acme's yellow page — the light theme, and the one that has to resolve -//! `palette` itself. A theme that only dresses the page can leave a child's +//! `ansi` itself. A theme that only dresses the page can leave a child's //! ANSI indices alone and let the host answer them; on #ffffea that is how you //! get pale yellow `ls` output on pale yellow paper. So the sixteen below are //! darkened for paper: index 7 (the "white" a shell writes most of its output //! in) is a mid grey, and 15 (bright white) is BLACK, because a program asking //! for the brightest color on a light page means "make this stand out". +//! Each of the sixteen reads 4.5:1 on the page (DESIGN.md E1, the native +//! floor): 6 #118888 -> #038384, 8 #888888 -> #757575 and 13 #bb44bb -> +//! #b942b9, each held darker in its hue (R0); 10 #33aa33, 11 #aa7700 and 14 +//! #22aaaa held there land on their normal colour, so they go 0.06 darker +//! than it in OKLab, #016e08, #785300 and #017070 (R14: a bright one is +//! darker on a light page, as 15 is black). //! //! Every colour below that acme has is acme's own, from plan9port's acme.c //! iconinit and draw.h: the tag #eaffff and body #ffffea (each 25% of @@ -24,41 +30,40 @@ //! (draw.h's DMedblue): a navy that reads as ink until you look for it. pub const theme = .{ .name = "acme", - .bg = .{ 0xff, 0xff, 0xea }, - .fg = .{ 0x00, 0x00, 0x00 }, - .sel_bg = .{ 0xee, 0xee, 0x9e }, - .sel_fg = .{ 0x00, 0x00, 0x00 }, - .tag_bg = .{ 0xea, 0xff, 0xff }, - .tag_fg = .{ 0x00, 0x00, 0x00 }, - .tag_name_fg = .{ 0x00, 0x00, 0x99 }, - .box = .{ 0x88, 0x88, 0xcc }, - .box_dim = .{ 0xea, 0xff, 0xff }, - .kw = .{ 0x97, 0x0d, 0xae }, - .str = .{ 0x00, 0x77, 0x33 }, - .num = .{ 0xa0, 0x52, 0x00 }, + .page = .{ 0xff, 0xff, 0xea }, + .text = .{ 0x00, 0x00, 0x00 }, + .selection = .{ 0xee, 0xee, 0x9e }, + .selection_text = .{ 0x00, 0x00, 0x00 }, + .tag = .{ 0xea, 0xff, 0xff }, + .tag_text = .{ 0x00, 0x00, 0x00 }, + .tag_name = .{ 0x00, 0x00, 0x99 }, + .accent = .{ 0x88, 0x88, 0xcc }, + .keyword = .{ 0x97, 0x0d, 0xae }, + .string = .{ 0x00, 0x77, 0x33 }, + .number = .{ 0xa0, 0x52, 0x00 }, .comment = .{ 0x55, 0x55, 0x55 }, - .lineno = .{ 0x99, 0x99, 0x80 }, - .scroll_track = .{ 0x99, 0x99, 0x4c }, - .scroll_thumb = .{ 0xff, 0xff, 0xea }, + .line_number = .{ 0x99, 0x99, 0x80 }, + .rail = .{ 0x99, 0x99, 0x4c }, + .rail_thumb = .{ 0xff, 0xff, 0xea }, // acme paints a column with no window white (cols.c:187). - .empty_col = .{ 0xff, 0xff, 0xff }, - .border = .{ 0x00, 0x00, 0x00 }, + .empty_column = .{ 0xff, 0xff, 0xff }, + .rule = .{ 0x00, 0x00, 0x00 }, .tag_rule = .{ 0x88, 0x88, 0xcc }, .rule_px = 2, - .box_border = .{ 0x88, 0x88, 0xcc }, - .box_dirty = .{ 0x00, 0x00, 0x99 }, + .grip_ring = .{ 0x88, 0x88, 0xcc }, + .dirty = .{ 0x00, 0x00, 0x99 }, .rail_px = 12, - .tag_sel_bg = .{ 0x9e, 0xee, 0xee }, - // A reading pane's tag: the page's yellow, a shade down (pick-ui's). - .tag_reading_bg = .{ 0xf3, 0xf0, 0xcc }, - .sweep_bg = .{ .{ 0xee, 0xee, 0x9e }, .{ 0xaa, 0x00, 0x00 }, .{ 0x00, 0x66, 0x00 } }, - .sweep_fg = .{ .{ 0x00, 0x00, 0x00 }, .{ 0xff, 0xff, 0xff }, .{ 0xff, 0xff, 0xff } }, - .column_box = .{ 0x88, 0x88, 0xcc }, - .column_box_dim = .{ 0x88, 0x88, 0xcc }, - .palette = .{ + .tag_selection = .{ 0x9e, 0xee, 0xee }, + .sweeps = .{ + .{ .ground = .{ 0xee, 0xee, 0x9e }, .text = .{ 0x00, 0x00, 0x00 } }, + .{ .ground = .{ 0xaa, 0x00, 0x00 }, .text = .{ 0xff, 0xff, 0xff } }, + .{ .ground = .{ 0x00, 0x66, 0x00 }, .text = .{ 0xff, 0xff, 0xff } }, + }, + .column_grip = .{ 0x88, 0x88, 0xcc }, + .ansi = .{ .{ 0x00, 0x00, 0x00 }, .{ 0xaa, 0x22, 0x22 }, .{ 0x22, 0x80, 0x22 }, .{ 0x88, 0x66, 0x00 }, - .{ 0x22, 0x44, 0xbb }, .{ 0x99, 0x33, 0x99 }, .{ 0x11, 0x88, 0x88 }, .{ 0x55, 0x55, 0x55 }, - .{ 0x88, 0x88, 0x88 }, .{ 0xcc, 0x33, 0x33 }, .{ 0x33, 0xaa, 0x33 }, .{ 0xaa, 0x77, 0x00 }, - .{ 0x33, 0x55, 0xdd }, .{ 0xbb, 0x44, 0xbb }, .{ 0x22, 0xaa, 0xaa }, .{ 0x00, 0x00, 0x00 }, + .{ 0x22, 0x44, 0xbb }, .{ 0x99, 0x33, 0x99 }, .{ 0x03, 0x83, 0x84 }, .{ 0x55, 0x55, 0x55 }, + .{ 0x75, 0x75, 0x75 }, .{ 0xcc, 0x33, 0x33 }, .{ 0x01, 0x6e, 0x08 }, .{ 0x78, 0x53, 0x00 }, + .{ 0x33, 0x55, 0xdd }, .{ 0xb9, 0x42, 0xb9 }, .{ 0x01, 0x70, 0x70 }, .{ 0x00, 0x00, 0x00 }, }, }; diff --git a/core/themes/alucard.zig b/core/themes/alucard.zig index 1b5695cc..42ed888b 100644 --- a/core/themes/alucard.zig +++ b/core/themes/alucard.zig @@ -9,53 +9,53 @@ //! - unfocused tag text #6c664b -> #5d5841: 3.75:1 on #cfcfde, tag text needs 4.5:1 to be read and run //! Upstream notes: The README gives Alucard only as a palette; roles follow //! dracula.yml, UI surfaces it lacks are derived. +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - focused tag ground #fffbeb -> #b9b9c8: 1.49:1 off the tag, now 1.26:1 (R4, H: a focus step off the tag, and the loudest) pub const theme = .{ .name = "alucard", // ~/05-genizah/dracula-theme/README.md:34 Alucard Background; role as dracula.yml editor.background *BG - .bg = .{ 0xff, 0xfb, 0xeb }, + .page = .{ 0xff, 0xfb, 0xeb }, // ~/05-genizah/dracula-theme/README.md:37 Alucard Foreground; role as dracula.yml editor.foreground *FG - .fg = .{ 0x1f, 0x1f, 0x1f }, + .text = .{ 0x1f, 0x1f, 0x1f }, // ~/05-genizah/dracula-theme/README.md:36 Alucard Selection; role as dracula.yml editor.selectionBackground *SELECTION - .sel_bg = .{ 0xcf, 0xcf, 0xde }, + .selection = .{ 0xcf, 0xcf, 0xde }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0x1f, 0x1f, 0x1f }, + .selection_text = .{ 0x1f, 0x1f, 0x1f }, // ~/05-genizah/dracula-theme/README.md:36 Alucard Selection; role as dracula.yml tab.inactiveBackground (*BGDark: Alucard has no BG variants; Selection derived) - .tag_bg = .{ 0xcf, 0xcf, 0xde }, + .tag = .{ 0xcf, 0xcf, 0xde }, // ~/05-genizah/dracula-theme/README.md:38 Alucard Comment; role as dracula.yml tab.inactiveForeground *COMMENT #6c664b, adjusted - .tag_fg = .{ 0x5d, 0x58, 0x41 }, + .tag_text = .{ 0x5d, 0x58, 0x41 }, // ~/05-genizah/dracula-theme/README.md:34 Alucard Background; role as dracula.yml tab.activeBackground *BG - .tag_active_bg = .{ 0xff, 0xfb, 0xeb }, + .tag_focus = .{ 0xff, 0xfb, 0xeb }, // ~/05-genizah/dracula-theme/README.md:37 Alucard Foreground; role as dracula.yml tab.activeForeground *FG - .tag_active_fg = .{ 0x1f, 0x1f, 0x1f }, + .tag_focus_text = .{ 0x1f, 0x1f, 0x1f }, // the focused grip: ~/05-genizah/dracula-theme/README.md:42 Alucard Pink; role as dracula.yml tab.activeBorderTop *PINK - .box = .{ 0xa3, 0x14, 0x4d }, - // derived: the grip at rest, the accent #a3144d faded toward the unfocused tag #cfcfde as far as 1.6:1 off it (0.30 of the way) - .box_dim = .{ 0xc2, 0x97, 0xb3 }, + .accent = .{ 0xa3, 0x14, 0x4d }, // an unsaved grip: the original's warning colour, ~/05-genizah/dracula-theme/README.md:39 Alucard Cyan; role as dracula.yml editorWarning.foreground *CYAN - .box_dirty = .{ 0x03, 0x6a, 0x96 }, + .dirty = .{ 0x03, 0x6a, 0x96 }, // derived: the column grip, the original's type colour, ~/05-genizah/dracula-theme/README.md:39 Alucard Cyan; role as dracula.yml *CYAN - .column_box = .{ 0x03, 0x6a, 0x96 }, + .column_grip = .{ 0x03, 0x6a, 0x96 }, // ~/05-genizah/dracula-theme/README.md:42 Alucard Pink; role as dracula.yml Keywords *PINK - .kw = .{ 0xa3, 0x14, 0x4d }, + .keyword = .{ 0xa3, 0x14, 0x4d }, // ~/05-genizah/dracula-theme/README.md:45 Alucard Yellow; role as dracula.yml Strings *YELLOW - .str = .{ 0x84, 0x6e, 0x15 }, + .string = .{ 0x84, 0x6e, 0x15 }, // ~/05-genizah/dracula-theme/README.md:43 Alucard Purple; role as dracula.yml Constants *PURPLE - .num = .{ 0x64, 0x4a, 0xc9 }, + .number = .{ 0x64, 0x4a, 0xc9 }, // ~/05-genizah/dracula-theme/README.md:38 Alucard Comment; role as dracula.yml Comments *COMMENT .comment = .{ 0x6c, 0x66, 0x4b }, // ~/05-genizah/dracula-theme/README.md:38 Alucard Comment; role as dracula.yml editorLineNumber.foreground *COMMENT - .lineno = .{ 0x6c, 0x66, 0x4b }, + .line_number = .{ 0x6c, 0x66, 0x4b }, // derived: none in the original; the page - .scroll_track = .{ 0xff, 0xfb, 0xeb }, + .rail = .{ 0xff, 0xfb, 0xeb }, // derived: none in the original; line numbers, ~/05-genizah/dracula-theme/README.md:38 Alucard Comment; role as dracula.yml editorLineNumber.foreground *COMMENT - .scroll_thumb = .{ 0x6c, 0x66, 0x4b }, + .rail_thumb = .{ 0x6c, 0x66, 0x4b }, // ~/05-genizah/dracula-theme/README.md:43 Alucard Purple; role as dracula.yml editorGroup.border *PURPLE - .border = .{ 0x64, 0x4a, 0xc9 }, + .rule = .{ 0x64, 0x4a, 0xc9 }, // ~/05-genizah/dracula-theme/README.md:44 Alucard Red; role as dracula.yml editorError.foreground *RED - .diagnostic_error = .{ 0xcb, 0x3a, 0x2a }, + .@"error" = .{ 0xcb, 0x3a, 0x2a }, // ~/05-genizah/dracula-theme/README.md:39 Alucard Cyan; role as dracula.yml editorWarning.foreground *CYAN - .diagnostic_warning = .{ 0x03, 0x6a, 0x96 }, - .palette = .{ + .warning = .{ 0x03, 0x6a, 0x96 }, + .ansi = .{ .{ 0x1f, 0x1f, 0x1f }, // 0: ~/05-genizah/dracula-theme/README.md:37 Alucard Foreground (ANSI 0 derived: Dracula's ansi order with Alucard colours, dark ink as black) .{ 0xcb, 0x3a, 0x2a }, // 1: ~/05-genizah/dracula-theme/README.md:44 Alucard Red (ANSI 1 derived: Dracula's ansi order with Alucard colours, dark ink as black) .{ 0x14, 0x71, 0x0a }, // 2: ~/05-genizah/dracula-theme/README.md:40 Alucard Green (ANSI 2 derived: Dracula's ansi order with Alucard colours, dark ink as black) diff --git a/core/themes/atelier.zig b/core/themes/atelier.zig index 0ad776fa..a730a35b 100644 --- a/core/themes/atelier.zig +++ b/core/themes/atelier.zig @@ -3,36 +3,32 @@ //! designed together. See docs/typ/themes.typ for the shared role contract. pub const theme = .{ .name = "atelier", - .bg = .{ 0xff, 0xfd, 0xeb }, - .fg = .{ 0x29, 0x3f, 0x35 }, - .tag_bg = .{ 0xe4, 0xf0, 0xed }, - .tag_fg = .{ 0x3d, 0x60, 0x55 }, - .tag_name_fg = .{ 0x6e, 0x47, 0x74 }, - .tag_active_name_fg = .{ 0x65, 0x3f, 0x6b }, - .tag_active_bg = .{ 0xd3, 0xe7, 0xdf }, - .tag_active_fg = .{ 0x35, 0x58, 0x4d }, - .box = .{ 0x36, 0x82, 0x6b }, - .box_dim = .{ 0x95, 0xba, 0xa2 }, - .column_box = .{ 0x95, 0x58, 0x15 }, - .column_box_dim = .{ 0xbc, 0xa4, 0x81 }, - .kw = .{ 0x7b, 0x44, 0x89 }, - .str = .{ 0x34, 0x74, 0x3d }, - .num = .{ 0x9a, 0x58, 0x10 }, + .page = .{ 0xff, 0xfd, 0xeb }, + .text = .{ 0x29, 0x3f, 0x35 }, + .tag = .{ 0xe4, 0xf0, 0xed }, + .tag_text = .{ 0x3d, 0x60, 0x55 }, + .tag_name = .{ 0x6e, 0x47, 0x74 }, + .tag_focus = .{ 0xd3, 0xe7, 0xdf }, + .tag_focus_text = .{ 0x35, 0x58, 0x4d }, + .accent = .{ 0x36, 0x82, 0x6b }, + .column_grip = .{ 0x95, 0x58, 0x15 }, + .keyword = .{ 0x7b, 0x44, 0x89 }, + .string = .{ 0x34, 0x74, 0x3d }, + .number = .{ 0x9a, 0x58, 0x10 }, .comment = .{ 0x29, 0x7c, 0x30 }, - .lineno = .{ 0x90, 0x98, 0x80 }, - .lineno_active = .{ 0x88, 0x90, 0x78 }, - .scroll_track = .{ 0xee, 0xec, 0xcf }, - .scroll_thumb = .{ 0x9f, 0xae, 0x76 }, - .border = .{ 0xff, 0xff, 0xff }, - .sel_bg = .{ 0xed, 0xf2, 0xa5 }, - .sel_fg = .{ 0x35, 0x49, 0x2d }, - .search_bg = .{ 0xfe, 0xdd, 0x86 }, - .search_fg = .{ 0x61, 0x47, 0x15 }, - .diagnostic_error = .{ 0xb3, 0x2f, 0x27 }, - .diagnostic_warning = .{ 0x89, 0x5c, 0x00 }, - .diagnostic_info = .{ 0x29, 0x6a, 0x82 }, - .diagnostic_hint = .{ 0x51, 0x75, 0x36 }, - .palette = .{ + .line_number = .{ 0x90, 0x98, 0x80 }, + .line_number_current = .{ 0x88, 0x90, 0x78 }, + .rail = .{ 0xee, 0xec, 0xcf }, + .rail_thumb = .{ 0x9f, 0xae, 0x76 }, + .rule = .{ 0xff, 0xff, 0xff }, + .selection = .{ 0xed, 0xf2, 0xa5 }, + .selection_text = .{ 0x35, 0x49, 0x2d }, + .hit = .{ 0xfe, 0xdd, 0x86 }, + .@"error" = .{ 0xb3, 0x2f, 0x27 }, + .warning = .{ 0x89, 0x5c, 0x00 }, + .info = .{ 0x29, 0x6a, 0x82 }, + .hint = .{ 0x51, 0x75, 0x36 }, + .ansi = .{ .{ 0x29, 0x3f, 0x35 }, .{ 0xa3, 0x3d, 0x37 }, .{ 0x3c, 0x6c, 0x43 }, diff --git a/core/themes/ayu_dark.zig b/core/themes/ayu_dark.zig index 62fb29ed..a98412ba 100644 --- a/core/themes/ayu_dark.zig +++ b/core/themes/ayu_dark.zig @@ -32,59 +32,57 @@ //! terminal.*). palette = every colour of src/generated/dark.ts; alpha entries //! composited over editor.bg (editor.*) or ui.bg (others); skipped shadows: //! ui.panel.shadow, ui.popup.shadow. +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - tag ground #0d1017 -> #04050b: 1.03:1 off the page, now 1.10:1 (H: a band 1.1:1 off the page; R3: tone on tone) pub const theme = .{ .name = "ayu_dark", // ~/05-genizah/vscode-ayu/ayu-dark.json:106 editor.background; source ~/05-genizah/ayu-colors/src/generated/dark.ts:146 editor.bg #10141c - .bg = .{ 0x10, 0x14, 0x1c }, + .page = .{ 0x10, 0x14, 0x1c }, // ~/05-genizah/vscode-ayu/ayu-dark.json:107 editor.foreground; source ~/05-genizah/ayu-colors/src/generated/dark.ts:128 editor.fg #bfbdb6 - .fg = .{ 0xbf, 0xbd, 0xb6 }, + .text = .{ 0xbf, 0xbd, 0xb6 }, // ~/05-genizah/vscode-ayu/ayu-dark.json:112 editor.selectionBackground #3388ff40 composited over editor.background #10141c (~/05-genizah/vscode-ayu/ayu-dark.json:106 editor.background) - .sel_bg = .{ 0x19, 0x31, 0x55 }, + .selection = .{ 0x19, 0x31, 0x55 }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0xbf, 0xbd, 0xb6 }, + .selection_text = .{ 0xbf, 0xbd, 0xb6 }, // ~/05-genizah/vscode-ayu/ayu-dark.json:102 tab.inactiveBackground; source ~/05-genizah/ayu-colors/src/generated/dark.ts:163 ui.bg #0d1017 - .tag_bg = .{ 0x0d, 0x10, 0x17 }, + .tag = .{ 0x0d, 0x10, 0x17 }, // ~/05-genizah/vscode-ayu/ayu-dark.json:103 tab.inactiveForeground; source ~/05-genizah/ayu-colors/src/generated/dark.ts:149 ui.fg #5a6378 #5a6378, adjusted - .tag_fg = .{ 0x74, 0x7c, 0x8e }, + .tag_text = .{ 0x74, 0x7c, 0x8e }, // ~/05-genizah/vscode-ayu/ayu-dark.json:96 tab.activeBackground; source ~/05-genizah/ayu-colors/src/generated/dark.ts:146 editor.bg #10141c #10141c, adjusted - .tag_active_bg = .{ 0x33, 0x36, 0x3b }, + .tag_focus = .{ 0x33, 0x36, 0x3b }, // ~/05-genizah/vscode-ayu/ayu-dark.json:97 tab.activeForeground; source ~/05-genizah/ayu-colors/src/generated/dark.ts:128 editor.fg #bfbdb6 - .tag_active_fg = .{ 0xbf, 0xbd, 0xb6 }, + .tag_focus_text = .{ 0xbf, 0xbd, 0xb6 }, // the focused grip: ~/05-genizah/vscode-ayu/ayu-dark.json:4 focusBorder [also tab.activeBorderTop]; source ~/05-genizah/ayu-colors/src/generated/dark.ts:167 common.accent.tint #e6b450 - .box = .{ 0xe6, 0xb4, 0x50 }, - // derived: the grip at rest, the accent #e6b450 faded toward the unfocused tag #0d1017 as far as 1.6:1 off it (0.24 of the way) - .box_dim = .{ 0x41, 0x37, 0x25 }, + .accent = .{ 0xe6, 0xb4, 0x50 }, // an unsaved grip: the original's modified colour, ~/05-genizah/vscode-ayu/ayu-dark.json:145 editorGutter.modifiedBackground [also gitDecoration.modifiedResourceForeground]; source ~/05-genizah/ayu-colors/src/generated/dark.ts:118 vcs.modified #73b8ff - .box_dirty = .{ 0x73, 0xb8, 0xff }, + .dirty = .{ 0x73, 0xb8, 0xff }, // derived: the column grip, the original's type colour, ~/05-genizah/vscode-ayu/ayu-dark.json:622 tokenColors "Entity name" foreground; = syntax.entity (~/05-genizah/ayu-colors/src/generated/dark.ts:88 syntax.entity) - .column_box = .{ 0x59, 0xc2, 0xff }, + .column_grip = .{ 0x59, 0xc2, 0xff }, // ~/05-genizah/vscode-ayu/ayu-dark.json:460 tokenColors "Keyword" foreground; = syntax.keyword (~/05-genizah/ayu-colors/src/generated/dark.ts:92 syntax.keyword) - .kw = .{ 0xff, 0x8f, 0x40 }, + .keyword = .{ 0xff, 0x8f, 0x40 }, // ~/05-genizah/vscode-ayu/ayu-dark.json:384 tokenColors "String" foreground; = syntax.string (~/05-genizah/ayu-colors/src/generated/dark.ts:89 syntax.string) - .str = .{ 0xaa, 0xd9, 0x4c }, + .string = .{ 0xaa, 0xd9, 0x4c }, // ~/05-genizah/vscode-ayu/ayu-dark.json:404 tokenColors "Number" foreground; = syntax.constant (~/05-genizah/ayu-colors/src/generated/dark.ts:95 syntax.constant) - .num = .{ 0xd2, 0xa6, 0xff }, + .number = .{ 0xd2, 0xa6, 0xff }, // ~/05-genizah/vscode-ayu/ayu-dark.json:374 tokenColors "Comment" foreground; = syntax.comment (~/05-genizah/ayu-colors/src/generated/dark.ts:94 syntax.comment) .comment = .{ 0x5a, 0x66, 0x73 }, // ~/05-genizah/vscode-ayu/ayu-dark.json:108 editorLineNumber.foreground #5a6378a6 composited over editor.background #10141c (~/05-genizah/vscode-ayu/ayu-dark.json:106 editor.background) [gutter has no own bg, so editor bg] - .lineno = .{ 0x40, 0x47, 0x58 }, + .line_number = .{ 0x40, 0x47, 0x58 }, // ~/05-genizah/vscode-ayu/ayu-dark.json:109 editorLineNumber.activeForeground [gutter has no own bg, so editor bg] - .lineno_active = .{ 0x5a, 0x63, 0x78 }, + .line_number_current = .{ 0x5a, 0x63, 0x78 }, // derived: none in the original; the page - .scroll_track = .{ 0x10, 0x14, 0x1c }, + .rail = .{ 0x10, 0x14, 0x1c }, // ~/05-genizah/vscode-ayu/ayu-dark.json:44 scrollbarSlider.background #5a637866 composited over editor.background #10141c (~/05-genizah/vscode-ayu/ayu-dark.json:106 editor.background) #2e3441, adjusted - .scroll_thumb = .{ 0x31, 0x37, 0x43 }, + .rail_thumb = .{ 0x31, 0x37, 0x43 }, // ~/05-genizah/vscode-ayu/ayu-dark.json:92 editorGroup.border; source ~/05-genizah/ayu-colors/src/generated/dark.ts:150 ui.line #1b1f29 #1b1f29, adjusted - .border = .{ 0x39, 0x3b, 0x42 }, + .rule = .{ 0x39, 0x3b, 0x42 }, // ~/05-genizah/vscode-ayu/ayu-dark.json:119 editor.findMatchBackground; source ~/05-genizah/ayu-colors/src/generated/dark.ts:135 editor.findMatch.active #4c4126 - .search_bg = .{ 0x4c, 0x41, 0x26 }, - // derived: the original keeps text colours over a match; the page's text, whichever reads better on it - .search_fg = .{ 0xbf, 0xbd, 0xb6 }, + .hit = .{ 0x4c, 0x41, 0x26 }, // ~/05-genizah/vscode-ayu/ayu-dark.json:143 editorError.foreground; source ~/05-genizah/ayu-colors/src/generated/dark.ts:170 common.error #d95757 - .diagnostic_error = .{ 0xd9, 0x57, 0x57 }, + .@"error" = .{ 0xd9, 0x57, 0x57 }, // ~/05-genizah/vscode-ayu/ayu-dark.json:144 editorWarning.foreground; source ~/05-genizah/ayu-colors/src/generated/dark.ts:167 common.accent.tint #e6b450 - .diagnostic_warning = .{ 0xe6, 0xb4, 0x50 }, - .palette = .{ + .warning = .{ 0xe6, 0xb4, 0x50 }, + .ansi = .{ .{ 0x1b, 0x1f, 0x29 }, // 0: ~/05-genizah/vscode-ayu/ayu-dark.json:264 terminal.ansiBlack .{ 0xf0, 0x6b, 0x73 }, // 1: ~/05-genizah/vscode-ayu/ayu-dark.json:265 terminal.ansiRed .{ 0x70, 0xbf, 0x56 }, // 2: ~/05-genizah/vscode-ayu/ayu-dark.json:266 terminal.ansiGreen diff --git a/core/themes/ayu_light.zig b/core/themes/ayu_light.zig index 22436be7..730689c3 100644 --- a/core/themes/ayu_light.zig +++ b/core/themes/ayu_light.zig @@ -31,59 +31,62 @@ //! terminal.*). palette = every colour of src/generated/light.ts; alpha entries //! composited over editor.bg (editor.*) or ui.bg (others); skipped shadows: //! ui.panel.shadow, ui.popup.shadow. +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - tag ground #f8f9fa -> #f0f1f2: 1.03:1 off the page, now 1.10:1 (H: a band 1.1:1 off the page; R3: tone on tone) +//! - focused tag ground #dcddde -> #d7d8d9: 1.20:1 off the tag, now 1.26:1 (R4, H: a focus step off the tag, and the loudest) +//! - focused grip #f29718 -> #ae6a01: 1.60:1 on the focused tag, now 3.03:1 (R6: 3:1) +//! - unsaved grip #478acc -> #3a7dbe: 3.22:1 on the tag, now 3.82:1 (R6: 3:1 on both tags) +//! - error #e65050 -> #d33e41: 3.64:1 on the page, now 4.51:1 (R9: 4.5:1, told from the text and the others) +//! - warning #f29718 -> #a76501: 2.22:1 on the page, now 4.54:1 (R9: 4.5:1, told from the text and the others) pub const theme = .{ .name = "ayu_light", // ~/05-genizah/vscode-ayu/ayu-light.json:106 editor.background; source ~/05-genizah/ayu-colors/src/generated/light.ts:157 editor.bg #fcfcfc - .bg = .{ 0xfc, 0xfc, 0xfc }, + .page = .{ 0xfc, 0xfc, 0xfc }, // ~/05-genizah/vscode-ayu/ayu-light.json:107 editor.foreground; source ~/05-genizah/ayu-colors/src/generated/light.ts:140 editor.fg #5c6166 - .fg = .{ 0x5c, 0x61, 0x66 }, + .text = .{ 0x5c, 0x61, 0x66 }, // ~/05-genizah/vscode-ayu/ayu-light.json:112 editor.selectionBackground #035bd626 composited over editor.background #fcfcfc (~/05-genizah/vscode-ayu/ayu-light.json:106 editor.background) - .sel_bg = .{ 0xd7, 0xe4, 0xf6 }, + .selection = .{ 0xd7, 0xe4, 0xf6 }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0x5c, 0x61, 0x66 }, + .selection_text = .{ 0x5c, 0x61, 0x66 }, // ~/05-genizah/vscode-ayu/ayu-light.json:102 tab.inactiveBackground; source ~/05-genizah/ayu-colors/src/generated/light.ts:175 ui.bg #f8f9fa - .tag_bg = .{ 0xf8, 0xf9, 0xfa }, + .tag = .{ 0xf8, 0xf9, 0xfa }, // ~/05-genizah/vscode-ayu/ayu-light.json:103 tab.inactiveForeground; source ~/05-genizah/ayu-colors/src/generated/light.ts:161 ui.fg #828e9f #828e9f, adjusted - .tag_fg = .{ 0x68, 0x72, 0x7f }, + .tag_text = .{ 0x68, 0x72, 0x7f }, // ~/05-genizah/vscode-ayu/ayu-light.json:96 tab.activeBackground; source ~/05-genizah/ayu-colors/src/generated/light.ts:157 editor.bg #fcfcfc #fcfcfc, adjusted - .tag_active_bg = .{ 0xdc, 0xdd, 0xde }, + .tag_focus = .{ 0xdc, 0xdd, 0xde }, // ~/05-genizah/vscode-ayu/ayu-light.json:97 tab.activeForeground; source ~/05-genizah/ayu-colors/src/generated/light.ts:140 editor.fg #5c6166 - .tag_active_fg = .{ 0x5c, 0x61, 0x66 }, + .tag_focus_text = .{ 0x5c, 0x61, 0x66 }, // the focused grip: ~/05-genizah/vscode-ayu/ayu-light.json:4 focusBorder [also tab.activeBorderTop]; source ~/05-genizah/ayu-colors/src/generated/light.ts:179 common.accent.tint #f29718 - .box = .{ 0xf2, 0x97, 0x18 }, - // derived: the grip at rest, the accent #f29718 faded toward the unfocused tag #f8f9fa as far as 1.6:1 off it (0.62 of the way) - .box_dim = .{ 0xf4, 0xbc, 0x6e }, + .accent = .{ 0xf2, 0x97, 0x18 }, // an unsaved grip: the original's modified colour, ~/05-genizah/vscode-ayu/ayu-light.json:145 editorGutter.modifiedBackground [also gitDecoration.modifiedResourceForeground]; source ~/05-genizah/ayu-colors/src/generated/light.ts:130 vcs.modified #478acc - .box_dirty = .{ 0x47, 0x8a, 0xcc }, + .dirty = .{ 0x47, 0x8a, 0xcc }, // derived: the column grip, the original's type colour, ~/05-genizah/vscode-ayu/ayu-light.json:622 tokenColors "Entity name" foreground; = syntax.entity (~/05-genizah/ayu-colors/src/generated/light.ts:92 syntax.entity) - .column_box = .{ 0x22, 0xa4, 0xe6 }, + .column_grip = .{ 0x22, 0xa4, 0xe6 }, // ~/05-genizah/vscode-ayu/ayu-light.json:460 tokenColors "Keyword" foreground; = syntax.keyword (~/05-genizah/ayu-colors/src/generated/light.ts:100 syntax.keyword) - .kw = .{ 0xfa, 0x85, 0x32 }, + .keyword = .{ 0xfa, 0x85, 0x32 }, // ~/05-genizah/vscode-ayu/ayu-light.json:384 tokenColors "String" foreground; = syntax.string (~/05-genizah/ayu-colors/src/generated/light.ts:94 syntax.string) - .str = .{ 0x86, 0xb3, 0x00 }, + .string = .{ 0x86, 0xb3, 0x00 }, // ~/05-genizah/vscode-ayu/ayu-light.json:404 tokenColors "Number" foreground; = syntax.constant (~/05-genizah/ayu-colors/src/generated/light.ts:106 syntax.constant) - .num = .{ 0xa3, 0x7a, 0xcc }, + .number = .{ 0xa3, 0x7a, 0xcc }, // ~/05-genizah/vscode-ayu/ayu-light.json:374 tokenColors "Comment" foreground; = syntax.comment (~/05-genizah/ayu-colors/src/generated/light.ts:104 syntax.comment) .comment = .{ 0xad, 0xae, 0xb1 }, // ~/05-genizah/vscode-ayu/ayu-light.json:108 editorLineNumber.foreground #828e9f66 composited over editor.background #fcfcfc (~/05-genizah/vscode-ayu/ayu-light.json:106 editor.background) [gutter has no own bg, so editor bg] - .lineno = .{ 0xcb, 0xd0, 0xd7 }, + .line_number = .{ 0xcb, 0xd0, 0xd7 }, // ~/05-genizah/vscode-ayu/ayu-light.json:109 editorLineNumber.activeForeground #828e9fcc composited over editor.background #fcfcfc (~/05-genizah/vscode-ayu/ayu-light.json:106 editor.background) [gutter has no own bg, so editor bg] - .lineno_active = .{ 0x9a, 0xa4, 0xb2 }, + .line_number_current = .{ 0x9a, 0xa4, 0xb2 }, // derived: none in the original; the page - .scroll_track = .{ 0xfc, 0xfc, 0xfc }, + .rail = .{ 0xfc, 0xfc, 0xfc }, // ~/05-genizah/vscode-ayu/ayu-light.json:44 scrollbarSlider.background #828e9f66 composited over editor.background #fcfcfc (~/05-genizah/vscode-ayu/ayu-light.json:106 editor.background) - .scroll_thumb = .{ 0xcb, 0xd0, 0xd7 }, + .rail_thumb = .{ 0xcb, 0xd0, 0xd7 }, // ~/05-genizah/vscode-ayu/ayu-light.json:92 editorGroup.border #6b7d8f1f composited over editor.background #fcfcfc (~/05-genizah/vscode-ayu/ayu-light.json:106 editor.background); source ~/05-genizah/ayu-colors/src/generated/light.ts:162 ui.line #6b7d8f1f #eaedef, adjusted - .border = .{ 0xc5, 0xc9, 0xcb }, + .rule = .{ 0xc5, 0xc9, 0xcb }, // ~/05-genizah/vscode-ayu/ayu-light.json:119 editor.findMatchBackground; source ~/05-genizah/ayu-colors/src/generated/light.ts:146 editor.findMatch.active #ffe294 - .search_bg = .{ 0xff, 0xe2, 0x94 }, - // derived: the original keeps text colours over a match; the page's text, whichever reads better on it - .search_fg = .{ 0x5c, 0x61, 0x66 }, + .hit = .{ 0xff, 0xe2, 0x94 }, // ~/05-genizah/vscode-ayu/ayu-light.json:143 editorError.foreground; source ~/05-genizah/ayu-colors/src/generated/light.ts:182 common.error #e65050 - .diagnostic_error = .{ 0xe6, 0x50, 0x50 }, + .@"error" = .{ 0xe6, 0x50, 0x50 }, // ~/05-genizah/vscode-ayu/ayu-light.json:144 editorWarning.foreground; source ~/05-genizah/ayu-colors/src/generated/light.ts:179 common.accent.tint #f29718 - .diagnostic_warning = .{ 0xf2, 0x97, 0x18 }, - .palette = .{ + .warning = .{ 0xf2, 0x97, 0x18 }, + .ansi = .{ .{ 0x00, 0x00, 0x00 }, // 0: ~/05-genizah/vscode-ayu/ayu-light.json:264 terminal.ansiBlack .{ 0xf0, 0x6b, 0x6c }, // 1: ~/05-genizah/vscode-ayu/ayu-light.json:265 terminal.ansiRed .{ 0x6c, 0xbf, 0x43 }, // 2: ~/05-genizah/vscode-ayu/ayu-light.json:266 terminal.ansiGreen diff --git a/core/themes/ayu_mirage.zig b/core/themes/ayu_mirage.zig index 23aff67f..fcb7bcd8 100644 --- a/core/themes/ayu_mirage.zig +++ b/core/themes/ayu_mirage.zig @@ -31,59 +31,58 @@ //! terminal.*). palette = every colour of src/generated/mirage.ts; alpha //! entries composited over editor.bg (editor.*) or ui.bg (others); skipped //! shadows: ui.panel.shadow, ui.popup.shadow. +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - tag ground #1f2430 -> #1c212d: 1.07:1 off the page, now 1.11:1 (H: a band 1.1:1 off the page; R3: tone on tone) +//! - search hit #736950 -> #58402b: 2.67:1 off the page, now 1.51:1 (R8: 1.5:1, the text reading on it) pub const theme = .{ .name = "ayu_mirage", // ~/05-genizah/vscode-ayu/ayu-mirage.json:106 editor.background; source ~/05-genizah/ayu-colors/src/generated/mirage.ts:146 editor.bg #242936 - .bg = .{ 0x24, 0x29, 0x36 }, + .page = .{ 0x24, 0x29, 0x36 }, // ~/05-genizah/vscode-ayu/ayu-mirage.json:107 editor.foreground; source ~/05-genizah/ayu-colors/src/generated/mirage.ts:128 editor.fg #cccac2 - .fg = .{ 0xcc, 0xca, 0xc2 }, + .text = .{ 0xcc, 0xca, 0xc2 }, // ~/05-genizah/vscode-ayu/ayu-mirage.json:112 editor.selectionBackground #409fff40 composited over editor.background #242936 (~/05-genizah/vscode-ayu/ayu-mirage.json:106 editor.background) - .sel_bg = .{ 0x2b, 0x47, 0x68 }, + .selection = .{ 0x2b, 0x47, 0x68 }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0xcc, 0xca, 0xc2 }, + .selection_text = .{ 0xcc, 0xca, 0xc2 }, // ~/05-genizah/vscode-ayu/ayu-mirage.json:102 tab.inactiveBackground; source ~/05-genizah/ayu-colors/src/generated/mirage.ts:163 ui.bg #1f2430 - .tag_bg = .{ 0x1f, 0x24, 0x30 }, + .tag = .{ 0x1f, 0x24, 0x30 }, // ~/05-genizah/vscode-ayu/ayu-mirage.json:103 tab.inactiveForeground; source ~/05-genizah/ayu-colors/src/generated/mirage.ts:149 ui.fg #707a8c #707a8c, adjusted - .tag_fg = .{ 0x84, 0x8d, 0x9c }, + .tag_text = .{ 0x84, 0x8d, 0x9c }, // ~/05-genizah/vscode-ayu/ayu-mirage.json:96 tab.activeBackground; source ~/05-genizah/ayu-colors/src/generated/mirage.ts:146 editor.bg #242936 #242936, adjusted - .tag_active_bg = .{ 0x3f, 0x43, 0x4c }, + .tag_focus = .{ 0x3f, 0x43, 0x4c }, // ~/05-genizah/vscode-ayu/ayu-mirage.json:97 tab.activeForeground; source ~/05-genizah/ayu-colors/src/generated/mirage.ts:128 editor.fg #cccac2 - .tag_active_fg = .{ 0xcc, 0xca, 0xc2 }, + .tag_focus_text = .{ 0xcc, 0xca, 0xc2 }, // the focused grip: ~/05-genizah/vscode-ayu/ayu-mirage.json:4 focusBorder [also tab.activeBorderTop]; source ~/05-genizah/ayu-colors/src/generated/mirage.ts:167 common.accent.tint #ffcc66 - .box = .{ 0xff, 0xcc, 0x66 }, - // derived: the grip at rest, the accent #ffcc66 faded toward the unfocused tag #1f2430 as far as 1.6:1 off it (0.20 of the way) - .box_dim = .{ 0x4c, 0x46, 0x3b }, + .accent = .{ 0xff, 0xcc, 0x66 }, // an unsaved grip: the original's modified colour, ~/05-genizah/vscode-ayu/ayu-mirage.json:145 editorGutter.modifiedBackground [also gitDecoration.modifiedResourceForeground]; source ~/05-genizah/ayu-colors/src/generated/mirage.ts:118 vcs.modified #80bfff - .box_dirty = .{ 0x80, 0xbf, 0xff }, + .dirty = .{ 0x80, 0xbf, 0xff }, // derived: the column grip, the original's type colour, ~/05-genizah/vscode-ayu/ayu-mirage.json:622 tokenColors "Entity name" foreground; = syntax.entity (~/05-genizah/ayu-colors/src/generated/mirage.ts:88 syntax.entity) - .column_box = .{ 0x73, 0xd0, 0xff }, + .column_grip = .{ 0x73, 0xd0, 0xff }, // ~/05-genizah/vscode-ayu/ayu-mirage.json:460 tokenColors "Keyword" foreground; = syntax.keyword (~/05-genizah/ayu-colors/src/generated/mirage.ts:92 syntax.keyword) - .kw = .{ 0xff, 0xa6, 0x59 }, + .keyword = .{ 0xff, 0xa6, 0x59 }, // ~/05-genizah/vscode-ayu/ayu-mirage.json:384 tokenColors "String" foreground; = syntax.string (~/05-genizah/ayu-colors/src/generated/mirage.ts:89 syntax.string) - .str = .{ 0xd5, 0xff, 0x80 }, + .string = .{ 0xd5, 0xff, 0x80 }, // ~/05-genizah/vscode-ayu/ayu-mirage.json:404 tokenColors "Number" foreground; = syntax.constant (~/05-genizah/ayu-colors/src/generated/mirage.ts:95 syntax.constant) - .num = .{ 0xdf, 0xbf, 0xff }, + .number = .{ 0xdf, 0xbf, 0xff }, // ~/05-genizah/vscode-ayu/ayu-mirage.json:374 tokenColors "Comment" foreground; = syntax.comment (~/05-genizah/ayu-colors/src/generated/mirage.ts:94 syntax.comment) .comment = .{ 0x6e, 0x7c, 0x8f }, // ~/05-genizah/vscode-ayu/ayu-mirage.json:108 editorLineNumber.foreground #707a8c80 composited over editor.background #242936 (~/05-genizah/vscode-ayu/ayu-mirage.json:106 editor.background) [gutter has no own bg, so editor bg] - .lineno = .{ 0x4a, 0x52, 0x61 }, + .line_number = .{ 0x4a, 0x52, 0x61 }, // ~/05-genizah/vscode-ayu/ayu-mirage.json:109 editorLineNumber.activeForeground [gutter has no own bg, so editor bg] - .lineno_active = .{ 0x70, 0x7a, 0x8c }, + .line_number_current = .{ 0x70, 0x7a, 0x8c }, // derived: none in the original; the page - .scroll_track = .{ 0x24, 0x29, 0x36 }, + .rail = .{ 0x24, 0x29, 0x36 }, // ~/05-genizah/vscode-ayu/ayu-mirage.json:44 scrollbarSlider.background #707a8c66 composited over editor.background #242936 (~/05-genizah/vscode-ayu/ayu-mirage.json:106 editor.background) - .scroll_thumb = .{ 0x42, 0x49, 0x58 }, + .rail_thumb = .{ 0x42, 0x49, 0x58 }, // ~/05-genizah/vscode-ayu/ayu-mirage.json:92 editorGroup.border; source ~/05-genizah/ayu-colors/src/generated/mirage.ts:150 ui.line #171b24 #171b24, adjusted - .border = .{ 0x46, 0x49, 0x4d }, + .rule = .{ 0x46, 0x49, 0x4d }, // ~/05-genizah/vscode-ayu/ayu-mirage.json:119 editor.findMatchBackground; source ~/05-genizah/ayu-colors/src/generated/mirage.ts:135 editor.findMatch.active #736950 - .search_bg = .{ 0x73, 0x69, 0x50 }, - // derived: the original keeps text colours over a match; the page's text, whichever reads better on it - .search_fg = .{ 0xcc, 0xca, 0xc2 }, + .hit = .{ 0x73, 0x69, 0x50 }, // ~/05-genizah/vscode-ayu/ayu-mirage.json:143 editorError.foreground; source ~/05-genizah/ayu-colors/src/generated/mirage.ts:170 common.error #ff6666 - .diagnostic_error = .{ 0xff, 0x66, 0x66 }, + .@"error" = .{ 0xff, 0x66, 0x66 }, // ~/05-genizah/vscode-ayu/ayu-mirage.json:144 editorWarning.foreground; source ~/05-genizah/ayu-colors/src/generated/mirage.ts:167 common.accent.tint #ffcc66 - .diagnostic_warning = .{ 0xff, 0xcc, 0x66 }, - .palette = .{ + .warning = .{ 0xff, 0xcc, 0x66 }, + .ansi = .{ .{ 0x17, 0x1b, 0x24 }, // 0: ~/05-genizah/vscode-ayu/ayu-mirage.json:264 terminal.ansiBlack .{ 0xf2, 0x82, 0x73 }, // 1: ~/05-genizah/vscode-ayu/ayu-mirage.json:265 terminal.ansiRed .{ 0x87, 0xd9, 0x6c }, // 2: ~/05-genizah/vscode-ayu/ayu-mirage.json:266 terminal.ansiGreen diff --git a/core/themes/catppuccin_frappe.zig b/core/themes/catppuccin_frappe.zig index 7a97ee2c..de225bdc 100644 --- a/core/themes/catppuccin_frappe.zig +++ b/core/themes/catppuccin_frappe.zig @@ -28,63 +28,62 @@ //! (groups/integrations/gitsigns.lua:11), and neo-tree uses NeoTreeModified = //! peach. Keyword = mauve directly (Statement also mauve). Diagnostic groups //! are in groups/lsp.lua (merged into editor groups by lib/mapper.lua:26). +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - search hit #506373 -> #644a3b: 1.98:1 off the page, now 1.52:1 (R8: 1.5:1, the text reading on it) +//! - hint #81c8be -> #a6d189: 6.41:1 on the page, now 7.10:1 (R9: 4.5:1, told from the text and the others) pub const theme = .{ .name = "catppuccin_frappe", // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:35 Normal bg = C.base (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/frappe.lua:25) - .bg = .{ 0x30, 0x34, 0x46 }, + .page = .{ 0x30, 0x34, 0x46 }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:35 Normal fg = C.text (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/frappe.lua:16) - .fg = .{ 0xc6, 0xd0, 0xf5 }, + .text = .{ 0xc6, 0xd0, 0xf5 }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:107 Visual bg = C.surface1 (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/frappe.lua:23) - .sel_bg = .{ 0x51, 0x57, 0x6d }, + .selection = .{ 0x51, 0x57, 0x6d }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0xc6, 0xd0, 0xf5 }, + .selection_text = .{ 0xc6, 0xd0, 0xf5 }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:100 StatusLineNC bg = C.mantle (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/frappe.lua:26) - .tag_bg = .{ 0x29, 0x2c, 0x3c }, + .tag = .{ 0x29, 0x2c, 0x3c }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:100 StatusLineNC fg = C.surface1 (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/frappe.lua:23) #51576d, adjusted - .tag_fg = .{ 0x90, 0x93, 0xa2 }, + .tag_text = .{ 0x90, 0x93, 0xa2 }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:99 StatusLine bg = C.mantle (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/frappe.lua:26) #292c3c, adjusted - .tag_active_bg = .{ 0x45, 0x4a, 0x5d }, + .tag_focus = .{ 0x45, 0x4a, 0x5d }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:99 StatusLine fg = C.text (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/frappe.lua:16) - .tag_active_fg = .{ 0xc6, 0xd0, 0xf5 }, + .tag_focus_text = .{ 0xc6, 0xd0, 0xf5 }, // the focused grip: ~/05-genizah/catppuccin-nvim/lua/catppuccin/utils/lualine.lua:20 lualine normal.a bg = C.blue (used by lua/lualine/themes/catppuccin-frappe.lua) -> C.blue (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/frappe.lua:14) - .box = .{ 0x8c, 0xaa, 0xee }, - // derived: the grip at rest, the accent #8caaee faded toward the unfocused tag #292c3c as far as 1.6:1 off it (0.26 of the way) - .box_dim = .{ 0x43, 0x4d, 0x6a }, + .accent = .{ 0x8c, 0xaa, 0xee }, // an unsaved grip: the original's warning colour, ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/lsp.lua:51 DiagnosticWarn fg = warning (local warning = C.yellow at line 9) -> C.yellow (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/frappe.lua:9) - .box_dirty = .{ 0xe5, 0xc8, 0x90 }, + .dirty = .{ 0xe5, 0xc8, 0x90 }, // derived: the column grip, the original's type colour, ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/syntax.lua:32 Type fg = C.yellow (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/frappe.lua:9) - .column_box = .{ 0xe5, 0xc8, 0x90 }, + .column_grip = .{ 0xe5, 0xc8, 0x90 }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/syntax.lua:20 Keyword fg = C.mauve (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/frappe.lua:5) - .kw = .{ 0xca, 0x9e, 0xe6 }, + .keyword = .{ 0xca, 0x9e, 0xe6 }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/syntax.lua:8 String fg = C.green (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/frappe.lua:10) - .str = .{ 0xa6, 0xd1, 0x89 }, + .string = .{ 0xa6, 0xd1, 0x89 }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/syntax.lua:10 Number fg = C.peach (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/frappe.lua:8) - .num = .{ 0xef, 0x9f, 0x76 }, + .number = .{ 0xef, 0x9f, 0x76 }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/syntax.lua:5 Comment fg = C.overlay2 (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/frappe.lua:19) .comment = .{ 0x94, 0x9c, 0xbb }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:27 LineNr fg = C.surface1 (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/frappe.lua:23) - .lineno = .{ 0x51, 0x57, 0x6d }, + .line_number = .{ 0x51, 0x57, 0x6d }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:28 CursorLineNr fg = C.lavender (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/frappe.lua:15) - .lineno_active = .{ 0xba, 0xbb, 0xf1 }, + .line_number_current = .{ 0xba, 0xbb, 0xf1 }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:72 PmenuSbar bg = C.surface0 (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/frappe.lua:24) - .scroll_track = .{ 0x41, 0x45, 0x59 }, + .rail = .{ 0x41, 0x45, 0x59 }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:73 PmenuThumb bg = C.overlay0 (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/frappe.lua:21) - .scroll_thumb = .{ 0x73, 0x79, 0x94 }, + .rail_thumb = .{ 0x73, 0x79, 0x94 }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:114 WinSeparator fg = C.crust (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/frappe.lua:27) #232634, adjusted - .border = .{ 0x51, 0x56, 0x6a }, + .rule = .{ 0x51, 0x56, 0x6a }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:91 Search bg = U.darken(C.sky, 0.30, C.base) = blend(fg sky #99d1db, bg base #303446, alpha 0.3) per ~/05-genizah/catppuccin-nvim/lua/catppuccin/utils/colors.lua:29 -> #506373 - .search_bg = .{ 0x50, 0x63, 0x73 }, - // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:91 Search fg = C.text (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/frappe.lua:16) - .search_fg = .{ 0xc6, 0xd0, 0xf5 }, + .hit = .{ 0x50, 0x63, 0x73 }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/lsp.lua:50 DiagnosticError fg = error (local error = C.red at line 8) -> C.red (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/frappe.lua:6) - .diagnostic_error = .{ 0xe7, 0x82, 0x84 }, + .@"error" = .{ 0xe7, 0x82, 0x84 }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/lsp.lua:51 DiagnosticWarn fg = warning (local warning = C.yellow at line 9) -> C.yellow (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/frappe.lua:9) - .diagnostic_warning = .{ 0xe5, 0xc8, 0x90 }, + .warning = .{ 0xe5, 0xc8, 0x90 }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/lsp.lua:52 DiagnosticInfo fg = info (local info = C.sky at line 10) -> C.sky (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/frappe.lua:12) - .diagnostic_info = .{ 0x99, 0xd1, 0xdb }, + .info = .{ 0x99, 0xd1, 0xdb }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/lsp.lua:53 DiagnosticHint fg = hint (local hint = C.teal at line 11) -> C.teal (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/frappe.lua:11) - .diagnostic_hint = .{ 0x81, 0xc8, 0xbe }, - .palette = .{ + .hint = .{ 0x81, 0xc8, 0xbe }, + .ansi = .{ .{ 0x51, 0x57, 0x6d }, // 0: ~/05-genizah/catppuccin-palette/palette.json:1470 frappe.ansiColors.black.normal .{ 0xe7, 0x82, 0x84 }, // 1: ~/05-genizah/catppuccin-palette/palette.json:1514 frappe.ansiColors.red.normal .{ 0xa6, 0xd1, 0x89 }, // 2: ~/05-genizah/catppuccin-palette/palette.json:1558 frappe.ansiColors.green.normal diff --git a/core/themes/catppuccin_latte.zig b/core/themes/catppuccin_latte.zig index 259198b4..03c95690 100644 --- a/core/themes/catppuccin_latte.zig +++ b/core/themes/catppuccin_latte.zig @@ -28,63 +28,68 @@ //! (groups/integrations/gitsigns.lua:11), and neo-tree uses NeoTreeModified = //! peach. Keyword = mauve directly (Statement also mauve). Diagnostic groups //! are in groups/lsp.lua (merged into editor groups by lib/mapper.lua:26). +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - tag ground #e6e9ef -> #e3e6ec: 1.08:1 off the page, now 1.11:1 (H: a band 1.1:1 off the page; R3: tone on tone) +//! - focused tag ground #cdd0da -> #cbced4: 1.23:1 off the tag, now 1.26:1 (R4, H: a focus step off the tag, and the loudest) +//! - unsaved grip #df8e1d -> #a36400: 2.09:1 on the tag, now 3.83:1 (R6: 3:1 on both tags) +//! - selection text #4c4f69 -> #4a4d67: 4.39:1 on the selection, now 4.53:1 (R7: 4.5:1) +//! - search hit #a8daf0 -> #f2bc85: 1.33:1 off the page, now 1.51:1 (R8: 1.5:1, the text reading on it) +//! - warning #df8e1d -> #9d6000: 2.31:1 on the page, now 4.52:1 (R9: 4.5:1, told from the text and the others) +//! - info #04a5e5 -> #0575a4: 2.47:1 on the page, now 4.54:1 (R9: 4.5:1, told from the text and the others) +//! - hint #179299 -> #097a81: 3.31:1 on the page, now 4.52:1 (R9: 4.5:1, told from the text and the others) pub const theme = .{ .name = "catppuccin_latte", // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:35 Normal bg = C.base (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/latte.lua:25) - .bg = .{ 0xef, 0xf1, 0xf5 }, + .page = .{ 0xef, 0xf1, 0xf5 }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:35 Normal fg = C.text (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/latte.lua:16) - .fg = .{ 0x4c, 0x4f, 0x69 }, + .text = .{ 0x4c, 0x4f, 0x69 }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:107 Visual bg = C.surface1 (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/latte.lua:23) - .sel_bg = .{ 0xbc, 0xc0, 0xcc }, + .selection = .{ 0xbc, 0xc0, 0xcc }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0x4c, 0x4f, 0x69 }, + .selection_text = .{ 0x4c, 0x4f, 0x69 }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:100 StatusLineNC bg = C.mantle (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/latte.lua:26) - .tag_bg = .{ 0xe6, 0xe9, 0xef }, + .tag = .{ 0xe6, 0xe9, 0xef }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:100 StatusLineNC fg = C.surface1 (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/latte.lua:23) #bcc0cc, adjusted - .tag_fg = .{ 0x66, 0x68, 0x6e }, + .tag_text = .{ 0x66, 0x68, 0x6e }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:99 StatusLine bg = C.mantle (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/latte.lua:26) #e6e9ef, adjusted - .tag_active_bg = .{ 0xcd, 0xd0, 0xda }, + .tag_focus = .{ 0xcd, 0xd0, 0xda }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:99 StatusLine fg = C.text (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/latte.lua:16) - .tag_active_fg = .{ 0x4c, 0x4f, 0x69 }, + .tag_focus_text = .{ 0x4c, 0x4f, 0x69 }, // the focused grip: ~/05-genizah/catppuccin-nvim/lua/catppuccin/utils/lualine.lua:20 lualine normal.a bg = C.blue (used by lua/lualine/themes/catppuccin-latte.lua) -> C.blue (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/latte.lua:14) - .box = .{ 0x1e, 0x66, 0xf5 }, - // derived: the grip at rest, the accent #1e66f5 faded toward the unfocused tag #e6e9ef as far as 1.6:1 off it (0.38 of the way) - .box_dim = .{ 0x9a, 0xb7, 0xf1 }, + .accent = .{ 0x1e, 0x66, 0xf5 }, // an unsaved grip: the original's warning colour, ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/lsp.lua:51 DiagnosticWarn fg = warning (local warning = C.yellow at line 9) -> C.yellow (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/latte.lua:9) - .box_dirty = .{ 0xdf, 0x8e, 0x1d }, + .dirty = .{ 0xdf, 0x8e, 0x1d }, // derived: the column grip, the original's type colour, ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/syntax.lua:32 Type fg = C.yellow (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/latte.lua:9) - .column_box = .{ 0xdf, 0x8e, 0x1d }, + .column_grip = .{ 0xdf, 0x8e, 0x1d }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/syntax.lua:20 Keyword fg = C.mauve (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/latte.lua:5) - .kw = .{ 0x88, 0x39, 0xef }, + .keyword = .{ 0x88, 0x39, 0xef }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/syntax.lua:8 String fg = C.green (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/latte.lua:10) - .str = .{ 0x40, 0xa0, 0x2b }, + .string = .{ 0x40, 0xa0, 0x2b }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/syntax.lua:10 Number fg = C.peach (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/latte.lua:8) - .num = .{ 0xfe, 0x64, 0x0b }, + .number = .{ 0xfe, 0x64, 0x0b }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/syntax.lua:5 Comment fg = C.overlay2 (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/latte.lua:19) .comment = .{ 0x7c, 0x7f, 0x93 }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:27 LineNr fg = C.surface1 (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/latte.lua:23) - .lineno = .{ 0xbc, 0xc0, 0xcc }, + .line_number = .{ 0xbc, 0xc0, 0xcc }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:28 CursorLineNr fg = C.lavender (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/latte.lua:15) - .lineno_active = .{ 0x72, 0x87, 0xfd }, + .line_number_current = .{ 0x72, 0x87, 0xfd }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:72 PmenuSbar bg = C.surface0 (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/latte.lua:24) - .scroll_track = .{ 0xcc, 0xd0, 0xda }, + .rail = .{ 0xcc, 0xd0, 0xda }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:73 PmenuThumb bg = C.overlay0 (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/latte.lua:21) - .scroll_thumb = .{ 0x9c, 0xa0, 0xb0 }, + .rail_thumb = .{ 0x9c, 0xa0, 0xb0 }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:114 WinSeparator fg = C.crust (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/latte.lua:27) #dce0e8, adjusted - .border = .{ 0xbc, 0xc0, 0xcc }, + .rule = .{ 0xbc, 0xc0, 0xcc }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:91 Search bg = U.darken(C.sky, 0.30, C.base) = blend(fg sky #04a5e5, bg base #eff1f5, alpha 0.3) per ~/05-genizah/catppuccin-nvim/lua/catppuccin/utils/colors.lua:29 -> #a8daf0 - .search_bg = .{ 0xa8, 0xda, 0xf0 }, - // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:91 Search fg = C.text (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/latte.lua:16) - .search_fg = .{ 0x4c, 0x4f, 0x69 }, + .hit = .{ 0xa8, 0xda, 0xf0 }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/lsp.lua:50 DiagnosticError fg = error (local error = C.red at line 8) -> C.red (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/latte.lua:6) - .diagnostic_error = .{ 0xd2, 0x0f, 0x39 }, + .@"error" = .{ 0xd2, 0x0f, 0x39 }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/lsp.lua:51 DiagnosticWarn fg = warning (local warning = C.yellow at line 9) -> C.yellow (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/latte.lua:9) - .diagnostic_warning = .{ 0xdf, 0x8e, 0x1d }, + .warning = .{ 0xdf, 0x8e, 0x1d }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/lsp.lua:52 DiagnosticInfo fg = info (local info = C.sky at line 10) -> C.sky (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/latte.lua:12) - .diagnostic_info = .{ 0x04, 0xa5, 0xe5 }, + .info = .{ 0x04, 0xa5, 0xe5 }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/lsp.lua:53 DiagnosticHint fg = hint (local hint = C.teal at line 11) -> C.teal (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/latte.lua:11) - .diagnostic_hint = .{ 0x17, 0x92, 0x99 }, - .palette = .{ + .hint = .{ 0x17, 0x92, 0x99 }, + .ansi = .{ .{ 0x5c, 0x5f, 0x77 }, // 0: ~/05-genizah/catppuccin-palette/palette.json:562 latte.ansiColors.black.normal .{ 0xd2, 0x0f, 0x39 }, // 1: ~/05-genizah/catppuccin-palette/palette.json:606 latte.ansiColors.red.normal .{ 0x40, 0xa0, 0x2b }, // 2: ~/05-genizah/catppuccin-palette/palette.json:650 latte.ansiColors.green.normal diff --git a/core/themes/catppuccin_macchiato.zig b/core/themes/catppuccin_macchiato.zig index 918c3257..db75f482 100644 --- a/core/themes/catppuccin_macchiato.zig +++ b/core/themes/catppuccin_macchiato.zig @@ -28,63 +28,62 @@ //! (groups/integrations/gitsigns.lua:11), and neo-tree uses NeoTreeModified = //! peach. Keyword = mauve directly (Statement also mauve). Diagnostic groups //! are in groups/lsp.lua (merged into editor groups by lib/mapper.lua:26). +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - tag ground #1e2030 -> #1d1f2f: 1.09:1 off the page, now 1.11:1 (H: a band 1.1:1 off the page; R3: tone on tone) +//! - hint #8bd5ca -> #a6da95: 8.74:1 on the page, now 9.17:1 (R9: 4.5:1, told from the text and the others) pub const theme = .{ .name = "catppuccin_macchiato", // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:35 Normal bg = C.base (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/macchiato.lua:25) - .bg = .{ 0x24, 0x27, 0x3a }, + .page = .{ 0x24, 0x27, 0x3a }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:35 Normal fg = C.text (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/macchiato.lua:16) - .fg = .{ 0xca, 0xd3, 0xf5 }, + .text = .{ 0xca, 0xd3, 0xf5 }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:107 Visual bg = C.surface1 (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/macchiato.lua:23) - .sel_bg = .{ 0x49, 0x4d, 0x64 }, + .selection = .{ 0x49, 0x4d, 0x64 }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0xca, 0xd3, 0xf5 }, + .selection_text = .{ 0xca, 0xd3, 0xf5 }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:100 StatusLineNC bg = C.mantle (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/macchiato.lua:26) - .tag_bg = .{ 0x1e, 0x20, 0x30 }, + .tag = .{ 0x1e, 0x20, 0x30 }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:100 StatusLineNC fg = C.surface1 (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/macchiato.lua:23) #494d64, adjusted - .tag_fg = .{ 0x87, 0x8a, 0x99 }, + .tag_text = .{ 0x87, 0x8a, 0x99 }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:99 StatusLine bg = C.mantle (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/macchiato.lua:26) #1e2030, adjusted - .tag_active_bg = .{ 0x3d, 0x40, 0x53 }, + .tag_focus = .{ 0x3d, 0x40, 0x53 }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:99 StatusLine fg = C.text (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/macchiato.lua:16) - .tag_active_fg = .{ 0xca, 0xd3, 0xf5 }, + .tag_focus_text = .{ 0xca, 0xd3, 0xf5 }, // the focused grip: ~/05-genizah/catppuccin-nvim/lua/catppuccin/utils/lualine.lua:20 lualine normal.a bg = C.blue (used by lua/lualine/themes/catppuccin-macchiato.lua) -> C.blue (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/macchiato.lua:14) - .box = .{ 0x8a, 0xad, 0xf4 }, - // derived: the grip at rest, the accent #8aadf4 faded toward the unfocused tag #1e2030 as far as 1.6:1 off it (0.24 of the way) - .box_dim = .{ 0x38, 0x42, 0x5f }, + .accent = .{ 0x8a, 0xad, 0xf4 }, // an unsaved grip: the original's warning colour, ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/lsp.lua:51 DiagnosticWarn fg = warning (local warning = C.yellow at line 9) -> C.yellow (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/macchiato.lua:9) - .box_dirty = .{ 0xee, 0xd4, 0x9f }, + .dirty = .{ 0xee, 0xd4, 0x9f }, // derived: the column grip, the original's type colour, ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/syntax.lua:32 Type fg = C.yellow (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/macchiato.lua:9) - .column_box = .{ 0xee, 0xd4, 0x9f }, + .column_grip = .{ 0xee, 0xd4, 0x9f }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/syntax.lua:20 Keyword fg = C.mauve (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/macchiato.lua:5) - .kw = .{ 0xc6, 0xa0, 0xf6 }, + .keyword = .{ 0xc6, 0xa0, 0xf6 }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/syntax.lua:8 String fg = C.green (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/macchiato.lua:10) - .str = .{ 0xa6, 0xda, 0x95 }, + .string = .{ 0xa6, 0xda, 0x95 }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/syntax.lua:10 Number fg = C.peach (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/macchiato.lua:8) - .num = .{ 0xf5, 0xa9, 0x7f }, + .number = .{ 0xf5, 0xa9, 0x7f }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/syntax.lua:5 Comment fg = C.overlay2 (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/macchiato.lua:19) .comment = .{ 0x93, 0x9a, 0xb7 }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:27 LineNr fg = C.surface1 (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/macchiato.lua:23) - .lineno = .{ 0x49, 0x4d, 0x64 }, + .line_number = .{ 0x49, 0x4d, 0x64 }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:28 CursorLineNr fg = C.lavender (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/macchiato.lua:15) - .lineno_active = .{ 0xb7, 0xbd, 0xf8 }, + .line_number_current = .{ 0xb7, 0xbd, 0xf8 }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:72 PmenuSbar bg = C.surface0 (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/macchiato.lua:24) - .scroll_track = .{ 0x36, 0x3a, 0x4f }, + .rail = .{ 0x36, 0x3a, 0x4f }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:73 PmenuThumb bg = C.overlay0 (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/macchiato.lua:21) - .scroll_thumb = .{ 0x6e, 0x73, 0x8d }, + .rail_thumb = .{ 0x6e, 0x73, 0x8d }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:114 WinSeparator fg = C.crust (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/macchiato.lua:27) #181926, adjusted - .border = .{ 0x46, 0x49, 0x5c }, + .rule = .{ 0x46, 0x49, 0x5c }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:91 Search bg = U.darken(C.sky, 0.30, C.base) = blend(fg sky #91d7e3, bg base #24273a, alpha 0.3) per ~/05-genizah/catppuccin-nvim/lua/catppuccin/utils/colors.lua:29 -> #455c6d - .search_bg = .{ 0x45, 0x5c, 0x6d }, - // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:91 Search fg = C.text (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/macchiato.lua:16) - .search_fg = .{ 0xca, 0xd3, 0xf5 }, + .hit = .{ 0x45, 0x5c, 0x6d }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/lsp.lua:50 DiagnosticError fg = error (local error = C.red at line 8) -> C.red (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/macchiato.lua:6) - .diagnostic_error = .{ 0xed, 0x87, 0x96 }, + .@"error" = .{ 0xed, 0x87, 0x96 }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/lsp.lua:51 DiagnosticWarn fg = warning (local warning = C.yellow at line 9) -> C.yellow (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/macchiato.lua:9) - .diagnostic_warning = .{ 0xee, 0xd4, 0x9f }, + .warning = .{ 0xee, 0xd4, 0x9f }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/lsp.lua:52 DiagnosticInfo fg = info (local info = C.sky at line 10) -> C.sky (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/macchiato.lua:12) - .diagnostic_info = .{ 0x91, 0xd7, 0xe3 }, + .info = .{ 0x91, 0xd7, 0xe3 }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/lsp.lua:53 DiagnosticHint fg = hint (local hint = C.teal at line 11) -> C.teal (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/macchiato.lua:11) - .diagnostic_hint = .{ 0x8b, 0xd5, 0xca }, - .palette = .{ + .hint = .{ 0x8b, 0xd5, 0xca }, + .ansi = .{ .{ 0x49, 0x4d, 0x64 }, // 0: ~/05-genizah/catppuccin-palette/palette.json:2378 macchiato.ansiColors.black.normal .{ 0xed, 0x87, 0x96 }, // 1: ~/05-genizah/catppuccin-palette/palette.json:2422 macchiato.ansiColors.red.normal .{ 0xa6, 0xda, 0x95 }, // 2: ~/05-genizah/catppuccin-palette/palette.json:2466 macchiato.ansiColors.green.normal diff --git a/core/themes/catppuccin_mocha.zig b/core/themes/catppuccin_mocha.zig index fb34a923..dae31a69 100644 --- a/core/themes/catppuccin_mocha.zig +++ b/core/themes/catppuccin_mocha.zig @@ -28,63 +28,62 @@ //! (groups/integrations/gitsigns.lua:11), and neo-tree uses NeoTreeModified = //! peach. Keyword = mauve directly (Statement also mauve). Diagnostic groups //! are in groups/lsp.lua (merged into editor groups by lib/mapper.lua:26). +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - tag ground #181825 -> #151522: 1.07:1 off the page, now 1.10:1 (H: a band 1.1:1 off the page; R3: tone on tone) +//! - hint #94e2d5 -> #a6e3a1: 11.01:1 on the page, now 11.03:1 (R9: 4.5:1, told from the text and the others) pub const theme = .{ .name = "catppuccin_mocha", // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:35 Normal bg = C.base (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/mocha.lua:25) - .bg = .{ 0x1e, 0x1e, 0x2e }, + .page = .{ 0x1e, 0x1e, 0x2e }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:35 Normal fg = C.text (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/mocha.lua:16) - .fg = .{ 0xcd, 0xd6, 0xf4 }, + .text = .{ 0xcd, 0xd6, 0xf4 }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:107 Visual bg = C.surface1 (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/mocha.lua:23) - .sel_bg = .{ 0x45, 0x47, 0x5a }, + .selection = .{ 0x45, 0x47, 0x5a }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0xcd, 0xd6, 0xf4 }, + .selection_text = .{ 0xcd, 0xd6, 0xf4 }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:100 StatusLineNC bg = C.mantle (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/mocha.lua:26) - .tag_bg = .{ 0x18, 0x18, 0x25 }, + .tag = .{ 0x18, 0x18, 0x25 }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:100 StatusLineNC fg = C.surface1 (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/mocha.lua:23) #45475a, adjusted - .tag_fg = .{ 0x81, 0x82, 0x8f }, + .tag_text = .{ 0x81, 0x82, 0x8f }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:99 StatusLine bg = C.mantle (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/mocha.lua:26) #181825, adjusted - .tag_active_bg = .{ 0x39, 0x3a, 0x4a }, + .tag_focus = .{ 0x39, 0x3a, 0x4a }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:99 StatusLine fg = C.text (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/mocha.lua:16) - .tag_active_fg = .{ 0xcd, 0xd6, 0xf4 }, + .tag_focus_text = .{ 0xcd, 0xd6, 0xf4 }, // the focused grip: ~/05-genizah/catppuccin-nvim/lua/catppuccin/utils/lualine.lua:20 lualine normal.a bg = C.blue (used by lua/lualine/themes/catppuccin-mocha.lua) -> C.blue (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/mocha.lua:14) - .box = .{ 0x89, 0xb4, 0xfa }, - // derived: the grip at rest, the accent #89b4fa faded toward the unfocused tag #181825 as far as 1.6:1 off it (0.24 of the way) - .box_dim = .{ 0x33, 0x3d, 0x58 }, + .accent = .{ 0x89, 0xb4, 0xfa }, // an unsaved grip: the original's warning colour, ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/lsp.lua:51 DiagnosticWarn fg = warning (local warning = C.yellow at line 9) -> C.yellow (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/mocha.lua:9) - .box_dirty = .{ 0xf9, 0xe2, 0xaf }, + .dirty = .{ 0xf9, 0xe2, 0xaf }, // derived: the column grip, the original's type colour, ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/syntax.lua:32 Type fg = C.yellow (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/mocha.lua:9) - .column_box = .{ 0xf9, 0xe2, 0xaf }, + .column_grip = .{ 0xf9, 0xe2, 0xaf }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/syntax.lua:20 Keyword fg = C.mauve (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/mocha.lua:5) - .kw = .{ 0xcb, 0xa6, 0xf7 }, + .keyword = .{ 0xcb, 0xa6, 0xf7 }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/syntax.lua:8 String fg = C.green (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/mocha.lua:10) - .str = .{ 0xa6, 0xe3, 0xa1 }, + .string = .{ 0xa6, 0xe3, 0xa1 }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/syntax.lua:10 Number fg = C.peach (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/mocha.lua:8) - .num = .{ 0xfa, 0xb3, 0x87 }, + .number = .{ 0xfa, 0xb3, 0x87 }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/syntax.lua:5 Comment fg = C.overlay2 (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/mocha.lua:19) .comment = .{ 0x93, 0x99, 0xb2 }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:27 LineNr fg = C.surface1 (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/mocha.lua:23) - .lineno = .{ 0x45, 0x47, 0x5a }, + .line_number = .{ 0x45, 0x47, 0x5a }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:28 CursorLineNr fg = C.lavender (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/mocha.lua:15) - .lineno_active = .{ 0xb4, 0xbe, 0xfe }, + .line_number_current = .{ 0xb4, 0xbe, 0xfe }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:72 PmenuSbar bg = C.surface0 (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/mocha.lua:24) - .scroll_track = .{ 0x31, 0x32, 0x44 }, + .rail = .{ 0x31, 0x32, 0x44 }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:73 PmenuThumb bg = C.overlay0 (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/mocha.lua:21) - .scroll_thumb = .{ 0x6c, 0x70, 0x86 }, + .rail_thumb = .{ 0x6c, 0x70, 0x86 }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:114 WinSeparator fg = C.crust (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/mocha.lua:27) #11111b, adjusted - .border = .{ 0x3e, 0x40, 0x4f }, + .rule = .{ 0x3e, 0x40, 0x4f }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:91 Search bg = U.darken(C.sky, 0.30, C.base) = blend(fg sky #89dceb, bg base #1e1e2e, alpha 0.3) per ~/05-genizah/catppuccin-nvim/lua/catppuccin/utils/colors.lua:29 -> #3e5767 - .search_bg = .{ 0x3e, 0x57, 0x67 }, - // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/editor.lua:91 Search fg = C.text (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/mocha.lua:16) - .search_fg = .{ 0xcd, 0xd6, 0xf4 }, + .hit = .{ 0x3e, 0x57, 0x67 }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/lsp.lua:50 DiagnosticError fg = error (local error = C.red at line 8) -> C.red (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/mocha.lua:6) - .diagnostic_error = .{ 0xf3, 0x8b, 0xa8 }, + .@"error" = .{ 0xf3, 0x8b, 0xa8 }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/lsp.lua:51 DiagnosticWarn fg = warning (local warning = C.yellow at line 9) -> C.yellow (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/mocha.lua:9) - .diagnostic_warning = .{ 0xf9, 0xe2, 0xaf }, + .warning = .{ 0xf9, 0xe2, 0xaf }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/lsp.lua:52 DiagnosticInfo fg = info (local info = C.sky at line 10) -> C.sky (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/mocha.lua:12) - .diagnostic_info = .{ 0x89, 0xdc, 0xeb }, + .info = .{ 0x89, 0xdc, 0xeb }, // ~/05-genizah/catppuccin-nvim/lua/catppuccin/groups/lsp.lua:53 DiagnosticHint fg = hint (local hint = C.teal at line 11) -> C.teal (~/05-genizah/catppuccin-nvim/lua/catppuccin/palettes/mocha.lua:11) - .diagnostic_hint = .{ 0x94, 0xe2, 0xd5 }, - .palette = .{ + .hint = .{ 0x94, 0xe2, 0xd5 }, + .ansi = .{ .{ 0x45, 0x47, 0x5a }, // 0: ~/05-genizah/catppuccin-palette/palette.json:3286 mocha.ansiColors.black.normal .{ 0xf3, 0x8b, 0xa8 }, // 1: ~/05-genizah/catppuccin-palette/palette.json:3330 mocha.ansiColors.red.normal .{ 0xa6, 0xe3, 0xa1 }, // 2: ~/05-genizah/catppuccin-palette/palette.json:3374 mocha.ansiColors.green.normal diff --git a/core/themes/clay.zig b/core/themes/clay.zig index ba76ad35..4b28fb36 100644 --- a/core/themes/clay.zig +++ b/core/themes/clay.zig @@ -4,36 +4,32 @@ //! Pardes-specific tag, search, diagnostic and ANSI roles; see docs/typ/themes.typ. pub const theme = .{ .name = "clay", - .bg = .{ 0x10, 0x10, 0x0e }, - .fg = .{ 0xf3, 0xe5, 0xbc }, - .tag_bg = .{ 0x34, 0x3f, 0x36 }, - .tag_fg = .{ 0xd7, 0xd6, 0xb6 }, - .tag_name_fg = .{ 0xaa, 0xe0, 0xe0 }, - .tag_active_name_fg = .{ 0xb5, 0xec, 0xec }, - .tag_active_bg = .{ 0x42, 0x4f, 0x40 }, - .tag_active_fg = .{ 0xe3, 0xe2, 0xc2 }, - .box = .{ 0x8a, 0xc8, 0x74 }, - .box_dim = .{ 0x68, 0x7c, 0x4d }, - .column_box = .{ 0xdd, 0x7c, 0x97 }, - .column_box_dim = .{ 0x87, 0x5e, 0x65 }, - .kw = .{ 0xff, 0x88, 0x65 }, - .str = .{ 0xd1, 0xd5, 0x0c }, - .num = .{ 0xe0, 0x79, 0x95 }, + .page = .{ 0x10, 0x10, 0x0e }, + .text = .{ 0xf3, 0xe5, 0xbc }, + .tag = .{ 0x34, 0x3f, 0x36 }, + .tag_text = .{ 0xd7, 0xd6, 0xb6 }, + .tag_name = .{ 0xaa, 0xe0, 0xe0 }, + .tag_focus = .{ 0x42, 0x4f, 0x40 }, + .tag_focus_text = .{ 0xe3, 0xe2, 0xc2 }, + .accent = .{ 0x8a, 0xc8, 0x74 }, + .column_grip = .{ 0xdd, 0x7c, 0x97 }, + .keyword = .{ 0xff, 0x88, 0x65 }, + .string = .{ 0xd1, 0xd5, 0x0c }, + .number = .{ 0xe0, 0x79, 0x95 }, .comment = .{ 0xf6, 0xb9, 0x5b }, - .lineno = .{ 0x69, 0x64, 0x55 }, - .lineno_active = .{ 0x71, 0x6c, 0x5d }, - .scroll_track = .{ 0x22, 0x21, 0x19 }, - .scroll_thumb = .{ 0x8c, 0x94, 0x67 }, - .border = .{ 0x74, 0x87, 0x61 }, - .sel_bg = .{ 0x50, 0x5c, 0x38 }, - .sel_fg = .{ 0xfb, 0xf1, 0xc7 }, - .search_bg = .{ 0x6f, 0x54, 0x1f }, - .search_fg = .{ 0xff, 0xe2, 0xa0 }, - .diagnostic_error = .{ 0xff, 0x88, 0x65 }, - .diagnostic_warning = .{ 0xff, 0xbf, 0x2a }, - .diagnostic_info = .{ 0x7b, 0xbd, 0xac }, - .diagnostic_hint = .{ 0x89, 0xca, 0x72 }, - .palette = .{ + .line_number = .{ 0x69, 0x64, 0x55 }, + .line_number_current = .{ 0x71, 0x6c, 0x5d }, + .rail = .{ 0x22, 0x21, 0x19 }, + .rail_thumb = .{ 0x8c, 0x94, 0x67 }, + .rule = .{ 0x74, 0x87, 0x61 }, + .selection = .{ 0x50, 0x5c, 0x38 }, + .selection_text = .{ 0xfb, 0xf1, 0xc7 }, + .hit = .{ 0x6f, 0x54, 0x1f }, + .@"error" = .{ 0xff, 0x88, 0x65 }, + .warning = .{ 0xff, 0xbf, 0x2a }, + .info = .{ 0x7b, 0xbd, 0xac }, + .hint = .{ 0x89, 0xca, 0x72 }, + .ansi = .{ .{ 0x10, 0x10, 0x0e }, .{ 0xfb, 0x8a, 0x69 }, .{ 0xb8, 0xbb, 0x26 }, diff --git a/core/themes/dark.zig b/core/themes/dark.zig index e93fd489..24506f6b 100644 --- a/core/themes/dark.zig +++ b/core/themes/dark.zig @@ -1,34 +1,36 @@ -//! pardes's own dark theme, and the boot default until the helix capture -//! displaced it. It stays in the ring because it is the only one that leaves -//! `bg`/`fg` NULL: the page keeps the host terminal's own default cell, so -//! pardes sits inside whatever the surrounding terminal already looks like and -//! only paints its chrome. Every other theme here dresses the whole page. -//! -//! The selection pair is the warm tan pardes used to paint EVERY theme's -//! selection with, back when those six numbers were module constants. This is -//! the theme it belongs to: a null page is the host terminal's, and a tan that -//! reads as keyboard-driven on whatever dark cell that turns out to be is -//! exactly what it was picked for. +//! pardes dark: the host terminal's own page, white comments, violet stuff. +//! The one theme that leaves `page` and `text` NULL: in a terminal the page +//! is the host's own cell, ink and sixteen, so pardes sits inside whatever +//! the terminal already looks like and paints only its chrome; a window +//! draws colors.null_page (#121212) and #cccccc, and its sixteen below. +//! DESIGN.md part C: comments the brightest ink (#f0f0f0, 16.4:1), keywords +//! violet (#d76ef0, 6.6:1), a lilac tag, a violet grip that reads (#a58bff, +//! 3.4:1 on the focused tag) and a violet selection (#46337a) so the hits +//! keep amber; its own severities and sixteen (the window's). pub const theme = .{ .name = "dark", - .bg = null, - .fg = null, - .sel_bg = .{ 0x51, 0x3c, 0x17 }, - .sel_fg = .{ 0xd8, 0xc8, 0xa8 }, - .tag_bg = .{ 0x2c, 0x2a, 0x3e }, - .tag_fg = .{ 0x96, 0x96, 0x96 }, - // The focused tag: its band lighter in its own hue (1.54:1 off the - // plain one), its ink lighter to keep reading on it. - .tag_active_bg = .{ 0x48, 0x45, 0x66 }, - .tag_active_fg = .{ 0xc8, 0xc8, 0xc8 }, - .box = .{ 0x66, 0x3f, 0xe0 }, - .box_dim = .{ 0x35, 0x3a, 0x58 }, - .kw = .{ 0xda, 0x5e, 0xea }, - .str = .{ 0x85, 0xc3, 0x6f }, - .num = .{ 0xe1, 0xcb, 0x5f }, + .page = null, + .text = null, + .tag = .{ 0x2c, 0x2a, 0x3e }, + .tag_text = .{ 0xab, 0xa9, 0xc3 }, + .tag_focus_text = .{ 0xd6, 0xd4, 0xe8 }, + .accent = .{ 0xa5, 0x8b, 0xff }, + .selection = .{ 0x46, 0x33, 0x7a }, + .selection_text = .{ 0xf4, 0xf0, 0xff }, + .keyword = .{ 0xd7, 0x6e, 0xf0 }, + .string = .{ 0x8f, 0xca, 0x78 }, + .number = .{ 0xe3, 0xcd, 0x64 }, .comment = .{ 0xf0, 0xf0, 0xf0 }, - .lineno = .{ 0x5a, 0x5a, 0x5a }, - .scroll_track = .{ 0x2a, 0x2a, 0x2a }, - .scroll_thumb = .{ 0x52, 0x52, 0x52 }, - .palette = null, + .line_number = .{ 0x5c, 0x5c, 0x66 }, + .line_number_current = .{ 0x8e, 0x8c, 0x9e }, + .@"error" = .{ 0xff, 0x6e, 0x7f }, + .warning = .{ 0xff, 0xb4, 0x54 }, + .info = .{ 0x7f, 0xa8, 0xff }, + .hint = .{ 0x62, 0xd2, 0xc4 }, + .ansi = .{ + .{ 0x2c, 0x2a, 0x3e }, .{ 0xff, 0x6e, 0x7f }, .{ 0x8f, 0xca, 0x78 }, .{ 0xe3, 0xcd, 0x64 }, + .{ 0x7f, 0xa8, 0xff }, .{ 0xd7, 0x6e, 0xf0 }, .{ 0x62, 0xd2, 0xc4 }, .{ 0xc4, 0xc4, 0xcc }, + .{ 0x7e, 0x7b, 0x96 }, .{ 0xff, 0x95, 0xa1 }, .{ 0xae, 0xe3, 0x9a }, .{ 0xf2, 0xe0, 0x8a }, + .{ 0xa6, 0xc3, 0xff }, .{ 0xe6, 0x9c, 0xf7 }, .{ 0x8f, 0xe6, 0xda }, .{ 0xf0, 0xf0, 0xf0 }, + }, }; diff --git a/core/themes/dark_plus.zig b/core/themes/dark_plus.zig index 9c1cb689..f0a13f1e 100644 --- a/core/themes/dark_plus.zig +++ b/core/themes/dark_plus.zig @@ -8,67 +8,67 @@ //! Adjusted to meet pardes's floors (chrome only; text, syntax and ANSI are untouched): //! - unfocused tag ground #2d2d2d -> #3c3c3c: 1.21:1 off the focused one (the page, kept), pardes needs 1.5:1 on a dark page //! - unfocused tag text #969696 -> #a7a7a7: 3.73:1 on #3c3c3c, tag text needs 4.5:1 to be read and run +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - focused tag ground #1e1e1e -> #565656: 1.51:1 off the tag, now 1.50:1 (R4, H: a focus step off the tag, and the loudest) +//! - focused grip #007fd4 -> #4dabff: 1.74:1 on the focused tag, now 3.00:1 (R6: 3:1) +//! - unsaved grip #3399cc -> #4db0e4: 3.45:1 on the tag, now 4.54:1 (R6: 3:1 on both tags) pub const theme = .{ .name = "dark_plus", // /usr/share/code/resources/app/extensions/theme-defaults/themes/dark_vs.json:1 colors."editor.background" - .bg = .{ 0x1e, 0x1e, 0x1e }, + .page = .{ 0x1e, 0x1e, 0x1e }, // /usr/share/code/resources/app/extensions/theme-defaults/themes/dark_vs.json:1 colors."editor.foreground" - .fg = .{ 0xd4, 0xd4, 0xd4 }, + .text = .{ 0xd4, 0xd4, 0xd4 }, // ~/05-genizah/vscode/src/vs/platform/theme/common/colors/editorColors.ts:122 editor.selectionBackground dark - .sel_bg = .{ 0x26, 0x4f, 0x78 }, + .selection = .{ 0x26, 0x4f, 0x78 }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0xd4, 0xd4, 0xd4 }, + .selection_text = .{ 0xd4, 0xd4, 0xd4 }, // ~/05-genizah/vscode/src/vs/workbench/common/theme.ts:36 tab.inactiveBackground dark #2d2d2d, adjusted - .tag_bg = .{ 0x3c, 0x3c, 0x3c }, + .tag = .{ 0x3c, 0x3c, 0x3c }, // ~/05-genizah/vscode/src/vs/workbench/common/theme.ts:56 tab.inactiveForeground dark = transparent(tab.activeForeground #FFFFFF, 0.5) over #2d2d2d #969696, adjusted - .tag_fg = .{ 0xa7, 0xa7, 0xa7 }, + .tag_text = .{ 0xa7, 0xa7, 0xa7 }, // ~/05-genizah/vscode/src/vs/workbench/common/theme.ts:31 tab.activeBackground = editorBackground - .tag_active_bg = .{ 0x1e, 0x1e, 0x1e }, + .tag_focus = .{ 0x1e, 0x1e, 0x1e }, // ~/05-genizah/vscode/src/vs/workbench/common/theme.ts:49 tab.activeForeground dark Color.white - .tag_active_fg = .{ 0xff, 0xff, 0xff }, + .tag_focus_text = .{ 0xff, 0xff, 0xff }, // the tagline is the status bar: ~/05-genizah/vscode/src/vs/workbench/common/theme.ts:298 statusBar.background dark #007ACC - .tagline_bg = .{ 0x00, 0x7a, 0xcc }, + .workspace = .{ 0x00, 0x7a, 0xcc }, // ~/05-genizah/vscode/src/vs/workbench/common/theme.ts:289 statusBar.foreground dark #FFFFFF - .tagline_fg = .{ 0xff, 0xff, 0xff }, + .workspace_text = .{ 0xff, 0xff, 0xff }, // the focused grip: ~/05-genizah/vscode/src/vs/platform/theme/common/colors/baseColors.ts:38 focusBorder dark - .box = .{ 0x00, 0x7f, 0xd4 }, - // derived: the grip at rest, the accent #007fd4 faded toward the unfocused tag #3c3c3c as far as 1.6:1 off it (0.54 of the way) - .box_dim = .{ 0x1c, 0x60, 0x8e }, + .accent = .{ 0x00, 0x7f, 0xd4 }, // an unsaved grip: the original's modified colour, ~/05-genizah/vscode/src/vs/workbench/common/theme.ts:176 tab.activeModifiedBorder dark - .box_dirty = .{ 0x33, 0x99, 0xcc }, + .dirty = .{ 0x33, 0x99, 0xcc }, // derived: the column grip, the original's type colour, /usr/share/code/resources/app/extensions/theme-defaults/themes/dark_plus.json:1 tokenColors entity.name.type - .column_box = .{ 0x4e, 0xc9, 0xb0 }, + .column_grip = .{ 0x4e, 0xc9, 0xb0 }, // /usr/share/code/resources/app/extensions/theme-defaults/themes/dark_vs.json:1 tokenColors keyword (keyword.control is #C586C0 in dark_plus.json:1; pardes has one keyword colour) - .kw = .{ 0x56, 0x9c, 0xd6 }, + .keyword = .{ 0x56, 0x9c, 0xd6 }, // /usr/share/code/resources/app/extensions/theme-defaults/themes/dark_vs.json:1 tokenColors string - .str = .{ 0xce, 0x91, 0x78 }, + .string = .{ 0xce, 0x91, 0x78 }, // /usr/share/code/resources/app/extensions/theme-defaults/themes/dark_vs.json:1 tokenColors constant.numeric - .num = .{ 0xb5, 0xce, 0xa8 }, + .number = .{ 0xb5, 0xce, 0xa8 }, // /usr/share/code/resources/app/extensions/theme-defaults/themes/dark_vs.json:1 tokenColors comment .comment = .{ 0x6a, 0x99, 0x55 }, // ~/05-genizah/vscode/src/vs/editor/common/core/editorColorRegistry.ts:29 editorLineNumber.foreground dark - .lineno = .{ 0x85, 0x85, 0x85 }, + .line_number = .{ 0x85, 0x85, 0x85 }, // ~/05-genizah/vscode/src/vs/editor/common/core/editorColorRegistry.ts:48 editorActiveLineNumber.foreground dark (editorLineNumber.activeForeground defaults to it, :49) - .lineno_active = .{ 0xc6, 0xc6, 0xc6 }, + .line_number_current = .{ 0xc6, 0xc6, 0xc6 }, // ~/05-genizah/vscode/src/vs/platform/theme/common/colors/miscColors.ts:68 scrollbar.background null: the editor shows through - .scroll_track = .{ 0x1e, 0x1e, 0x1e }, + .rail = .{ 0x1e, 0x1e, 0x1e }, // ~/05-genizah/vscode/src/vs/platform/theme/common/colors/miscColors.ts:57 scrollbarSlider.background dark #797979 at 0.4, over #1e1e1e - .scroll_thumb = .{ 0x42, 0x42, 0x42 }, + .rail_thumb = .{ 0x42, 0x42, 0x42 }, // ~/05-genizah/vscode/src/vs/workbench/common/theme.ts:237 editorGroup.border dark - .border = .{ 0x44, 0x44, 0x44 }, + .rule = .{ 0x44, 0x44, 0x44 }, // ~/05-genizah/vscode/src/vs/platform/theme/common/colors/editorColors.ts:149 editor.findMatchBackground dark - .search_bg = .{ 0x51, 0x5c, 0x6a }, - // derived: the original keeps text colours over a match; the page's text, whichever reads better on it - .search_fg = .{ 0xd4, 0xd4, 0xd4 }, + .hit = .{ 0x51, 0x5c, 0x6a }, // ~/05-genizah/vscode/src/vs/platform/theme/common/colors/editorColors.ts:71 editorError.foreground dark - .diagnostic_error = .{ 0xf1, 0x4c, 0x4c }, + .@"error" = .{ 0xf1, 0x4c, 0x4c }, // ~/05-genizah/vscode/src/vs/platform/theme/common/colors/editorColors.ts:84 editorWarning.foreground dark - .diagnostic_warning = .{ 0xcc, 0xa7, 0x00 }, + .warning = .{ 0xcc, 0xa7, 0x00 }, // ~/05-genizah/vscode/src/vs/platform/theme/common/colors/editorColors.ts:97 editorInfo.foreground dark - .diagnostic_info = .{ 0x59, 0xa4, 0xf9 }, + .info = .{ 0x59, 0xa4, 0xf9 }, // ~/05-genizah/vscode/src/vs/platform/theme/common/colors/editorColors.ts:106 editorHint.foreground dark #eeeeee at 0.7, over #1e1e1e - .diagnostic_hint = .{ 0xb0, 0xb0, 0xb0 }, - .palette = .{ + .hint = .{ 0xb0, 0xb0, 0xb0 }, + .ansi = .{ .{ 0x00, 0x00, 0x00 }, // 0: ~/05-genizah/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.ts:107 terminal.ansiBlack dark .{ 0xcd, 0x31, 0x31 }, // 1: ~/05-genizah/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.ts:116 terminal.ansiRed dark .{ 0x0d, 0xbc, 0x79 }, // 2: ~/05-genizah/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.ts:125 terminal.ansiGreen dark diff --git a/core/themes/daybreak.zig b/core/themes/daybreak.zig index e032b994..2e6c0b8a 100644 --- a/core/themes/daybreak.zig +++ b/core/themes/daybreak.zig @@ -3,36 +3,32 @@ //! designed together. See docs/typ/themes.typ for the shared role contract. pub const theme = .{ .name = "daybreak", - .bg = .{ 0xff, 0xff, 0xff }, - .fg = .{ 0x14, 0x2d, 0x40 }, - .tag_bg = .{ 0xed, 0xf2, 0xf7 }, - .tag_fg = .{ 0x29, 0x46, 0x5e }, - .tag_name_fg = .{ 0x5a, 0x2d, 0x67 }, - .tag_active_name_fg = .{ 0x52, 0x25, 0x5f }, - .tag_active_bg = .{ 0xdf, 0xea, 0xf3 }, - .tag_active_fg = .{ 0x21, 0x3e, 0x56 }, - .box = .{ 0x00, 0x61, 0x98 }, - .box_dim = .{ 0x7b, 0x9e, 0xb7 }, - .column_box = .{ 0x7f, 0x42, 0x00 }, - .column_box_dim = .{ 0xb7, 0x9a, 0x7a }, - .kw = .{ 0x65, 0x1a, 0x98 }, - .str = .{ 0x1a, 0x65, 0x2b }, - .num = .{ 0x7f, 0x42, 0x00 }, + .page = .{ 0xff, 0xff, 0xff }, + .text = .{ 0x14, 0x2d, 0x40 }, + .tag = .{ 0xed, 0xf2, 0xf7 }, + .tag_text = .{ 0x29, 0x46, 0x5e }, + .tag_name = .{ 0x5a, 0x2d, 0x67 }, + .tag_focus = .{ 0xdf, 0xea, 0xf3 }, + .tag_focus_text = .{ 0x21, 0x3e, 0x56 }, + .accent = .{ 0x00, 0x61, 0x98 }, + .column_grip = .{ 0x7f, 0x42, 0x00 }, + .keyword = .{ 0x65, 0x1a, 0x98 }, + .string = .{ 0x1a, 0x65, 0x2b }, + .number = .{ 0x7f, 0x42, 0x00 }, .comment = .{ 0x08, 0x62, 0x39 }, - .lineno = .{ 0x88, 0x93, 0x9b }, - .lineno_active = .{ 0x80, 0x8b, 0x93 }, - .scroll_track = .{ 0xe6, 0xed, 0xf3 }, - .scroll_thumb = .{ 0x66, 0x85, 0xa0 }, - .border = .{ 0xc5, 0xcf, 0xd7 }, - .sel_bg = .{ 0xb9, 0xdf, 0xfb }, - .sel_fg = .{ 0x10, 0x36, 0x4f }, - .search_bg = .{ 0xff, 0xe3, 0x96 }, - .search_fg = .{ 0x4b, 0x35, 0x00 }, - .diagnostic_error = .{ 0xb3, 0x08, 0x22 }, - .diagnostic_warning = .{ 0x70, 0x49, 0x00 }, - .diagnostic_info = .{ 0x00, 0x5c, 0x8a }, - .diagnostic_hint = .{ 0x36, 0x5b, 0x25 }, - .palette = .{ + .line_number = .{ 0x88, 0x93, 0x9b }, + .line_number_current = .{ 0x80, 0x8b, 0x93 }, + .rail = .{ 0xe6, 0xed, 0xf3 }, + .rail_thumb = .{ 0x66, 0x85, 0xa0 }, + .rule = .{ 0xc5, 0xcf, 0xd7 }, + .selection = .{ 0xb9, 0xdf, 0xfb }, + .selection_text = .{ 0x10, 0x36, 0x4f }, + .hit = .{ 0xff, 0xe3, 0x96 }, + .@"error" = .{ 0xb3, 0x08, 0x22 }, + .warning = .{ 0x70, 0x49, 0x00 }, + .info = .{ 0x00, 0x5c, 0x8a }, + .hint = .{ 0x36, 0x5b, 0x25 }, + .ansi = .{ .{ 0x14, 0x2d, 0x40 }, .{ 0xa1, 0x1c, 0x30 }, .{ 0x24, 0x5b, 0x30 }, diff --git a/core/themes/doom_one.zig b/core/themes/doom_one.zig index 9db8bdee..1d3df86a 100644 --- a/core/themes/doom_one.zig +++ b/core/themes/doom_one.zig @@ -29,61 +29,59 @@ //! from tab-bar faces (inherit tab-line-*). The doom-modeline package //! (separate) draws on the mode-line face; its accent bar is doom-modeline-bar //! = highlight. +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - search hit #387aa7 -> #594324: 3.01:1 off the page, now 1.50:1 (R8: 1.5:1, the text reading on it) pub const theme = .{ .name = "doom_one", // ~/05-genizah/doomemacs-themes/doom-themes-base.el:13 default :background bg; bg = ~/05-genizah/doomemacs-themes/themes/doom-one-theme.el:56 bg (GUI/default column #282c34) - .bg = .{ 0x28, 0x2c, 0x34 }, + .page = .{ 0x28, 0x2c, 0x34 }, // ~/05-genizah/doomemacs-themes/doom-themes-base.el:13 default :foreground fg; fg = ~/05-genizah/doomemacs-themes/themes/doom-one-theme.el:57 fg (GUI/default column #bbc2cf) - .fg = .{ 0xbb, 0xc2, 0xcf }, + .text = .{ 0xbb, 0xc2, 0xcf }, // ~/05-genizah/doomemacs-themes/doom-themes-base.el:15 region :background region; region = ~/05-genizah/doomemacs-themes/themes/doom-one-theme.el:110 region = (doom-lighten (car bg-alt) #21242b 0.15) = (doom-blend #21242b #FFFFFF 0.85) = #42444a (computed per ~/05-genizah/doomemacs-themes/doom-themes.el:301-343 doom-blend/darken/lighten) - .sel_bg = .{ 0x42, 0x44, 0x4a }, + .selection = .{ 0x42, 0x44, 0x4a }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0xbb, 0xc2, 0xcf }, + .selection_text = .{ 0xbb, 0xc2, 0xcf }, // ~/05-genizah/doomemacs-themes/themes/doom-one-theme.el:145 mode-line-inactive :background modeline-bg-inactive; modeline-bg-inactive = ~/05-genizah/doomemacs-themes/themes/doom-one-theme.el:128 modeline-bg-inactive = bg-alt (car bg-alt) -> #21242b - .tag_bg = .{ 0x21, 0x24, 0x2b }, + .tag = .{ 0x21, 0x24, 0x2b }, // ~/05-genizah/doomemacs-themes/themes/doom-one-theme.el:145 mode-line-inactive :foreground modeline-fg-alt; modeline-fg-alt = ~/05-genizah/doomemacs-themes/themes/doom-one-theme.el:121 modeline-fg-alt = base5 -> #5b6268 #5b6268, adjusted - .tag_fg = .{ 0x86, 0x8b, 0x8f }, + .tag_text = .{ 0x86, 0x8b, 0x8f }, // ~/05-genizah/doomemacs-themes/themes/doom-one-theme.el:142 mode-line :background modeline-bg; modeline-bg = ~/05-genizah/doomemacs-themes/themes/doom-one-theme.el:122 modeline-bg = (doom-darken bg-alt #21242b 0.1) (doom-one-brighter-modeline nil) = (doom-blend #21242b #000000 0.9) = #1d2026 (computed per ~/05-genizah/doomemacs-themes/doom-themes.el:301-343 doom-blend/darken/lighten) #1d2026, adjusted - .tag_active_bg = .{ 0x40, 0x44, 0x4b }, + .tag_focus = .{ 0x40, 0x44, 0x4b }, // ~/05-genizah/doomemacs-themes/themes/doom-one-theme.el:142 mode-line :foreground modeline-fg; modeline-fg = ~/05-genizah/doomemacs-themes/themes/doom-one-theme.el:120 modeline-fg = fg -> #bbc2cf - .tag_active_fg = .{ 0xbb, 0xc2, 0xcf }, + .tag_focus_text = .{ 0xbb, 0xc2, 0xcf }, // the focused grip: ~/05-genizah/doomemacs-themes/themes/doom-one-theme.el:154 doom-modeline-bar :background highlight (the modeline accent bar; also cursor/link/minibuffer-prompt, ~/05-genizah/doomemacs-themes/doom-themes-base.el:17); highlight = ~/05-genizah/doomemacs-themes/themes/doom-one-theme.el:95 highlight = blue -> #51afef - .box = .{ 0x51, 0xaf, 0xef }, - // derived: the grip at rest, the accent #51afef faded toward the unfocused tag #21242b as far as 1.6:1 off it (0.26 of the way) - .box_dim = .{ 0x2d, 0x48, 0x5e }, + .accent = .{ 0x51, 0xaf, 0xef }, // an unsaved grip: the original's modified colour, ~/05-genizah/doomemacs-themes/doom-themes-base.el:412 diff-changed :foreground violet (doom-modeline-buffer-modified not defined in doom-themes); violet = ~/05-genizah/doomemacs-themes/themes/doom-one-theme.el:88 violet (GUI/default column #a9a1e1) - .box_dirty = .{ 0xa9, 0xa1, 0xe1 }, + .dirty = .{ 0xa9, 0xa1, 0xe1 }, // derived: the column grip, the original's type colour, ~/05-genizah/doomemacs-themes/doom-themes-base.el:57 font-lock-type-face :foreground type; type = ~/05-genizah/doomemacs-themes/themes/doom-one-theme.el:106 type = yellow -> #ecbe7b - .column_box = .{ 0xec, 0xbe, 0x7b }, + .column_grip = .{ 0xec, 0xbe, 0x7b }, // ~/05-genizah/doomemacs-themes/doom-themes-base.el:44 font-lock-keyword-face :foreground keywords; keywords = ~/05-genizah/doomemacs-themes/themes/doom-one-theme.el:103 keywords = blue -> #51afef - .kw = .{ 0x51, 0xaf, 0xef }, + .keyword = .{ 0x51, 0xaf, 0xef }, // ~/05-genizah/doomemacs-themes/doom-themes-base.el:56 font-lock-string-face :foreground strings; strings = ~/05-genizah/doomemacs-themes/themes/doom-one-theme.el:107 strings = green -> #98be65 - .str = .{ 0x98, 0xbe, 0x65 }, + .string = .{ 0x98, 0xbe, 0x65 }, // ~/05-genizah/doomemacs-themes/doom-themes-base.el:769 highlight-numbers-number :foreground numbers; numbers = ~/05-genizah/doomemacs-themes/themes/doom-one-theme.el:109 numbers = orange -> #da8548 - .num = .{ 0xda, 0x85, 0x48 }, + .number = .{ 0xda, 0x85, 0x48 }, // ~/05-genizah/doomemacs-themes/doom-themes-base.el:37 font-lock-comment-face :foreground comments; comments = ~/05-genizah/doomemacs-themes/themes/doom-one-theme.el:99 comments = base5 (doom-one-brighter-comments nil) -> #5b6268 .comment = .{ 0x5b, 0x62, 0x68 }, // ~/05-genizah/doomemacs-themes/themes/doom-one-theme.el:137 line-number &override :foreground base4; base4 = ~/05-genizah/doomemacs-themes/themes/doom-one-theme.el:73 base4 (GUI/default column #3f444a) - .lineno = .{ 0x3f, 0x44, 0x4a }, + .line_number = .{ 0x3f, 0x44, 0x4a }, // ~/05-genizah/doomemacs-themes/themes/doom-one-theme.el:138 line-number-current-line &override :foreground fg; fg = ~/05-genizah/doomemacs-themes/themes/doom-one-theme.el:57 fg (GUI/default column #bbc2cf) - .lineno_active = .{ 0xbb, 0xc2, 0xcf }, + .line_number_current = .{ 0xbb, 0xc2, 0xcf }, // derived: none in the original; the page - .scroll_track = .{ 0x28, 0x2c, 0x34 }, + .rail = .{ 0x28, 0x2c, 0x34 }, // derived: none in the original; line numbers, ~/05-genizah/doomemacs-themes/themes/doom-one-theme.el:137 line-number &override :foreground base4; base4 = ~/05-genizah/doomemacs-themes/themes/doom-one-theme.el:73 base4 (GUI/default column #3f444a) #3f444a, adjusted - .scroll_thumb = .{ 0x44, 0x49, 0x4f }, + .rail_thumb = .{ 0x44, 0x49, 0x4f }, // ~/05-genizah/doomemacs-themes/doom-themes-base.el:28 vertical-border :foreground vertical-bar; vertical-bar = ~/05-genizah/doomemacs-themes/themes/doom-one-theme.el:96 vertical-bar = (doom-darken base1 #1c1f24 0.1) = (doom-blend #1c1f24 #000000 0.9) = #191b20 (computed per ~/05-genizah/doomemacs-themes/doom-themes.el:301-343 doom-blend/darken/lighten) #191b20, adjusted - .border = .{ 0x4a, 0x4d, 0x55 }, + .rule = .{ 0x4a, 0x4d, 0x55 }, // ~/05-genizah/doomemacs-themes/doom-themes-base.el:23 lazy-highlight &dark :background (doom-darken highlight #51afef 0.3) = (doom-blend #51afef #000000 0.7) = #387aa7 (computed per ~/05-genizah/doomemacs-themes/doom-themes.el:301-331); isearch inherits lazy-highlight (~/05-genizah/doomemacs-themes/doom-themes-base.el:820) - .search_bg = .{ 0x38, 0x7a, 0xa7 }, - // ~/05-genizah/doomemacs-themes/doom-themes-base.el:23 lazy-highlight &dark :foreground base8 (isearch :inherit lazy-highlight, ~/05-genizah/doomemacs-themes/doom-themes-base.el:820); base8 = ~/05-genizah/doomemacs-themes/themes/doom-one-theme.el:77 base8 (GUI/default column #dfdfdf) - .search_fg = .{ 0xdf, 0xdf, 0xdf }, + .hit = .{ 0x38, 0x7a, 0xa7 }, // ~/05-genizah/doomemacs-themes/doom-themes-base.el:30 error face :foreground error; error = ~/05-genizah/doomemacs-themes/themes/doom-one-theme.el:111 error = red -> #ff6c6b - .diagnostic_error = .{ 0xff, 0x6c, 0x6b }, + .@"error" = .{ 0xff, 0x6c, 0x6b }, // ~/05-genizah/doomemacs-themes/doom-themes-base.el:31 warning face :foreground warning; warning = ~/05-genizah/doomemacs-themes/themes/doom-one-theme.el:112 warning = yellow -> #ecbe7b - .diagnostic_warning = .{ 0xec, 0xbe, 0x7b }, + .warning = .{ 0xec, 0xbe, 0x7b }, // ~/05-genizah/doomemacs-themes/doom-themes-base.el:32 success face :foreground success; success = ~/05-genizah/doomemacs-themes/themes/doom-one-theme.el:113 success = green -> #98be65 - .diagnostic_info = .{ 0x98, 0xbe, 0x65 }, - .palette = .{ + .info = .{ 0x98, 0xbe, 0x65 }, + .ansi = .{ .{ 0x28, 0x2c, 0x34 }, // 0: ~/05-genizah/doomemacs-themes/doom-themes-base.el:198 ansi-color-black :foreground bg; bg = ~/05-genizah/doomemacs-themes/themes/doom-one-theme.el:56 bg (GUI/default column #282c34) .{ 0xff, 0x6c, 0x6b }, // 1: ~/05-genizah/doomemacs-themes/doom-themes-base.el:199 ansi-color-red :foreground red; red = ~/05-genizah/doomemacs-themes/themes/doom-one-theme.el:80 red (GUI/default column #ff6c6b) .{ 0x98, 0xbe, 0x65 }, // 2: ~/05-genizah/doomemacs-themes/doom-themes-base.el:200 ansi-color-green :foreground green; green = ~/05-genizah/doomemacs-themes/themes/doom-one-theme.el:82 green (GUI/default column #98be65) diff --git a/core/themes/doom_one_light.zig b/core/themes/doom_one_light.zig index c95b5c17..b70a9272 100644 --- a/core/themes/doom_one_light.zig +++ b/core/themes/doom_one_light.zig @@ -31,61 +31,63 @@ //! because ansi-color-black/white map to bg/fg; tabline_fg = fg-alt #c6c7c7 is //! very low-contrast on bg-alt; the variable is named modeline-bg-alt-inactive //! in this theme. +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - focused grip #4078f2 -> #3167df: 2.42:1 on the focused tag, now 3.04:1 (R6: 3:1) +//! - unsaved grip #b751b6 -> #ab45aa: 3.30:1 on the tag, now 3.86:1 (R6: 3:1 on both tags) +//! - search hit #c2d3f7 -> #f4c783: 1.44:1 off the page, now 1.51:1 (R8: 1.5:1, the text reading on it) +//! - error #e45649 -> #ce4136: 3.51:1 on the page, now 4.54:1 (R9: 4.5:1, told from the text and the others) +//! - info #50a14f -> #318332: 3.07:1 on the page, now 4.55:1 (R9: 4.5:1, told from the text and the others) pub const theme = .{ .name = "doom_one_light", // ~/05-genizah/doomemacs-themes/doom-themes-base.el:13 default :background bg; bg = ~/05-genizah/doomemacs-themes/themes/doom-one-light-theme.el:47 bg (GUI/default column #fafafa) - .bg = .{ 0xfa, 0xfa, 0xfa }, + .page = .{ 0xfa, 0xfa, 0xfa }, // ~/05-genizah/doomemacs-themes/doom-themes-base.el:13 default :foreground fg; fg = ~/05-genizah/doomemacs-themes/themes/doom-one-light-theme.el:48 fg (GUI/default column #383a42) - .fg = .{ 0x38, 0x3a, 0x42 }, + .text = .{ 0x38, 0x3a, 0x42 }, // ~/05-genizah/doomemacs-themes/doom-themes-base.el:15 region :background region; region = ~/05-genizah/doomemacs-themes/themes/doom-one-light-theme.el:101 region = (doom-darken (car bg-alt) #f0f0f0 0.1) = (doom-blend #f0f0f0 #000000 0.9) = #d8d8d8 (computed per ~/05-genizah/doomemacs-themes/doom-themes.el:301-343 doom-blend/darken/lighten) - .sel_bg = .{ 0xd8, 0xd8, 0xd8 }, + .selection = .{ 0xd8, 0xd8, 0xd8 }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0x38, 0x3a, 0x42 }, + .selection_text = .{ 0x38, 0x3a, 0x42 }, // ~/05-genizah/doomemacs-themes/themes/doom-one-light-theme.el:138 mode-line-inactive :background modeline-bg-inactive; modeline-bg-inactive = ~/05-genizah/doomemacs-themes/themes/doom-one-light-theme.el:121 modeline-bg-inactive = (doom-darken bg #fafafa 0.1) = (doom-blend #fafafa #000000 0.9) = #e1e1e1 (computed per ~/05-genizah/doomemacs-themes/doom-themes.el:301-343 doom-blend/darken/lighten) - .tag_bg = .{ 0xe1, 0xe1, 0xe1 }, + .tag = .{ 0xe1, 0xe1, 0xe1 }, // ~/05-genizah/doomemacs-themes/themes/doom-one-light-theme.el:138 mode-line-inactive :foreground modeline-fg-alt; modeline-fg-alt = ~/05-genizah/doomemacs-themes/themes/doom-one-light-theme.el:112 modeline-fg-alt = (doom-blend violet #b751b6 base4 #9ca0a4 0.2) (doom-one-light-brighter-modeline nil) = #a190a7 (computed per ~/05-genizah/doomemacs-themes/doom-themes.el:301-343 doom-blend/darken/lighten) #a190a7, adjusted - .tag_fg = .{ 0x6a, 0x5f, 0x6e }, + .tag_text = .{ 0x6a, 0x5f, 0x6e }, // ~/05-genizah/doomemacs-themes/themes/doom-one-light-theme.el:135 mode-line :background modeline-bg; modeline-bg = ~/05-genizah/doomemacs-themes/themes/doom-one-light-theme.el:115 modeline-bg = base1 (doom-one-light-brighter-modeline nil) -> #e7e7e7 #e7e7e7, adjusted - .tag_active_bg = .{ 0xc8, 0xc8, 0xc9 }, + .tag_focus = .{ 0xc8, 0xc8, 0xc9 }, // ~/05-genizah/doomemacs-themes/themes/doom-one-light-theme.el:135 mode-line :foreground modeline-fg; modeline-fg = ~/05-genizah/doomemacs-themes/themes/doom-one-light-theme.el:111 modeline-fg = fg -> #383a42 - .tag_active_fg = .{ 0x38, 0x3a, 0x42 }, + .tag_focus_text = .{ 0x38, 0x3a, 0x42 }, // the focused grip: ~/05-genizah/doomemacs-themes/themes/doom-one-light-theme.el:152 doom-modeline-bar :background highlight (the modeline accent bar; also cursor/link/minibuffer-prompt, ~/05-genizah/doomemacs-themes/doom-themes-base.el:17); highlight = ~/05-genizah/doomemacs-themes/themes/doom-one-light-theme.el:86 highlight = blue -> #4078f2 - .box = .{ 0x40, 0x78, 0xf2 }, - // derived: the grip at rest, the accent #4078f2 faded toward the unfocused tag #e1e1e1 as far as 1.6:1 off it (0.46 of the way) - .box_dim = .{ 0x97, 0xb1, 0xe9 }, + .accent = .{ 0x40, 0x78, 0xf2 }, // an unsaved grip: the original's modified colour, ~/05-genizah/doomemacs-themes/doom-themes-base.el:412 diff-changed :foreground violet (doom-modeline-buffer-modified not defined in doom-themes); violet = ~/05-genizah/doomemacs-themes/themes/doom-one-light-theme.el:79 violet (GUI/default column #b751b6) - .box_dirty = .{ 0xb7, 0x51, 0xb6 }, + .dirty = .{ 0xb7, 0x51, 0xb6 }, // derived: the column grip, the original's type colour, ~/05-genizah/doomemacs-themes/doom-themes-base.el:57 font-lock-type-face :foreground type; type = ~/05-genizah/doomemacs-themes/themes/doom-one-light-theme.el:97 type = yellow -> #986801 - .column_box = .{ 0x98, 0x68, 0x01 }, + .column_grip = .{ 0x98, 0x68, 0x01 }, // ~/05-genizah/doomemacs-themes/doom-themes-base.el:44 font-lock-keyword-face :foreground keywords; keywords = ~/05-genizah/doomemacs-themes/themes/doom-one-light-theme.el:94 keywords = red -> #e45649 - .kw = .{ 0xe4, 0x56, 0x49 }, + .keyword = .{ 0xe4, 0x56, 0x49 }, // ~/05-genizah/doomemacs-themes/doom-themes-base.el:56 font-lock-string-face :foreground strings; strings = ~/05-genizah/doomemacs-themes/themes/doom-one-light-theme.el:98 strings = green -> #50a14f - .str = .{ 0x50, 0xa1, 0x4f }, + .string = .{ 0x50, 0xa1, 0x4f }, // ~/05-genizah/doomemacs-themes/doom-themes-base.el:769 highlight-numbers-number :foreground numbers; numbers = ~/05-genizah/doomemacs-themes/themes/doom-one-light-theme.el:100 numbers = orange -> #da8548 - .num = .{ 0xda, 0x85, 0x48 }, + .number = .{ 0xda, 0x85, 0x48 }, // ~/05-genizah/doomemacs-themes/doom-themes-base.el:37 font-lock-comment-face :foreground comments; comments = ~/05-genizah/doomemacs-themes/themes/doom-one-light-theme.el:90 comments = base4 (doom-one-light-brighter-comments nil) -> #9ca0a4 .comment = .{ 0x9c, 0xa0, 0xa4 }, // ~/05-genizah/doomemacs-themes/themes/doom-one-light-theme.el:132 line-number &override :foreground (doom-lighten base4 #9ca0a4 0.15) = (doom-blend #9ca0a4 #FFFFFF 0.85) = #aaaeb1 (computed per ~/05-genizah/doomemacs-themes/doom-themes.el:301-343) - .lineno = .{ 0xaa, 0xae, 0xb1 }, + .line_number = .{ 0xaa, 0xae, 0xb1 }, // ~/05-genizah/doomemacs-themes/themes/doom-one-light-theme.el:133 line-number-current-line &override :foreground base8; base8 = ~/05-genizah/doomemacs-themes/themes/doom-one-light-theme.el:68 base8 (GUI/default column #1b2229) - .lineno_active = .{ 0x1b, 0x22, 0x29 }, + .line_number_current = .{ 0x1b, 0x22, 0x29 }, // derived: none in the original; the page - .scroll_track = .{ 0xfa, 0xfa, 0xfa }, + .rail = .{ 0xfa, 0xfa, 0xfa }, // derived: none in the original; line numbers, ~/05-genizah/doomemacs-themes/themes/doom-one-light-theme.el:132 line-number &override :foreground (doom-lighten base4 #9ca0a4 0.15) = (doom-blend #9ca0a4 #FFFFFF 0.85) = #aaaeb1 (computed per ~/05-genizah/doomemacs-themes/doom-themes.el:301-343) - .scroll_thumb = .{ 0xaa, 0xae, 0xb1 }, + .rail_thumb = .{ 0xaa, 0xae, 0xb1 }, // ~/05-genizah/doomemacs-themes/doom-themes-base.el:28 vertical-border :foreground vertical-bar; vertical-bar = ~/05-genizah/doomemacs-themes/themes/doom-one-light-theme.el:87 vertical-bar = (doom-darken base2 #dfdfdf 0.1) = (doom-blend #dfdfdf #000000 0.9) = #c8c8c8 (computed per ~/05-genizah/doomemacs-themes/doom-themes.el:301-343 doom-blend/darken/lighten) - .border = .{ 0xc8, 0xc8, 0xc8 }, + .rule = .{ 0xc8, 0xc8, 0xc8 }, // ~/05-genizah/doomemacs-themes/doom-themes-base.el:24 lazy-highlight &light :background (doom-blend bg #fafafa highlight #4078f2 0.7) = #c2d3f7 (computed per ~/05-genizah/doomemacs-themes/doom-themes.el:301-319); isearch inherits lazy-highlight (~/05-genizah/doomemacs-themes/doom-themes-base.el:820) - .search_bg = .{ 0xc2, 0xd3, 0xf7 }, - // ~/05-genizah/doomemacs-themes/doom-themes-base.el:24 lazy-highlight &light :foreground base0 (isearch :inherit lazy-highlight, ~/05-genizah/doomemacs-themes/doom-themes-base.el:820); base0 = ~/05-genizah/doomemacs-themes/themes/doom-one-light-theme.el:60 base0 (GUI/default column #f0f0f0) - .search_fg = .{ 0xf0, 0xf0, 0xf0 }, + .hit = .{ 0xc2, 0xd3, 0xf7 }, // ~/05-genizah/doomemacs-themes/doom-themes-base.el:30 error face :foreground error; error = ~/05-genizah/doomemacs-themes/themes/doom-one-light-theme.el:102 error = red -> #e45649 - .diagnostic_error = .{ 0xe4, 0x56, 0x49 }, + .@"error" = .{ 0xe4, 0x56, 0x49 }, // ~/05-genizah/doomemacs-themes/doom-themes-base.el:31 warning face :foreground warning; warning = ~/05-genizah/doomemacs-themes/themes/doom-one-light-theme.el:103 warning = yellow -> #986801 - .diagnostic_warning = .{ 0x98, 0x68, 0x01 }, + .warning = .{ 0x98, 0x68, 0x01 }, // ~/05-genizah/doomemacs-themes/doom-themes-base.el:32 success face :foreground success; success = ~/05-genizah/doomemacs-themes/themes/doom-one-light-theme.el:104 success = green -> #50a14f - .diagnostic_info = .{ 0x50, 0xa1, 0x4f }, - .palette = .{ + .info = .{ 0x50, 0xa1, 0x4f }, + .ansi = .{ .{ 0xfa, 0xfa, 0xfa }, // 0: ~/05-genizah/doomemacs-themes/doom-themes-base.el:198 ansi-color-black :foreground bg; bg = ~/05-genizah/doomemacs-themes/themes/doom-one-light-theme.el:47 bg (GUI/default column #fafafa) .{ 0xe4, 0x56, 0x49 }, // 1: ~/05-genizah/doomemacs-themes/doom-themes-base.el:199 ansi-color-red :foreground red; red = ~/05-genizah/doomemacs-themes/themes/doom-one-light-theme.el:71 red (GUI/default column #e45649) .{ 0x50, 0xa1, 0x4f }, // 2: ~/05-genizah/doomemacs-themes/doom-themes-base.el:200 ansi-color-green :foreground green; green = ~/05-genizah/doomemacs-themes/themes/doom-one-light-theme.el:73 green (GUI/default column #50a14f) diff --git a/core/themes/dracula.zig b/core/themes/dracula.zig index 16c6ba43..53bd74eb 100644 --- a/core/themes/dracula.zig +++ b/core/themes/dracula.zig @@ -8,57 +8,56 @@ //! Adjusted to meet pardes's floors (chrome only; text, syntax and ANSI are untouched): //! - focused tag ground #282a36 -> #41434d: 1.11:1 off the unfocused #21222c, pardes needs 1.5:1 on a dark page //! - unfocused tag text #6272a4 -> #7b89b3: 3.36:1 on #21222c, tag text needs 4.5:1 to be read and run +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - focused grip #94527e -> #be78a6: 1.76:1 on the focused tag, now 3.01:1 (R6: 3:1) +//! - search hit #947151 -> #004c63: 3.21:1 off the page, now 1.50:1 (R8: 1.5:1, the text reading on it) pub const theme = .{ .name = "dracula", // ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:185 editor.background: *BG (~/05-genizah/dracula-visual-studio-code/src/dracula.yml:10) - .bg = .{ 0x28, 0x2a, 0x36 }, + .page = .{ 0x28, 0x2a, 0x36 }, // ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:184 editor.foreground: *FG (~/05-genizah/dracula-visual-studio-code/src/dracula.yml:11) - .fg = .{ 0xf8, 0xf8, 0xf2 }, + .text = .{ 0xf8, 0xf8, 0xf2 }, // ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:189 editor.selectionBackground: *SELECTION (~/05-genizah/dracula-visual-studio-code/src/dracula.yml:12) - .sel_bg = .{ 0x44, 0x47, 0x5a }, + .selection = .{ 0x44, 0x47, 0x5a }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0xf8, 0xf8, 0xf2 }, + .selection_text = .{ 0xf8, 0xf8, 0xf2 }, // ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:178 tab.inactiveBackground: *BGDark (~/05-genizah/dracula-visual-studio-code/src/dracula.yml:50) - .tag_bg = .{ 0x21, 0x22, 0x2c }, + .tag = .{ 0x21, 0x22, 0x2c }, // ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:179 tab.inactiveForeground: *COMMENT (~/05-genizah/dracula-visual-studio-code/src/dracula.yml:13) #6272a4, adjusted - .tag_fg = .{ 0x7b, 0x89, 0xb3 }, + .tag_text = .{ 0x7b, 0x89, 0xb3 }, // ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:172 tab.activeBackground: *BG (~/05-genizah/dracula-visual-studio-code/src/dracula.yml:10) #282a36, adjusted - .tag_active_bg = .{ 0x41, 0x43, 0x4d }, + .tag_focus = .{ 0x41, 0x43, 0x4d }, // ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:173 tab.activeForeground: *FG (~/05-genizah/dracula-visual-studio-code/src/dracula.yml:11) - .tag_active_fg = .{ 0xf8, 0xf8, 0xf2 }, + .tag_focus_text = .{ 0xf8, 0xf8, 0xf2 }, // the focused grip: ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:175 tab.activeBorderTop: !alpha [*PINK, 80] over BG - .box = .{ 0x94, 0x52, 0x7e }, - // derived: the grip at rest, the accent #94527e faded toward the unfocused tag #21222c as far as 1.6:1 off it (0.50 of the way) - .box_dim = .{ 0x5b, 0x3a, 0x55 }, + .accent = .{ 0x94, 0x52, 0x7e }, // an unsaved grip: the original's warning colour, ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:250 editorWarning.foreground: *CYAN (~/05-genizah/dracula-visual-studio-code/src/dracula.yml:14) - .box_dirty = .{ 0x8b, 0xe9, 0xfd }, + .dirty = .{ 0x8b, 0xe9, 0xfd }, // derived: the column grip, the original's function colour, ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:688 tokenColors "Function names" *GREEN - .column_box = .{ 0x50, 0xfa, 0x7b }, + .column_grip = .{ 0x50, 0xfa, 0x7b }, // ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:725 tokenColors "Keywords" *PINK - .kw = .{ 0xff, 0x79, 0xc6 }, + .keyword = .{ 0xff, 0x79, 0xc6 }, // ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:978 tokenColors "Strings" *YELLOW - .str = .{ 0xf1, 0xfa, 0x8c }, + .string = .{ 0xf1, 0xfa, 0x8c }, // ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:640 tokenColors "Constants" *PURPLE - .num = .{ 0xbd, 0x93, 0xf9 }, + .number = .{ 0xbd, 0x93, 0xf9 }, // ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:601 tokenColors "Comments" *COMMENT .comment = .{ 0x62, 0x72, 0xa4 }, // ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:186 editorLineNumber.foreground: *COMMENT (~/05-genizah/dracula-visual-studio-code/src/dracula.yml:13) - .lineno = .{ 0x62, 0x72, 0xa4 }, + .line_number = .{ 0x62, 0x72, 0xa4 }, // derived: none in the original; the page - .scroll_track = .{ 0x28, 0x2a, 0x36 }, + .rail = .{ 0x28, 0x2a, 0x36 }, // derived: none in the original; line numbers, ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:186 editorLineNumber.foreground: *COMMENT (~/05-genizah/dracula-visual-studio-code/src/dracula.yml:13) - .scroll_thumb = .{ 0x62, 0x72, 0xa4 }, + .rail_thumb = .{ 0x62, 0x72, 0xa4 }, // ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:167 editorGroup.border: *PURPLE (~/05-genizah/dracula-visual-studio-code/src/dracula.yml:18) - .border = .{ 0xbd, 0x93, 0xf9 }, + .rule = .{ 0xbd, 0x93, 0xf9 }, // ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:197 editor.findMatchBackground: !alpha [*ORANGE, 80] over BG - .search_bg = .{ 0x94, 0x71, 0x51 }, - // derived: the original keeps text colours over a match; the page's text, whichever reads better on it - .search_fg = .{ 0xf8, 0xf8, 0xf2 }, + .hit = .{ 0x94, 0x71, 0x51 }, // ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:248 editorError.foreground: *RED (~/05-genizah/dracula-visual-studio-code/src/dracula.yml:19) - .diagnostic_error = .{ 0xff, 0x55, 0x55 }, + .@"error" = .{ 0xff, 0x55, 0x55 }, // ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:250 editorWarning.foreground: *CYAN (~/05-genizah/dracula-visual-studio-code/src/dracula.yml:14) - .diagnostic_warning = .{ 0x8b, 0xe9, 0xfd }, - .palette = .{ + .warning = .{ 0x8b, 0xe9, 0xfd }, + .ansi = .{ .{ 0x21, 0x22, 0x2c }, // 0: ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:67 terminal.ansiBlack: *COLOR0 (~/05-genizah/dracula-visual-studio-code/src/dracula.yml:22) .{ 0xff, 0x55, 0x55 }, // 1: ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:68 terminal.ansiRed: *COLOR1 (~/05-genizah/dracula-visual-studio-code/src/dracula.yml:23) .{ 0x50, 0xfa, 0x7b }, // 2: ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:69 terminal.ansiGreen: *COLOR2 (~/05-genizah/dracula-visual-studio-code/src/dracula.yml:24) diff --git a/core/themes/dracula_soft.zig b/core/themes/dracula_soft.zig index 9a8d5788..74396635 100644 --- a/core/themes/dracula_soft.zig +++ b/core/themes/dracula_soft.zig @@ -8,57 +8,56 @@ //! Adjusted to meet pardes's floors (chrome only; text, syntax and ANSI are untouched): //! - focused tag ground #282a36 -> #454751: 1.05:1 off the unfocused #272727, pardes needs 1.5:1 on a dark page //! - unfocused tag text #7b7f8b -> #8b8e99: 3.74:1 on #272727, tag text needs 4.5:1 to be read and run +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - focused grip #7d6976 -> #a28d9b: 1.83:1 on the focused tag, now 3.00:1 (R6: 3:1) +//! - search hit #947151 -> #004c63: 3.21:1 off the page, now 1.50:1 (R8: 1.5:1, the text reading on it) pub const theme = .{ .name = "dracula_soft", // ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:185 editor.background: *BG (~/05-genizah/dracula-visual-studio-code/src/dracula.yml:10) - .bg = .{ 0x28, 0x2a, 0x36 }, + .page = .{ 0x28, 0x2a, 0x36 }, // ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:184 editor.foreground: *FG (~/05-genizah/dracula-visual-studio-code/src/dracula.yml:11); Soft: desaturate(20) (~/05-genizah/dracula-visual-studio-code/scripts/generate.js:44) - .fg = .{ 0xf6, 0xf6, 0xf4 }, + .text = .{ 0xf6, 0xf6, 0xf4 }, // ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:189 editor.selectionBackground: *SELECTION (~/05-genizah/dracula-visual-studio-code/src/dracula.yml:12) - .sel_bg = .{ 0x44, 0x47, 0x5a }, + .selection = .{ 0x44, 0x47, 0x5a }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0xf6, 0xf6, 0xf4 }, + .selection_text = .{ 0xf6, 0xf6, 0xf4 }, // ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:178 tab.inactiveBackground: *BGDark (~/05-genizah/dracula-visual-studio-code/src/dracula.yml:50); Soft: desaturate(20) (~/05-genizah/dracula-visual-studio-code/scripts/generate.js:44) - .tag_bg = .{ 0x27, 0x27, 0x27 }, + .tag = .{ 0x27, 0x27, 0x27 }, // ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:179 tab.inactiveForeground: *COMMENT (~/05-genizah/dracula-visual-studio-code/src/dracula.yml:13); Soft: desaturate(20) (~/05-genizah/dracula-visual-studio-code/scripts/generate.js:44) #7b7f8b, adjusted - .tag_fg = .{ 0x8b, 0x8e, 0x99 }, + .tag_text = .{ 0x8b, 0x8e, 0x99 }, // ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:172 tab.activeBackground: *BG (~/05-genizah/dracula-visual-studio-code/src/dracula.yml:10) #282a36, adjusted - .tag_active_bg = .{ 0x45, 0x47, 0x51 }, + .tag_focus = .{ 0x45, 0x47, 0x51 }, // ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:173 tab.activeForeground: *FG (~/05-genizah/dracula-visual-studio-code/src/dracula.yml:11); Soft: desaturate(20) (~/05-genizah/dracula-visual-studio-code/scripts/generate.js:44) - .tag_active_fg = .{ 0xf6, 0xf6, 0xf4 }, + .tag_focus_text = .{ 0xf6, 0xf6, 0xf4 }, // the focused grip: ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:175 tab.activeBorderTop: !alpha [*PINK, 80] over BG; Soft: desaturate(20) (~/05-genizah/dracula-visual-studio-code/scripts/generate.js:44) - .box = .{ 0x7d, 0x69, 0x76 }, - // derived: the grip at rest, the accent #7d6976 faded toward the unfocused tag #272727 as far as 1.6:1 off it (0.46 of the way) - .box_dim = .{ 0x4f, 0x45, 0x4b }, + .accent = .{ 0x7d, 0x69, 0x76 }, // an unsaved grip: the original's warning colour, ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:250 editorWarning.foreground: *CYAN (~/05-genizah/dracula-visual-studio-code/src/dracula.yml:14); Soft: desaturate(20) (~/05-genizah/dracula-visual-studio-code/scripts/generate.js:44) - .box_dirty = .{ 0x97, 0xe1, 0xf1 }, + .dirty = .{ 0x97, 0xe1, 0xf1 }, // derived: the column grip, the original's function colour, ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:688 tokenColors "Function names" *GREEN; Soft: desaturate(20) - .column_box = .{ 0x62, 0xe8, 0x84 }, + .column_grip = .{ 0x62, 0xe8, 0x84 }, // ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:725 tokenColors "Keywords" *PINK; Soft: desaturate(20) - .kw = .{ 0xf2, 0x86, 0xc4 }, + .keyword = .{ 0xf2, 0x86, 0xc4 }, // ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:978 tokenColors "Strings" *YELLOW; Soft: desaturate(20) - .str = .{ 0xe7, 0xee, 0x98 }, + .string = .{ 0xe7, 0xee, 0x98 }, // ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:640 tokenColors "Constants" *PURPLE; Soft: desaturate(20) - .num = .{ 0xbf, 0x9e, 0xee }, + .number = .{ 0xbf, 0x9e, 0xee }, // ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:601 tokenColors "Comments" *COMMENT; Soft: desaturate(20) .comment = .{ 0x7b, 0x7f, 0x8b }, // ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:186 editorLineNumber.foreground: *COMMENT (~/05-genizah/dracula-visual-studio-code/src/dracula.yml:13); Soft: desaturate(20) (~/05-genizah/dracula-visual-studio-code/scripts/generate.js:44) - .lineno = .{ 0x7b, 0x7f, 0x8b }, + .line_number = .{ 0x7b, 0x7f, 0x8b }, // derived: none in the original; the page - .scroll_track = .{ 0x28, 0x2a, 0x36 }, + .rail = .{ 0x28, 0x2a, 0x36 }, // derived: none in the original; line numbers, ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:186 editorLineNumber.foreground: *COMMENT (~/05-genizah/dracula-visual-studio-code/src/dracula.yml:13); Soft: desaturate(20) (~/05-genizah/dracula-visual-studio-code/scripts/generate.js:44) - .scroll_thumb = .{ 0x7b, 0x7f, 0x8b }, + .rail_thumb = .{ 0x7b, 0x7f, 0x8b }, // ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:167 editorGroup.border: *PURPLE (~/05-genizah/dracula-visual-studio-code/src/dracula.yml:18); Soft: desaturate(20) (~/05-genizah/dracula-visual-studio-code/scripts/generate.js:44) - .border = .{ 0xbf, 0x9e, 0xee }, + .rule = .{ 0xbf, 0x9e, 0xee }, // ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:197 editor.findMatchBackground: !alpha [*ORANGE, 80] over BG - .search_bg = .{ 0x94, 0x71, 0x51 }, - // derived: the original keeps text colours over a match; the page's text, whichever reads better on it - .search_fg = .{ 0xf6, 0xf6, 0xf4 }, + .hit = .{ 0x94, 0x71, 0x51 }, // ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:248 editorError.foreground: *RED (~/05-genizah/dracula-visual-studio-code/src/dracula.yml:19); Soft: desaturate(20) (~/05-genizah/dracula-visual-studio-code/scripts/generate.js:44) - .diagnostic_error = .{ 0xee, 0x66, 0x66 }, + .@"error" = .{ 0xee, 0x66, 0x66 }, // ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:250 editorWarning.foreground: *CYAN (~/05-genizah/dracula-visual-studio-code/src/dracula.yml:14); Soft: desaturate(20) (~/05-genizah/dracula-visual-studio-code/scripts/generate.js:44) - .diagnostic_warning = .{ 0x97, 0xe1, 0xf1 }, - .palette = .{ + .warning = .{ 0x97, 0xe1, 0xf1 }, + .ansi = .{ .{ 0x27, 0x27, 0x27 }, // 0: ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:67 terminal.ansiBlack: *COLOR0 (~/05-genizah/dracula-visual-studio-code/src/dracula.yml:22); Soft: desaturate(20) (~/05-genizah/dracula-visual-studio-code/scripts/generate.js:44) .{ 0xee, 0x66, 0x66 }, // 1: ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:68 terminal.ansiRed: *COLOR1 (~/05-genizah/dracula-visual-studio-code/src/dracula.yml:23); Soft: desaturate(20) (~/05-genizah/dracula-visual-studio-code/scripts/generate.js:44) .{ 0x62, 0xe8, 0x84 }, // 2: ~/05-genizah/dracula-visual-studio-code/src/dracula.yml:69 terminal.ansiGreen: *COLOR2 (~/05-genizah/dracula-visual-studio-code/src/dracula.yml:24); Soft: desaturate(20) (~/05-genizah/dracula-visual-studio-code/scripts/generate.js:44) diff --git a/core/themes/duckbones.zig b/core/themes/duckbones.zig index c4f86997..dd2d92e7 100644 --- a/core/themes/duckbones.zig +++ b/core/themes/duckbones.zig @@ -15,63 +15,63 @@ //! (bold only), so it inherits Normal. TabLine links to StatusLine, TabLineFill //! to StatusLineNC. Accent is the lualine normal-mode a bg, a muted neutral //! (the theme is contrast-based, not hue-accented). Modified = Changed fg. +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - focused grip #4f5570 -> #7e85a2: 1.51:1 on the focused tag, now 3.04:1 (R6: 3:1) +//! - error #e03600 -> #e63c0d: 4.24:1 on the page, now 4.53:1 (R9: 4.5:1, told from the text and the others) +//! - hint #795ccc -> #8569da: 3.81:1 on the page, now 4.54:1 (R9: 4.5:1, told from the text and the others) pub const theme = .{ .name = "duckbones", // ~/05-genizah/zenbones.nvim/colors/duckbones.vim:34 Normal guibg - .bg = .{ 0x0e, 0x10, 0x1a }, + .page = .{ 0x0e, 0x10, 0x1a }, // ~/05-genizah/zenbones.nvim/colors/duckbones.vim:34 Normal guifg - .fg = .{ 0xeb, 0xef, 0xc0 }, + .text = .{ 0xeb, 0xef, 0xc0 }, // ~/05-genizah/zenbones.nvim/colors/duckbones.vim:212 Visual guibg - .sel_bg = .{ 0x37, 0x38, 0x2d }, + .selection = .{ 0x37, 0x38, 0x2d }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0xeb, 0xef, 0xc0 }, + .selection_text = .{ 0xeb, 0xef, 0xc0 }, // ~/05-genizah/zenbones.nvim/colors/duckbones.vim:199 StatusLineNC guibg - .tag_bg = .{ 0x1a, 0x1d, 0x2b }, + .tag = .{ 0x1a, 0x1d, 0x2b }, // ~/05-genizah/zenbones.nvim/colors/duckbones.vim:199 StatusLineNC guifg - .tag_fg = .{ 0xf0, 0xf5, 0xc4 }, + .tag_text = .{ 0xf0, 0xf5, 0xc4 }, // ~/05-genizah/zenbones.nvim/colors/duckbones.vim:196 StatusLine guibg #232738, adjusted - .tag_active_bg = .{ 0x35, 0x3b, 0x51 }, + .tag_focus = .{ 0x35, 0x3b, 0x51 }, // ~/05-genizah/zenbones.nvim/colors/duckbones.vim:196 StatusLine guifg - .tag_active_fg = .{ 0xeb, 0xef, 0xc0 }, + .tag_focus_text = .{ 0xeb, 0xef, 0xc0 }, // the focused grip: ~/05-genizah/zenbones.nvim/lua/lualine/themes/duckbones_default.lua:8 normal.a bg (lualine theme, default ness; generator derives it as PmenuSbar.bg.abs_da(3), lua/zenbones/shipwright/runners/lualine.lua:66) - .box = .{ 0x4f, 0x55, 0x70 }, - // derived: the grip at rest, the accent #444a67 faded toward the unfocused tag #1a1d2b as far as 1.6:1 off it (0.76 of the way) - .box_dim = .{ 0x3a, 0x3f, 0x59 }, + .accent = .{ 0x4f, 0x55, 0x70 }, // an unsaved grip: the original's modified colour, ~/05-genizah/zenbones.nvim/colors/duckbones.vim:42 Changed guifg - .box_dirty = .{ 0x00, 0xa3, 0xcb }, + .dirty = .{ 0x00, 0xa3, 0xcb }, // derived: the column grip, the original's type colour, ~/05-genizah/zenbones.nvim/colors/duckbones.vim:208 Type guifg - .column_box = .{ 0x89, 0x8f, 0xb1 }, + .column_grip = .{ 0x89, 0x8f, 0xb1 }, // ~/05-genizah/zenbones.nvim/colors/duckbones.vim:193 Statement guifg (no Keyword group defined; Vim default links Keyword to Statement) - .kw = .{ 0x79, 0x5c, 0xcc }, + .keyword = .{ 0x79, 0x5c, 0xcc }, // ~/05-genizah/zenbones.nvim/colors/duckbones.vim:202 String guifg - .str = .{ 0xae, 0xb1, 0x8d }, + .string = .{ 0xae, 0xb1, 0x8d }, // ~/05-genizah/zenbones.nvim/colors/duckbones.vim:165 Number guifg - .num = .{ 0xae, 0xb1, 0x8d }, + .number = .{ 0xae, 0xb1, 0x8d }, // ~/05-genizah/zenbones.nvim/colors/duckbones.vim:48 Comment guifg .comment = .{ 0x5a, 0x5f, 0x7b }, // ~/05-genizah/zenbones.nvim/colors/duckbones.vim:151 LineNr guifg - .lineno = .{ 0x51, 0x58, 0x7a }, + .line_number = .{ 0x51, 0x58, 0x7a }, // ~/05-genizah/zenbones.nvim/colors/duckbones.vim:63 CursorLineNr guifg - .lineno_active = .{ 0xeb, 0xef, 0xc0 }, + .line_number_current = .{ 0xeb, 0xef, 0xc0 }, // ~/05-genizah/zenbones.nvim/colors/duckbones.vim:168 PmenuSbar guibg - .scroll_track = .{ 0x4b, 0x51, 0x70 }, + .rail = .{ 0x4b, 0x51, 0x70 }, // ~/05-genizah/zenbones.nvim/colors/duckbones.vim:170 PmenuThumb guibg - .scroll_thumb = .{ 0x75, 0x7d, 0xa3 }, + .rail_thumb = .{ 0x75, 0x7d, 0xa3 }, // ~/05-genizah/zenbones.nvim/colors/duckbones.vim:219 WinSeparator guifg - .border = .{ 0x51, 0x58, 0x7a }, + .rule = .{ 0x51, 0x58, 0x7a }, // ~/05-genizah/zenbones.nvim/colors/duckbones.vim:174 Search guibg - .search_bg = .{ 0x4d, 0x31, 0x91 }, - // ~/05-genizah/zenbones.nvim/colors/duckbones.vim:174 Search guifg - .search_fg = .{ 0xeb, 0xef, 0xc0 }, + .hit = .{ 0x4d, 0x31, 0x91 }, // ~/05-genizah/zenbones.nvim/colors/duckbones.vim:114 Error guifg via DiagnosticError->Error (link :115) - .diagnostic_error = .{ 0xe0, 0x36, 0x00 }, + .@"error" = .{ 0xe0, 0x36, 0x00 }, // ~/05-genizah/zenbones.nvim/colors/duckbones.vim:213 WarningMsg guifg via DiagnosticWarn->WarningMsg (link :214) - .diagnostic_warning = .{ 0xe3, 0x95, 0x00 }, + .warning = .{ 0xe3, 0x95, 0x00 }, // ~/05-genizah/zenbones.nvim/colors/duckbones.vim:73 DiagnosticInfo guifg - .diagnostic_info = .{ 0x00, 0xa3, 0xcb }, + .info = .{ 0x00, 0xa3, 0xcb }, // ~/05-genizah/zenbones.nvim/colors/duckbones.vim:68 DiagnosticHint guifg - .diagnostic_hint = .{ 0x79, 0x5c, 0xcc }, - .palette = .{ + .hint = .{ 0x79, 0x5c, 0xcc }, + .ansi = .{ .{ 0x0e, 0x10, 0x1a }, // 0: ~/05-genizah/zenbones.nvim/colors/duckbones.vim:18 g:terminal_color_0 .{ 0xe0, 0x36, 0x00 }, // 1: ~/05-genizah/zenbones.nvim/colors/duckbones.vim:19 g:terminal_color_1 .{ 0x5d, 0xcd, 0x97 }, // 2: ~/05-genizah/zenbones.nvim/colors/duckbones.vim:20 g:terminal_color_2 diff --git a/core/themes/dusk.zig b/core/themes/dusk.zig index 06f90ab2..30db779f 100644 --- a/core/themes/dusk.zig +++ b/core/themes/dusk.zig @@ -3,36 +3,32 @@ //! designed together. See docs/typ/themes.typ for the shared role contract. pub const theme = .{ .name = "dusk", - .bg = .{ 0x39, 0x32, 0x3b }, - .fg = .{ 0xc3, 0xb6, 0xc1 }, - .tag_bg = .{ 0x2c, 0x26, 0x30 }, - .tag_fg = .{ 0xc6, 0xb6, 0xc5 }, - .tag_name_fg = .{ 0x96, 0xc9, 0xb8 }, - .tag_active_name_fg = .{ 0xa1, 0xd5, 0xc4 }, - .tag_active_bg = .{ 0x3b, 0x2f, 0x3b }, - .tag_active_fg = .{ 0xd2, 0xc2, 0xd1 }, - .box = .{ 0xed, 0xb0, 0x92 }, - .box_dim = .{ 0x74, 0x54, 0x69 }, - .column_box = .{ 0xbd, 0xce, 0x8e }, - .column_box_dim = .{ 0x75, 0x7a, 0x5f }, - .kw = .{ 0xd0, 0xa7, 0xf2 }, - .str = .{ 0xbe, 0xd1, 0x8b }, - .num = .{ 0xf7, 0xb2, 0x83 }, + .page = .{ 0x39, 0x32, 0x3b }, + .text = .{ 0xc3, 0xb6, 0xc1 }, + .tag = .{ 0x2c, 0x26, 0x30 }, + .tag_text = .{ 0xc6, 0xb6, 0xc5 }, + .tag_name = .{ 0x96, 0xc9, 0xb8 }, + .tag_focus = .{ 0x3b, 0x2f, 0x3b }, + .tag_focus_text = .{ 0xd2, 0xc2, 0xd1 }, + .accent = .{ 0xed, 0xb0, 0x92 }, + .column_grip = .{ 0xbd, 0xce, 0x8e }, + .keyword = .{ 0xd0, 0xa7, 0xf2 }, + .string = .{ 0xbe, 0xd1, 0x8b }, + .number = .{ 0xf7, 0xb2, 0x83 }, .comment = .{ 0xff, 0xb8, 0x7b }, - .lineno = .{ 0x82, 0x71, 0x7e }, - .lineno_active = .{ 0x8a, 0x79, 0x86 }, - .scroll_track = .{ 0x3d, 0x35, 0x40 }, - .scroll_thumb = .{ 0x8e, 0x66, 0x7c }, - .border = .{ 0x6d, 0x58, 0x6b }, - .sel_bg = .{ 0x65, 0x40, 0x53 }, - .sel_fg = .{ 0xff, 0xf0, 0xeb }, - .search_bg = .{ 0x65, 0x4a, 0x27 }, - .search_fg = .{ 0xff, 0xe3, 0xa2 }, - .diagnostic_error = .{ 0xff, 0xa2, 0x9b }, - .diagnostic_warning = .{ 0xfc, 0xce, 0x7b }, - .diagnostic_info = .{ 0xa2, 0xcd, 0xe4 }, - .diagnostic_hint = .{ 0xc5, 0xd4, 0x9a }, - .palette = .{ + .line_number = .{ 0x82, 0x71, 0x7e }, + .line_number_current = .{ 0x8a, 0x79, 0x86 }, + .rail = .{ 0x3d, 0x35, 0x40 }, + .rail_thumb = .{ 0x8e, 0x66, 0x7c }, + .rule = .{ 0x6d, 0x58, 0x6b }, + .selection = .{ 0x65, 0x40, 0x53 }, + .selection_text = .{ 0xff, 0xf0, 0xeb }, + .hit = .{ 0x65, 0x4a, 0x27 }, + .@"error" = .{ 0xff, 0xa2, 0x9b }, + .warning = .{ 0xfc, 0xce, 0x7b }, + .info = .{ 0xa2, 0xcd, 0xe4 }, + .hint = .{ 0xc5, 0xd4, 0x9a }, + .ansi = .{ .{ 0x39, 0x32, 0x3b }, .{ 0xf6, 0xaa, 0xa4 }, .{ 0xba, 0xc8, 0x94 }, diff --git a/core/themes/forestbones_dark.zig b/core/themes/forestbones_dark.zig index 11825525..8b759f58 100644 --- a/core/themes/forestbones_dark.zig +++ b/core/themes/forestbones_dark.zig @@ -15,63 +15,62 @@ //! StatusLine, TabLineFill to StatusLineNC. Accent is the lualine normal-mode a //! bg, a muted neutral (the theme is contrast-based, not hue-accented). //! Modified = Changed fg. +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - focused grip #6a7781 -> #9eacb7: 1.53:1 on the focused tag, now 3.03:1 (R6: 3:1) +//! - search hit #9e5179 -> #614a2b: 2.35:1 off the page, now 1.52:1 (R8: 1.5:1, the text reading on it) pub const theme = .{ .name = "forestbones_dark", // ~/05-genizah/zenbones.nvim/colors/forestbones.vim:33 Normal guibg - .bg = .{ 0x2c, 0x34, 0x3a }, + .page = .{ 0x2c, 0x34, 0x3a }, // ~/05-genizah/zenbones.nvim/colors/forestbones.vim:33 Normal guifg - .fg = .{ 0xe7, 0xdc, 0xc4 }, + .text = .{ 0xe7, 0xdc, 0xc4 }, // ~/05-genizah/zenbones.nvim/colors/forestbones.vim:211 Visual guibg - .sel_bg = .{ 0x61, 0x5b, 0x51 }, + .selection = .{ 0x61, 0x5b, 0x51 }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0xe7, 0xdc, 0xc4 }, + .selection_text = .{ 0xe7, 0xdc, 0xc4 }, // ~/05-genizah/zenbones.nvim/colors/forestbones.vim:198 StatusLineNC guibg - .tag_bg = .{ 0x35, 0x3f, 0x46 }, + .tag = .{ 0x35, 0x3f, 0x46 }, // ~/05-genizah/zenbones.nvim/colors/forestbones.vim:198 StatusLineNC guifg - .tag_fg = .{ 0xed, 0xe5, 0xd4 }, + .tag_text = .{ 0xed, 0xe5, 0xd4 }, // ~/05-genizah/zenbones.nvim/colors/forestbones.vim:195 StatusLine guibg #3e4850, adjusted - .tag_active_bg = .{ 0x50, 0x5a, 0x64 }, + .tag_focus = .{ 0x50, 0x5a, 0x64 }, // ~/05-genizah/zenbones.nvim/colors/forestbones.vim:195 StatusLine guifg - .tag_active_fg = .{ 0xe7, 0xdc, 0xc4 }, + .tag_focus_text = .{ 0xe7, 0xdc, 0xc4 }, // the focused grip: ~/05-genizah/zenbones.nvim/lua/lualine/themes/forestbones_dark_default.lua:8 normal.a bg (lualine theme, default ness; generator derives it as PmenuSbar.bg.abs_da(3), lua/zenbones/shipwright/runners/lualine.lua:66) - .box = .{ 0x6a, 0x77, 0x81 }, - // derived: the grip at rest, the accent #596873 faded toward the unfocused tag #353f46 as far as 1.6:1 off it (0.76 of the way) - .box_dim = .{ 0x50, 0x5e, 0x68 }, + .accent = .{ 0x6a, 0x77, 0x81 }, // an unsaved grip: the original's modified colour, ~/05-genizah/zenbones.nvim/colors/forestbones.vim:41 Changed guifg - .box_dirty = .{ 0x7f, 0xbc, 0xb4 }, + .dirty = .{ 0x7f, 0xbc, 0xb4 }, // derived: the column grip, the original's type colour, ~/05-genizah/zenbones.nvim/colors/forestbones.vim:207 Type guifg - .column_box = .{ 0x7f, 0xbc, 0xb4 }, + .column_grip = .{ 0x7f, 0xbc, 0xb4 }, // ~/05-genizah/zenbones.nvim/colors/forestbones.vim:192 Statement guifg (no Keyword group defined; Vim default links Keyword to Statement) - .kw = .{ 0xa9, 0xc1, 0x81 }, + .keyword = .{ 0xa9, 0xc1, 0x81 }, // ~/05-genizah/zenbones.nvim/colors/forestbones.vim:201 String guifg - .str = .{ 0xad, 0xa2, 0x8b }, + .string = .{ 0xad, 0xa2, 0x8b }, // ~/05-genizah/zenbones.nvim/colors/forestbones.vim:164 Number guifg - .num = .{ 0xad, 0xa2, 0x8b }, + .number = .{ 0xad, 0xa2, 0x8b }, // ~/05-genizah/zenbones.nvim/colors/forestbones.vim:47 Comment guifg .comment = .{ 0x6e, 0x7b, 0x85 }, // ~/05-genizah/zenbones.nvim/colors/forestbones.vim:150 LineNr guifg - .lineno = .{ 0x66, 0x77, 0x83 }, + .line_number = .{ 0x66, 0x77, 0x83 }, // ~/05-genizah/zenbones.nvim/colors/forestbones.vim:62 CursorLineNr guifg - .lineno_active = .{ 0xe7, 0xdc, 0xc4 }, + .line_number_current = .{ 0xe7, 0xdc, 0xc4 }, // ~/05-genizah/zenbones.nvim/colors/forestbones.vim:167 PmenuSbar guibg - .scroll_track = .{ 0x60, 0x6f, 0x7b }, + .rail = .{ 0x60, 0x6f, 0x7b }, // ~/05-genizah/zenbones.nvim/colors/forestbones.vim:169 PmenuThumb guibg - .scroll_thumb = .{ 0x82, 0x96, 0xa5 }, + .rail_thumb = .{ 0x82, 0x96, 0xa5 }, // ~/05-genizah/zenbones.nvim/colors/forestbones.vim:218 WinSeparator guifg - .border = .{ 0x66, 0x77, 0x83 }, + .rule = .{ 0x66, 0x77, 0x83 }, // ~/05-genizah/zenbones.nvim/colors/forestbones.vim:173 Search guibg - .search_bg = .{ 0x9e, 0x51, 0x79 }, - // ~/05-genizah/zenbones.nvim/colors/forestbones.vim:173 Search guifg - .search_fg = .{ 0xe7, 0xdc, 0xc4 }, + .hit = .{ 0x9e, 0x51, 0x79 }, // ~/05-genizah/zenbones.nvim/colors/forestbones.vim:113 Error guifg via DiagnosticError->Error (link :114) - .diagnostic_error = .{ 0xe6, 0x7c, 0x7f }, + .@"error" = .{ 0xe6, 0x7c, 0x7f }, // ~/05-genizah/zenbones.nvim/colors/forestbones.vim:212 WarningMsg guifg via DiagnosticWarn->WarningMsg (link :213) - .diagnostic_warning = .{ 0xdd, 0xbd, 0x7f }, + .warning = .{ 0xdd, 0xbd, 0x7f }, // ~/05-genizah/zenbones.nvim/colors/forestbones.vim:72 DiagnosticInfo guifg - .diagnostic_info = .{ 0x7f, 0xbc, 0xb4 }, + .info = .{ 0x7f, 0xbc, 0xb4 }, // ~/05-genizah/zenbones.nvim/colors/forestbones.vim:67 DiagnosticHint guifg - .diagnostic_hint = .{ 0xd6, 0x9a, 0xb7 }, - .palette = .{ + .hint = .{ 0xd6, 0x9a, 0xb7 }, + .ansi = .{ .{ 0x2c, 0x34, 0x3a }, // 0: ~/05-genizah/zenbones.nvim/colors/forestbones.vim:17 g:terminal_color_0 .{ 0xe6, 0x7c, 0x7f }, // 1: ~/05-genizah/zenbones.nvim/colors/forestbones.vim:18 g:terminal_color_1 .{ 0xa9, 0xc1, 0x81 }, // 2: ~/05-genizah/zenbones.nvim/colors/forestbones.vim:19 g:terminal_color_2 diff --git a/core/themes/forestbones_light.zig b/core/themes/forestbones_light.zig index e227d6a9..7d6132df 100644 --- a/core/themes/forestbones_light.zig +++ b/core/themes/forestbones_light.zig @@ -17,63 +17,68 @@ //! StatusLine, TabLineFill to StatusLineNC. Accent is the lualine normal-mode a //! bg, a muted neutral (the theme is contrast-based, not hue-accented). //! Modified = Changed fg. +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - focused grip #b1a26f -> #7e703e: 1.56:1 on the focused tag, now 3.01:1 (R6: 3:1) +//! - unsaved grip #3a94c4 -> #1378a7: 2.62:1 on the tag, now 3.81:1 (R6: 3:1 on both tags) +//! - selection #d3dfe6 -> #d7dcd1: 1.23:1 off the page, now 1.26:1 (R7) +//! - search hit #eebadb -> #f9c96b: 1.50:1 off the page, now 1.40:1 (R8: 1.5:1, the text reading on it) +//! - error #f85550 -> #d22e30: 2.96:1 on the page, now 4.55:1 (R9: 4.5:1, told from the text and the others) +//! - warning #dea000 -> #926805: 2.08:1 on the page, now 4.51:1 (R9: 4.5:1, told from the text and the others) +//! - info #3a94c4 -> #1277a6: 3.05:1 on the page, now 4.50:1 (R9: 4.5:1, told from the text and the others) +//! - hint #df69ba -> #b54293: 2.76:1 on the page, now 4.55:1 (R9: 4.5:1, told from the text and the others) pub const theme = .{ .name = "forestbones_light", // ~/05-genizah/zenbones.nvim/colors/forestbones.vim:267 Normal guibg - .bg = .{ 0xfa, 0xf3, 0xe1 }, + .page = .{ 0xfa, 0xf3, 0xe1 }, // ~/05-genizah/zenbones.nvim/colors/forestbones.vim:267 Normal guifg - .fg = .{ 0x4f, 0x5b, 0x62 }, + .text = .{ 0x4f, 0x5b, 0x62 }, // ~/05-genizah/zenbones.nvim/colors/forestbones.vim:445 Visual guibg - .sel_bg = .{ 0xd3, 0xdf, 0xe6 }, + .selection = .{ 0xd3, 0xdf, 0xe6 }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0x4f, 0x5b, 0x62 }, + .selection_text = .{ 0x4f, 0x5b, 0x62 }, // ~/05-genizah/zenbones.nvim/colors/forestbones.vim:432 StatusLineNC guibg - .tag_bg = .{ 0xf3, 0xe2, 0xaa }, + .tag = .{ 0xf3, 0xe2, 0xaa }, // ~/05-genizah/zenbones.nvim/colors/forestbones.vim:432 StatusLineNC guifg #758690, adjusted - .tag_fg = .{ 0x59, 0x66, 0x6d }, + .tag_text = .{ 0x59, 0x66, 0x6d }, // ~/05-genizah/zenbones.nvim/colors/forestbones.vim:429 StatusLine guibg #e3d191, adjusted - .tag_active_bg = .{ 0xdd, 0xca, 0x87 }, + .tag_focus = .{ 0xdd, 0xca, 0x87 }, // ~/05-genizah/zenbones.nvim/colors/forestbones.vim:429 StatusLine guifg #4f5b62, adjusted - .tag_active_fg = .{ 0x4c, 0x57, 0x5e }, + .tag_focus_text = .{ 0x4c, 0x57, 0x5e }, // the focused grip: ~/05-genizah/zenbones.nvim/lua/lualine/themes/forestbones_light_default.lua:8 normal.a bg (lualine theme, default ness; generator derives it as PmenuSbar.bg.abs_da(3), lua/zenbones/shipwright/runners/lualine.lua:66) - .box = .{ 0xb1, 0xa2, 0x6f }, - // derived: the grip at rest, the accent #c0b079 faded toward the unfocused tag #f3e2aa as far as 1.6:1 off it (0.94 of the way) - .box_dim = .{ 0xc3, 0xb3, 0x7c }, + .accent = .{ 0xb1, 0xa2, 0x6f }, // an unsaved grip: the original's modified colour, ~/05-genizah/zenbones.nvim/colors/forestbones.vim:275 Changed guifg - .box_dirty = .{ 0x3a, 0x94, 0xc4 }, + .dirty = .{ 0x3a, 0x94, 0xc4 }, // derived: the column grip, the original's type colour, ~/05-genizah/zenbones.nvim/colors/forestbones.vim:441 Type guifg - .column_box = .{ 0x3a, 0x94, 0xc4 }, + .column_grip = .{ 0x3a, 0x94, 0xc4 }, // ~/05-genizah/zenbones.nvim/colors/forestbones.vim:426 Statement guifg (no Keyword group defined; Vim default links Keyword to Statement) - .kw = .{ 0x8d, 0xa2, 0x00 }, + .keyword = .{ 0x8d, 0xa2, 0x00 }, // ~/05-genizah/zenbones.nvim/colors/forestbones.vim:435 String guifg - .str = .{ 0x73, 0x84, 0x8d }, + .string = .{ 0x73, 0x84, 0x8d }, // ~/05-genizah/zenbones.nvim/colors/forestbones.vim:398 Number guifg - .num = .{ 0x73, 0x84, 0x8d }, + .number = .{ 0x73, 0x84, 0x8d }, // ~/05-genizah/zenbones.nvim/colors/forestbones.vim:281 Comment guifg .comment = .{ 0x9a, 0x90, 0x71 }, // ~/05-genizah/zenbones.nvim/colors/forestbones.vim:384 LineNr guifg - .lineno = .{ 0xa9, 0x9b, 0x6a }, + .line_number = .{ 0xa9, 0x9b, 0x6a }, // ~/05-genizah/zenbones.nvim/colors/forestbones.vim:296 CursorLineNr guifg - .lineno_active = .{ 0x4f, 0x5b, 0x62 }, + .line_number_current = .{ 0x4f, 0x5b, 0x62 }, // ~/05-genizah/zenbones.nvim/colors/forestbones.vim:401 PmenuSbar guibg - .scroll_track = .{ 0xb7, 0xa8, 0x74 }, + .rail = .{ 0xb7, 0xa8, 0x74 }, // ~/05-genizah/zenbones.nvim/colors/forestbones.vim:403 PmenuThumb guibg - .scroll_thumb = .{ 0xfc, 0xf9, 0xf1 }, + .rail_thumb = .{ 0xfc, 0xf9, 0xf1 }, // ~/05-genizah/zenbones.nvim/colors/forestbones.vim:452 WinSeparator guifg - .border = .{ 0xa9, 0x9b, 0x6a }, + .rule = .{ 0xa9, 0x9b, 0x6a }, // ~/05-genizah/zenbones.nvim/colors/forestbones.vim:407 Search guibg - .search_bg = .{ 0xee, 0xba, 0xdb }, - // ~/05-genizah/zenbones.nvim/colors/forestbones.vim:407 Search guifg - .search_fg = .{ 0x4f, 0x5b, 0x62 }, + .hit = .{ 0xee, 0xba, 0xdb }, // ~/05-genizah/zenbones.nvim/colors/forestbones.vim:347 Error guifg via DiagnosticError->Error (link :348) - .diagnostic_error = .{ 0xf8, 0x55, 0x50 }, + .@"error" = .{ 0xf8, 0x55, 0x50 }, // ~/05-genizah/zenbones.nvim/colors/forestbones.vim:446 WarningMsg guifg via DiagnosticWarn->WarningMsg (link :447) - .diagnostic_warning = .{ 0xde, 0xa0, 0x00 }, + .warning = .{ 0xde, 0xa0, 0x00 }, // ~/05-genizah/zenbones.nvim/colors/forestbones.vim:306 DiagnosticInfo guifg - .diagnostic_info = .{ 0x3a, 0x94, 0xc4 }, + .info = .{ 0x3a, 0x94, 0xc4 }, // ~/05-genizah/zenbones.nvim/colors/forestbones.vim:301 DiagnosticHint guifg - .diagnostic_hint = .{ 0xdf, 0x69, 0xba }, - .palette = .{ + .hint = .{ 0xdf, 0x69, 0xba }, + .ansi = .{ .{ 0xfa, 0xf3, 0xe1 }, // 0: ~/05-genizah/zenbones.nvim/colors/forestbones.vim:251 g:terminal_color_0 .{ 0xf8, 0x55, 0x50 }, // 1: ~/05-genizah/zenbones.nvim/colors/forestbones.vim:252 g:terminal_color_1 .{ 0x8d, 0xa2, 0x00 }, // 2: ~/05-genizah/zenbones.nvim/colors/forestbones.vim:253 g:terminal_color_2 diff --git a/core/themes/forge.zig b/core/themes/forge.zig index 0effa742..6a0dab5f 100644 --- a/core/themes/forge.zig +++ b/core/themes/forge.zig @@ -4,37 +4,33 @@ //! Pardes-specific tag, search, diagnostic and ANSI roles; see docs/typ/themes.typ. pub const theme = .{ .name = "forge", - .bg = .{ 0x0c, 0x0c, 0x0e }, - .fg = .{ 0xe5, 0xe5, 0xe5 }, - .tag_bg = .{ 0x22, 0x25, 0x2b }, - .tag_fg = .{ 0xc5, 0xc9, 0xd2 }, - .tag_name_fg = .{ 0xec, 0xbf, 0x9b }, - .tag_active_name_fg = .{ 0xf8, 0xcb, 0xa7 }, - .tag_active_bg = .{ 0x2d, 0x34, 0x40 }, - .tag_active_fg = .{ 0xd1, 0xd5, 0xde }, - .box = .{ 0x9c, 0xc3, 0xf7 }, - .box_dim = .{ 0x55, 0x64, 0x7b }, - .column_box = .{ 0xb4, 0xd3, 0xa3 }, - .column_box_dim = .{ 0x6a, 0x7b, 0x67 }, - .kw = .{ 0x61, 0xb7, 0xfc }, - .str = .{ 0xdd, 0x8b, 0x69 }, - .num = .{ 0xb3, 0xd5, 0xa1 }, + .page = .{ 0x0c, 0x0c, 0x0e }, + .text = .{ 0xe5, 0xe5, 0xe5 }, + .tag = .{ 0x22, 0x25, 0x2b }, + .tag_text = .{ 0xc5, 0xc9, 0xd2 }, + .tag_name = .{ 0xec, 0xbf, 0x9b }, + .tag_focus = .{ 0x2d, 0x34, 0x40 }, + .tag_focus_text = .{ 0xd1, 0xd5, 0xde }, + .accent = .{ 0x9c, 0xc3, 0xf7 }, + .column_grip = .{ 0xb4, 0xd3, 0xa3 }, + .keyword = .{ 0x61, 0xb7, 0xfc }, + .string = .{ 0xdd, 0x8b, 0x69 }, + .number = .{ 0xb3, 0xd5, 0xa1 }, .comment = .{ 0xb3, 0xca, 0xff }, - .lineno = .{ 0x62, 0x65, 0x6c }, - .lineno_active = .{ 0x6a, 0x6d, 0x74 }, - .scroll_track = .{ 0x1a, 0x1c, 0x21 }, - .scroll_thumb = .{ 0x70, 0x80, 0x95 }, - .border = .{ 0x60, 0x6f, 0x86 }, - .sel_bg = .{ 0x1c, 0x51, 0x72 }, - .sel_fg = .{ 0xe2, 0xee, 0xf4 }, - .search_bg = .{ 0x61, 0x4d, 0x1d }, - .search_fg = .{ 0xf5, 0xdf, 0xa1 }, - .diagnostic_error = .{ 0xff, 0x7f, 0x74 }, - .diagnostic_warning = .{ 0xe4, 0xbf, 0x70 }, - .diagnostic_info = .{ 0x75, 0xbe, 0xff }, - .diagnostic_hint = .{ 0x81, 0xd8, 0xbe }, + .line_number = .{ 0x62, 0x65, 0x6c }, + .line_number_current = .{ 0x6a, 0x6d, 0x74 }, + .rail = .{ 0x1a, 0x1c, 0x21 }, + .rail_thumb = .{ 0x70, 0x80, 0x95 }, + .rule = .{ 0x60, 0x6f, 0x86 }, + .selection = .{ 0x1c, 0x51, 0x72 }, + .selection_text = .{ 0xe2, 0xee, 0xf4 }, + .hit = .{ 0x61, 0x4d, 0x1d }, + .@"error" = .{ 0xff, 0x7f, 0x74 }, + .warning = .{ 0xe4, 0xbf, 0x70 }, + .info = .{ 0x75, 0xbe, 0xff }, + .hint = .{ 0x81, 0xd8, 0xbe }, // ANSI roles are semantic colors, independent of peach string syntax. - .palette = .{ + .ansi = .{ .{ 0x0c, 0x0c, 0x0e }, .{ 0xf2, 0x8a, 0x81 }, .{ 0xb5, 0xce, 0xa8 }, diff --git a/core/themes/forge_black.zig b/core/themes/forge_black.zig index f51e8594..74401c08 100644 --- a/core/themes/forge_black.zig +++ b/core/themes/forge_black.zig @@ -4,37 +4,33 @@ //! Pardes-specific tag, search, diagnostic and ANSI roles; see docs/typ/themes.typ. pub const theme = .{ .name = "forge_black", - .bg = .{ 0x00, 0x00, 0x00 }, - .fg = .{ 0xf6, 0xf6, 0xf6 }, - .tag_bg = .{ 0x22, 0x25, 0x2b }, - .tag_fg = .{ 0xc5, 0xc9, 0xd2 }, - .tag_name_fg = .{ 0xec, 0xbf, 0x9b }, - .tag_active_name_fg = .{ 0xf8, 0xcb, 0xa7 }, - .tag_active_bg = .{ 0x2d, 0x34, 0x40 }, - .tag_active_fg = .{ 0xd1, 0xd5, 0xde }, - .box = .{ 0x9c, 0xc3, 0xf7 }, - .box_dim = .{ 0x55, 0x64, 0x7b }, - .column_box = .{ 0xb4, 0xd3, 0xa3 }, - .column_box_dim = .{ 0x6a, 0x7b, 0x67 }, - .kw = .{ 0x61, 0xb7, 0xfc }, - .str = .{ 0xdd, 0x8b, 0x69 }, - .num = .{ 0xb3, 0xd5, 0xa1 }, + .page = .{ 0x00, 0x00, 0x00 }, + .text = .{ 0xf6, 0xf6, 0xf6 }, + .tag = .{ 0x22, 0x25, 0x2b }, + .tag_text = .{ 0xc5, 0xc9, 0xd2 }, + .tag_name = .{ 0xec, 0xbf, 0x9b }, + .tag_focus = .{ 0x2d, 0x34, 0x40 }, + .tag_focus_text = .{ 0xd1, 0xd5, 0xde }, + .accent = .{ 0x9c, 0xc3, 0xf7 }, + .column_grip = .{ 0xb4, 0xd3, 0xa3 }, + .keyword = .{ 0x61, 0xb7, 0xfc }, + .string = .{ 0xdd, 0x8b, 0x69 }, + .number = .{ 0xb3, 0xd5, 0xa1 }, .comment = .{ 0xb3, 0xca, 0xff }, - .lineno = .{ 0x62, 0x65, 0x6c }, - .lineno_active = .{ 0x6a, 0x6d, 0x74 }, - .scroll_track = .{ 0x14, 0x16, 0x1a }, - .scroll_thumb = .{ 0x70, 0x80, 0x95 }, - .border = .{ 0x60, 0x6f, 0x86 }, - .sel_bg = .{ 0x1c, 0x51, 0x72 }, - .sel_fg = .{ 0xe2, 0xee, 0xf4 }, - .search_bg = .{ 0x61, 0x4d, 0x1d }, - .search_fg = .{ 0xf5, 0xdf, 0xa1 }, - .diagnostic_error = .{ 0xff, 0x7f, 0x74 }, - .diagnostic_warning = .{ 0xe4, 0xbf, 0x70 }, - .diagnostic_info = .{ 0x75, 0xbe, 0xff }, - .diagnostic_hint = .{ 0x81, 0xd8, 0xbe }, + .line_number = .{ 0x62, 0x65, 0x6c }, + .line_number_current = .{ 0x6a, 0x6d, 0x74 }, + .rail = .{ 0x14, 0x16, 0x1a }, + .rail_thumb = .{ 0x70, 0x80, 0x95 }, + .rule = .{ 0x60, 0x6f, 0x86 }, + .selection = .{ 0x1c, 0x51, 0x72 }, + .selection_text = .{ 0xe2, 0xee, 0xf4 }, + .hit = .{ 0x61, 0x4d, 0x1d }, + .@"error" = .{ 0xff, 0x7f, 0x74 }, + .warning = .{ 0xe4, 0xbf, 0x70 }, + .info = .{ 0x75, 0xbe, 0xff }, + .hint = .{ 0x81, 0xd8, 0xbe }, // ANSI roles are semantic colors, independent of peach string syntax. - .palette = .{ + .ansi = .{ .{ 0x00, 0x00, 0x00 }, .{ 0xf2, 0x8a, 0x81 }, .{ 0xb5, 0xce, 0xa8 }, diff --git a/core/themes/forge_soft.zig b/core/themes/forge_soft.zig index a0cf141b..3d9f8fe6 100644 --- a/core/themes/forge_soft.zig +++ b/core/themes/forge_soft.zig @@ -4,37 +4,33 @@ //! Pardes-specific tag, search, diagnostic and ANSI roles; see docs/typ/themes.typ. pub const theme = .{ .name = "forge_soft", - .bg = .{ 0x35, 0x38, 0x3e }, - .fg = .{ 0xbf, 0xc3, 0xcc }, - .tag_bg = .{ 0x2a, 0x2d, 0x34 }, - .tag_fg = .{ 0xc5, 0xc9, 0xd2 }, - .tag_name_fg = .{ 0xec, 0xbf, 0x9b }, - .tag_active_name_fg = .{ 0xf8, 0xcb, 0xa7 }, - .tag_active_bg = .{ 0x37, 0x3e, 0x49 }, - .tag_active_fg = .{ 0xd1, 0xd5, 0xde }, - .box = .{ 0x9c, 0xc3, 0xf7 }, - .box_dim = .{ 0x55, 0x64, 0x7b }, - .column_box = .{ 0xb4, 0xd3, 0xa3 }, - .column_box_dim = .{ 0x6d, 0x7f, 0x6c }, - .kw = .{ 0x61, 0xb7, 0xfc }, - .str = .{ 0xe7, 0xa0, 0x81 }, - .num = .{ 0xb3, 0xd5, 0xa1 }, + .page = .{ 0x35, 0x38, 0x3e }, + .text = .{ 0xbf, 0xc3, 0xcc }, + .tag = .{ 0x2a, 0x2d, 0x34 }, + .tag_text = .{ 0xc5, 0xc9, 0xd2 }, + .tag_name = .{ 0xec, 0xbf, 0x9b }, + .tag_focus = .{ 0x37, 0x3e, 0x49 }, + .tag_focus_text = .{ 0xd1, 0xd5, 0xde }, + .accent = .{ 0x9c, 0xc3, 0xf7 }, + .column_grip = .{ 0xb4, 0xd3, 0xa3 }, + .keyword = .{ 0x61, 0xb7, 0xfc }, + .string = .{ 0xe7, 0xa0, 0x81 }, + .number = .{ 0xb3, 0xd5, 0xa1 }, .comment = .{ 0xb3, 0xca, 0xff }, - .lineno = .{ 0x86, 0x89, 0x91 }, - .lineno_active = .{ 0x8e, 0x91, 0x99 }, - .scroll_track = .{ 0x3d, 0x40, 0x47 }, - .scroll_thumb = .{ 0x70, 0x80, 0x95 }, - .border = .{ 0x60, 0x6f, 0x86 }, - .sel_bg = .{ 0x1c, 0x51, 0x72 }, - .sel_fg = .{ 0xe2, 0xee, 0xf4 }, - .search_bg = .{ 0x61, 0x4d, 0x1d }, - .search_fg = .{ 0xf5, 0xdf, 0xa1 }, - .diagnostic_error = .{ 0xff, 0x7f, 0x74 }, - .diagnostic_warning = .{ 0xe4, 0xbf, 0x70 }, - .diagnostic_info = .{ 0x75, 0xbe, 0xff }, - .diagnostic_hint = .{ 0x81, 0xd8, 0xbe }, + .line_number = .{ 0x86, 0x89, 0x91 }, + .line_number_current = .{ 0x8e, 0x91, 0x99 }, + .rail = .{ 0x3d, 0x40, 0x47 }, + .rail_thumb = .{ 0x70, 0x80, 0x95 }, + .rule = .{ 0x60, 0x6f, 0x86 }, + .selection = .{ 0x1c, 0x51, 0x72 }, + .selection_text = .{ 0xe2, 0xee, 0xf4 }, + .hit = .{ 0x61, 0x4d, 0x1d }, + .@"error" = .{ 0xff, 0x7f, 0x74 }, + .warning = .{ 0xe4, 0xbf, 0x70 }, + .info = .{ 0x75, 0xbe, 0xff }, + .hint = .{ 0x81, 0xd8, 0xbe }, // ANSI roles are semantic colors, independent of peach string syntax. - .palette = .{ + .ansi = .{ .{ 0x35, 0x38, 0x3e }, .{ 0xf2, 0x8a, 0x81 }, .{ 0xb5, 0xce, 0xa8 }, diff --git a/core/themes/harvest.zig b/core/themes/harvest.zig index b0ad57c7..a0a44656 100644 --- a/core/themes/harvest.zig +++ b/core/themes/harvest.zig @@ -4,36 +4,32 @@ //! Pardes-specific tag, search, diagnostic and ANSI roles; see docs/typ/themes.typ. pub const theme = .{ .name = "harvest", - .bg = .{ 0x10, 0x0e, 0x0b }, - .fg = .{ 0xf3, 0xf2, 0xcc }, - .tag_bg = .{ 0x34, 0x3b, 0x2e }, - .tag_fg = .{ 0xd5, 0xd8, 0xb8 }, - .tag_name_fg = .{ 0xba, 0xdb, 0xeb }, - .tag_active_name_fg = .{ 0xc5, 0xe7, 0xf7 }, - .tag_active_bg = .{ 0x42, 0x4d, 0x38 }, - .tag_active_fg = .{ 0xe1, 0xe4, 0xc4 }, - .box = .{ 0xd8, 0xbd, 0x83 }, - .box_dim = .{ 0x7b, 0x7e, 0x4e }, - .column_box = .{ 0xff, 0x74, 0x54 }, - .column_box_dim = .{ 0x9b, 0x58, 0x3f }, - .kw = .{ 0xff, 0x74, 0x54 }, - .str = .{ 0x9a, 0xcc, 0x62 }, - .num = .{ 0xff, 0xd8, 0x61 }, + .page = .{ 0x10, 0x0e, 0x0b }, + .text = .{ 0xf3, 0xf2, 0xcc }, + .tag = .{ 0x34, 0x3b, 0x2e }, + .tag_text = .{ 0xd5, 0xd8, 0xb8 }, + .tag_name = .{ 0xba, 0xdb, 0xeb }, + .tag_focus = .{ 0x42, 0x4d, 0x38 }, + .tag_focus_text = .{ 0xe1, 0xe4, 0xc4 }, + .accent = .{ 0xd8, 0xbd, 0x83 }, + .column_grip = .{ 0xff, 0x74, 0x54 }, + .keyword = .{ 0xff, 0x74, 0x54 }, + .string = .{ 0x9a, 0xcc, 0x62 }, + .number = .{ 0xff, 0xd8, 0x61 }, .comment = .{ 0xff, 0xca, 0x7c }, - .lineno = .{ 0x6a, 0x64, 0x56 }, - .lineno_active = .{ 0x72, 0x6c, 0x5e }, - .scroll_track = .{ 0x20, 0x1d, 0x17 }, - .scroll_thumb = .{ 0x88, 0x8e, 0x5e }, - .border = .{ 0x78, 0x88, 0x60 }, - .sel_bg = .{ 0x4f, 0x58, 0x34 }, - .sel_fg = .{ 0xf3, 0xf2, 0xcc }, - .search_bg = .{ 0x6f, 0x44, 0x24 }, - .search_fg = .{ 0xff, 0xe2, 0xac }, - .diagnostic_error = .{ 0xff, 0x84, 0x69 }, - .diagnostic_warning = .{ 0xff, 0xd8, 0x61 }, - .diagnostic_info = .{ 0x7d, 0xca, 0xbf }, - .diagnostic_hint = .{ 0xb9, 0xcf, 0x83 }, - .palette = .{ + .line_number = .{ 0x6a, 0x64, 0x56 }, + .line_number_current = .{ 0x72, 0x6c, 0x5e }, + .rail = .{ 0x20, 0x1d, 0x17 }, + .rail_thumb = .{ 0x88, 0x8e, 0x5e }, + .rule = .{ 0x78, 0x88, 0x60 }, + .selection = .{ 0x4f, 0x58, 0x34 }, + .selection_text = .{ 0xf3, 0xf2, 0xcc }, + .hit = .{ 0x6f, 0x44, 0x24 }, + .@"error" = .{ 0xff, 0x84, 0x69 }, + .warning = .{ 0xff, 0xd8, 0x61 }, + .info = .{ 0x7d, 0xca, 0xbf }, + .hint = .{ 0xb9, 0xcf, 0x83 }, + .ansi = .{ .{ 0x10, 0x0e, 0x0b }, .{ 0xf5, 0x8a, 0x73 }, .{ 0x99, 0xbe, 0x70 }, diff --git a/core/themes/helix.zig b/core/themes/helix.zig index 61dc8e63..9ee639df 100644 --- a/core/themes/helix.zig +++ b/core/themes/helix.zig @@ -37,24 +37,23 @@ //! turns a missing field here into a compile error naming it. pub const theme = .{ .name = "helix", - .bg = .{ 0x08, 0x08, 0x08 }, - .fg = .{ 0xbd, 0xbd, 0xbd }, - .sel_bg = .{ 0x80, 0xa0, 0xff }, - .sel_fg = .{ 0x08, 0x08, 0x08 }, - .tag_bg = .{ 0x12, 0x12, 0x12 }, - .tag_fg = .{ 0x94, 0x94, 0x94 }, + .page = .{ 0x08, 0x08, 0x08 }, + .text = .{ 0xbd, 0xbd, 0xbd }, + .selection = .{ 0x80, 0xa0, 0xff }, + .selection_text = .{ 0x08, 0x08, 0x08 }, + .tag = .{ 0x12, 0x12, 0x12 }, + .tag_text = .{ 0x94, 0x94, 0x94 }, // The focused tag, still on the ramp: 237 #3a3a3a under 250 #bdbdbd // (the page's text), 1.65:1 off the plain bar. - .tag_active_bg = .{ 0x3a, 0x3a, 0x3a }, - .tag_active_fg = .{ 0xbd, 0xbd, 0xbd }, - .box = .{ 0x62, 0x62, 0x62 }, - .box_dim = .{ 0x26, 0x26, 0x26 }, - .kw = .{ 0xd7, 0x76, 0xf9 }, - .str = .{ 0xf3, 0xcd, 0x7a }, - .num = .{ 0xf3, 0xcd, 0x7a }, + .tag_focus = .{ 0x3a, 0x3a, 0x3a }, + .tag_focus_text = .{ 0xbd, 0xbd, 0xbd }, + .accent = .{ 0x62, 0x62, 0x62 }, + .keyword = .{ 0xd7, 0x76, 0xf9 }, + .string = .{ 0xf3, 0xcd, 0x7a }, + .number = .{ 0xf3, 0xcd, 0x7a }, .comment = .{ 0xff, 0xff, 0xff }, - .lineno = .{ 0x62, 0x62, 0x62 }, - .scroll_track = .{ 0x12, 0x12, 0x12 }, - .scroll_thumb = .{ 0x44, 0x44, 0x44 }, - .palette = null, + .line_number = .{ 0x62, 0x62, 0x62 }, + .rail = .{ 0x12, 0x12, 0x12 }, + .rail_thumb = .{ 0x44, 0x44, 0x44 }, + .ansi = null, }; diff --git a/core/themes/ink.zig b/core/themes/ink.zig index 4151df7a..ca718cce 100644 --- a/core/themes/ink.zig +++ b/core/themes/ink.zig @@ -3,36 +3,32 @@ //! designed together. See docs/typ/themes.typ for the shared role contract. pub const theme = .{ .name = "ink", - .bg = .{ 0x00, 0x00, 0x00 }, - .fg = .{ 0xf3, 0xf7, 0xfc }, - .tag_bg = .{ 0x15, 0x21, 0x2c }, - .tag_fg = .{ 0xd5, 0xe4, 0xf1 }, - .tag_name_fg = .{ 0xf5, 0xe0, 0xac }, - .tag_active_name_fg = .{ 0xff, 0xea, 0xb8 }, - .tag_active_bg = .{ 0x22, 0x33, 0x42 }, - .tag_active_fg = .{ 0xe1, 0xee, 0xf9 }, - .box = .{ 0x86, 0xd8, 0xff }, - .box_dim = .{ 0x5f, 0x79, 0x90 }, - .column_box = .{ 0xff, 0xd6, 0x94 }, - .column_box_dim = .{ 0x8f, 0x7d, 0x5b }, - .kw = .{ 0xd5, 0xb8, 0xff }, - .str = .{ 0xac, 0xf9, 0xa3 }, - .num = .{ 0xff, 0xd6, 0x94 }, + .page = .{ 0x00, 0x00, 0x00 }, + .text = .{ 0xf3, 0xf7, 0xfc }, + .tag = .{ 0x15, 0x21, 0x2c }, + .tag_text = .{ 0xd5, 0xe4, 0xf1 }, + .tag_name = .{ 0xf5, 0xe0, 0xac }, + .tag_focus = .{ 0x22, 0x33, 0x42 }, + .tag_focus_text = .{ 0xe1, 0xee, 0xf9 }, + .accent = .{ 0x86, 0xd8, 0xff }, + .column_grip = .{ 0xff, 0xd6, 0x94 }, + .keyword = .{ 0xd5, 0xb8, 0xff }, + .string = .{ 0xac, 0xf9, 0xa3 }, + .number = .{ 0xff, 0xd6, 0x94 }, .comment = .{ 0x9d, 0xee, 0xff }, - .lineno = .{ 0x62, 0x6b, 0x75 }, - .lineno_active = .{ 0x6a, 0x73, 0x7d }, - .scroll_track = .{ 0x15, 0x21, 0x2c }, - .scroll_thumb = .{ 0x86, 0xa8, 0xc2 }, - .border = .{ 0x80, 0x95, 0xa9 }, - .sel_bg = .{ 0x1b, 0x54, 0x7c }, - .sel_fg = .{ 0xff, 0xff, 0xff }, - .search_bg = .{ 0x7c, 0x4e, 0x0d }, - .search_fg = .{ 0xff, 0xff, 0xff }, - .diagnostic_error = .{ 0xff, 0xb1, 0xb1 }, - .diagnostic_warning = .{ 0xff, 0xe2, 0x9c }, - .diagnostic_info = .{ 0x9b, 0xde, 0xff }, - .diagnostic_hint = .{ 0xc4, 0xeb, 0xae }, - .palette = .{ + .line_number = .{ 0x62, 0x6b, 0x75 }, + .line_number_current = .{ 0x6a, 0x73, 0x7d }, + .rail = .{ 0x15, 0x21, 0x2c }, + .rail_thumb = .{ 0x86, 0xa8, 0xc2 }, + .rule = .{ 0x80, 0x95, 0xa9 }, + .selection = .{ 0x1b, 0x54, 0x7c }, + .selection_text = .{ 0xff, 0xff, 0xff }, + .hit = .{ 0x7c, 0x4e, 0x0d }, + .@"error" = .{ 0xff, 0xb1, 0xb1 }, + .warning = .{ 0xff, 0xe2, 0x9c }, + .info = .{ 0x9b, 0xde, 0xff }, + .hint = .{ 0xc4, 0xeb, 0xae }, + .ansi = .{ .{ 0x00, 0x00, 0x00 }, .{ 0xff, 0xb1, 0xb1 }, .{ 0xb5, 0xee, 0xae }, diff --git a/core/themes/kanagawabones.zig b/core/themes/kanagawabones.zig index 94e5aab0..345d6227 100644 --- a/core/themes/kanagawabones.zig +++ b/core/themes/kanagawabones.zig @@ -16,63 +16,61 @@ //! StatusLine, TabLineFill to StatusLineNC. Accent is the lualine normal-mode a //! bg, a muted neutral (the theme is contrast-based, not hue-accented). //! Modified = Changed fg. +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - focused grip #606071 -> #9090a2: 1.54:1 on the focused tag, now 3.03:1 (R6: 3:1) pub const theme = .{ .name = "kanagawabones", // ~/05-genizah/zenbones.nvim/colors/kanagawabones.vim:34 Normal guibg - .bg = .{ 0x1f, 0x1f, 0x28 }, + .page = .{ 0x1f, 0x1f, 0x28 }, // ~/05-genizah/zenbones.nvim/colors/kanagawabones.vim:34 Normal guifg - .fg = .{ 0xdd, 0xd8, 0xbb }, + .text = .{ 0xdd, 0xd8, 0xbb }, // ~/05-genizah/zenbones.nvim/colors/kanagawabones.vim:212 Visual guibg - .sel_bg = .{ 0x49, 0x47, 0x3e }, + .selection = .{ 0x49, 0x47, 0x3e }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0xdd, 0xd8, 0xbb }, + .selection_text = .{ 0xdd, 0xd8, 0xbb }, // ~/05-genizah/zenbones.nvim/colors/kanagawabones.vim:199 StatusLineNC guibg - .tag_bg = .{ 0x29, 0x29, 0x34 }, + .tag = .{ 0x29, 0x29, 0x34 }, // ~/05-genizah/zenbones.nvim/colors/kanagawabones.vim:199 StatusLineNC guifg - .tag_fg = .{ 0xe9, 0xe3, 0xc5 }, + .tag_text = .{ 0xe9, 0xe3, 0xc5 }, // ~/05-genizah/zenbones.nvim/colors/kanagawabones.vim:196 StatusLine guibg #363644, adjusted - .tag_active_bg = .{ 0x44, 0x44, 0x56 }, + .tag_focus = .{ 0x44, 0x44, 0x56 }, // ~/05-genizah/zenbones.nvim/colors/kanagawabones.vim:196 StatusLine guifg - .tag_active_fg = .{ 0xdd, 0xd8, 0xbb }, + .tag_focus_text = .{ 0xdd, 0xd8, 0xbb }, // the focused grip: ~/05-genizah/zenbones.nvim/lua/lualine/themes/kanagawabones_default.lua:8 normal.a bg (lualine theme, default ness; generator derives it as PmenuSbar.bg.abs_da(3), lua/zenbones/shipwright/runners/lualine.lua:66) - .box = .{ 0x60, 0x60, 0x71 }, - // derived: the grip at rest, the accent #565668 faded toward the unfocused tag #292934 as far as 1.6:1 off it (0.70 of the way) - .box_dim = .{ 0x49, 0x49, 0x58 }, + .accent = .{ 0x60, 0x60, 0x71 }, // an unsaved grip: the original's modified colour, ~/05-genizah/zenbones.nvim/colors/kanagawabones.vim:42 Changed guifg - .box_dirty = .{ 0x7e, 0xb3, 0xc9 }, + .dirty = .{ 0x7e, 0xb3, 0xc9 }, // derived: the column grip, the original's type colour, ~/05-genizah/zenbones.nvim/colors/kanagawabones.vim:208 Type guifg - .column_box = .{ 0x97, 0x97, 0xa5 }, + .column_grip = .{ 0x97, 0x97, 0xa5 }, // ~/05-genizah/zenbones.nvim/colors/kanagawabones.vim:192 Statement guifg (no Keyword group defined; Vim default links Keyword to Statement) - .kw = .{ 0xdd, 0xd8, 0xbb }, + .keyword = .{ 0xdd, 0xd8, 0xbb }, // ~/05-genizah/zenbones.nvim/colors/kanagawabones.vim:202 String guifg - .str = .{ 0xa2, 0x9e, 0x89 }, + .string = .{ 0xa2, 0x9e, 0x89 }, // ~/05-genizah/zenbones.nvim/colors/kanagawabones.vim:165 Number guifg - .num = .{ 0xa2, 0x9e, 0x89 }, + .number = .{ 0xa2, 0x9e, 0x89 }, // ~/05-genizah/zenbones.nvim/colors/kanagawabones.vim:48 Comment guifg .comment = .{ 0x69, 0x69, 0x77 }, // ~/05-genizah/zenbones.nvim/colors/kanagawabones.vim:151 LineNr guifg - .lineno = .{ 0x64, 0x64, 0x76 }, + .line_number = .{ 0x64, 0x64, 0x76 }, // ~/05-genizah/zenbones.nvim/colors/kanagawabones.vim:63 CursorLineNr guifg - .lineno_active = .{ 0xdd, 0xd8, 0xbb }, + .line_number_current = .{ 0xdd, 0xd8, 0xbb }, // ~/05-genizah/zenbones.nvim/colors/kanagawabones.vim:168 PmenuSbar guibg - .scroll_track = .{ 0x5d, 0x5d, 0x6f }, + .rail = .{ 0x5d, 0x5d, 0x6f }, // ~/05-genizah/zenbones.nvim/colors/kanagawabones.vim:170 PmenuThumb guibg - .scroll_thumb = .{ 0x85, 0x85, 0x94 }, + .rail_thumb = .{ 0x85, 0x85, 0x94 }, // ~/05-genizah/zenbones.nvim/colors/kanagawabones.vim:219 WinSeparator guifg - .border = .{ 0x64, 0x64, 0x76 }, + .rule = .{ 0x64, 0x64, 0x76 }, // ~/05-genizah/zenbones.nvim/colors/kanagawabones.vim:173 Search guibg - .search_bg = .{ 0x61, 0x4a, 0x82 }, - // ~/05-genizah/zenbones.nvim/colors/kanagawabones.vim:173 Search guifg - .search_fg = .{ 0xdd, 0xd8, 0xbb }, + .hit = .{ 0x61, 0x4a, 0x82 }, // ~/05-genizah/zenbones.nvim/colors/kanagawabones.vim:114 Error guifg via DiagnosticError->Error (link :115) - .diagnostic_error = .{ 0xe4, 0x6a, 0x78 }, + .@"error" = .{ 0xe4, 0x6a, 0x78 }, // ~/05-genizah/zenbones.nvim/colors/kanagawabones.vim:213 WarningMsg guifg via DiagnosticWarn->WarningMsg (link :214) - .diagnostic_warning = .{ 0xe5, 0xc2, 0x83 }, + .warning = .{ 0xe5, 0xc2, 0x83 }, // ~/05-genizah/zenbones.nvim/colors/kanagawabones.vim:73 DiagnosticInfo guifg - .diagnostic_info = .{ 0x7e, 0xb3, 0xc9 }, + .info = .{ 0x7e, 0xb3, 0xc9 }, // ~/05-genizah/zenbones.nvim/colors/kanagawabones.vim:68 DiagnosticHint guifg - .diagnostic_hint = .{ 0x95, 0x7f, 0xb8 }, - .palette = .{ + .hint = .{ 0x95, 0x7f, 0xb8 }, + .ansi = .{ .{ 0x1f, 0x1f, 0x28 }, // 0: ~/05-genizah/zenbones.nvim/colors/kanagawabones.vim:18 g:terminal_color_0 .{ 0xe4, 0x6a, 0x78 }, // 1: ~/05-genizah/zenbones.nvim/colors/kanagawabones.vim:19 g:terminal_color_1 .{ 0x98, 0xbc, 0x6d }, // 2: ~/05-genizah/zenbones.nvim/colors/kanagawabones.vim:20 g:terminal_color_2 diff --git a/core/themes/lagoon.zig b/core/themes/lagoon.zig index 66473c46..7679f4ea 100644 --- a/core/themes/lagoon.zig +++ b/core/themes/lagoon.zig @@ -4,36 +4,32 @@ //! Pardes-specific tag, search, diagnostic and ANSI roles; see docs/typ/themes.typ. pub const theme = .{ .name = "lagoon", - .bg = .{ 0x34, 0x46, 0x4c }, - .fg = .{ 0xba, 0xc9, 0xce }, - .tag_bg = .{ 0x29, 0x44, 0x3f }, - .tag_fg = .{ 0xbb, 0xd7, 0xcb }, - .tag_name_fg = .{ 0xe4, 0xc2, 0xec }, - .tag_active_name_fg = .{ 0xf0, 0xce, 0xf8 }, - .tag_active_bg = .{ 0x34, 0x57, 0x4d }, - .tag_active_fg = .{ 0xc7, 0xe3, 0xd7 }, - .box = .{ 0x81, 0xcf, 0xb7 }, - .box_dim = .{ 0x54, 0x83, 0x72 }, - .column_box = .{ 0xff, 0xad, 0x91 }, - .column_box_dim = .{ 0x9a, 0x76, 0x62 }, - .kw = .{ 0xd9, 0x9c, 0xf9 }, - .str = .{ 0xc6, 0xf8, 0x7d }, - .num = .{ 0xff, 0xad, 0x91 }, + .page = .{ 0x34, 0x46, 0x4c }, + .text = .{ 0xba, 0xc9, 0xce }, + .tag = .{ 0x29, 0x44, 0x3f }, + .tag_text = .{ 0xbb, 0xd7, 0xcb }, + .tag_name = .{ 0xe4, 0xc2, 0xec }, + .tag_focus = .{ 0x34, 0x57, 0x4d }, + .tag_focus_text = .{ 0xc7, 0xe3, 0xd7 }, + .accent = .{ 0x81, 0xcf, 0xb7 }, + .column_grip = .{ 0xff, 0xad, 0x91 }, + .keyword = .{ 0xd9, 0x9c, 0xf9 }, + .string = .{ 0xc6, 0xf8, 0x7d }, + .number = .{ 0xff, 0xad, 0x91 }, .comment = .{ 0x84, 0xef, 0xd9 }, - .lineno = .{ 0x7b, 0x91, 0x94 }, - .lineno_active = .{ 0x83, 0x99, 0x9c }, - .scroll_track = .{ 0x3a, 0x4c, 0x50 }, - .scroll_thumb = .{ 0x6e, 0x9b, 0x8b }, - .border = .{ 0x6e, 0x9b, 0x8c }, - .sel_bg = .{ 0x32, 0x5f, 0x6c }, - .sel_fg = .{ 0xe6, 0xf2, 0xf3 }, - .search_bg = .{ 0x69, 0x58, 0x1e }, - .search_fg = .{ 0xff, 0xf0, 0xb9 }, - .diagnostic_error = .{ 0xff, 0x9d, 0xa1 }, - .diagnostic_warning = .{ 0xff, 0xcb, 0x6b }, - .diagnostic_info = .{ 0x7d, 0xca, 0xff }, - .diagnostic_hint = .{ 0x7c, 0xea, 0xd4 }, - .palette = .{ + .line_number = .{ 0x7b, 0x91, 0x94 }, + .line_number_current = .{ 0x83, 0x99, 0x9c }, + .rail = .{ 0x3a, 0x4c, 0x50 }, + .rail_thumb = .{ 0x6e, 0x9b, 0x8b }, + .rule = .{ 0x6e, 0x9b, 0x8c }, + .selection = .{ 0x32, 0x5f, 0x6c }, + .selection_text = .{ 0xe6, 0xf2, 0xf3 }, + .hit = .{ 0x69, 0x58, 0x1e }, + .@"error" = .{ 0xff, 0x9d, 0xa1 }, + .warning = .{ 0xff, 0xcb, 0x6b }, + .info = .{ 0x7d, 0xca, 0xff }, + .hint = .{ 0x7c, 0xea, 0xd4 }, + .ansi = .{ .{ 0x34, 0x46, 0x4c }, .{ 0xff, 0x9d, 0xa1 }, .{ 0xc3, 0xe8, 0x8d }, diff --git a/core/themes/lapis.zig b/core/themes/lapis.zig index 95fc86bd..a4996d59 100644 --- a/core/themes/lapis.zig +++ b/core/themes/lapis.zig @@ -5,48 +5,44 @@ pub const theme = .{ .name = "lapis", // --lapis-deep, --vellum - .bg = .{ 0x0a, 0x10, 0x30 }, - .fg = .{ 0xee, 0xe6, 0xd2 }, + .page = .{ 0x0a, 0x10, 0x30 }, + .text = .{ 0xee, 0xe6, 0xd2 }, // A gold highlight in lapis ink, as the directory's current entry. - .sel_bg = .{ 0xe8, 0xc4, 0x6a }, - .sel_fg = .{ 0x0f, 0x1a, 0x4a }, + .selection = .{ 0xe8, 0xc4, 0x6a }, + .selection_text = .{ 0x0f, 0x1a, 0x4a }, // --lapis, --vellum-dim - .tag_bg = .{ 0x0f, 0x1a, 0x4a }, - .tag_fg = .{ 0x9a, 0xa6, 0xd9 }, - .tag_name_fg = .{ 0xe8, 0xc4, 0x6a }, - .tag_active_name_fg = .{ 0xf2, 0xd2, 0x80 }, + .tag = .{ 0x0f, 0x1a, 0x4a }, + .tag_text = .{ 0x9a, 0xa6, 0xd9 }, + .tag_name = .{ 0xe8, 0xc4, 0x6a }, // The plaques' hover lapis, taken a step further: 1.5:1 off the tag. - .tag_active_bg = .{ 0x25, 0x39, 0x7d }, - .tag_active_fg = .{ 0xee, 0xe6, 0xd2 }, - .box = .{ 0xe8, 0xc4, 0x6a }, - .box_dim = .{ 0x3a, 0x4a, 0x8a }, - .box_border = .{ 0x9a, 0xa6, 0xd9 }, - .box_dirty = .{ 0xff, 0x6a, 0x4a }, - .column_box = .{ 0xff, 0x6a, 0x4a }, - .column_box_dim = .{ 0x8a, 0x3a, 0x3a }, + .tag_focus = .{ 0x25, 0x39, 0x7d }, + .tag_focus_text = .{ 0xee, 0xe6, 0xd2 }, + .accent = .{ 0xe8, 0xc4, 0x6a }, + .grip_ring = .{ 0x9a, 0xa6, 0xd9 }, + .dirty = .{ 0xff, 0x6a, 0x4a }, + .column_grip = .{ 0xff, 0x6a, 0x4a }, // Rubrics: vermilion keywords, gilded strings, the code window's green // for numbers, vellum-dim comments. - .kw = .{ 0xff, 0x6a, 0x4a }, - .str = .{ 0xe8, 0xc4, 0x6a }, - .num = .{ 0xe7, 0xff, 0xe0 }, + .keyword = .{ 0xff, 0x6a, 0x4a }, + .string = .{ 0xe8, 0xc4, 0x6a }, + .number = .{ 0xe7, 0xff, 0xe0 }, .comment = .{ 0x9a, 0xa6, 0xd9 }, - .lineno = .{ 0x5a, 0x6a, 0xa8 }, - .lineno_active = .{ 0x6a, 0x7a, 0xb8 }, + .line_number = .{ 0x5a, 0x6a, 0xa8 }, + .line_number_current = .{ 0x6a, 0x7a, 0xb8 }, // --lapis-ink under a gold thumb (the page's scrollbar-color). - .scroll_track = .{ 0x05, 0x0a, 0x24 }, - .scroll_thumb = .{ 0xe8, 0xc4, 0x6a }, + .rail = .{ 0x05, 0x0a, 0x24 }, + .rail_thumb = .{ 0xe8, 0xc4, 0x6a }, // Gold rules, a vermilion hairline between a tag and its text. - .border = .{ 0xe8, 0xc4, 0x6a }, + .rule = .{ 0xe8, 0xc4, 0x6a }, // An empty column is the page, not a slab of gold leaf. - .empty_col = .{ 0x0a, 0x10, 0x30 }, + .empty_column = .{ 0x0a, 0x10, 0x30 }, .tag_rule = .{ 0xd4, 0x41, 0x2f }, - .search_bg = .{ 0x6a, 0x2a, 0x1c }, - .search_fg = .{ 0xff, 0xd0, 0xb0 }, - .diagnostic_error = .{ 0xff, 0x6a, 0x4a }, - .diagnostic_warning = .{ 0xe8, 0xc4, 0x6a }, - .diagnostic_info = .{ 0x9a, 0xc6, 0xff }, - .diagnostic_hint = .{ 0xa8, 0xe0, 0xc0 }, - .palette = .{ + .hit = .{ 0x6a, 0x2a, 0x1c }, + .@"error" = .{ 0xff, 0x6a, 0x4a }, + .warning = .{ 0xe8, 0xc4, 0x6a }, + .info = .{ 0x9a, 0xc6, 0xff }, + .hint = .{ 0xa8, 0xe0, 0xc0 }, + .ansi = .{ .{ 0x0a, 0x10, 0x30 }, .{ 0xff, 0x6a, 0x4a }, .{ 0xa8, 0xe0, 0xc0 }, diff --git a/core/themes/light.zig b/core/themes/light.zig new file mode 100644 index 00000000..681c000a --- /dev/null +++ b/core/themes/light.zig @@ -0,0 +1,30 @@ +//! pardes light: dark's daylight sibling (DESIGN.md part D). White paper, +//! the comments the darkest ink as dark's are the brightest, violet keywords +//! and grip, a lilac-grey tag, a pale violet selection. For dark's users at a +//! sunny desk, or a phone outdoors. +pub const theme = .{ + .name = "light", + .page = .{ 0xfb, 0xfb, 0xfd }, + .text = .{ 0x34, 0x32, 0x3f }, + .tag = .{ 0xe9, 0xe7, 0xf3 }, + .tag_text = .{ 0x4b, 0x48, 0x62 }, + .accent = .{ 0x6a, 0x3f, 0xd8 }, + .selection = .{ 0xdd, 0xd3, 0xfb }, + .selection_text = .{ 0x1c, 0x1a, 0x24 }, + .keyword = .{ 0x8b, 0x2a, 0xb8 }, + .string = .{ 0x2f, 0x6e, 0x1f }, + .number = .{ 0x8a, 0x57, 0x00 }, + .comment = .{ 0x0d, 0x0c, 0x12 }, + .line_number = .{ 0xa3, 0xa1, 0xb0 }, + .line_number_current = .{ 0x6e, 0x6b, 0x80 }, + .@"error" = .{ 0xc0, 0x23, 0x3a }, + .warning = .{ 0x9a, 0x5a, 0x00 }, + .info = .{ 0x24, 0x57, 0xc5 }, + .hint = .{ 0x0f, 0x76, 0x6e }, + .ansi = .{ + .{ 0xe9, 0xe7, 0xf3 }, .{ 0xc0, 0x23, 0x3a }, .{ 0x2f, 0x6e, 0x1f }, .{ 0x8a, 0x57, 0x00 }, + .{ 0x24, 0x57, 0xc5 }, .{ 0x8b, 0x2a, 0xb8 }, .{ 0x0f, 0x76, 0x6e }, .{ 0x55, 0x53, 0x6a }, + .{ 0x73, 0x71, 0x84 }, .{ 0xd2, 0x36, 0x4d }, .{ 0x35, 0x82, 0x21 }, .{ 0xa0, 0x67, 0x00 }, + .{ 0x39, 0x6c, 0xde }, .{ 0xa4, 0x3f, 0xd4 }, .{ 0x04, 0x81, 0x77 }, .{ 0x0d, 0x0c, 0x12 }, + }, +}; diff --git a/core/themes/mono.zig b/core/themes/mono.zig new file mode 100644 index 00000000..f0dd109a --- /dev/null +++ b/core/themes/mono.zig @@ -0,0 +1,31 @@ +//! pardes mono: acme at night (DESIGN.md part D). Syntax by lightness +//! alone: keywords the brightest, strings a warm off-white, numbers the +//! text's, comments a step down (5.6:1). Hue only where pardes says a state: +//! the selection, hits, severities, added and deleted. For acme and Plan 9 +//! users, anyone who finds syntax colour noise, and screen sharing. +pub const theme = .{ + .name = "mono", + .page = .{ 0x11, 0x11, 0x13 }, + .text = .{ 0xbf, 0xc0, 0xc6 }, + .tag = .{ 0x1e, 0x1f, 0x24 }, + .tag_text = .{ 0xa2, 0xa4, 0xad }, + .accent = .{ 0xe6, 0xe7, 0xec }, + .selection = .{ 0x3b, 0x3d, 0x47 }, + .selection_text = .{ 0xf2, 0xf2, 0xf5 }, + .keyword = .{ 0xf2, 0xf2, 0xf5 }, + .string = .{ 0xd4, 0xd0, 0xc4 }, + .number = .{ 0xbf, 0xc0, 0xc6 }, + .comment = .{ 0x8a, 0x8b, 0x94 }, + .line_number = .{ 0x55, 0x56, 0x5e }, + .line_number_current = .{ 0x80, 0x81, 0x8b }, + .@"error" = .{ 0xff, 0x7b, 0x72 }, + .warning = .{ 0xe3, 0xb3, 0x41 }, + .info = .{ 0x79, 0xc0, 0xff }, + .hint = .{ 0xa5, 0xd6, 0xa7 }, + .ansi = .{ + .{ 0x1e, 0x1f, 0x24 }, .{ 0xff, 0x7b, 0x72 }, .{ 0x7e, 0xe7, 0x87 }, .{ 0xe3, 0xb3, 0x41 }, + .{ 0x79, 0xc0, 0xff }, .{ 0xd2, 0xa8, 0xff }, .{ 0x76, 0xe3, 0xea }, .{ 0xbf, 0xc0, 0xc6 }, + .{ 0x7b, 0x7d, 0x86 }, .{ 0xff, 0xa1, 0x98 }, .{ 0xa5, 0xf0, 0xb0 }, .{ 0xf2, 0xcc, 0x60 }, + .{ 0xa5, 0xd6, 0xff }, .{ 0xe2, 0xc5, 0xff }, .{ 0xb3, 0xf0, 0xff }, .{ 0xf2, 0xf2, 0xf5 }, + }, +}; diff --git a/core/themes/monokai.zig b/core/themes/monokai.zig index 13e72336..db43b764 100644 --- a/core/themes/monokai.zig +++ b/core/themes/monokai.zig @@ -7,63 +7,64 @@ //! Adjusted to meet pardes's floors (chrome only; text, syntax and ANSI are untouched): //! - focused tag ground #49483e -> #59584f: 1.19:1 off the unfocused #3e3d32, pardes needs 1.5:1 on a dark page //! - rules between panes #3b3a32 -> #4a4941: 1.30:1 off the page, lifted toward the text to 1.6:1 (as colors.zig separatorOf does) +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - focused grip #f92672 -> #ff809c: 1.89:1 on the focused tag, now 3.01:1 (R6: 3:1) +//! - search hit #ffe792 -> #5f3c0c: 12.10:1 off the page, now 1.51:1 (R8: 1.5:1, the text reading on it) +//! - error #f92672 -> #fe457d: 3.93:1 on the page, now 4.50:1 (R9: 4.5:1, told from the text and the others) +//! - hint #75715e -> #928e7a: 3.03:1 on the page, now 4.51:1 (R9: 4.5:1, told from the text and the others) pub const theme = .{ .name = "monokai", // ~/05-genizah/sublime-text-2-color-schemes/Monokai.tmTheme:13 background - .bg = .{ 0x27, 0x28, 0x22 }, + .page = .{ 0x27, 0x28, 0x22 }, // ~/05-genizah/sublime-text-2-color-schemes/Monokai.tmTheme:17 foreground - .fg = .{ 0xf8, 0xf8, 0xf2 }, + .text = .{ 0xf8, 0xf8, 0xf2 }, // ~/05-genizah/sublime-text-2-color-schemes/Monokai.tmTheme:23 selection - .sel_bg = .{ 0x49, 0x48, 0x3e }, + .selection = .{ 0x49, 0x48, 0x3e }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0xf8, 0xf8, 0xf2 }, + .selection_text = .{ 0xf8, 0xf8, 0xf2 }, // ~/05-genizah/sublime-text-2-color-schemes/Monokai.tmTheme:21 lineHighlight — derived: no UI colours in a tmTheme; unfocused tag = lineHighlight - .tag_bg = .{ 0x3e, 0x3d, 0x32 }, + .tag = .{ 0x3e, 0x3d, 0x32 }, // ~/05-genizah/sublime-text-2-color-schemes/Monokai.tmTheme:17 foreground — derived: foreground - .tag_fg = .{ 0xf8, 0xf8, 0xf2 }, + .tag_text = .{ 0xf8, 0xf8, 0xf2 }, // ~/05-genizah/sublime-text-2-color-schemes/Monokai.tmTheme:23 selection — derived: focused tag = selection #49483e, adjusted - .tag_active_bg = .{ 0x59, 0x58, 0x4f }, + .tag_focus = .{ 0x59, 0x58, 0x4f }, // ~/05-genizah/sublime-text-2-color-schemes/Monokai.tmTheme:17 foreground — derived: foreground - .tag_active_fg = .{ 0xf8, 0xf8, 0xf2 }, + .tag_focus_text = .{ 0xf8, 0xf8, 0xf2 }, // the focused grip: ~/05-genizah/sublime-text-2-color-schemes/Monokai.tmTheme:122 "Keyword" foreground — derived: Keyword pink - .box = .{ 0xf9, 0x26, 0x72 }, - // derived: the grip at rest, the accent #f92672 faded toward the unfocused tag #3e3d32 as far as 1.6:1 off it (0.54 of the way) - .box_dim = .{ 0xa3, 0x31, 0x55 }, + .accent = .{ 0xf9, 0x26, 0x72 }, // an unsaved grip: the original's modified colour, ~/05-genizah/sublime-text-2-color-schemes/Monokai.tmTheme:66 "String" foreground — derived: diff.changed #E6DB74 - .box_dirty = .{ 0xe6, 0xdb, 0x74 }, + .dirty = .{ 0xe6, 0xdb, 0x74 }, // derived: the column grip, the original's type colour, ~/05-genizah/sublime-text-2-color-schemes/Monokai.tmTheme:148 "Storage type" foreground - .column_box = .{ 0x66, 0xd9, 0xef }, + .column_grip = .{ 0x66, 0xd9, 0xef }, // ~/05-genizah/sublime-text-2-color-schemes/Monokai.tmTheme:122 "Keyword" foreground - .kw = .{ 0xf9, 0x26, 0x72 }, + .keyword = .{ 0xf9, 0x26, 0x72 }, // ~/05-genizah/sublime-text-2-color-schemes/Monokai.tmTheme:66 "String" foreground - .str = .{ 0xe6, 0xdb, 0x74 }, + .string = .{ 0xe6, 0xdb, 0x74 }, // ~/05-genizah/sublime-text-2-color-schemes/Monokai.tmTheme:77 "Number" foreground - .num = .{ 0xae, 0x81, 0xff }, + .number = .{ 0xae, 0x81, 0xff }, // ~/05-genizah/sublime-text-2-color-schemes/Monokai.tmTheme:55 "Comment" foreground .comment = .{ 0x75, 0x71, 0x5e }, // ~/05-genizah/sublime-text-2-color-schemes/Monokai.tmTheme:55 "Comment" foreground — derived: the tmTheme has no gutter colour; Comment - .lineno = .{ 0x75, 0x71, 0x5e }, + .line_number = .{ 0x75, 0x71, 0x5e }, // ~/05-genizah/sublime-text-2-color-schemes/Monokai.tmTheme:17 foreground — derived: foreground - .lineno_active = .{ 0xf8, 0xf8, 0xf2 }, + .line_number_current = .{ 0xf8, 0xf8, 0xf2 }, // ~/05-genizah/sublime-text-2-color-schemes/Monokai.tmTheme:13 background — derived: page - .scroll_track = .{ 0x27, 0x28, 0x22 }, + .rail = .{ 0x27, 0x28, 0x22 }, // ~/05-genizah/sublime-text-2-color-schemes/Monokai.tmTheme:23 selection — derived: selection - .scroll_thumb = .{ 0x49, 0x48, 0x3e }, + .rail_thumb = .{ 0x49, 0x48, 0x3e }, // ~/05-genizah/sublime-text-2-color-schemes/Monokai.tmTheme:19 invisibles — derived: invisibles #3b3a32, adjusted - .border = .{ 0x4a, 0x49, 0x41 }, + .rule = .{ 0x4a, 0x49, 0x41 }, // ~/05-genizah/sublime-text-2-color-schemes/Monokai.tmTheme:25 findHighlight - .search_bg = .{ 0xff, 0xe7, 0x92 }, - // ~/05-genizah/sublime-text-2-color-schemes/Monokai.tmTheme:27 findHighlightForeground - .search_fg = .{ 0x00, 0x00, 0x00 }, + .hit = .{ 0xff, 0xe7, 0x92 }, // ~/05-genizah/sublime-text-2-color-schemes/Monokai.tmTheme:122 "Keyword" foreground — derived: Invalid is drawn on #F92672, the Keyword colour - .diagnostic_error = .{ 0xf9, 0x26, 0x72 }, + .@"error" = .{ 0xf9, 0x26, 0x72 }, // ~/05-genizah/sublime-text-2-color-schemes/Monokai.tmTheme:200 "Function argument" foreground — derived: Function argument orange - .diagnostic_warning = .{ 0xfd, 0x97, 0x1f }, + .warning = .{ 0xfd, 0x97, 0x1f }, // ~/05-genizah/sublime-text-2-color-schemes/Monokai.tmTheme:148 "Storage type" foreground — derived: Storage type cyan - .diagnostic_info = .{ 0x66, 0xd9, 0xef }, + .info = .{ 0x66, 0xd9, 0xef }, // ~/05-genizah/sublime-text-2-color-schemes/Monokai.tmTheme:55 "Comment" foreground — derived: Comment - .diagnostic_hint = .{ 0x75, 0x71, 0x5e }, - .palette = .{ + .hint = .{ 0x75, 0x71, 0x5e }, + .ansi = .{ .{ 0x27, 0x28, 0x22 }, // 0: ~/05-genizah/sublime-text-2-color-schemes/Monokai.tmTheme:13 background — derived: ANSI 0: a tmTheme has no terminal colours; its own palette in ANSI order (black=page, red=Keyword, green=Function name, yellow=String, blue and cyan=Storage type, magenta=Number, white=foreground, bright black=Comment, brights repeat) .{ 0xf9, 0x26, 0x72 }, // 1: ~/05-genizah/sublime-text-2-color-schemes/Monokai.tmTheme:122 "Keyword" foreground — derived: ANSI 1: a tmTheme has no terminal colours; its own palette in ANSI order (black=page, red=Keyword, green=Function name, yellow=String, blue and cyan=Storage type, magenta=Number, white=foreground, bright black=Comment, brights repeat) .{ 0xa6, 0xe2, 0x2e }, // 2: ~/05-genizah/sublime-text-2-color-schemes/Monokai.tmTheme:187 "Function name" foreground — derived: ANSI 2: a tmTheme has no terminal colours; its own palette in ANSI order (black=page, red=Keyword, green=Function name, yellow=String, blue and cyan=Storage type, magenta=Number, white=foreground, bright black=Comment, brights repeat) diff --git a/core/themes/monokai_pro.zig b/core/themes/monokai_pro.zig index 46a5d58b..34510e01 100644 --- a/core/themes/monokai_pro.zig +++ b/core/themes/monokai_pro.zig @@ -8,63 +8,63 @@ //! - focused tag ground #2d2a2e -> #4f4637: 1.00:1 off the unfocused #2d2a2e, pardes needs 1.5:1 on a dark page //! - rules between panes #221f22 -> #4e4b4d: 1.15:1 off the page, lifted toward the text to 1.6:1 (as colors.zig separatorOf does) //! - scroll thumb #434044 -> #4a484b: 1.39:1 on its track #2d2a2e +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - tag ground #2d2a2e -> #343135: 1.00:1 off the page, now 1.10:1 (H: a band 1.1:1 off the page; R3: tone on tone) +//! - focused tag ground #4f4637 -> #4f4c50: 1.38:1 off the tag, now 1.52:1 (R4, H: a focus step off the tag, and the loudest) +//! - selection #434044 -> #464048: 1.39:1 off the page, now 1.41:1 (R7) pub const theme = .{ .name = "monokai_pro", // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro.json:1 colors."editor.background" - .bg = .{ 0x2d, 0x2a, 0x2e }, + .page = .{ 0x2d, 0x2a, 0x2e }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro.json:1 colors."editor.foreground" - .fg = .{ 0xfc, 0xfc, 0xfa }, + .text = .{ 0xfc, 0xfc, 0xfa }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro.json:1 colors."editor.selectionBackground" #c1c0c026 over #2d2a2e - .sel_bg = .{ 0x43, 0x40, 0x44 }, + .selection = .{ 0x43, 0x40, 0x44 }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0xfc, 0xfc, 0xfa }, + .selection_text = .{ 0xfc, 0xfc, 0xfa }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro.json:1 colors."tab.inactiveBackground" - .tag_bg = .{ 0x2d, 0x2a, 0x2e }, + .tag = .{ 0x2d, 0x2a, 0x2e }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro.json:1 colors."tab.inactiveForeground" - .tag_fg = .{ 0x93, 0x92, 0x93 }, + .tag_text = .{ 0x93, 0x92, 0x93 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro.json:1 colors."tab.activeBackground" #2d2a2e, adjusted - .tag_active_bg = .{ 0x4f, 0x46, 0x37 }, + .tag_focus = .{ 0x4f, 0x46, 0x37 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro.json:1 colors."tab.activeForeground" - .tag_active_fg = .{ 0xff, 0xd8, 0x66 }, + .tag_focus_text = .{ 0xff, 0xd8, 0x66 }, // the focused grip: ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro.json:1 colors."tab.activeBorder" - .box = .{ 0xff, 0xd8, 0x66 }, - // derived: the grip at rest, the accent #ffd866 faded toward the unfocused tag #2d2a2e as far as 1.6:1 off it (0.20 of the way) - .box_dim = .{ 0x57, 0x4d, 0x39 }, + .accent = .{ 0xff, 0xd8, 0x66 }, // an unsaved grip: the original's modified colour, ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro.json:1 colors."editorGutter.modifiedBackground" - .box_dirty = .{ 0xfc, 0x98, 0x67 }, + .dirty = .{ 0xfc, 0x98, 0x67 }, // derived: the column grip, the original's type colour, ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro.json:1 tokenColors[42] "entity.name.type" - .column_box = .{ 0x78, 0xdc, 0xe8 }, + .column_grip = .{ 0x78, 0xdc, 0xe8 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro.json:1 tokenColors[57] "keyword" - .kw = .{ 0xff, 0x61, 0x88 }, + .keyword = .{ 0xff, 0x61, 0x88 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro.json:1 tokenColors[132] "string" - .str = .{ 0xff, 0xd8, 0x66 }, + .string = .{ 0xff, 0xd8, 0x66 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro.json:1 tokenColors[22] "constant.numeric" - .num = .{ 0xab, 0x9d, 0xf2 }, + .number = .{ 0xab, 0x9d, 0xf2 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro.json:1 tokenColors[0] "comment" .comment = .{ 0x72, 0x70, 0x72 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro.json:1 colors."editorLineNumber.foreground" - .lineno = .{ 0x5b, 0x59, 0x5c }, + .line_number = .{ 0x5b, 0x59, 0x5c }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro.json:1 colors."editorLineNumber.activeForeground" - .lineno_active = .{ 0xc1, 0xc0, 0xc0 }, + .line_number_current = .{ 0xc1, 0xc0, 0xc0 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro.json:1 no scrollbar.background: the editor shows through - .scroll_track = .{ 0x2d, 0x2a, 0x2e }, + .rail = .{ 0x2d, 0x2a, 0x2e }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro.json:1 colors."scrollbarSlider.background" #c1c0c026 over #2d2a2e #434044, adjusted - .scroll_thumb = .{ 0x4a, 0x48, 0x4b }, + .rail_thumb = .{ 0x4a, 0x48, 0x4b }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro.json:1 colors."editorGroup.border" #221f22, adjusted - .border = .{ 0x4e, 0x4b, 0x4d }, + .rule = .{ 0x4e, 0x4b, 0x4d }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro.json:1 colors."editor.findMatchBackground" #fcfcfa26 over #2d2a2e - .search_bg = .{ 0x4c, 0x49, 0x4c }, - // derived: the original keeps text colours over a match; the page's text, whichever reads better on it - .search_fg = .{ 0xfc, 0xfc, 0xfa }, + .hit = .{ 0x4c, 0x49, 0x4c }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro.json:1 colors."editorError.foreground" - .diagnostic_error = .{ 0xff, 0x61, 0x88 }, + .@"error" = .{ 0xff, 0x61, 0x88 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro.json:1 colors."editorWarning.foreground" - .diagnostic_warning = .{ 0xfc, 0x98, 0x67 }, + .warning = .{ 0xfc, 0x98, 0x67 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro.json:1 colors."editorInfo.foreground" - .diagnostic_info = .{ 0x78, 0xdc, 0xe8 }, + .info = .{ 0x78, 0xdc, 0xe8 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro.json:1 colors."editorHint.foreground" - .diagnostic_hint = .{ 0xab, 0x9d, 0xf2 }, - .palette = .{ + .hint = .{ 0xab, 0x9d, 0xf2 }, + .ansi = .{ .{ 0x40, 0x3e, 0x41 }, // 0: ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro.json:1 colors."terminal.ansiBlack" .{ 0xff, 0x61, 0x88 }, // 1: ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro.json:1 colors."terminal.ansiRed" .{ 0xa9, 0xdc, 0x76 }, // 2: ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro.json:1 colors."terminal.ansiGreen" diff --git a/core/themes/monokai_pro_classic.zig b/core/themes/monokai_pro_classic.zig index 69f26327..ed1f8092 100644 --- a/core/themes/monokai_pro_classic.zig +++ b/core/themes/monokai_pro_classic.zig @@ -8,63 +8,63 @@ //! - focused tag ground #272822 -> #46452f: 1.00:1 off the unfocused #272822, pardes needs 1.5:1 on a dark page //! - rules between panes #1d1e19 -> #4a4b44: 1.13:1 off the page, lifted toward the text to 1.6:1 (as colors.zig separatorOf does) //! - scroll thumb #3e3f38 -> #46473f: 1.40:1 on its track #272822 +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - tag ground #272822 -> #2e2f29: 1.00:1 off the page, now 1.10:1 (H: a band 1.1:1 off the page; R3: tone on tone) +//! - focused tag ground #46452f -> #494a43: 1.38:1 off the tag, now 1.51:1 (R4, H: a focus step off the tag, and the loudest) +//! - error #f92672 -> #fe457d: 3.93:1 on the page, now 4.50:1 (R9: 4.5:1, told from the text and the others) pub const theme = .{ .name = "monokai_pro_classic", // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Classic.json:1 colors."editor.background" - .bg = .{ 0x27, 0x28, 0x22 }, + .page = .{ 0x27, 0x28, 0x22 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Classic.json:1 colors."editor.foreground" - .fg = .{ 0xfd, 0xff, 0xf1 }, + .text = .{ 0xfd, 0xff, 0xf1 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Classic.json:1 colors."editor.selectionBackground" #c0c1b526 over #272822 - .sel_bg = .{ 0x3e, 0x3f, 0x38 }, + .selection = .{ 0x3e, 0x3f, 0x38 }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0xfd, 0xff, 0xf1 }, + .selection_text = .{ 0xfd, 0xff, 0xf1 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Classic.json:1 colors."tab.inactiveBackground" - .tag_bg = .{ 0x27, 0x28, 0x22 }, + .tag = .{ 0x27, 0x28, 0x22 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Classic.json:1 colors."tab.inactiveForeground" - .tag_fg = .{ 0x91, 0x92, 0x88 }, + .tag_text = .{ 0x91, 0x92, 0x88 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Classic.json:1 colors."tab.activeBackground" #272822, adjusted - .tag_active_bg = .{ 0x46, 0x45, 0x2f }, + .tag_focus = .{ 0x46, 0x45, 0x2f }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Classic.json:1 colors."tab.activeForeground" - .tag_active_fg = .{ 0xe6, 0xdb, 0x74 }, + .tag_focus_text = .{ 0xe6, 0xdb, 0x74 }, // the focused grip: ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Classic.json:1 colors."tab.activeBorder" - .box = .{ 0xe6, 0xdb, 0x74 }, - // derived: the grip at rest, the accent #e6db74 faded toward the unfocused tag #272822 as far as 1.6:1 off it (0.20 of the way) - .box_dim = .{ 0x4d, 0x4c, 0x32 }, + .accent = .{ 0xe6, 0xdb, 0x74 }, // an unsaved grip: the original's modified colour, ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Classic.json:1 colors."editorGutter.modifiedBackground" - .box_dirty = .{ 0xfd, 0x97, 0x1f }, + .dirty = .{ 0xfd, 0x97, 0x1f }, // derived: the column grip, the original's type colour, ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Classic.json:1 tokenColors[42] "entity.name.type" - .column_box = .{ 0x66, 0xd9, 0xef }, + .column_grip = .{ 0x66, 0xd9, 0xef }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Classic.json:1 tokenColors[57] "keyword" - .kw = .{ 0xf9, 0x26, 0x72 }, + .keyword = .{ 0xf9, 0x26, 0x72 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Classic.json:1 tokenColors[132] "string" - .str = .{ 0xe6, 0xdb, 0x74 }, + .string = .{ 0xe6, 0xdb, 0x74 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Classic.json:1 tokenColors[22] "constant.numeric" - .num = .{ 0xae, 0x81, 0xff }, + .number = .{ 0xae, 0x81, 0xff }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Classic.json:1 tokenColors[0] "comment" .comment = .{ 0x6e, 0x70, 0x66 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Classic.json:1 colors."editorLineNumber.foreground" - .lineno = .{ 0x57, 0x58, 0x4f }, + .line_number = .{ 0x57, 0x58, 0x4f }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Classic.json:1 colors."editorLineNumber.activeForeground" - .lineno_active = .{ 0xc0, 0xc1, 0xb5 }, + .line_number_current = .{ 0xc0, 0xc1, 0xb5 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Classic.json:1 no scrollbar.background: the editor shows through - .scroll_track = .{ 0x27, 0x28, 0x22 }, + .rail = .{ 0x27, 0x28, 0x22 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Classic.json:1 colors."scrollbarSlider.background" #c0c1b526 over #272822 #3e3f38, adjusted - .scroll_thumb = .{ 0x46, 0x47, 0x3f }, + .rail_thumb = .{ 0x46, 0x47, 0x3f }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Classic.json:1 colors."editorGroup.border" #1d1e19, adjusted - .border = .{ 0x4a, 0x4b, 0x44 }, + .rule = .{ 0x4a, 0x4b, 0x44 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Classic.json:1 colors."editor.findMatchBackground" #fdfff126 over #272822 - .search_bg = .{ 0x47, 0x48, 0x41 }, - // derived: the original keeps text colours over a match; the page's text, whichever reads better on it - .search_fg = .{ 0xfd, 0xff, 0xf1 }, + .hit = .{ 0x47, 0x48, 0x41 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Classic.json:1 colors."editorError.foreground" - .diagnostic_error = .{ 0xf9, 0x26, 0x72 }, + .@"error" = .{ 0xf9, 0x26, 0x72 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Classic.json:1 colors."editorWarning.foreground" - .diagnostic_warning = .{ 0xfd, 0x97, 0x1f }, + .warning = .{ 0xfd, 0x97, 0x1f }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Classic.json:1 colors."editorInfo.foreground" - .diagnostic_info = .{ 0x66, 0xd9, 0xef }, + .info = .{ 0x66, 0xd9, 0xef }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Classic.json:1 colors."editorHint.foreground" - .diagnostic_hint = .{ 0xae, 0x81, 0xff }, - .palette = .{ + .hint = .{ 0xae, 0x81, 0xff }, + .ansi = .{ .{ 0x3b, 0x3c, 0x35 }, // 0: ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Classic.json:1 colors."terminal.ansiBlack" .{ 0xf9, 0x26, 0x72 }, // 1: ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Classic.json:1 colors."terminal.ansiRed" .{ 0xa6, 0xe2, 0x2e }, // 2: ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Classic.json:1 colors."terminal.ansiGreen" diff --git a/core/themes/monokai_pro_light.zig b/core/themes/monokai_pro_light.zig index ef638731..2e75d5c2 100644 --- a/core/themes/monokai_pro_light.zig +++ b/core/themes/monokai_pro_light.zig @@ -10,63 +10,69 @@ //! - focused tag text #e14775 -> #a73557: 2.80:1 on #f5d1d9, tag text needs 4.5:1 //! - rules between panes #ede7e5 -> #c6c0c0: 1.12:1 off the page, lifted toward the text to 1.6:1 (as colors.zig separatorOf does) //! - scroll thumb #e5e0de -> #cec9c8: 1.20:1 on its track #faf4f2 +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - tag ground #faf4f2 -> #efe9e7: 1.00:1 off the page, now 1.10:1 (H: a band 1.1:1 off the page; R3: tone on tone) +//! - focused tag ground #f5d1d9 -> #d7d1cf: 1.16:1 off the tag, now 1.26:1 (R4, H: a focus step off the tag, and the loudest) +//! - focused grip #e14775 -> #d43a6a: 2.60:1 on the focused tag, now 3.02:1 (R6: 3:1) +//! - unsaved grip #e16032 -> #cc4c1b: 2.95:1 on the tag, now 3.79:1 (R6: 3:1 on both tags) +//! - selection #e5e0de -> #e5dad6: 1.20:1 off the page, now 1.26:1 (R7) +//! - search hit #dbd5d4 -> #febaa3: 1.33:1 off the page, now 1.51:1 (R8: 1.5:1, the text reading on it) +//! - error #e14775 -> #cd3365: 3.60:1 on the page, now 4.53:1 (R9: 4.5:1, told from the text and the others) +//! - warning #e16032 -> #c54611: 3.26:1 on the page, now 4.53:1 (R9: 4.5:1, told from the text and the others) +//! - info #1c8ca8 -> #077b95: 3.59:1 on the page, now 4.51:1 (R9: 4.5:1, told from the text and the others) pub const theme = .{ .name = "monokai_pro_light", // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light.json:1 colors."editor.background" - .bg = .{ 0xfa, 0xf4, 0xf2 }, + .page = .{ 0xfa, 0xf4, 0xf2 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light.json:1 colors."editor.foreground" - .fg = .{ 0x29, 0x24, 0x2a }, + .text = .{ 0x29, 0x24, 0x2a }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light.json:1 colors."editor.selectionBackground" #706b6e26 over #faf4f2 - .sel_bg = .{ 0xe5, 0xe0, 0xde }, + .selection = .{ 0xe5, 0xe0, 0xde }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0x29, 0x24, 0x2a }, + .selection_text = .{ 0x29, 0x24, 0x2a }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light.json:1 colors."tab.inactiveBackground" - .tag_bg = .{ 0xfa, 0xf4, 0xf2 }, + .tag = .{ 0xfa, 0xf4, 0xf2 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light.json:1 colors."tab.inactiveForeground" #918c8e, adjusted - .tag_fg = .{ 0x71, 0x6d, 0x6f }, + .tag_text = .{ 0x71, 0x6d, 0x6f }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light.json:1 colors."tab.activeBackground" #faf4f2, adjusted - .tag_active_bg = .{ 0xf5, 0xd1, 0xd9 }, + .tag_focus = .{ 0xf5, 0xd1, 0xd9 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light.json:1 colors."tab.activeForeground" #e14775, adjusted - .tag_active_fg = .{ 0xa7, 0x35, 0x57 }, + .tag_focus_text = .{ 0xa7, 0x35, 0x57 }, // the focused grip: ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light.json:1 colors."tab.activeBorder" - .box = .{ 0xe1, 0x47, 0x75 }, - // derived: the grip at rest, the accent #e14775 faded toward the unfocused tag #faf4f2 as far as 1.6:1 off it (0.38 of the way) - .box_dim = .{ 0xf1, 0xb2, 0xc3 }, + .accent = .{ 0xe1, 0x47, 0x75 }, // an unsaved grip: the original's modified colour, ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light.json:1 colors."editorGutter.modifiedBackground" - .box_dirty = .{ 0xe1, 0x60, 0x32 }, + .dirty = .{ 0xe1, 0x60, 0x32 }, // derived: the column grip, the original's type colour, ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light.json:1 tokenColors[42] "entity.name.type" - .column_box = .{ 0x1c, 0x8c, 0xa8 }, + .column_grip = .{ 0x1c, 0x8c, 0xa8 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light.json:1 tokenColors[57] "keyword" - .kw = .{ 0xe1, 0x47, 0x75 }, + .keyword = .{ 0xe1, 0x47, 0x75 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light.json:1 tokenColors[132] "string" - .str = .{ 0xcc, 0x7a, 0x0a }, + .string = .{ 0xcc, 0x7a, 0x0a }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light.json:1 tokenColors[22] "constant.numeric" - .num = .{ 0x70, 0x58, 0xbe }, + .number = .{ 0x70, 0x58, 0xbe }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light.json:1 tokenColors[0] "comment" .comment = .{ 0xa5, 0x9f, 0xa0 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light.json:1 colors."editorLineNumber.foreground" - .lineno = .{ 0xbf, 0xb9, 0xba }, + .line_number = .{ 0xbf, 0xb9, 0xba }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light.json:1 colors."editorLineNumber.activeForeground" - .lineno_active = .{ 0x70, 0x6b, 0x6e }, + .line_number_current = .{ 0x70, 0x6b, 0x6e }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light.json:1 no scrollbar.background: the editor shows through - .scroll_track = .{ 0xfa, 0xf4, 0xf2 }, + .rail = .{ 0xfa, 0xf4, 0xf2 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light.json:1 colors."scrollbarSlider.background" #706b6e26 over #faf4f2 #e5e0de, adjusted - .scroll_thumb = .{ 0xce, 0xc9, 0xc8 }, + .rail_thumb = .{ 0xce, 0xc9, 0xc8 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light.json:1 colors."editorGroup.border" #ede7e5, adjusted - .border = .{ 0xc6, 0xc0, 0xc0 }, + .rule = .{ 0xc6, 0xc0, 0xc0 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light.json:1 colors."editor.findMatchBackground" #29242a26 over #faf4f2 - .search_bg = .{ 0xdb, 0xd5, 0xd4 }, - // derived: the original keeps text colours over a match; the page's text, whichever reads better on it - .search_fg = .{ 0x29, 0x24, 0x2a }, + .hit = .{ 0xdb, 0xd5, 0xd4 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light.json:1 colors."editorError.foreground" - .diagnostic_error = .{ 0xe1, 0x47, 0x75 }, + .@"error" = .{ 0xe1, 0x47, 0x75 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light.json:1 colors."editorWarning.foreground" - .diagnostic_warning = .{ 0xe1, 0x60, 0x32 }, + .warning = .{ 0xe1, 0x60, 0x32 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light.json:1 colors."editorInfo.foreground" - .diagnostic_info = .{ 0x1c, 0x8c, 0xa8 }, + .info = .{ 0x1c, 0x8c, 0xa8 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light.json:1 colors."editorHint.foreground" - .diagnostic_hint = .{ 0x70, 0x58, 0xbe }, - .palette = .{ + .hint = .{ 0x70, 0x58, 0xbe }, + .ansi = .{ .{ 0xd3, 0xcd, 0xcc }, // 0: ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light.json:1 colors."terminal.ansiBlack" .{ 0xe1, 0x47, 0x75 }, // 1: ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light.json:1 colors."terminal.ansiRed" .{ 0x26, 0x9d, 0x69 }, // 2: ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light.json:1 colors."terminal.ansiGreen" diff --git a/core/themes/monokai_pro_light_sun.zig b/core/themes/monokai_pro_light_sun.zig index 2d023deb..f74ee446 100644 --- a/core/themes/monokai_pro_light_sun.zig +++ b/core/themes/monokai_pro_light_sun.zig @@ -10,63 +10,69 @@ //! - focused tag text #ce4770 -> #9d3655: 3.01:1 on #f0cdcf, tag text needs 4.5:1 //! - rules between panes #eee5de -> #c7bebb: 1.09:1 off the page, lifted toward the text to 1.6:1 (as colors.zig separatorOf does) //! - scroll thumb #e4dbd5 -> #cac1be: 1.20:1 on its track #f8efe7 +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - tag ground #f8efe7 -> #ede4dc: 1.00:1 off the page, now 1.11:1 (H: a band 1.1:1 off the page; R3: tone on tone) +//! - focused tag ground #f0cdcf -> #d5ccc4: 1.17:1 off the tag, now 1.26:1 (R4, H: a focus step off the tag, and the loudest) +//! - focused grip #ce4770 -> #c7416b: 2.79:1 on the focused tag, now 3.02:1 (R6: 3:1) +//! - unsaved grip #d4572b -> #c64a1b: 3.22:1 on the tag, now 3.81:1 (R6: 3:1 on both tags) +//! - selection #e4dbd5 -> #e7d5c7: 1.20:1 off the page, now 1.25:1 (R7) +//! - search hit #dad1cb -> #feb599: 1.32:1 off the page, now 1.51:1 (R8: 1.5:1, the text reading on it) +//! - error #ce4770 -> #c13b65: 3.89:1 on the page, now 4.53:1 (R9: 4.5:1, told from the text and the others) +//! - warning #d4572b -> #c04414: 3.56:1 on the page, now 4.53:1 (R9: 4.5:1, told from the text and the others) +//! - info #2473b6 -> #2271b4: 4.40:1 on the page, now 4.52:1 (R9: 4.5:1, told from the text and the others) pub const theme = .{ .name = "monokai_pro_light_sun", // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light (Filter Sun).json:1 colors."editor.background" - .bg = .{ 0xf8, 0xef, 0xe7 }, + .page = .{ 0xf8, 0xef, 0xe7 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light (Filter Sun).json:1 colors."editor.foreground" - .fg = .{ 0x2c, 0x23, 0x2e }, + .text = .{ 0x2c, 0x23, 0x2e }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light (Filter Sun).json:1 colors."editor.selectionBackground" #72696d26 over #f8efe7 - .sel_bg = .{ 0xe4, 0xdb, 0xd5 }, + .selection = .{ 0xe4, 0xdb, 0xd5 }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0x2c, 0x23, 0x2e }, + .selection_text = .{ 0x2c, 0x23, 0x2e }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light (Filter Sun).json:1 colors."tab.inactiveBackground" - .tag_bg = .{ 0xf8, 0xef, 0xe7 }, + .tag = .{ 0xf8, 0xef, 0xe7 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light (Filter Sun).json:1 colors."tab.inactiveForeground" #92898a, adjusted - .tag_fg = .{ 0x72, 0x6b, 0x6c }, + .tag_text = .{ 0x72, 0x6b, 0x6c }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light (Filter Sun).json:1 colors."tab.activeBackground" #f8efe7, adjusted - .tag_active_bg = .{ 0xf0, 0xcd, 0xcf }, + .tag_focus = .{ 0xf0, 0xcd, 0xcf }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light (Filter Sun).json:1 colors."tab.activeForeground" #ce4770, adjusted - .tag_active_fg = .{ 0x9d, 0x36, 0x55 }, + .tag_focus_text = .{ 0x9d, 0x36, 0x55 }, // the focused grip: ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light (Filter Sun).json:1 colors."tab.activeBorder" - .box = .{ 0xce, 0x47, 0x70 }, - // derived: the grip at rest, the accent #ce4770 faded toward the unfocused tag #f8efe7 as far as 1.6:1 off it (0.38 of the way) - .box_dim = .{ 0xe8, 0xaf, 0xba }, + .accent = .{ 0xce, 0x47, 0x70 }, // an unsaved grip: the original's modified colour, ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light (Filter Sun).json:1 colors."editorGutter.modifiedBackground" - .box_dirty = .{ 0xd4, 0x57, 0x2b }, + .dirty = .{ 0xd4, 0x57, 0x2b }, // derived: the column grip, the original's type colour, ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light (Filter Sun).json:1 tokenColors[42] "entity.name.type" - .column_box = .{ 0x24, 0x73, 0xb6 }, + .column_grip = .{ 0x24, 0x73, 0xb6 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light (Filter Sun).json:1 tokenColors[57] "keyword" - .kw = .{ 0xce, 0x47, 0x70 }, + .keyword = .{ 0xce, 0x47, 0x70 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light (Filter Sun).json:1 tokenColors[132] "string" - .str = .{ 0xb1, 0x68, 0x03 }, + .string = .{ 0xb1, 0x68, 0x03 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light (Filter Sun).json:1 tokenColors[22] "constant.numeric" - .num = .{ 0x68, 0x51, 0xa2 }, + .number = .{ 0x68, 0x51, 0xa2 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light (Filter Sun).json:1 tokenColors[0] "comment" .comment = .{ 0xa5, 0x9c, 0x9c }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light (Filter Sun).json:1 colors."editorLineNumber.foreground" - .lineno = .{ 0xbe, 0xb5, 0xb3 }, + .line_number = .{ 0xbe, 0xb5, 0xb3 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light (Filter Sun).json:1 colors."editorLineNumber.activeForeground" - .lineno_active = .{ 0x72, 0x69, 0x6d }, + .line_number_current = .{ 0x72, 0x69, 0x6d }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light (Filter Sun).json:1 no scrollbar.background: the editor shows through - .scroll_track = .{ 0xf8, 0xef, 0xe7 }, + .rail = .{ 0xf8, 0xef, 0xe7 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light (Filter Sun).json:1 colors."scrollbarSlider.background" #72696d26 over #f8efe7 #e4dbd5, adjusted - .scroll_thumb = .{ 0xca, 0xc1, 0xbe }, + .rail_thumb = .{ 0xca, 0xc1, 0xbe }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light (Filter Sun).json:1 colors."editorGroup.border" #eee5de, adjusted - .border = .{ 0xc7, 0xbe, 0xbb }, + .rule = .{ 0xc7, 0xbe, 0xbb }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light (Filter Sun).json:1 colors."editor.findMatchBackground" #2c232e26 over #f8efe7 - .search_bg = .{ 0xda, 0xd1, 0xcb }, - // derived: the original keeps text colours over a match; the page's text, whichever reads better on it - .search_fg = .{ 0x2c, 0x23, 0x2e }, + .hit = .{ 0xda, 0xd1, 0xcb }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light (Filter Sun).json:1 colors."editorError.foreground" - .diagnostic_error = .{ 0xce, 0x47, 0x70 }, + .@"error" = .{ 0xce, 0x47, 0x70 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light (Filter Sun).json:1 colors."editorWarning.foreground" - .diagnostic_warning = .{ 0xd4, 0x57, 0x2b }, + .warning = .{ 0xd4, 0x57, 0x2b }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light (Filter Sun).json:1 colors."editorInfo.foreground" - .diagnostic_info = .{ 0x24, 0x73, 0xb6 }, + .info = .{ 0x24, 0x73, 0xb6 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light (Filter Sun).json:1 colors."editorHint.foreground" - .diagnostic_hint = .{ 0x68, 0x51, 0xa2 }, - .palette = .{ + .hint = .{ 0x68, 0x51, 0xa2 }, + .ansi = .{ .{ 0xd2, 0xc9, 0xc4 }, // 0: ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light (Filter Sun).json:1 colors."terminal.ansiBlack" .{ 0xce, 0x47, 0x70 }, // 1: ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light (Filter Sun).json:1 colors."terminal.ansiRed" .{ 0x21, 0x88, 0x71 }, // 2: ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro Light (Filter Sun).json:1 colors."terminal.ansiGreen" diff --git a/core/themes/monokai_pro_machine.zig b/core/themes/monokai_pro_machine.zig index 5e4c6885..60f3f26f 100644 --- a/core/themes/monokai_pro_machine.zig +++ b/core/themes/monokai_pro_machine.zig @@ -9,63 +9,63 @@ //! - unfocused tag text #8b9798 -> #8d999a: 4.42:1 on #273136, tag text needs 4.5:1 to be read and run //! - rules between panes #1d2528 -> #485152: 1.17:1 off the page, lifted toward the text to 1.6:1 (as colors.zig separatorOf does) //! - scroll thumb #3d474b -> #444e52: 1.39:1 on its track #273136 +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - tag ground #273136 -> #2e383d: 1.00:1 off the page, now 1.11:1 (H: a band 1.1:1 off the page; R3: tone on tone) +//! - focused tag ground #4a4f40 -> #485358: 1.42:1 off the tag, now 1.52:1 (R4, H: a focus step off the tag, and the loudest) +//! - selection #3d474b -> #334952: 1.39:1 off the page, now 1.40:1 (R7) pub const theme = .{ .name = "monokai_pro_machine", // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Machine).json:1 colors."editor.background" - .bg = .{ 0x27, 0x31, 0x36 }, + .page = .{ 0x27, 0x31, 0x36 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Machine).json:1 colors."editor.foreground" - .fg = .{ 0xf2, 0xff, 0xfc }, + .text = .{ 0xf2, 0xff, 0xfc }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Machine).json:1 colors."editor.selectionBackground" #b8c4c326 over #273136 - .sel_bg = .{ 0x3d, 0x47, 0x4b }, + .selection = .{ 0x3d, 0x47, 0x4b }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0xf2, 0xff, 0xfc }, + .selection_text = .{ 0xf2, 0xff, 0xfc }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Machine).json:1 colors."tab.inactiveBackground" - .tag_bg = .{ 0x27, 0x31, 0x36 }, + .tag = .{ 0x27, 0x31, 0x36 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Machine).json:1 colors."tab.inactiveForeground" #8b9798, adjusted - .tag_fg = .{ 0x8d, 0x99, 0x9a }, + .tag_text = .{ 0x8d, 0x99, 0x9a }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Machine).json:1 colors."tab.activeBackground" #273136, adjusted - .tag_active_bg = .{ 0x4a, 0x4f, 0x40 }, + .tag_focus = .{ 0x4a, 0x4f, 0x40 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Machine).json:1 colors."tab.activeForeground" - .tag_active_fg = .{ 0xff, 0xed, 0x72 }, + .tag_focus_text = .{ 0xff, 0xed, 0x72 }, // the focused grip: ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Machine).json:1 colors."tab.activeBorder" - .box = .{ 0xff, 0xed, 0x72 }, - // derived: the grip at rest, the accent #ffed72 faded toward the unfocused tag #273136 as far as 1.6:1 off it (0.18 of the way) - .box_dim = .{ 0x4e, 0x53, 0x41 }, + .accent = .{ 0xff, 0xed, 0x72 }, // an unsaved grip: the original's modified colour, ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Machine).json:1 colors."editorGutter.modifiedBackground" - .box_dirty = .{ 0xff, 0xb2, 0x70 }, + .dirty = .{ 0xff, 0xb2, 0x70 }, // derived: the column grip, the original's type colour, ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Machine).json:1 tokenColors[42] "entity.name.type" - .column_box = .{ 0x7c, 0xd5, 0xf1 }, + .column_grip = .{ 0x7c, 0xd5, 0xf1 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Machine).json:1 tokenColors[57] "keyword" - .kw = .{ 0xff, 0x6d, 0x7e }, + .keyword = .{ 0xff, 0x6d, 0x7e }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Machine).json:1 tokenColors[132] "string" - .str = .{ 0xff, 0xed, 0x72 }, + .string = .{ 0xff, 0xed, 0x72 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Machine).json:1 tokenColors[22] "constant.numeric" - .num = .{ 0xba, 0xa0, 0xf8 }, + .number = .{ 0xba, 0xa0, 0xf8 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Machine).json:1 tokenColors[0] "comment" .comment = .{ 0x6b, 0x76, 0x78 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Machine).json:1 colors."editorLineNumber.foreground" - .lineno = .{ 0x54, 0x5f, 0x62 }, + .line_number = .{ 0x54, 0x5f, 0x62 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Machine).json:1 colors."editorLineNumber.activeForeground" - .lineno_active = .{ 0xb8, 0xc4, 0xc3 }, + .line_number_current = .{ 0xb8, 0xc4, 0xc3 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Machine).json:1 no scrollbar.background: the editor shows through - .scroll_track = .{ 0x27, 0x31, 0x36 }, + .rail = .{ 0x27, 0x31, 0x36 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Machine).json:1 colors."scrollbarSlider.background" #b8c4c326 over #273136 #3d474b, adjusted - .scroll_thumb = .{ 0x44, 0x4e, 0x52 }, + .rail_thumb = .{ 0x44, 0x4e, 0x52 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Machine).json:1 colors."editorGroup.border" #1d2528, adjusted - .border = .{ 0x48, 0x51, 0x52 }, + .rule = .{ 0x48, 0x51, 0x52 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Machine).json:1 colors."editor.findMatchBackground" #f2fffc26 over #273136 - .search_bg = .{ 0x45, 0x50, 0x54 }, - // derived: the original keeps text colours over a match; the page's text, whichever reads better on it - .search_fg = .{ 0xf2, 0xff, 0xfc }, + .hit = .{ 0x45, 0x50, 0x54 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Machine).json:1 colors."editorError.foreground" - .diagnostic_error = .{ 0xff, 0x6d, 0x7e }, + .@"error" = .{ 0xff, 0x6d, 0x7e }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Machine).json:1 colors."editorWarning.foreground" - .diagnostic_warning = .{ 0xff, 0xb2, 0x70 }, + .warning = .{ 0xff, 0xb2, 0x70 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Machine).json:1 colors."editorInfo.foreground" - .diagnostic_info = .{ 0x7c, 0xd5, 0xf1 }, + .info = .{ 0x7c, 0xd5, 0xf1 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Machine).json:1 colors."editorHint.foreground" - .diagnostic_hint = .{ 0xba, 0xa0, 0xf8 }, - .palette = .{ + .hint = .{ 0xba, 0xa0, 0xf8 }, + .ansi = .{ .{ 0x3a, 0x44, 0x49 }, // 0: ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Machine).json:1 colors."terminal.ansiBlack" .{ 0xff, 0x6d, 0x7e }, // 1: ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Machine).json:1 colors."terminal.ansiRed" .{ 0xa2, 0xe5, 0x7b }, // 2: ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Machine).json:1 colors."terminal.ansiGreen" diff --git a/core/themes/monokai_pro_octagon.zig b/core/themes/monokai_pro_octagon.zig index 62bb8c15..5d9db83b 100644 --- a/core/themes/monokai_pro_octagon.zig +++ b/core/themes/monokai_pro_octagon.zig @@ -9,63 +9,63 @@ //! - unfocused tag text #888d94 -> #8d9298: 4.24:1 on #282a3a, tag text needs 4.5:1 to be read and run //! - rules between panes #1e1f2b -> #4b4d57: 1.15:1 off the page, lifted toward the text to 1.6:1 (as colors.zig separatorOf does) //! - scroll thumb #3d3f4e -> #444655: 1.36:1 on its track #282a3a +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - tag ground #282a3a -> #2e3141: 1.00:1 off the page, now 1.10:1 (H: a band 1.1:1 off the page; R3: tone on tone) +//! - focused tag ground #4a4642 -> #494c5d: 1.38:1 off the tag, now 1.52:1 (R4, H: a focus step off the tag, and the loudest) +//! - selection #3d3f4e -> #3c4060: 1.36:1 off the page, now 1.41:1 (R7) pub const theme = .{ .name = "monokai_pro_octagon", // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Octagon).json:1 colors."editor.background" - .bg = .{ 0x28, 0x2a, 0x3a }, + .page = .{ 0x28, 0x2a, 0x3a }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Octagon).json:1 colors."editor.foreground" - .fg = .{ 0xea, 0xf2, 0xf1 }, + .text = .{ 0xea, 0xf2, 0xf1 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Octagon).json:1 colors."editor.selectionBackground" #b2b9bd26 over #282a3a - .sel_bg = .{ 0x3d, 0x3f, 0x4e }, + .selection = .{ 0x3d, 0x3f, 0x4e }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0xea, 0xf2, 0xf1 }, + .selection_text = .{ 0xea, 0xf2, 0xf1 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Octagon).json:1 colors."tab.inactiveBackground" - .tag_bg = .{ 0x28, 0x2a, 0x3a }, + .tag = .{ 0x28, 0x2a, 0x3a }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Octagon).json:1 colors."tab.inactiveForeground" #888d94, adjusted - .tag_fg = .{ 0x8d, 0x92, 0x98 }, + .tag_text = .{ 0x8d, 0x92, 0x98 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Octagon).json:1 colors."tab.activeBackground" #282a3a, adjusted - .tag_active_bg = .{ 0x4a, 0x46, 0x42 }, + .tag_focus = .{ 0x4a, 0x46, 0x42 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Octagon).json:1 colors."tab.activeForeground" - .tag_active_fg = .{ 0xff, 0xd7, 0x6d }, + .tag_focus_text = .{ 0xff, 0xd7, 0x6d }, // the focused grip: ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Octagon).json:1 colors."tab.activeBorder" - .box = .{ 0xff, 0xd7, 0x6d }, - // derived: the grip at rest, the accent #ffd76d faded toward the unfocused tag #282a3a as far as 1.6:1 off it (0.20 of the way) - .box_dim = .{ 0x53, 0x4d, 0x44 }, + .accent = .{ 0xff, 0xd7, 0x6d }, // an unsaved grip: the original's modified colour, ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Octagon).json:1 colors."editorGutter.modifiedBackground" - .box_dirty = .{ 0xff, 0x9b, 0x5e }, + .dirty = .{ 0xff, 0x9b, 0x5e }, // derived: the column grip, the original's type colour, ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Octagon).json:1 tokenColors[42] "entity.name.type" - .column_box = .{ 0x9c, 0xd1, 0xbb }, + .column_grip = .{ 0x9c, 0xd1, 0xbb }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Octagon).json:1 tokenColors[57] "keyword" - .kw = .{ 0xff, 0x65, 0x7a }, + .keyword = .{ 0xff, 0x65, 0x7a }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Octagon).json:1 tokenColors[132] "string" - .str = .{ 0xff, 0xd7, 0x6d }, + .string = .{ 0xff, 0xd7, 0x6d }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Octagon).json:1 tokenColors[22] "constant.numeric" - .num = .{ 0xc3, 0x9a, 0xc9 }, + .number = .{ 0xc3, 0x9a, 0xc9 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Octagon).json:1 tokenColors[0] "comment" .comment = .{ 0x69, 0x6d, 0x77 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Octagon).json:1 colors."editorLineNumber.foreground" - .lineno = .{ 0x53, 0x57, 0x63 }, + .line_number = .{ 0x53, 0x57, 0x63 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Octagon).json:1 colors."editorLineNumber.activeForeground" - .lineno_active = .{ 0xb2, 0xb9, 0xbd }, + .line_number_current = .{ 0xb2, 0xb9, 0xbd }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Octagon).json:1 no scrollbar.background: the editor shows through - .scroll_track = .{ 0x28, 0x2a, 0x3a }, + .rail = .{ 0x28, 0x2a, 0x3a }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Octagon).json:1 colors."scrollbarSlider.background" #b2b9bd26 over #282a3a #3d3f4e, adjusted - .scroll_thumb = .{ 0x44, 0x46, 0x55 }, + .rail_thumb = .{ 0x44, 0x46, 0x55 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Octagon).json:1 colors."editorGroup.border" #1e1f2b, adjusted - .border = .{ 0x4b, 0x4d, 0x57 }, + .rule = .{ 0x4b, 0x4d, 0x57 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Octagon).json:1 colors."editor.findMatchBackground" #eaf2f126 over #282a3a - .search_bg = .{ 0x45, 0x48, 0x55 }, - // derived: the original keeps text colours over a match; the page's text, whichever reads better on it - .search_fg = .{ 0xea, 0xf2, 0xf1 }, + .hit = .{ 0x45, 0x48, 0x55 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Octagon).json:1 colors."editorError.foreground" - .diagnostic_error = .{ 0xff, 0x65, 0x7a }, + .@"error" = .{ 0xff, 0x65, 0x7a }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Octagon).json:1 colors."editorWarning.foreground" - .diagnostic_warning = .{ 0xff, 0x9b, 0x5e }, + .warning = .{ 0xff, 0x9b, 0x5e }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Octagon).json:1 colors."editorInfo.foreground" - .diagnostic_info = .{ 0x9c, 0xd1, 0xbb }, + .info = .{ 0x9c, 0xd1, 0xbb }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Octagon).json:1 colors."editorHint.foreground" - .diagnostic_hint = .{ 0xc3, 0x9a, 0xc9 }, - .palette = .{ + .hint = .{ 0xc3, 0x9a, 0xc9 }, + .ansi = .{ .{ 0x3a, 0x3d, 0x4b }, // 0: ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Octagon).json:1 colors."terminal.ansiBlack" .{ 0xff, 0x65, 0x7a }, // 1: ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Octagon).json:1 colors."terminal.ansiRed" .{ 0xba, 0xd7, 0x61 }, // 2: ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Octagon).json:1 colors."terminal.ansiGreen" diff --git a/core/themes/monokai_pro_ristretto.zig b/core/themes/monokai_pro_ristretto.zig index 88b1788c..3eaa11b3 100644 --- a/core/themes/monokai_pro_ristretto.zig +++ b/core/themes/monokai_pro_ristretto.zig @@ -9,63 +9,63 @@ //! - unfocused tag text #948a8b -> #968c8d: 4.48:1 on #2c2525, tag text needs 4.5:1 to be read and run //! - rules between panes #211c1c -> #4d4747: 1.12:1 off the page, lifted toward the text to 1.6:1 (as colors.zig separatorOf does) //! - scroll thumb #433b3b -> #4b4242: 1.38:1 on its track #2c2525 +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - tag ground #2c2525 -> #342d2d: 1.00:1 off the page, now 1.12:1 (H: a band 1.1:1 off the page; R3: tone on tone) +//! - focused tag ground #514332 -> #504848: 1.41:1 off the tag, now 1.51:1 (R4, H: a focus step off the tag, and the loudest) +//! - selection #433b3b -> #4a3b3b: 1.38:1 off the page, now 1.42:1 (R7) pub const theme = .{ .name = "monokai_pro_ristretto", // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Ristretto).json:1 colors."editor.background" - .bg = .{ 0x2c, 0x25, 0x25 }, + .page = .{ 0x2c, 0x25, 0x25 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Ristretto).json:1 colors."editor.foreground" - .fg = .{ 0xff, 0xf1, 0xf3 }, + .text = .{ 0xff, 0xf1, 0xf3 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Ristretto).json:1 colors."editor.selectionBackground" #c3b7b826 over #2c2525 - .sel_bg = .{ 0x43, 0x3b, 0x3b }, + .selection = .{ 0x43, 0x3b, 0x3b }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0xff, 0xf1, 0xf3 }, + .selection_text = .{ 0xff, 0xf1, 0xf3 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Ristretto).json:1 colors."tab.inactiveBackground" - .tag_bg = .{ 0x2c, 0x25, 0x25 }, + .tag = .{ 0x2c, 0x25, 0x25 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Ristretto).json:1 colors."tab.inactiveForeground" #948a8b, adjusted - .tag_fg = .{ 0x96, 0x8c, 0x8d }, + .tag_text = .{ 0x96, 0x8c, 0x8d }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Ristretto).json:1 colors."tab.activeBackground" #2c2525, adjusted - .tag_active_bg = .{ 0x51, 0x43, 0x32 }, + .tag_focus = .{ 0x51, 0x43, 0x32 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Ristretto).json:1 colors."tab.activeForeground" - .tag_active_fg = .{ 0xf9, 0xcc, 0x6c }, + .tag_focus_text = .{ 0xf9, 0xcc, 0x6c }, // the focused grip: ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Ristretto).json:1 colors."tab.activeBorder" - .box = .{ 0xf9, 0xcc, 0x6c }, - // derived: the grip at rest, the accent #f9cc6c faded toward the unfocused tag #2c2525 as far as 1.6:1 off it (0.20 of the way) - .box_dim = .{ 0x55, 0x46, 0x33 }, + .accent = .{ 0xf9, 0xcc, 0x6c }, // an unsaved grip: the original's modified colour, ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Ristretto).json:1 colors."editorGutter.modifiedBackground" - .box_dirty = .{ 0xf3, 0x8d, 0x70 }, + .dirty = .{ 0xf3, 0x8d, 0x70 }, // derived: the column grip, the original's type colour, ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Ristretto).json:1 tokenColors[42] "entity.name.type" - .column_box = .{ 0x85, 0xda, 0xcc }, + .column_grip = .{ 0x85, 0xda, 0xcc }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Ristretto).json:1 tokenColors[57] "keyword" - .kw = .{ 0xfd, 0x68, 0x83 }, + .keyword = .{ 0xfd, 0x68, 0x83 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Ristretto).json:1 tokenColors[132] "string" - .str = .{ 0xf9, 0xcc, 0x6c }, + .string = .{ 0xf9, 0xcc, 0x6c }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Ristretto).json:1 tokenColors[22] "constant.numeric" - .num = .{ 0xa8, 0xa9, 0xeb }, + .number = .{ 0xa8, 0xa9, 0xeb }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Ristretto).json:1 tokenColors[0] "comment" .comment = .{ 0x72, 0x69, 0x6a }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Ristretto).json:1 colors."editorLineNumber.foreground" - .lineno = .{ 0x5b, 0x53, 0x53 }, + .line_number = .{ 0x5b, 0x53, 0x53 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Ristretto).json:1 colors."editorLineNumber.activeForeground" - .lineno_active = .{ 0xc3, 0xb7, 0xb8 }, + .line_number_current = .{ 0xc3, 0xb7, 0xb8 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Ristretto).json:1 no scrollbar.background: the editor shows through - .scroll_track = .{ 0x2c, 0x25, 0x25 }, + .rail = .{ 0x2c, 0x25, 0x25 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Ristretto).json:1 colors."scrollbarSlider.background" #c3b7b826 over #2c2525 #433b3b, adjusted - .scroll_thumb = .{ 0x4b, 0x42, 0x42 }, + .rail_thumb = .{ 0x4b, 0x42, 0x42 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Ristretto).json:1 colors."editorGroup.border" #211c1c, adjusted - .border = .{ 0x4d, 0x47, 0x47 }, + .rule = .{ 0x4d, 0x47, 0x47 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Ristretto).json:1 colors."editor.findMatchBackground" #fff1f326 over #2c2525 - .search_bg = .{ 0x4b, 0x43, 0x44 }, - // derived: the original keeps text colours over a match; the page's text, whichever reads better on it - .search_fg = .{ 0xff, 0xf1, 0xf3 }, + .hit = .{ 0x4b, 0x43, 0x44 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Ristretto).json:1 colors."editorError.foreground" - .diagnostic_error = .{ 0xfd, 0x68, 0x83 }, + .@"error" = .{ 0xfd, 0x68, 0x83 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Ristretto).json:1 colors."editorWarning.foreground" - .diagnostic_warning = .{ 0xf3, 0x8d, 0x70 }, + .warning = .{ 0xf3, 0x8d, 0x70 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Ristretto).json:1 colors."editorInfo.foreground" - .diagnostic_info = .{ 0x85, 0xda, 0xcc }, + .info = .{ 0x85, 0xda, 0xcc }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Ristretto).json:1 colors."editorHint.foreground" - .diagnostic_hint = .{ 0xa8, 0xa9, 0xeb }, - .palette = .{ + .hint = .{ 0xa8, 0xa9, 0xeb }, + .ansi = .{ .{ 0x40, 0x38, 0x38 }, // 0: ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Ristretto).json:1 colors."terminal.ansiBlack" .{ 0xfd, 0x68, 0x83 }, // 1: ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Ristretto).json:1 colors."terminal.ansiRed" .{ 0xad, 0xda, 0x78 }, // 2: ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Ristretto).json:1 colors."terminal.ansiGreen" diff --git a/core/themes/monokai_pro_spectrum.zig b/core/themes/monokai_pro_spectrum.zig index 3abd67ee..da7f4f4a 100644 --- a/core/themes/monokai_pro_spectrum.zig +++ b/core/themes/monokai_pro_spectrum.zig @@ -8,63 +8,63 @@ //! - focused tag ground #222222 -> #45412d: 1.00:1 off the unfocused #222222, pardes needs 1.5:1 on a dark page //! - rules between panes #191919 -> #454447: 1.11:1 off the page, lifted toward the text to 1.6:1 (as colors.zig separatorOf does) //! - scroll thumb #39383a -> #413f42: 1.36:1 on its track #222222 +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - tag ground #222222 -> #2a2a2a: 1.00:1 off the page, now 1.11:1 (H: a band 1.1:1 off the page; R3: tone on tone) +//! - focused tag ground #45412d -> #464646: 1.40:1 off the tag, now 1.52:1 (R4, H: a focus step off the tag, and the loudest) +//! - selection #39383a -> #3b3a3c: 1.36:1 off the page, now 1.41:1 (R7) pub const theme = .{ .name = "monokai_pro_spectrum", // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Spectrum).json:1 colors."editor.background" - .bg = .{ 0x22, 0x22, 0x22 }, + .page = .{ 0x22, 0x22, 0x22 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Spectrum).json:1 colors."editor.foreground" - .fg = .{ 0xf7, 0xf1, 0xff }, + .text = .{ 0xf7, 0xf1, 0xff }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Spectrum).json:1 colors."editor.selectionBackground" #bab6c026 over #222222 - .sel_bg = .{ 0x39, 0x38, 0x3a }, + .selection = .{ 0x39, 0x38, 0x3a }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0xf7, 0xf1, 0xff }, + .selection_text = .{ 0xf7, 0xf1, 0xff }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Spectrum).json:1 colors."tab.inactiveBackground" - .tag_bg = .{ 0x22, 0x22, 0x22 }, + .tag = .{ 0x22, 0x22, 0x22 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Spectrum).json:1 colors."tab.inactiveForeground" - .tag_fg = .{ 0x8b, 0x88, 0x8f }, + .tag_text = .{ 0x8b, 0x88, 0x8f }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Spectrum).json:1 colors."tab.activeBackground" #222222, adjusted - .tag_active_bg = .{ 0x45, 0x41, 0x2d }, + .tag_focus = .{ 0x45, 0x41, 0x2d }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Spectrum).json:1 colors."tab.activeForeground" - .tag_active_fg = .{ 0xfc, 0xe5, 0x66 }, + .tag_focus_text = .{ 0xfc, 0xe5, 0x66 }, // the focused grip: ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Spectrum).json:1 colors."tab.activeBorder" - .box = .{ 0xfc, 0xe5, 0x66 }, - // derived: the grip at rest, the accent #fce566 faded toward the unfocused tag #222222 as far as 1.6:1 off it (0.18 of the way) - .box_dim = .{ 0x49, 0x45, 0x2e }, + .accent = .{ 0xfc, 0xe5, 0x66 }, // an unsaved grip: the original's modified colour, ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Spectrum).json:1 colors."editorGutter.modifiedBackground" - .box_dirty = .{ 0xfd, 0x93, 0x53 }, + .dirty = .{ 0xfd, 0x93, 0x53 }, // derived: the column grip, the original's type colour, ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Spectrum).json:1 tokenColors[42] "entity.name.type" - .column_box = .{ 0x5a, 0xd4, 0xe6 }, + .column_grip = .{ 0x5a, 0xd4, 0xe6 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Spectrum).json:1 tokenColors[57] "keyword" - .kw = .{ 0xfc, 0x61, 0x8d }, + .keyword = .{ 0xfc, 0x61, 0x8d }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Spectrum).json:1 tokenColors[132] "string" - .str = .{ 0xfc, 0xe5, 0x66 }, + .string = .{ 0xfc, 0xe5, 0x66 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Spectrum).json:1 tokenColors[22] "constant.numeric" - .num = .{ 0x94, 0x8a, 0xe3 }, + .number = .{ 0x94, 0x8a, 0xe3 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Spectrum).json:1 tokenColors[0] "comment" .comment = .{ 0x69, 0x67, 0x6c }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Spectrum).json:1 colors."editorLineNumber.foreground" - .lineno = .{ 0x52, 0x50, 0x53 }, + .line_number = .{ 0x52, 0x50, 0x53 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Spectrum).json:1 colors."editorLineNumber.activeForeground" - .lineno_active = .{ 0xba, 0xb6, 0xc0 }, + .line_number_current = .{ 0xba, 0xb6, 0xc0 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Spectrum).json:1 no scrollbar.background: the editor shows through - .scroll_track = .{ 0x22, 0x22, 0x22 }, + .rail = .{ 0x22, 0x22, 0x22 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Spectrum).json:1 colors."scrollbarSlider.background" #bab6c026 over #222222 #39383a, adjusted - .scroll_thumb = .{ 0x41, 0x3f, 0x42 }, + .rail_thumb = .{ 0x41, 0x3f, 0x42 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Spectrum).json:1 colors."editorGroup.border" #191919, adjusted - .border = .{ 0x45, 0x44, 0x47 }, + .rule = .{ 0x45, 0x44, 0x47 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Spectrum).json:1 colors."editor.findMatchBackground" #f7f1ff26 over #222222 - .search_bg = .{ 0x42, 0x41, 0x43 }, - // derived: the original keeps text colours over a match; the page's text, whichever reads better on it - .search_fg = .{ 0xf7, 0xf1, 0xff }, + .hit = .{ 0x42, 0x41, 0x43 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Spectrum).json:1 colors."editorError.foreground" - .diagnostic_error = .{ 0xfc, 0x61, 0x8d }, + .@"error" = .{ 0xfc, 0x61, 0x8d }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Spectrum).json:1 colors."editorWarning.foreground" - .diagnostic_warning = .{ 0xfd, 0x93, 0x53 }, + .warning = .{ 0xfd, 0x93, 0x53 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Spectrum).json:1 colors."editorInfo.foreground" - .diagnostic_info = .{ 0x5a, 0xd4, 0xe6 }, + .info = .{ 0x5a, 0xd4, 0xe6 }, // ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Spectrum).json:1 colors."editorHint.foreground" - .diagnostic_hint = .{ 0x94, 0x8a, 0xe3 }, - .palette = .{ + .hint = .{ 0x94, 0x8a, 0xe3 }, + .ansi = .{ .{ 0x36, 0x35, 0x37 }, // 0: ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Spectrum).json:1 colors."terminal.ansiBlack" .{ 0xfc, 0x61, 0x8d }, // 1: ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Spectrum).json:1 colors."terminal.ansiRed" .{ 0x7b, 0xd8, 0x8f }, // 2: ~/05-genizah/monokai-pro-vscode/vsix/extension/themes/Monokai Pro (Filter Spectrum).json:1 colors."terminal.ansiGreen" diff --git a/core/themes/neobones_dark.zig b/core/themes/neobones_dark.zig index b0167da2..25aaf8b9 100644 --- a/core/themes/neobones_dark.zig +++ b/core/themes/neobones_dark.zig @@ -15,63 +15,61 @@ //! StatusLine, TabLineFill to StatusLineNC. Accent is the lualine normal-mode a //! bg, a muted neutral (the theme is contrast-based, not hue-accented). //! Modified = Changed fg. +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - focused grip #4b616f -> #768e9d: 1.59:1 on the focused tag, now 3.01:1 (R6: 3:1) pub const theme = .{ .name = "neobones_dark", // ~/05-genizah/zenbones.nvim/colors/neobones.vim:33 Normal guibg - .bg = .{ 0x0f, 0x19, 0x1f }, + .page = .{ 0x0f, 0x19, 0x1f }, // ~/05-genizah/zenbones.nvim/colors/neobones.vim:33 Normal guifg - .fg = .{ 0xc6, 0xd5, 0xcf }, + .text = .{ 0xc6, 0xd5, 0xcf }, // ~/05-genizah/zenbones.nvim/colors/neobones.vim:209 Visual guibg - .sel_bg = .{ 0x3a, 0x3e, 0x3d }, + .selection = .{ 0x3a, 0x3e, 0x3d }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0xc6, 0xd5, 0xcf }, + .selection_text = .{ 0xc6, 0xd5, 0xcf }, // ~/05-genizah/zenbones.nvim/colors/neobones.vim:196 StatusLineNC guibg - .tag_bg = .{ 0x18, 0x25, 0x2d }, + .tag = .{ 0x18, 0x25, 0x2d }, // ~/05-genizah/zenbones.nvim/colors/neobones.vim:196 StatusLineNC guifg - .tag_fg = .{ 0xd1, 0xe0, 0xda }, + .tag_text = .{ 0xd1, 0xe0, 0xda }, // ~/05-genizah/zenbones.nvim/colors/neobones.vim:193 StatusLine guibg #20303a, adjusted - .tag_active_bg = .{ 0x2e, 0x43, 0x50 }, + .tag_focus = .{ 0x2e, 0x43, 0x50 }, // ~/05-genizah/zenbones.nvim/colors/neobones.vim:193 StatusLine guifg - .tag_active_fg = .{ 0xc6, 0xd5, 0xcf }, + .tag_focus_text = .{ 0xc6, 0xd5, 0xcf }, // the focused grip: ~/05-genizah/zenbones.nvim/lua/lualine/themes/neobones_dark_default.lua:8 normal.a bg (lualine theme, default ness; generator derives it as PmenuSbar.bg.abs_da(3), lua/zenbones/shipwright/runners/lualine.lua:66) - .box = .{ 0x4b, 0x61, 0x6f }, - // derived: the grip at rest, the accent #3b5362 faded toward the unfocused tag #18252d as far as 1.6:1 off it (0.74 of the way) - .box_dim = .{ 0x32, 0x47, 0x54 }, + .accent = .{ 0x4b, 0x61, 0x6f }, // an unsaved grip: the original's modified colour, ~/05-genizah/zenbones.nvim/colors/neobones.vim:41 Changed guifg - .box_dirty = .{ 0x81, 0x90, 0xd4 }, + .dirty = .{ 0x81, 0x90, 0xd4 }, // derived: the column grip, the original's type colour, ~/05-genizah/zenbones.nvim/colors/neobones.vim:205 Type guifg - .column_box = .{ 0x6e, 0x99, 0xb2 }, + .column_grip = .{ 0x6e, 0x99, 0xb2 }, // ~/05-genizah/zenbones.nvim/colors/neobones.vim:189 Statement guifg (no Keyword group defined; Vim default links Keyword to Statement) - .kw = .{ 0xc6, 0xd5, 0xcf }, + .keyword = .{ 0xc6, 0xd5, 0xcf }, // ~/05-genizah/zenbones.nvim/colors/neobones.vim:199 String guifg - .str = .{ 0x93, 0x9e, 0x99 }, + .string = .{ 0x93, 0x9e, 0x99 }, // ~/05-genizah/zenbones.nvim/colors/neobones.vim:163 Number guifg - .num = .{ 0x93, 0x9e, 0x99 }, + .number = .{ 0x93, 0x9e, 0x99 }, // ~/05-genizah/zenbones.nvim/colors/neobones.vim:47 Comment guifg .comment = .{ 0x53, 0x69, 0x77 }, // ~/05-genizah/zenbones.nvim/colors/neobones.vim:149 LineNr guifg - .lineno = .{ 0x46, 0x62, 0x73 }, + .line_number = .{ 0x46, 0x62, 0x73 }, // ~/05-genizah/zenbones.nvim/colors/neobones.vim:61 CursorLineNr guifg - .lineno_active = .{ 0xc6, 0xd5, 0xcf }, + .line_number_current = .{ 0xc6, 0xd5, 0xcf }, // ~/05-genizah/zenbones.nvim/colors/neobones.vim:166 PmenuSbar guibg - .scroll_track = .{ 0x40, 0x5a, 0x6b }, + .rail = .{ 0x40, 0x5a, 0x6b }, // ~/05-genizah/zenbones.nvim/colors/neobones.vim:168 PmenuThumb guibg - .scroll_thumb = .{ 0x60, 0x86, 0x9d }, + .rail_thumb = .{ 0x60, 0x86, 0x9d }, // ~/05-genizah/zenbones.nvim/colors/neobones.vim:216 WinSeparator guifg - .border = .{ 0x46, 0x62, 0x73 }, + .rule = .{ 0x46, 0x62, 0x73 }, // ~/05-genizah/zenbones.nvim/colors/neobones.vim:171 Search guibg - .search_bg = .{ 0x62, 0x41, 0x5b }, - // ~/05-genizah/zenbones.nvim/colors/neobones.vim:171 Search guifg - .search_fg = .{ 0xc6, 0xd5, 0xcf }, + .hit = .{ 0x62, 0x41, 0x5b }, // ~/05-genizah/zenbones.nvim/colors/neobones.vim:112 Error guifg via DiagnosticError->Error (link :113) - .diagnostic_error = .{ 0xde, 0x6e, 0x7c }, + .@"error" = .{ 0xde, 0x6e, 0x7c }, // ~/05-genizah/zenbones.nvim/colors/neobones.vim:210 WarningMsg guifg via DiagnosticWarn->WarningMsg (link :211) - .diagnostic_warning = .{ 0xb7, 0x7e, 0x64 }, + .warning = .{ 0xb7, 0x7e, 0x64 }, // ~/05-genizah/zenbones.nvim/colors/neobones.vim:71 DiagnosticInfo guifg - .diagnostic_info = .{ 0x81, 0x90, 0xd4 }, + .info = .{ 0x81, 0x90, 0xd4 }, // ~/05-genizah/zenbones.nvim/colors/neobones.vim:66 DiagnosticHint guifg - .diagnostic_hint = .{ 0xb2, 0x79, 0xa7 }, - .palette = .{ + .hint = .{ 0xb2, 0x79, 0xa7 }, + .ansi = .{ .{ 0x0f, 0x19, 0x1f }, // 0: ~/05-genizah/zenbones.nvim/colors/neobones.vim:17 g:terminal_color_0 .{ 0xde, 0x6e, 0x7c }, // 1: ~/05-genizah/zenbones.nvim/colors/neobones.vim:18 g:terminal_color_1 .{ 0x90, 0xff, 0x6b }, // 2: ~/05-genizah/zenbones.nvim/colors/neobones.vim:19 g:terminal_color_2 diff --git a/core/themes/neobones_light.zig b/core/themes/neobones_light.zig index b24fcef5..3a5997aa 100644 --- a/core/themes/neobones_light.zig +++ b/core/themes/neobones_light.zig @@ -15,63 +15,62 @@ //! StatusLine, TabLineFill to StatusLineNC. Accent is the lualine normal-mode a //! bg, a muted neutral (the theme is contrast-based, not hue-accented). //! Modified = Changed fg. +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - focused grip #96a097 -> #646e65: 1.53:1 on the focused tag, now 3.00:1 (R6: 3:1) +//! - selection #ade48c -> #a5e484: 1.23:1 off the page, now 1.25:1 (R7) pub const theme = .{ .name = "neobones_light", // ~/05-genizah/zenbones.nvim/colors/neobones.vim:266 Normal guibg - .bg = .{ 0xe5, 0xed, 0xe6 }, + .page = .{ 0xe5, 0xed, 0xe6 }, // ~/05-genizah/zenbones.nvim/colors/neobones.vim:266 Normal guifg - .fg = .{ 0x20, 0x2e, 0x18 }, + .text = .{ 0x20, 0x2e, 0x18 }, // ~/05-genizah/zenbones.nvim/colors/neobones.vim:442 Visual guibg - .sel_bg = .{ 0xad, 0xe4, 0x8c }, + .selection = .{ 0xad, 0xe4, 0x8c }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0x20, 0x2e, 0x18 }, + .selection_text = .{ 0x20, 0x2e, 0x18 }, // ~/05-genizah/zenbones.nvim/colors/neobones.vim:429 StatusLineNC guibg - .tag_bg = .{ 0xd0, 0xde, 0xd2 }, + .tag = .{ 0xd0, 0xde, 0xd2 }, // ~/05-genizah/zenbones.nvim/colors/neobones.vim:429 StatusLineNC guifg - .tag_fg = .{ 0x4b, 0x66, 0x3c }, + .tag_text = .{ 0x4b, 0x66, 0x3c }, // ~/05-genizah/zenbones.nvim/colors/neobones.vim:426 StatusLine guibg #c2cfc4, adjusted - .tag_active_bg = .{ 0xba, 0xc6, 0xbc }, + .tag_focus = .{ 0xba, 0xc6, 0xbc }, // ~/05-genizah/zenbones.nvim/colors/neobones.vim:426 StatusLine guifg - .tag_active_fg = .{ 0x20, 0x2e, 0x18 }, + .tag_focus_text = .{ 0x20, 0x2e, 0x18 }, // the focused grip: ~/05-genizah/zenbones.nvim/lua/lualine/themes/neobones_light_default.lua:8 normal.a bg (lualine theme, default ness; generator derives it as PmenuSbar.bg.abs_da(3), lua/zenbones/shipwright/runners/lualine.lua:66) - .box = .{ 0x96, 0xa0, 0x97 }, - // derived: the grip at rest, the accent #a3aea4 faded toward the unfocused tag #d0ded2 as far as 1.6:1 off it (0.98 of the way) - .box_dim = .{ 0xa4, 0xaf, 0xa5 }, + .accent = .{ 0x96, 0xa0, 0x97 }, // an unsaved grip: the original's modified colour, ~/05-genizah/zenbones.nvim/colors/neobones.vim:274 Changed guifg - .box_dirty = .{ 0x28, 0x64, 0x86 }, + .dirty = .{ 0x28, 0x64, 0x86 }, // derived: the column grip, the original's type colour, ~/05-genizah/zenbones.nvim/colors/neobones.vim:438 Type guifg - .column_box = .{ 0x49, 0x5c, 0x4c }, + .column_grip = .{ 0x49, 0x5c, 0x4c }, // ~/05-genizah/zenbones.nvim/colors/neobones.vim:422 Statement guifg (no Keyword group defined; Vim default links Keyword to Statement) - .kw = .{ 0x20, 0x2e, 0x18 }, + .keyword = .{ 0x20, 0x2e, 0x18 }, // ~/05-genizah/zenbones.nvim/colors/neobones.vim:432 String guifg - .str = .{ 0x47, 0x60, 0x38 }, + .string = .{ 0x47, 0x60, 0x38 }, // ~/05-genizah/zenbones.nvim/colors/neobones.vim:396 Number guifg - .num = .{ 0x47, 0x60, 0x38 }, + .number = .{ 0x47, 0x60, 0x38 }, // ~/05-genizah/zenbones.nvim/colors/neobones.vim:280 Comment guifg .comment = .{ 0x87, 0x8d, 0x88 }, // ~/05-genizah/zenbones.nvim/colors/neobones.vim:382 LineNr guifg - .lineno = .{ 0x8f, 0x98, 0x90 }, + .line_number = .{ 0x8f, 0x98, 0x90 }, // ~/05-genizah/zenbones.nvim/colors/neobones.vim:294 CursorLineNr guifg - .lineno_active = .{ 0x20, 0x2e, 0x18 }, + .line_number_current = .{ 0x20, 0x2e, 0x18 }, // ~/05-genizah/zenbones.nvim/colors/neobones.vim:399 PmenuSbar guibg - .scroll_track = .{ 0x9b, 0xa6, 0x9d }, + .rail = .{ 0x9b, 0xa6, 0x9d }, // ~/05-genizah/zenbones.nvim/colors/neobones.vim:401 PmenuThumb guibg - .scroll_thumb = .{ 0xf4, 0xf7, 0xf5 }, + .rail_thumb = .{ 0xf4, 0xf7, 0xf5 }, // ~/05-genizah/zenbones.nvim/colors/neobones.vim:449 WinSeparator guifg - .border = .{ 0x8f, 0x98, 0x90 }, + .rule = .{ 0x8f, 0x98, 0x90 }, // ~/05-genizah/zenbones.nvim/colors/neobones.vim:404 Search guibg - .search_bg = .{ 0xdc, 0xb5, 0xd4 }, - // ~/05-genizah/zenbones.nvim/colors/neobones.vim:404 Search guifg - .search_fg = .{ 0x20, 0x2e, 0x18 }, + .hit = .{ 0xdc, 0xb5, 0xd4 }, // ~/05-genizah/zenbones.nvim/colors/neobones.vim:345 Error guifg via DiagnosticError->Error (link :346) - .diagnostic_error = .{ 0xa8, 0x33, 0x4c }, + .@"error" = .{ 0xa8, 0x33, 0x4c }, // ~/05-genizah/zenbones.nvim/colors/neobones.vim:443 WarningMsg guifg via DiagnosticWarn->WarningMsg (link :444) - .diagnostic_warning = .{ 0x94, 0x49, 0x27 }, + .warning = .{ 0x94, 0x49, 0x27 }, // ~/05-genizah/zenbones.nvim/colors/neobones.vim:304 DiagnosticInfo guifg - .diagnostic_info = .{ 0x28, 0x64, 0x86 }, + .info = .{ 0x28, 0x64, 0x86 }, // ~/05-genizah/zenbones.nvim/colors/neobones.vim:299 DiagnosticHint guifg - .diagnostic_hint = .{ 0x88, 0x50, 0x7d }, - .palette = .{ + .hint = .{ 0x88, 0x50, 0x7d }, + .ansi = .{ .{ 0xe5, 0xed, 0xe6 }, // 0: ~/05-genizah/zenbones.nvim/colors/neobones.vim:250 g:terminal_color_0 .{ 0xa8, 0x33, 0x4c }, // 1: ~/05-genizah/zenbones.nvim/colors/neobones.vim:251 g:terminal_color_1 .{ 0x56, 0x7a, 0x30 }, // 2: ~/05-genizah/zenbones.nvim/colors/neobones.vim:252 g:terminal_color_2 diff --git a/core/themes/nord.zig b/core/themes/nord.zig index f74785b3..284b59e6 100644 --- a/core/themes/nord.zig +++ b/core/themes/nord.zig @@ -47,63 +47,63 @@ //! Constant fg is nord4 (plain text), so constant uses Boolean (nord9). //! scroll_track/thumb are the popup-menu scrollbar (PmenuSbar/PmenuThumb); vim //! has no window scrollbar. +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - search hit #88c0d0 -> #634a34: 6.24:1 off the page, now 1.52:1 (R8: 1.5:1, the text reading on it) +//! - error #bf616a -> #e17f87: 3.05:1 on the page, now 4.51:1 (R9: 4.5:1, told from the text and the others) +//! - hint #5e81ac -> #7a9ecb: 3.10:1 on the page, now 4.51:1 (R9: 4.5:1, told from the text and the others) pub const theme = .{ .name = "nord", // ~/05-genizah/nord-vim/colors/nord.vim:139 Normal guibg (s:nord0_gui = #2E3440 at :15) - .bg = .{ 0x2e, 0x34, 0x40 }, + .page = .{ 0x2e, 0x34, 0x40 }, // ~/05-genizah/nord-vim/colors/nord.vim:139 Normal guifg (s:nord4_gui = #D8DEE9 at :20) - .fg = .{ 0xd8, 0xde, 0xe9 }, + .text = .{ 0xd8, 0xde, 0xe9 }, // ~/05-genizah/nord-vim/colors/nord.vim:149 Visual guibg (s:nord2_gui = #434C5E at :17) - .sel_bg = .{ 0x43, 0x4c, 0x5e }, + .selection = .{ 0x43, 0x4c, 0x5e }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0xd8, 0xde, 0xe9 }, + .selection_text = .{ 0xd8, 0xde, 0xe9 }, // ~/05-genizah/nord-vim/colors/nord.vim:223 StatusLineNC guibg (s:nord1_gui = #3B4252 at :16) [default g:nord_uniform_status_lines=0, :83] - .tag_bg = .{ 0x3b, 0x42, 0x52 }, + .tag = .{ 0x3b, 0x42, 0x52 }, // ~/05-genizah/nord-vim/colors/nord.vim:223 StatusLineNC guifg (s:nord4_gui = #D8DEE9 at :20) [default g:nord_uniform_status_lines=0, :83] - .tag_fg = .{ 0xd8, 0xde, 0xe9 }, + .tag_text = .{ 0xd8, 0xde, 0xe9 }, // ~/05-genizah/nord-vim/colors/nord.vim:222 StatusLine guibg (s:nord3_gui = #4C566A at :18) [default g:nord_uniform_status_lines=0, :83] #4c566a, adjusted - .tag_active_bg = .{ 0x52, 0x5d, 0x72 }, + .tag_focus = .{ 0x52, 0x5d, 0x72 }, // ~/05-genizah/nord-vim/colors/nord.vim:222 StatusLine guifg (s:nord8_gui = #88C0D0 at :24) [default g:nord_uniform_status_lines=0, :83] #88c0d0, adjusted - .tag_active_fg = .{ 0xbc, 0xdc, 0xe5 }, + .tag_focus_text = .{ 0xbc, 0xdc, 0xe5 }, // the focused grip: ~/05-genizah/nord-vim/autoload/lightline/colorscheme/nord.vim:24 s:p.normal.left section a bg s:nord8 (#88C0D0 at :15); same in ~/05-genizah/nord-vim/autoload/airline/themes/nord.vim:41 s:NMain bg s:nord8_gui - .box = .{ 0x88, 0xc0, 0xd0 }, - // derived: the grip at rest, the accent #88c0d0 faded toward the unfocused tag #3b4252 as far as 1.6:1 off it (0.26 of the way) - .box_dim = .{ 0x4f, 0x63, 0x73 }, + .accent = .{ 0x88, 0xc0, 0xd0 }, // an unsaved grip: the original's modified colour, ~/05-genizah/nord-vim/colors/nord.vim:589 GitGutterChange guifg (s:nord13_gui = #EBCB8B at :29); also DiffChange fg (inverse) at :371, SignifySignChange at :596, VS Code editorGutter.modifiedBackground #ebcb8b at ~/05-genizah/nord-visual-studio-code/themes/nord-color-theme.json:98 - .box_dirty = .{ 0xeb, 0xcb, 0x8b }, + .dirty = .{ 0xeb, 0xcb, 0x8b }, // derived: the column grip, the original's string colour, ~/05-genizah/nord-vim/colors/nord.vim:281 String guifg (s:nord14_gui = #A3BE8C at :30) - .column_box = .{ 0xa3, 0xbe, 0x8c }, + .column_grip = .{ 0xa3, 0xbe, 0x8c }, // ~/05-genizah/nord-vim/colors/nord.vim:270 Keyword guifg (s:nord9_gui = #81A1C1 at :25) - .kw = .{ 0x81, 0xa1, 0xc1 }, + .keyword = .{ 0x81, 0xa1, 0xc1 }, // ~/05-genizah/nord-vim/colors/nord.vim:281 String guifg (s:nord14_gui = #A3BE8C at :30) - .str = .{ 0xa3, 0xbe, 0x8c }, + .string = .{ 0xa3, 0xbe, 0x8c }, // ~/05-genizah/nord-vim/colors/nord.vim:272 Number guifg (s:nord15_gui = #B48EAD at :31) - .num = .{ 0xb4, 0x8e, 0xad }, + .number = .{ 0xb4, 0x8e, 0xad }, // ~/05-genizah/nord-vim/colors/nord.vim:258 Comment guifg (s:nord3_gui_bright = #616E88 at :19) .comment = .{ 0x61, 0x6e, 0x88 }, // ~/05-genizah/nord-vim/colors/nord.vim:136 LineNr guifg (s:nord3_gui = #4C566A at :18) - .lineno = .{ 0x4c, 0x56, 0x6a }, + .line_number = .{ 0x4c, 0x56, 0x6a }, // ~/05-genizah/nord-vim/colors/nord.vim:204 CursorLineNr guifg (s:nord4_gui = #D8DEE9 at :20) [default g:nord_cursor_line_number_background=0, :94] - .lineno_active = .{ 0xd8, 0xde, 0xe9 }, + .line_number_current = .{ 0xd8, 0xde, 0xe9 }, // ~/05-genizah/nord-vim/colors/nord.vim:141 PmenuSbar guibg (s:nord2_gui = #434C5E at :17) - .scroll_track = .{ 0x43, 0x4c, 0x5e }, + .rail = .{ 0x43, 0x4c, 0x5e }, // ~/05-genizah/nord-vim/colors/nord.vim:143 PmenuThumb guibg (s:nord3_gui = #4C566A at :18) #4c566a, adjusted - .scroll_thumb = .{ 0x60, 0x69, 0x7c }, + .rail_thumb = .{ 0x60, 0x69, 0x7c }, // ~/05-genizah/nord-vim/colors/nord.vim:248 VertSplit guifg (s:nord2_gui = #434C5E at :17) [no WinSeparator group; default g:nord_bold_vertical_split_line=0, :85] #434c5e, adjusted - .border = .{ 0x4c, 0x55, 0x66 }, + .rule = .{ 0x4c, 0x55, 0x66 }, // ~/05-genizah/nord-vim/colors/nord.vim:237 Search guibg (s:nord8_gui = #88C0D0 at :24) - .search_bg = .{ 0x88, 0xc0, 0xd0 }, - // ~/05-genizah/nord-vim/colors/nord.vim:237 Search guifg (s:nord1_gui = #3B4252 at :16) - .search_fg = .{ 0x3b, 0x42, 0x52 }, + .hit = .{ 0x88, 0xc0, 0xd0 }, // ~/05-genizah/nord-vim/colors/nord.vim:184 DiagnosticError guifg (s:nord11_gui = #BF616A at :27) - .diagnostic_error = .{ 0xbf, 0x61, 0x6a }, + .@"error" = .{ 0xbf, 0x61, 0x6a }, // ~/05-genizah/nord-vim/colors/nord.vim:183 DiagnosticWarn guifg (s:nord13_gui = #EBCB8B at :29) - .diagnostic_warning = .{ 0xeb, 0xcb, 0x8b }, + .warning = .{ 0xeb, 0xcb, 0x8b }, // ~/05-genizah/nord-vim/colors/nord.vim:185 DiagnosticInfo guifg (s:nord8_gui = #88C0D0 at :24) - .diagnostic_info = .{ 0x88, 0xc0, 0xd0 }, + .info = .{ 0x88, 0xc0, 0xd0 }, // ~/05-genizah/nord-vim/colors/nord.vim:186 DiagnosticHint guifg (s:nord10_gui = #5E81AC at :26) - .diagnostic_hint = .{ 0x5e, 0x81, 0xac }, - .palette = .{ + .hint = .{ 0x5e, 0x81, 0xac }, + .ansi = .{ .{ 0x3b, 0x42, 0x52 }, // 0: ~/05-genizah/nord-vim/colors/nord.vim:159 g:terminal_color_0 (s:nord1_gui = #3B4252 at :16) .{ 0xbf, 0x61, 0x6a }, // 1: ~/05-genizah/nord-vim/colors/nord.vim:160 g:terminal_color_1 (s:nord11_gui = #BF616A at :27) .{ 0xa3, 0xbe, 0x8c }, // 2: ~/05-genizah/nord-vim/colors/nord.vim:161 g:terminal_color_2 (s:nord14_gui = #A3BE8C at :30) diff --git a/core/themes/nordbones.zig b/core/themes/nordbones.zig index e7ec64b3..947164b3 100644 --- a/core/themes/nordbones.zig +++ b/core/themes/nordbones.zig @@ -18,63 +18,65 @@ //! only), so it inherits Normal. TabLine links to StatusLine, TabLineFill to //! StatusLineNC. Accent is the lualine normal-mode a bg, a muted neutral (the //! theme is contrast-based, not hue-accented). Modified = Changed fg. +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - focused grip #6e778b -> #a2acc2: 1.52:1 on the focused tag, now 3.00:1 (R6: 3:1) +//! - search hit #84637e -> #634b34: 2.38:1 off the page, now 1.52:1 (R8: 1.5:1, the text reading on it) +//! - error #c1616a -> #e38088: 3.04:1 on the page, now 4.52:1 (R9: 4.5:1, told from the text and the others) +//! - warning #cf866f -> #e5c95e: 4.27:1 on the page, now 7.53:1 (R9: 4.5:1, told from the text and the others) +//! - hint #b38dac -> #b791b0: 4.29:1 on the page, now 4.51:1 (R9: 4.5:1, told from the text and the others) pub const theme = .{ .name = "nordbones", // ~/05-genizah/zenbones.nvim/colors/nordbones.vim:34 Normal guibg - .bg = .{ 0x2f, 0x35, 0x41 }, + .page = .{ 0x2f, 0x35, 0x41 }, // ~/05-genizah/zenbones.nvim/colors/nordbones.vim:34 Normal guifg - .fg = .{ 0xeb, 0xee, 0xf3 }, + .text = .{ 0xeb, 0xee, 0xf3 }, // ~/05-genizah/zenbones.nvim/colors/nordbones.vim:212 Visual guibg - .sel_bg = .{ 0x54, 0x5f, 0x70 }, + .selection = .{ 0x54, 0x5f, 0x70 }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0xeb, 0xee, 0xf3 }, + .selection_text = .{ 0xeb, 0xee, 0xf3 }, // ~/05-genizah/zenbones.nvim/colors/nordbones.vim:199 StatusLineNC guibg - .tag_bg = .{ 0x39, 0x40, 0x4e }, + .tag = .{ 0x39, 0x40, 0x4e }, // ~/05-genizah/zenbones.nvim/colors/nordbones.vim:199 StatusLineNC guifg - .tag_fg = .{ 0xf2, 0xf4, 0xf7 }, + .tag_text = .{ 0xf2, 0xf4, 0xf7 }, // ~/05-genizah/zenbones.nvim/colors/nordbones.vim:196 StatusLine guibg #414959, adjusted - .tag_active_bg = .{ 0x51, 0x5b, 0x6e }, + .tag_focus = .{ 0x51, 0x5b, 0x6e }, // ~/05-genizah/zenbones.nvim/colors/nordbones.vim:196 StatusLine guifg - .tag_active_fg = .{ 0xeb, 0xee, 0xf3 }, + .tag_focus_text = .{ 0xeb, 0xee, 0xf3 }, // the focused grip: ~/05-genizah/zenbones.nvim/lua/lualine/themes/nordbones_default.lua:8 normal.a bg (lualine theme, default ness; generator derives it as PmenuSbar.bg.abs_da(3), lua/zenbones/shipwright/runners/lualine.lua:66) - .box = .{ 0x6e, 0x77, 0x8b }, - // derived: the grip at rest, the accent #5e687e faded toward the unfocused tag #39404e as far as 1.6:1 off it (0.78 of the way) - .box_dim = .{ 0x56, 0x5f, 0x73 }, + .accent = .{ 0x6e, 0x77, 0x8b }, // an unsaved grip: the original's modified colour, ~/05-genizah/zenbones.nvim/colors/nordbones.vim:42 Changed guifg - .box_dirty = .{ 0x8f, 0xbc, 0xba }, + .dirty = .{ 0x8f, 0xbc, 0xba }, // derived: the column grip, the original's function colour, ~/05-genizah/zenbones.nvim/colors/nordbones.vim:123 Function guifg - .column_box = .{ 0x87, 0xbf, 0xce }, + .column_grip = .{ 0x87, 0xbf, 0xce }, // ~/05-genizah/zenbones.nvim/colors/nordbones.vim:192 Statement guifg (no Keyword group defined; Vim default links Keyword to Statement) - .kw = .{ 0x81, 0xa1, 0xc1 }, + .keyword = .{ 0x81, 0xa1, 0xc1 }, // ~/05-genizah/zenbones.nvim/colors/nordbones.vim:202 String guifg - .str = .{ 0x9e, 0xaf, 0xc9 }, + .string = .{ 0x9e, 0xaf, 0xc9 }, // ~/05-genizah/zenbones.nvim/colors/nordbones.vim:165 Number guifg - .num = .{ 0x8f, 0xbc, 0xba }, + .number = .{ 0x8f, 0xbc, 0xba }, // ~/05-genizah/zenbones.nvim/colors/nordbones.vim:48 Comment guifg .comment = .{ 0x73, 0x7c, 0x90 }, // ~/05-genizah/zenbones.nvim/colors/nordbones.vim:151 LineNr guifg - .lineno = .{ 0x69, 0x75, 0x8c }, + .line_number = .{ 0x69, 0x75, 0x8c }, // ~/05-genizah/zenbones.nvim/colors/nordbones.vim:63 CursorLineNr guifg - .lineno_active = .{ 0xeb, 0xee, 0xf3 }, + .line_number_current = .{ 0xeb, 0xee, 0xf3 }, // ~/05-genizah/zenbones.nvim/colors/nordbones.vim:168 PmenuSbar guibg - .scroll_track = .{ 0x65, 0x70, 0x87 }, + .rail = .{ 0x65, 0x70, 0x87 }, // ~/05-genizah/zenbones.nvim/colors/nordbones.vim:170 PmenuThumb guibg - .scroll_thumb = .{ 0x86, 0x94, 0xb0 }, + .rail_thumb = .{ 0x86, 0x94, 0xb0 }, // ~/05-genizah/zenbones.nvim/colors/nordbones.vim:219 WinSeparator guifg - .border = .{ 0x69, 0x75, 0x8c }, + .rule = .{ 0x69, 0x75, 0x8c }, // ~/05-genizah/zenbones.nvim/colors/nordbones.vim:173 Search guibg - .search_bg = .{ 0x84, 0x63, 0x7e }, - // ~/05-genizah/zenbones.nvim/colors/nordbones.vim:173 Search guifg - .search_fg = .{ 0xeb, 0xee, 0xf3 }, + .hit = .{ 0x84, 0x63, 0x7e }, // ~/05-genizah/zenbones.nvim/colors/nordbones.vim:114 Error guifg via DiagnosticError->Error (link :115) - .diagnostic_error = .{ 0xc1, 0x61, 0x6a }, + .@"error" = .{ 0xc1, 0x61, 0x6a }, // ~/05-genizah/zenbones.nvim/colors/nordbones.vim:213 WarningMsg guifg via DiagnosticWarn->WarningMsg (link :214) - .diagnostic_warning = .{ 0xcf, 0x86, 0x6f }, + .warning = .{ 0xcf, 0x86, 0x6f }, // ~/05-genizah/zenbones.nvim/colors/nordbones.vim:73 DiagnosticInfo guifg - .diagnostic_info = .{ 0x8f, 0xbc, 0xba }, + .info = .{ 0x8f, 0xbc, 0xba }, // ~/05-genizah/zenbones.nvim/colors/nordbones.vim:68 DiagnosticHint guifg - .diagnostic_hint = .{ 0xb3, 0x8d, 0xac }, - .palette = .{ + .hint = .{ 0xb3, 0x8d, 0xac }, + .ansi = .{ .{ 0x2f, 0x35, 0x41 }, // 0: ~/05-genizah/zenbones.nvim/colors/nordbones.vim:18 g:terminal_color_0 .{ 0xc1, 0x61, 0x6a }, // 1: ~/05-genizah/zenbones.nvim/colors/nordbones.vim:19 g:terminal_color_1 .{ 0xa4, 0xbe, 0x8d }, // 2: ~/05-genizah/zenbones.nvim/colors/nordbones.vim:20 g:terminal_color_2 diff --git a/core/themes/okabe.zig b/core/themes/okabe.zig new file mode 100644 index 00000000..ba8b1888 --- /dev/null +++ b/core/themes/okabe.zig @@ -0,0 +1,32 @@ +//! pardes okabe: colour-blind safe (DESIGN.md part D): Okabe and Ito's +//! eight hues, lightened for a dark page. Added is blue, deleted vermilion, +//! errors vermilion and warnings yellow: nothing says red against green. For +//! the 8 % of men with a colour vision deficiency, and anyone reading diffs. +pub const theme = .{ + .name = "okabe", + .page = .{ 0x0e, 0x12, 0x18 }, + .text = .{ 0xd8, 0xde, 0xe8 }, + .tag = .{ 0x1b, 0x22, 0x2c }, + .tag_text = .{ 0xa9, 0xb4, 0xc4 }, + .accent = .{ 0x56, 0xb4, 0xe9 }, + .selection = .{ 0x27, 0x41, 0x5e }, + .selection_text = .{ 0xee, 0xf3, 0xfa }, + .keyword = .{ 0x6c, 0xc0, 0xf0 }, + .string = .{ 0x3c, 0xcf, 0xa4 }, + .number = .{ 0xf0, 0xa8, 0x30 }, + .comment = .{ 0xd7, 0xcf, 0x7a }, + .line_number = .{ 0x4e, 0x58, 0x66 }, + .line_number_current = .{ 0x7d, 0x88, 0x98 }, + .@"error" = .{ 0xff, 0x8a, 0x4c }, + .warning = .{ 0xf0, 0xe4, 0x42 }, + .info = .{ 0x8c, 0xc8, 0xf0 }, + .hint = .{ 0xe5, 0x94, 0xc8 }, + .added = .{ 0x56, 0xb4, 0xe9 }, + .deleted = .{ 0xff, 0x8a, 0x4c }, + .ansi = .{ + .{ 0x1b, 0x22, 0x2c }, .{ 0xff, 0x8a, 0x4c }, .{ 0x3c, 0xcf, 0xa4 }, .{ 0xf0, 0xe4, 0x42 }, + .{ 0x56, 0xb4, 0xe9 }, .{ 0xe5, 0x94, 0xc8 }, .{ 0x8f, 0xd8, 0xf0 }, .{ 0xc4, 0xcc, 0xd8 }, + .{ 0x73, 0x7e, 0x8e }, .{ 0xff, 0xab, 0x7c }, .{ 0x6f, 0xe0, 0xbd }, .{ 0xf6, 0xee, 0x80 }, + .{ 0x86, 0xcc, 0xf2 }, .{ 0xf0, 0xb4, 0xda }, .{ 0xb4, 0xe6, 0xf6 }, .{ 0xee, 0xf3, 0xfa }, + }, +}; diff --git a/core/themes/orchard.zig b/core/themes/orchard.zig index b4a35c1f..8559119d 100644 --- a/core/themes/orchard.zig +++ b/core/themes/orchard.zig @@ -3,36 +3,32 @@ //! designed together. See docs/typ/themes.typ for the shared role contract. pub const theme = .{ .name = "orchard", - .bg = .{ 0x0d, 0x14, 0x10 }, - .fg = .{ 0xe5, 0xee, 0xe5 }, - .tag_bg = .{ 0x1d, 0x28, 0x24 }, - .tag_fg = .{ 0xb2, 0xc3, 0xb8 }, - .tag_name_fg = .{ 0xd3, 0xb0, 0xd9 }, - .tag_active_name_fg = .{ 0xdf, 0xbc, 0xe5 }, - .tag_active_bg = .{ 0x26, 0x36, 0x2d }, - .tag_active_fg = .{ 0xbe, 0xcf, 0xc4 }, - .box = .{ 0xad, 0xd3, 0x8a }, - .box_dim = .{ 0x49, 0x66, 0x56 }, - .column_box = .{ 0xf4, 0xc0, 0x86 }, - .column_box_dim = .{ 0x88, 0x74, 0x55 }, - .kw = .{ 0xc9, 0xa7, 0xed }, - .str = .{ 0xb8, 0xd8, 0x8a }, - .num = .{ 0xf8, 0xc0, 0x82 }, + .page = .{ 0x0d, 0x14, 0x10 }, + .text = .{ 0xe5, 0xee, 0xe5 }, + .tag = .{ 0x1d, 0x28, 0x24 }, + .tag_text = .{ 0xb2, 0xc3, 0xb8 }, + .tag_name = .{ 0xd3, 0xb0, 0xd9 }, + .tag_focus = .{ 0x26, 0x36, 0x2d }, + .tag_focus_text = .{ 0xbe, 0xcf, 0xc4 }, + .accent = .{ 0xad, 0xd3, 0x8a }, + .column_grip = .{ 0xf4, 0xc0, 0x86 }, + .keyword = .{ 0xc9, 0xa7, 0xed }, + .string = .{ 0xb8, 0xd8, 0x8a }, + .number = .{ 0xf8, 0xc0, 0x82 }, .comment = .{ 0xb9, 0xf4, 0x80 }, - .lineno = .{ 0x59, 0x67, 0x5c }, - .lineno_active = .{ 0x61, 0x6f, 0x64 }, - .scroll_track = .{ 0x15, 0x20, 0x19 }, - .scroll_thumb = .{ 0x60, 0x82, 0x69 }, - .border = .{ 0x48, 0x61, 0x52 }, - .sel_bg = .{ 0x3c, 0x61, 0x4a }, - .sel_fg = .{ 0xf5, 0xf7, 0xee }, - .search_bg = .{ 0x5e, 0x49, 0x23 }, - .search_fg = .{ 0xf7, 0xe4, 0xa5 }, - .diagnostic_error = .{ 0xfe, 0x98, 0x8e }, - .diagnostic_warning = .{ 0xf9, 0xcb, 0x70 }, - .diagnostic_info = .{ 0x92, 0xd1, 0xde }, - .diagnostic_hint = .{ 0xb7, 0xcb, 0x98 }, - .palette = .{ + .line_number = .{ 0x59, 0x67, 0x5c }, + .line_number_current = .{ 0x61, 0x6f, 0x64 }, + .rail = .{ 0x15, 0x20, 0x19 }, + .rail_thumb = .{ 0x60, 0x82, 0x69 }, + .rule = .{ 0x48, 0x61, 0x52 }, + .selection = .{ 0x3c, 0x61, 0x4a }, + .selection_text = .{ 0xf5, 0xf7, 0xee }, + .hit = .{ 0x5e, 0x49, 0x23 }, + .@"error" = .{ 0xfe, 0x98, 0x8e }, + .warning = .{ 0xf9, 0xcb, 0x70 }, + .info = .{ 0x92, 0xd1, 0xde }, + .hint = .{ 0xb7, 0xcb, 0x98 }, + .ansi = .{ .{ 0x0d, 0x14, 0x10 }, .{ 0xf1, 0xa3, 0x9b }, .{ 0xb6, 0xce, 0x94 }, diff --git a/core/themes/orchard_black.zig b/core/themes/orchard_black.zig index d9e026bd..86e39627 100644 --- a/core/themes/orchard_black.zig +++ b/core/themes/orchard_black.zig @@ -3,36 +3,32 @@ //! designed together. See docs/typ/themes.typ for the shared role contract. pub const theme = .{ .name = "orchard_black", - .bg = .{ 0x00, 0x00, 0x00 }, - .fg = .{ 0xf2, 0xf8, 0xef }, - .tag_bg = .{ 0x1d, 0x28, 0x24 }, - .tag_fg = .{ 0xb2, 0xc3, 0xb8 }, - .tag_name_fg = .{ 0xd3, 0xb0, 0xd9 }, - .tag_active_name_fg = .{ 0xdf, 0xbc, 0xe5 }, - .tag_active_bg = .{ 0x26, 0x36, 0x2d }, - .tag_active_fg = .{ 0xbe, 0xcf, 0xc4 }, - .box = .{ 0xad, 0xd3, 0x8a }, - .box_dim = .{ 0x49, 0x66, 0x56 }, - .column_box = .{ 0xf4, 0xc0, 0x86 }, - .column_box_dim = .{ 0x88, 0x74, 0x55 }, - .kw = .{ 0xc9, 0xa7, 0xed }, - .str = .{ 0xb8, 0xd8, 0x8a }, - .num = .{ 0xf8, 0xc0, 0x82 }, + .page = .{ 0x00, 0x00, 0x00 }, + .text = .{ 0xf2, 0xf8, 0xef }, + .tag = .{ 0x1d, 0x28, 0x24 }, + .tag_text = .{ 0xb2, 0xc3, 0xb8 }, + .tag_name = .{ 0xd3, 0xb0, 0xd9 }, + .tag_focus = .{ 0x26, 0x36, 0x2d }, + .tag_focus_text = .{ 0xbe, 0xcf, 0xc4 }, + .accent = .{ 0xad, 0xd3, 0x8a }, + .column_grip = .{ 0xf4, 0xc0, 0x86 }, + .keyword = .{ 0xc9, 0xa7, 0xed }, + .string = .{ 0xb8, 0xd8, 0x8a }, + .number = .{ 0xf8, 0xc0, 0x82 }, .comment = .{ 0xb9, 0xf4, 0x80 }, - .lineno = .{ 0x59, 0x67, 0x5c }, - .lineno_active = .{ 0x61, 0x6f, 0x64 }, - .scroll_track = .{ 0x11, 0x18, 0x13 }, - .scroll_thumb = .{ 0x60, 0x82, 0x69 }, - .border = .{ 0x48, 0x61, 0x52 }, - .sel_bg = .{ 0x3c, 0x61, 0x4a }, - .sel_fg = .{ 0xf5, 0xf7, 0xee }, - .search_bg = .{ 0x5e, 0x49, 0x23 }, - .search_fg = .{ 0xf7, 0xe4, 0xa5 }, - .diagnostic_error = .{ 0xfe, 0x98, 0x8e }, - .diagnostic_warning = .{ 0xf9, 0xcb, 0x70 }, - .diagnostic_info = .{ 0x92, 0xd1, 0xde }, - .diagnostic_hint = .{ 0xb7, 0xcb, 0x98 }, - .palette = .{ + .line_number = .{ 0x59, 0x67, 0x5c }, + .line_number_current = .{ 0x61, 0x6f, 0x64 }, + .rail = .{ 0x11, 0x18, 0x13 }, + .rail_thumb = .{ 0x60, 0x82, 0x69 }, + .rule = .{ 0x48, 0x61, 0x52 }, + .selection = .{ 0x3c, 0x61, 0x4a }, + .selection_text = .{ 0xf5, 0xf7, 0xee }, + .hit = .{ 0x5e, 0x49, 0x23 }, + .@"error" = .{ 0xfe, 0x98, 0x8e }, + .warning = .{ 0xf9, 0xcb, 0x70 }, + .info = .{ 0x92, 0xd1, 0xde }, + .hint = .{ 0xb7, 0xcb, 0x98 }, + .ansi = .{ .{ 0x00, 0x00, 0x00 }, .{ 0xf1, 0xa3, 0x9b }, .{ 0xb6, 0xce, 0x94 }, diff --git a/core/themes/paper.zig b/core/themes/paper.zig index c86482f7..a9ace49a 100644 --- a/core/themes/paper.zig +++ b/core/themes/paper.zig @@ -3,36 +3,32 @@ //! designed together. See docs/typ/themes.typ for the shared role contract. pub const theme = .{ .name = "paper", - .bg = .{ 0xf5, 0xf3, 0xed }, - .fg = .{ 0x30, 0x3b, 0x3b }, - .tag_bg = .{ 0xe8, 0xea, 0xe3 }, - .tag_fg = .{ 0x52, 0x62, 0x5a }, - .tag_name_fg = .{ 0x72, 0x4c, 0x83 }, - .tag_active_name_fg = .{ 0x69, 0x44, 0x7a }, - .tag_active_bg = .{ 0xdc, 0xe5, 0xdc }, - .tag_active_fg = .{ 0x4a, 0x5a, 0x52 }, - .box = .{ 0x36, 0x71, 0x57 }, - .box_dim = .{ 0x8f, 0xa5, 0x94 }, - .column_box = .{ 0x93, 0x58, 0x1a }, - .column_box_dim = .{ 0xbd, 0xa2, 0x7e }, - .kw = .{ 0x74, 0x46, 0x9b }, - .str = .{ 0x3a, 0x6f, 0x44 }, - .num = .{ 0x98, 0x59, 0x15 }, + .page = .{ 0xf5, 0xf3, 0xed }, + .text = .{ 0x30, 0x3b, 0x3b }, + .tag = .{ 0xe8, 0xea, 0xe3 }, + .tag_text = .{ 0x52, 0x62, 0x5a }, + .tag_name = .{ 0x72, 0x4c, 0x83 }, + .tag_focus = .{ 0xdc, 0xe5, 0xdc }, + .tag_focus_text = .{ 0x4a, 0x5a, 0x52 }, + .accent = .{ 0x36, 0x71, 0x57 }, + .column_grip = .{ 0x93, 0x58, 0x1a }, + .keyword = .{ 0x74, 0x46, 0x9b }, + .string = .{ 0x3a, 0x6f, 0x44 }, + .number = .{ 0x98, 0x59, 0x15 }, .comment = .{ 0x20, 0x75, 0x56 }, - .lineno = .{ 0x8b, 0x91, 0x85 }, - .lineno_active = .{ 0x83, 0x89, 0x7d }, - .scroll_track = .{ 0xe5, 0xe8, 0xdf }, - .scroll_thumb = .{ 0x86, 0x9d, 0x8a }, - .border = .{ 0xfb, 0xfb, 0xfb }, - .sel_bg = .{ 0xc5, 0xe2, 0xd0 }, - .sel_fg = .{ 0x20, 0x3e, 0x31 }, - .search_bg = .{ 0xfb, 0xe2, 0x9d }, - .search_fg = .{ 0x61, 0x46, 0x1c }, - .diagnostic_error = .{ 0xb3, 0x29, 0x28 }, - .diagnostic_warning = .{ 0x8c, 0x5b, 0x00 }, - .diagnostic_info = .{ 0x26, 0x6b, 0x7f }, - .diagnostic_hint = .{ 0x51, 0x74, 0x37 }, - .palette = .{ + .line_number = .{ 0x8b, 0x91, 0x85 }, + .line_number_current = .{ 0x83, 0x89, 0x7d }, + .rail = .{ 0xe5, 0xe8, 0xdf }, + .rail_thumb = .{ 0x86, 0x9d, 0x8a }, + .rule = .{ 0xfb, 0xfb, 0xfb }, + .selection = .{ 0xc5, 0xe2, 0xd0 }, + .selection_text = .{ 0x20, 0x3e, 0x31 }, + .hit = .{ 0xfb, 0xe2, 0x9d }, + .@"error" = .{ 0xb3, 0x29, 0x28 }, + .warning = .{ 0x8c, 0x5b, 0x00 }, + .info = .{ 0x26, 0x6b, 0x7f }, + .hint = .{ 0x51, 0x74, 0x37 }, + .ansi = .{ .{ 0x30, 0x3b, 0x3b }, .{ 0xa3, 0x39, 0x38 }, .{ 0x41, 0x68, 0x48 }, diff --git a/core/themes/rose_pine.zig b/core/themes/rose_pine.zig index 8409af9b..168cc9a5 100644 --- a/core/themes/rose_pine.zig +++ b/core/themes/rose_pine.zig @@ -27,63 +27,61 @@ //! git 'changed' colour (also GitSignsChange/SignChange). keyword: Keyword = //! pine exists directly (Statement is also pine). constant: Constant gold; //! Boolean differs (rose). +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - selection #332d41 -> #372e51: 1.34:1 off the page, now 1.41:1 (R7) pub const theme = .{ .name = "rose_pine", // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:111 Normal bg = ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:5 main.base - .bg = .{ 0x19, 0x17, 0x24 }, + .page = .{ 0x19, 0x17, 0x24 }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:111 Normal fg = ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:10 main.text - .fg = .{ 0xe0, 0xde, 0xf4 }, + .text = .{ 0xe0, 0xde, 0xf4 }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:146 Visual bg = ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:16 main.iris, blend = 15 -> composited over palette.base #191724 at alpha 0.15 by utilities.blend (~/05-genizah/rose-pine-neovim/lua/rose-pine/utilities.lua:55, called at ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:1176) = #332d41 - .sel_bg = .{ 0x33, 0x2d, 0x41 }, + .selection = .{ 0x33, 0x2d, 0x41 }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0xe0, 0xde, 0xf4 }, + .selection_text = .{ 0xe0, 0xde, 0xf4 }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:137 StatusLineNC bg = groups.panel = "surface" (~/05-genizah/rose-pine-neovim/lua/rose-pine/config.lua:45) -> ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:6 main.surface, blend = 60 -> composited over palette.base #191724 at alpha 0.60 by utilities.blend (~/05-genizah/rose-pine-neovim/lua/rose-pine/utilities.lua:55, called at ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:1176) = #1d1b2a - .tag_bg = .{ 0x1d, 0x1b, 0x2a }, + .tag = .{ 0x1d, 0x1b, 0x2a }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:137 StatusLineNC fg = ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:8 main.muted #6e6a86, adjusted - .tag_fg = .{ 0x85, 0x82, 0x99 }, + .tag_text = .{ 0x85, 0x82, 0x99 }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:136 StatusLine bg = groups.panel = "surface" (~/05-genizah/rose-pine-neovim/lua/rose-pine/config.lua:45) -> ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:6 main.surface #1f1d2e, adjusted - .tag_active_bg = .{ 0x3c, 0x3a, 0x4e }, + .tag_focus = .{ 0x3c, 0x3a, 0x4e }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:136 StatusLine fg = ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:9 main.subtle #908caa, adjusted - .tag_active_fg = .{ 0xa8, 0xa5, 0xbd }, + .tag_focus_text = .{ 0xa8, 0xa5, 0xbd }, // the focused grip: ~/05-genizah/rose-pine-neovim/lua/lualine/themes/rose-pine.lua:11 lualine theme normal.a bg = p.rose -> ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:13 main.rose - .box = .{ 0xeb, 0xbc, 0xba }, - // derived: the grip at rest, the accent #ebbcba faded toward the unfocused tag #1d1b2a as far as 1.6:1 off it (0.22 of the way) - .box_dim = .{ 0x4a, 0x3e, 0x4a }, + .accent = .{ 0xeb, 0xbc, 0xba }, // an unsaved grip: the original's warning colour, ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:159 DiagnosticWarn fg = groups.warn = "gold" (~/05-genizah/rose-pine-neovim/lua/rose-pine/config.lua:51) -> ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:12 main.gold - .box_dirty = .{ 0xf6, 0xc1, 0x77 }, + .dirty = .{ 0xf6, 0xc1, 0x77 }, // derived: the column grip, the original's type colour, ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:223 Type fg = ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:15 main.foam - .column_box = .{ 0x9c, 0xcf, 0xd8 }, + .column_grip = .{ 0x9c, 0xcf, 0xd8 }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:200 Keyword fg = ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:14 main.pine - .kw = .{ 0x31, 0x74, 0x8f }, + .keyword = .{ 0x31, 0x74, 0x8f }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:219 String fg = ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:12 main.gold - .str = .{ 0xf6, 0xc1, 0x77 }, + .string = .{ 0xf6, 0xc1, 0x77 }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:209 Number fg = ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:12 main.gold - .num = .{ 0xf6, 0xc1, 0x77 }, + .number = .{ 0xf6, 0xc1, 0x77 }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:188 Comment fg = ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:9 main.subtle .comment = .{ 0x90, 0x8c, 0xaa }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:106 LineNr fg = ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:8 main.muted - .lineno = .{ 0x6e, 0x6a, 0x86 }, + .line_number = .{ 0x6e, 0x6a, 0x86 }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:88 CursorLineNr fg = ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:10 main.text - .lineno_active = .{ 0xe0, 0xde, 0xf4 }, + .line_number_current = .{ 0xe0, 0xde, 0xf4 }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:120 PmenuSbar bg = groups.panel = "surface" (~/05-genizah/rose-pine-neovim/lua/rose-pine/config.lua:45) -> ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:6 main.surface - .scroll_track = .{ 0x1f, 0x1d, 0x2e }, + .rail = .{ 0x1f, 0x1d, 0x2e }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:122 PmenuThumb bg = ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:8 main.muted - .scroll_thumb = .{ 0x6e, 0x6a, 0x86 }, + .rail_thumb = .{ 0x6e, 0x6a, 0x86 }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:153 WinSeparator fg = groups.border = "muted" (~/05-genizah/rose-pine-neovim/lua/rose-pine/config.lua:43) -> ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:8 main.muted - .border = .{ 0x6e, 0x6a, 0x86 }, + .rule = .{ 0x6e, 0x6a, 0x86 }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:129 Search bg = ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:12 main.gold, blend = 20 -> composited over palette.base #191724 at alpha 0.20 by utilities.blend (~/05-genizah/rose-pine-neovim/lua/rose-pine/utilities.lua:55, called at ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:1176) = #453935 - .search_bg = .{ 0x45, 0x39, 0x35 }, - // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:129 Search fg = ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:10 main.text - .search_fg = .{ 0xe0, 0xde, 0xf4 }, + .hit = .{ 0x45, 0x39, 0x35 }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:155 DiagnosticError fg = groups.error = "love" (~/05-genizah/rose-pine-neovim/lua/rose-pine/config.lua:47) -> ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:11 main.love - .diagnostic_error = .{ 0xeb, 0x6f, 0x92 }, + .@"error" = .{ 0xeb, 0x6f, 0x92 }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:159 DiagnosticWarn fg = groups.warn = "gold" (~/05-genizah/rose-pine-neovim/lua/rose-pine/config.lua:51) -> ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:12 main.gold - .diagnostic_warning = .{ 0xf6, 0xc1, 0x77 }, + .warning = .{ 0xf6, 0xc1, 0x77 }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:157 DiagnosticInfo fg = groups.info = "foam" (~/05-genizah/rose-pine-neovim/lua/rose-pine/config.lua:49) -> ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:15 main.foam - .diagnostic_info = .{ 0x9c, 0xcf, 0xd8 }, + .info = .{ 0x9c, 0xcf, 0xd8 }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:156 DiagnosticHint fg = groups.hint = "iris" (~/05-genizah/rose-pine-neovim/lua/rose-pine/config.lua:48) -> ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:16 main.iris - .diagnostic_hint = .{ 0xc4, 0xa7, 0xe7 }, - .palette = .{ + .hint = .{ 0xc4, 0xa7, 0xe7 }, + .ansi = .{ .{ 0x26, 0x23, 0x3a }, // 0: ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:1191 vim.g.terminal_color_0 = palette.overlay -> ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:7 main.overlay .{ 0xeb, 0x6f, 0x92 }, // 1: ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:1193 vim.g.terminal_color_1 = palette.love -> ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:11 main.love .{ 0x31, 0x74, 0x8f }, // 2: ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:1195 vim.g.terminal_color_2 = palette.pine -> ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:14 main.pine diff --git a/core/themes/rose_pine_dawn.zig b/core/themes/rose_pine_dawn.zig index 304df52b..04bc7828 100644 --- a/core/themes/rose_pine_dawn.zig +++ b/core/themes/rose_pine_dawn.zig @@ -27,63 +27,70 @@ //! git 'changed' colour (also GitSignsChange/SignChange). keyword: Keyword = //! pine exists directly (Statement is also pine). constant: Constant gold; //! Boolean differs (rose). +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - tag ground #fdf8f1 -> #eee9e2: 1.03:1 off the page, now 1.11:1 (H: a band 1.1:1 off the page; R3: tone on tone) +//! - focused tag ground #e2ddde -> #d6d1ca: 1.11:1 off the tag, now 1.26:1 (R4, H: a focus step off the tag, and the loudest) +//! - focused grip #d7827e -> #af5e5b: 1.87:1 on the focused tag, now 3.02:1 (R6: 3:1) +//! - unsaved grip #ea9d34 -> #a56800: 1.86:1 on the tag, now 3.80:1 (R6: 3:1 on both tags) +//! - selection #eae2e3 -> #e7d9d3: 1.17:1 off the page, now 1.26:1 (R7) +//! - search hit #f7e3c8 -> #fabe78: 1.15:1 off the page, now 1.51:1 (R8: 1.5:1, the text reading on it) +//! - error #b4637a -> #a7576e: 3.84:1 on the page, now 4.54:1 (R9: 4.5:1, told from the text and the others) +//! - warning #ea9d34 -> #9e6300: 2.05:1 on the page, now 4.54:1 (R9: 4.5:1, told from the text and the others) +//! - info #56949f -> #3b7984: 3.14:1 on the page, now 4.52:1 (R9: 4.5:1, told from the text and the others) +//! - hint #907aa9 -> #7d6795: 3.47:1 on the page, now 4.53:1 (R9: 4.5:1, told from the text and the others) pub const theme = .{ .name = "rose_pine_dawn", // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:111 Normal bg = ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:45 dawn.base - .bg = .{ 0xfa, 0xf4, 0xed }, + .page = .{ 0xfa, 0xf4, 0xed }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:111 Normal fg = ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:50 dawn.text - .fg = .{ 0x46, 0x42, 0x61 }, + .text = .{ 0x46, 0x42, 0x61 }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:146 Visual bg = ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:56 dawn.iris, blend = 15 -> composited over palette.base #faf4ed at alpha 0.15 by utilities.blend (~/05-genizah/rose-pine-neovim/lua/rose-pine/utilities.lua:55, called at ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:1176) = #eae2e3 - .sel_bg = .{ 0xea, 0xe2, 0xe3 }, + .selection = .{ 0xea, 0xe2, 0xe3 }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0x46, 0x42, 0x61 }, + .selection_text = .{ 0x46, 0x42, 0x61 }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:137 StatusLineNC bg = groups.panel = "surface" (~/05-genizah/rose-pine-neovim/lua/rose-pine/config.lua:45) -> ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:46 dawn.surface, blend = 60 -> composited over palette.base #faf4ed at alpha 0.60 by utilities.blend (~/05-genizah/rose-pine-neovim/lua/rose-pine/utilities.lua:55, called at ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:1176) = #fdf8f1 - .tag_bg = .{ 0xfd, 0xf8, 0xf1 }, + .tag = .{ 0xfd, 0xf8, 0xf1 }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:137 StatusLineNC fg = ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:48 dawn.muted #9893a5, adjusted - .tag_fg = .{ 0x74, 0x70, 0x7d }, + .tag_text = .{ 0x74, 0x70, 0x7d }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:136 StatusLine bg = groups.panel = "surface" (~/05-genizah/rose-pine-neovim/lua/rose-pine/config.lua:45) -> ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:46 dawn.surface #fffaf3, adjusted - .tag_active_bg = .{ 0xe2, 0xdd, 0xde }, + .tag_focus = .{ 0xe2, 0xdd, 0xde }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:136 StatusLine fg = ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:49 dawn.subtle #797593, adjusted - .tag_active_fg = .{ 0x61, 0x5e, 0x76 }, + .tag_focus_text = .{ 0x61, 0x5e, 0x76 }, // the focused grip: ~/05-genizah/rose-pine-neovim/lua/lualine/themes/rose-pine.lua:11 lualine theme normal.a bg = p.rose -> ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:53 dawn.rose - .box = .{ 0xd7, 0x82, 0x7e }, - // derived: the grip at rest, the accent #d7827e faded toward the unfocused tag #fdf8f1 as far as 1.6:1 off it (0.52 of the way) - .box_dim = .{ 0xe9, 0xbb, 0xb5 }, + .accent = .{ 0xd7, 0x82, 0x7e }, // an unsaved grip: the original's warning colour, ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:159 DiagnosticWarn fg = groups.warn = "gold" (~/05-genizah/rose-pine-neovim/lua/rose-pine/config.lua:51) -> ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:52 dawn.gold - .box_dirty = .{ 0xea, 0x9d, 0x34 }, + .dirty = .{ 0xea, 0x9d, 0x34 }, // derived: the column grip, the original's type colour, ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:223 Type fg = ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:55 dawn.foam - .column_box = .{ 0x56, 0x94, 0x9f }, + .column_grip = .{ 0x56, 0x94, 0x9f }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:200 Keyword fg = ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:54 dawn.pine - .kw = .{ 0x28, 0x69, 0x83 }, + .keyword = .{ 0x28, 0x69, 0x83 }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:219 String fg = ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:52 dawn.gold - .str = .{ 0xea, 0x9d, 0x34 }, + .string = .{ 0xea, 0x9d, 0x34 }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:209 Number fg = ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:52 dawn.gold - .num = .{ 0xea, 0x9d, 0x34 }, + .number = .{ 0xea, 0x9d, 0x34 }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:188 Comment fg = ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:49 dawn.subtle .comment = .{ 0x79, 0x75, 0x93 }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:106 LineNr fg = ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:48 dawn.muted - .lineno = .{ 0x98, 0x93, 0xa5 }, + .line_number = .{ 0x98, 0x93, 0xa5 }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:88 CursorLineNr fg = ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:50 dawn.text - .lineno_active = .{ 0x46, 0x42, 0x61 }, + .line_number_current = .{ 0x46, 0x42, 0x61 }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:120 PmenuSbar bg = groups.panel = "surface" (~/05-genizah/rose-pine-neovim/lua/rose-pine/config.lua:45) -> ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:46 dawn.surface - .scroll_track = .{ 0xff, 0xfa, 0xf3 }, + .rail = .{ 0xff, 0xfa, 0xf3 }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:122 PmenuThumb bg = ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:48 dawn.muted - .scroll_thumb = .{ 0x98, 0x93, 0xa5 }, + .rail_thumb = .{ 0x98, 0x93, 0xa5 }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:153 WinSeparator fg = groups.border = "muted" (~/05-genizah/rose-pine-neovim/lua/rose-pine/config.lua:43) -> ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:48 dawn.muted - .border = .{ 0x98, 0x93, 0xa5 }, + .rule = .{ 0x98, 0x93, 0xa5 }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:129 Search bg = ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:52 dawn.gold, blend = 20 -> composited over palette.base #faf4ed at alpha 0.20 by utilities.blend (~/05-genizah/rose-pine-neovim/lua/rose-pine/utilities.lua:55, called at ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:1176) = #f7e3c8 - .search_bg = .{ 0xf7, 0xe3, 0xc8 }, - // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:129 Search fg = ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:50 dawn.text - .search_fg = .{ 0x46, 0x42, 0x61 }, + .hit = .{ 0xf7, 0xe3, 0xc8 }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:155 DiagnosticError fg = groups.error = "love" (~/05-genizah/rose-pine-neovim/lua/rose-pine/config.lua:47) -> ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:51 dawn.love - .diagnostic_error = .{ 0xb4, 0x63, 0x7a }, + .@"error" = .{ 0xb4, 0x63, 0x7a }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:159 DiagnosticWarn fg = groups.warn = "gold" (~/05-genizah/rose-pine-neovim/lua/rose-pine/config.lua:51) -> ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:52 dawn.gold - .diagnostic_warning = .{ 0xea, 0x9d, 0x34 }, + .warning = .{ 0xea, 0x9d, 0x34 }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:157 DiagnosticInfo fg = groups.info = "foam" (~/05-genizah/rose-pine-neovim/lua/rose-pine/config.lua:49) -> ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:55 dawn.foam - .diagnostic_info = .{ 0x56, 0x94, 0x9f }, + .info = .{ 0x56, 0x94, 0x9f }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:156 DiagnosticHint fg = groups.hint = "iris" (~/05-genizah/rose-pine-neovim/lua/rose-pine/config.lua:48) -> ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:56 dawn.iris - .diagnostic_hint = .{ 0x90, 0x7a, 0xa9 }, - .palette = .{ + .hint = .{ 0x90, 0x7a, 0xa9 }, + .ansi = .{ .{ 0xf2, 0xe9, 0xe1 }, // 0: ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:1191 vim.g.terminal_color_0 = palette.overlay -> ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:47 dawn.overlay .{ 0xb4, 0x63, 0x7a }, // 1: ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:1193 vim.g.terminal_color_1 = palette.love -> ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:51 dawn.love .{ 0x28, 0x69, 0x83 }, // 2: ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:1195 vim.g.terminal_color_2 = palette.pine -> ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:54 dawn.pine diff --git a/core/themes/rose_pine_moon.zig b/core/themes/rose_pine_moon.zig index f90975f1..a730284e 100644 --- a/core/themes/rose_pine_moon.zig +++ b/core/themes/rose_pine_moon.zig @@ -27,63 +27,61 @@ //! git 'changed' colour (also GitSignsChange/SignChange). keyword: Keyword = //! pine exists directly (Statement is also pine). constant: Constant gold; //! Boolean differs (rose). +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - selection #3b3551 -> #3f3468: 1.35:1 off the page, now 1.42:1 (R7) pub const theme = .{ .name = "rose_pine_moon", // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:111 Normal bg = ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:25 moon.base - .bg = .{ 0x23, 0x21, 0x36 }, + .page = .{ 0x23, 0x21, 0x36 }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:111 Normal fg = ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:30 moon.text - .fg = .{ 0xe0, 0xde, 0xf4 }, + .text = .{ 0xe0, 0xde, 0xf4 }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:146 Visual bg = ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:36 moon.iris, blend = 15 -> composited over palette.base #232136 at alpha 0.15 by utilities.blend (~/05-genizah/rose-pine-neovim/lua/rose-pine/utilities.lua:55, called at ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:1176) = #3b3551 - .sel_bg = .{ 0x3b, 0x35, 0x51 }, + .selection = .{ 0x3b, 0x35, 0x51 }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0xe0, 0xde, 0xf4 }, + .selection_text = .{ 0xe0, 0xde, 0xf4 }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:137 StatusLineNC bg = groups.panel = "surface" (~/05-genizah/rose-pine-neovim/lua/rose-pine/config.lua:45) -> ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:26 moon.surface, blend = 60 -> composited over palette.base #232136 at alpha 0.60 by utilities.blend (~/05-genizah/rose-pine-neovim/lua/rose-pine/utilities.lua:55, called at ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:1176) = #27253b - .tag_bg = .{ 0x27, 0x25, 0x3b }, + .tag = .{ 0x27, 0x25, 0x3b }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:137 StatusLineNC fg = ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:28 moon.muted #6e6a86, adjusted - .tag_fg = .{ 0x91, 0x8e, 0xa3 }, + .tag_text = .{ 0x91, 0x8e, 0xa3 }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:136 StatusLine bg = groups.panel = "surface" (~/05-genizah/rose-pine-neovim/lua/rose-pine/config.lua:45) -> ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:26 moon.surface #2a273f, adjusted - .tag_active_bg = .{ 0x45, 0x41, 0x5b }, + .tag_focus = .{ 0x45, 0x41, 0x5b }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:136 StatusLine fg = ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:29 moon.subtle #908caa, adjusted - .tag_active_fg = .{ 0xb1, 0xaf, 0xc4 }, + .tag_focus_text = .{ 0xb1, 0xaf, 0xc4 }, // the focused grip: ~/05-genizah/rose-pine-neovim/lua/lualine/themes/rose-pine.lua:11 lualine theme normal.a bg = p.rose -> ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:33 moon.rose - .box = .{ 0xea, 0x9a, 0x97 }, - // derived: the grip at rest, the accent #ea9a97 faded toward the unfocused tag #27253b as far as 1.6:1 off it (0.26 of the way) - .box_dim = .{ 0x5a, 0x43, 0x53 }, + .accent = .{ 0xea, 0x9a, 0x97 }, // an unsaved grip: the original's warning colour, ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:159 DiagnosticWarn fg = groups.warn = "gold" (~/05-genizah/rose-pine-neovim/lua/rose-pine/config.lua:51) -> ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:32 moon.gold - .box_dirty = .{ 0xf6, 0xc1, 0x77 }, + .dirty = .{ 0xf6, 0xc1, 0x77 }, // derived: the column grip, the original's type colour, ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:223 Type fg = ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:35 moon.foam - .column_box = .{ 0x9c, 0xcf, 0xd8 }, + .column_grip = .{ 0x9c, 0xcf, 0xd8 }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:200 Keyword fg = ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:34 moon.pine - .kw = .{ 0x3e, 0x8f, 0xb0 }, + .keyword = .{ 0x3e, 0x8f, 0xb0 }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:219 String fg = ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:32 moon.gold - .str = .{ 0xf6, 0xc1, 0x77 }, + .string = .{ 0xf6, 0xc1, 0x77 }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:209 Number fg = ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:32 moon.gold - .num = .{ 0xf6, 0xc1, 0x77 }, + .number = .{ 0xf6, 0xc1, 0x77 }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:188 Comment fg = ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:29 moon.subtle .comment = .{ 0x90, 0x8c, 0xaa }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:106 LineNr fg = ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:28 moon.muted - .lineno = .{ 0x6e, 0x6a, 0x86 }, + .line_number = .{ 0x6e, 0x6a, 0x86 }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:88 CursorLineNr fg = ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:30 moon.text - .lineno_active = .{ 0xe0, 0xde, 0xf4 }, + .line_number_current = .{ 0xe0, 0xde, 0xf4 }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:120 PmenuSbar bg = groups.panel = "surface" (~/05-genizah/rose-pine-neovim/lua/rose-pine/config.lua:45) -> ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:26 moon.surface - .scroll_track = .{ 0x2a, 0x27, 0x3f }, + .rail = .{ 0x2a, 0x27, 0x3f }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:122 PmenuThumb bg = ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:28 moon.muted - .scroll_thumb = .{ 0x6e, 0x6a, 0x86 }, + .rail_thumb = .{ 0x6e, 0x6a, 0x86 }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:153 WinSeparator fg = groups.border = "muted" (~/05-genizah/rose-pine-neovim/lua/rose-pine/config.lua:43) -> ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:28 moon.muted - .border = .{ 0x6e, 0x6a, 0x86 }, + .rule = .{ 0x6e, 0x6a, 0x86 }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:129 Search bg = ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:32 moon.gold, blend = 20 -> composited over palette.base #232136 at alpha 0.20 by utilities.blend (~/05-genizah/rose-pine-neovim/lua/rose-pine/utilities.lua:55, called at ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:1176) = #4d4143 - .search_bg = .{ 0x4d, 0x41, 0x43 }, - // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:129 Search fg = ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:30 moon.text - .search_fg = .{ 0xe0, 0xde, 0xf4 }, + .hit = .{ 0x4d, 0x41, 0x43 }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:155 DiagnosticError fg = groups.error = "love" (~/05-genizah/rose-pine-neovim/lua/rose-pine/config.lua:47) -> ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:31 moon.love - .diagnostic_error = .{ 0xeb, 0x6f, 0x92 }, + .@"error" = .{ 0xeb, 0x6f, 0x92 }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:159 DiagnosticWarn fg = groups.warn = "gold" (~/05-genizah/rose-pine-neovim/lua/rose-pine/config.lua:51) -> ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:32 moon.gold - .diagnostic_warning = .{ 0xf6, 0xc1, 0x77 }, + .warning = .{ 0xf6, 0xc1, 0x77 }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:157 DiagnosticInfo fg = groups.info = "foam" (~/05-genizah/rose-pine-neovim/lua/rose-pine/config.lua:49) -> ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:35 moon.foam - .diagnostic_info = .{ 0x9c, 0xcf, 0xd8 }, + .info = .{ 0x9c, 0xcf, 0xd8 }, // ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:156 DiagnosticHint fg = groups.hint = "iris" (~/05-genizah/rose-pine-neovim/lua/rose-pine/config.lua:48) -> ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:36 moon.iris - .diagnostic_hint = .{ 0xc4, 0xa7, 0xe7 }, - .palette = .{ + .hint = .{ 0xc4, 0xa7, 0xe7 }, + .ansi = .{ .{ 0x39, 0x35, 0x52 }, // 0: ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:1191 vim.g.terminal_color_0 = palette.overlay -> ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:27 moon.overlay .{ 0xeb, 0x6f, 0x92 }, // 1: ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:1193 vim.g.terminal_color_1 = palette.love -> ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:31 moon.love .{ 0x3e, 0x8f, 0xb0 }, // 2: ~/05-genizah/rose-pine-neovim/lua/rose-pine.lua:1195 vim.g.terminal_color_2 = palette.pine -> ~/05-genizah/rose-pine-neovim/lua/rose-pine/palette.lua:34 moon.pine diff --git a/core/themes/rosebones_dark.zig b/core/themes/rosebones_dark.zig index bd3ae169..0954e615 100644 --- a/core/themes/rosebones_dark.zig +++ b/core/themes/rosebones_dark.zig @@ -16,63 +16,61 @@ //! only), so it inherits Normal. TabLine links to StatusLine, TabLineFill to //! StatusLineNC. Accent is the lualine normal-mode a bg, a muted neutral (the //! theme is contrast-based, not hue-accented). Modified = Changed fg. +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - focused grip #5d5978 -> #8c88aa: 1.53:1 on the focused tag, now 3.01:1 (R6: 3:1) pub const theme = .{ .name = "rosebones_dark", // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:33 Normal guibg - .bg = .{ 0x1a, 0x18, 0x25 }, + .page = .{ 0x1a, 0x18, 0x25 }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:33 Normal guifg - .fg = .{ 0xe1, 0xd4, 0xd4 }, + .text = .{ 0xe1, 0xd4, 0xd4 }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:211 Visual guibg - .sel_bg = .{ 0x52, 0x3a, 0x39 }, + .selection = .{ 0x52, 0x3a, 0x39 }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0xe1, 0xd4, 0xd4 }, + .selection_text = .{ 0xe1, 0xd4, 0xd4 }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:198 StatusLineNC guibg - .tag_bg = .{ 0x24, 0x22, 0x32 }, + .tag = .{ 0x24, 0x22, 0x32 }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:198 StatusLineNC guifg - .tag_fg = .{ 0xe9, 0xe0, 0xe0 }, + .tag_text = .{ 0xe9, 0xe0, 0xe0 }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:195 StatusLine guibg #312e43, adjusted - .tag_active_bg = .{ 0x42, 0x3e, 0x59 }, + .tag_focus = .{ 0x42, 0x3e, 0x59 }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:195 StatusLine guifg - .tag_active_fg = .{ 0xe1, 0xd4, 0xd4 }, + .tag_focus_text = .{ 0xe1, 0xd4, 0xd4 }, // the focused grip: ~/05-genizah/zenbones.nvim/lua/lualine/themes/rosebones_dark_default.lua:8 normal.a bg (lualine theme, default ness; generator derives it as PmenuSbar.bg.abs_da(3), lua/zenbones/shipwright/runners/lualine.lua:66) - .box = .{ 0x5d, 0x59, 0x78 }, - // derived: the grip at rest, the accent #534e6f faded toward the unfocused tag #242232 as far as 1.6:1 off it (0.72 of the way) - .box_dim = .{ 0x46, 0x42, 0x5e }, + .accent = .{ 0x5d, 0x59, 0x78 }, // an unsaved grip: the original's modified colour, ~/05-genizah/zenbones.nvim/colors/rosebones.vim:41 Changed guifg - .box_dirty = .{ 0x9c, 0xcf, 0xd8 }, + .dirty = .{ 0x9c, 0xcf, 0xd8 }, // derived: the column grip, the original's type colour, ~/05-genizah/zenbones.nvim/colors/rosebones.vim:207 Type guifg - .column_box = .{ 0xdf, 0xde, 0xf1 }, + .column_grip = .{ 0xdf, 0xde, 0xf1 }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:191 Statement guifg (no Keyword group defined; Vim default links Keyword to Statement) - .kw = .{ 0x31, 0x74, 0x90 }, + .keyword = .{ 0x31, 0x74, 0x90 }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:201 String guifg - .str = .{ 0xbc, 0x94, 0x93 }, + .string = .{ 0xbc, 0x94, 0x93 }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:164 Number guifg - .num = .{ 0xbc, 0x94, 0x93 }, + .number = .{ 0xbc, 0x94, 0x93 }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:47 Comment guifg .comment = .{ 0x69, 0x65, 0x7e }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:150 LineNr guifg - .lineno = .{ 0x62, 0x5d, 0x7f }, + .line_number = .{ 0x62, 0x5d, 0x7f }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:62 CursorLineNr guifg - .lineno_active = .{ 0xe1, 0xd4, 0xd4 }, + .line_number_current = .{ 0xe1, 0xd4, 0xd4 }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:167 PmenuSbar guibg - .scroll_track = .{ 0x5a, 0x55, 0x78 }, + .rail = .{ 0x5a, 0x55, 0x78 }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:169 PmenuThumb guibg - .scroll_thumb = .{ 0x84, 0x80, 0x9d }, + .rail_thumb = .{ 0x84, 0x80, 0x9d }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:218 WinSeparator guifg - .border = .{ 0x62, 0x5d, 0x7f }, + .rule = .{ 0x62, 0x5d, 0x7f }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:172 Search guibg - .search_bg = .{ 0x67, 0x35, 0x92 }, - // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:172 Search guifg - .search_fg = .{ 0xe1, 0xd4, 0xd4 }, + .hit = .{ 0x67, 0x35, 0x92 }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:113 Error guifg via DiagnosticError->Error (link :114) - .diagnostic_error = .{ 0xeb, 0x71, 0x93 }, + .@"error" = .{ 0xeb, 0x71, 0x93 }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:212 WarningMsg guifg via DiagnosticWarn->WarningMsg (link :213) - .diagnostic_warning = .{ 0xf6, 0xc0, 0x74 }, + .warning = .{ 0xf6, 0xc0, 0x74 }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:72 DiagnosticInfo guifg - .diagnostic_info = .{ 0x9c, 0xcf, 0xd8 }, + .info = .{ 0x9c, 0xcf, 0xd8 }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:67 DiagnosticHint guifg - .diagnostic_hint = .{ 0xc4, 0xa7, 0xe7 }, - .palette = .{ + .hint = .{ 0xc4, 0xa7, 0xe7 }, + .ansi = .{ .{ 0x1a, 0x18, 0x25 }, // 0: ~/05-genizah/zenbones.nvim/colors/rosebones.vim:17 g:terminal_color_0 .{ 0xeb, 0x71, 0x93 }, // 1: ~/05-genizah/zenbones.nvim/colors/rosebones.vim:18 g:terminal_color_1 .{ 0x31, 0x74, 0x90 }, // 2: ~/05-genizah/zenbones.nvim/colors/rosebones.vim:19 g:terminal_color_2 diff --git a/core/themes/rosebones_light.zig b/core/themes/rosebones_light.zig index 314424a6..0d8b4fa0 100644 --- a/core/themes/rosebones_light.zig +++ b/core/themes/rosebones_light.zig @@ -17,63 +17,67 @@ //! only), so it inherits Normal. TabLine links to StatusLine, TabLineFill to //! StatusLineNC. Accent is the lualine normal-mode a bg, a muted neutral (the //! theme is contrast-based, not hue-accented). Modified = Changed fg. +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - focused grip #bea174 -> #896e42: 1.54:1 on the focused tag, now 3.02:1 (R6: 3:1) +//! - unsaved grip #5795a0 -> #3d7b86: 2.69:1 on the tag, now 3.82:1 (R6: 3:1 on both tags) +//! - selection #eadddc -> #ecdad3: 1.23:1 off the page, now 1.26:1 (R7) +//! - error #b5637a -> #a9586f: 3.88:1 on the page, now 4.53:1 (R9: 4.5:1, told from the text and the others) +//! - warning #ec9d33 -> #a16400: 2.07:1 on the page, now 4.50:1 (R9: 4.5:1, told from the text and the others) +//! - info #5795a0 -> #3c7a85: 3.15:1 on the page, now 4.53:1 (R9: 4.5:1, told from the text and the others) +//! - hint #917ba9 -> #7e6995: 3.48:1 on the page, now 4.50:1 (R9: 4.5:1, told from the text and the others) pub const theme = .{ .name = "rosebones_light", // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:267 Normal guibg - .bg = .{ 0xfb, 0xf6, 0xf0 }, + .page = .{ 0xfb, 0xf6, 0xf0 }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:267 Normal guifg - .fg = .{ 0x72, 0x43, 0x41 }, + .text = .{ 0x72, 0x43, 0x41 }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:445 Visual guibg - .sel_bg = .{ 0xea, 0xdd, 0xdc }, + .selection = .{ 0xea, 0xdd, 0xdc }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0x72, 0x43, 0x41 }, + .selection_text = .{ 0x72, 0x43, 0x41 }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:432 StatusLineNC guibg - .tag_bg = .{ 0xf3, 0xe3, 0xcf }, + .tag = .{ 0xf3, 0xe3, 0xcf }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:432 StatusLineNC guifg #ae6966, adjusted - .tag_fg = .{ 0x8f, 0x56, 0x54 }, + .tag_text = .{ 0x8f, 0x56, 0x54 }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:429 StatusLine guibg #ecd0a9, adjusted - .tag_active_bg = .{ 0xe9, 0xc8, 0x9a }, + .tag_focus = .{ 0xe9, 0xc8, 0x9a }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:429 StatusLine guifg - .tag_active_fg = .{ 0x72, 0x43, 0x41 }, + .tag_focus_text = .{ 0x72, 0x43, 0x41 }, // the focused grip: ~/05-genizah/zenbones.nvim/lua/lualine/themes/rosebones_light_default.lua:8 normal.a bg (lualine theme, default ness; generator derives it as PmenuSbar.bg.abs_da(3), lua/zenbones/shipwright/runners/lualine.lua:66) - .box = .{ 0xbe, 0xa1, 0x74 }, - // derived: the grip at rest, the accent #ceaf7e faded toward the unfocused tag #f3e3cf as far as 1.6:1 off it (0.96 of the way) - .box_dim = .{ 0xcf, 0xb1, 0x81 }, + .accent = .{ 0xbe, 0xa1, 0x74 }, // an unsaved grip: the original's modified colour, ~/05-genizah/zenbones.nvim/colors/rosebones.vim:275 Changed guifg - .box_dirty = .{ 0x57, 0x95, 0xa0 }, + .dirty = .{ 0x57, 0x95, 0xa0 }, // derived: the column grip, the original's type colour, ~/05-genizah/zenbones.nvim/colors/rosebones.vim:441 Type guifg - .column_box = .{ 0x57, 0x52, 0x7a }, + .column_grip = .{ 0x57, 0x52, 0x7a }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:425 Statement guifg (no Keyword group defined; Vim default links Keyword to Statement) - .kw = .{ 0x28, 0x6a, 0x84 }, + .keyword = .{ 0x28, 0x6a, 0x84 }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:435 String guifg - .str = .{ 0xab, 0x67, 0x63 }, + .string = .{ 0xab, 0x67, 0x63 }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:398 Number guifg - .num = .{ 0xab, 0x67, 0x63 }, + .number = .{ 0xab, 0x67, 0x63 }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:281 Comment guifg .comment = .{ 0xa1, 0x8e, 0x72 }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:384 LineNr guifg - .lineno = .{ 0xb6, 0x9a, 0x6e }, + .line_number = .{ 0xb6, 0x9a, 0x6e }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:296 CursorLineNr guifg - .lineno_active = .{ 0x72, 0x43, 0x41 }, + .line_number_current = .{ 0x72, 0x43, 0x41 }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:401 PmenuSbar guibg - .scroll_track = .{ 0xc5, 0xa7, 0x78 }, + .rail = .{ 0xc5, 0xa7, 0x78 }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:403 PmenuThumb guibg - .scroll_thumb = .{ 0xfe, 0xfc, 0xfa }, + .rail_thumb = .{ 0xfe, 0xfc, 0xfa }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:452 WinSeparator guifg - .border = .{ 0xb6, 0x9a, 0x6e }, + .rule = .{ 0xb6, 0x9a, 0x6e }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:406 Search guibg - .search_bg = .{ 0xd1, 0xc9, 0xdc }, - // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:406 Search guifg - .search_fg = .{ 0x72, 0x43, 0x41 }, + .hit = .{ 0xd1, 0xc9, 0xdc }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:347 Error guifg via DiagnosticError->Error (link :348) - .diagnostic_error = .{ 0xb5, 0x63, 0x7a }, + .@"error" = .{ 0xb5, 0x63, 0x7a }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:446 WarningMsg guifg via DiagnosticWarn->WarningMsg (link :447) - .diagnostic_warning = .{ 0xec, 0x9d, 0x33 }, + .warning = .{ 0xec, 0x9d, 0x33 }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:306 DiagnosticInfo guifg - .diagnostic_info = .{ 0x57, 0x95, 0xa0 }, + .info = .{ 0x57, 0x95, 0xa0 }, // ~/05-genizah/zenbones.nvim/colors/rosebones.vim:301 DiagnosticHint guifg - .diagnostic_hint = .{ 0x91, 0x7b, 0xa9 }, - .palette = .{ + .hint = .{ 0x91, 0x7b, 0xa9 }, + .ansi = .{ .{ 0xfb, 0xf6, 0xf0 }, // 0: ~/05-genizah/zenbones.nvim/colors/rosebones.vim:251 g:terminal_color_0 .{ 0xb5, 0x63, 0x7a }, // 1: ~/05-genizah/zenbones.nvim/colors/rosebones.vim:252 g:terminal_color_1 .{ 0x28, 0x6a, 0x84 }, // 2: ~/05-genizah/zenbones.nvim/colors/rosebones.vim:253 g:terminal_color_2 diff --git a/core/themes/seoul256.zig b/core/themes/seoul256.zig index d51ec310..5940d485 100644 --- a/core/themes/seoul256.zig +++ b/core/themes/seoul256.zig @@ -1,7 +1,8 @@ //! Seoul256 (junegunn/seoul256.vim), as close to the original as pardes -//! can draw it: its dark style at each of its backgrounds 233 to 239 and its -//! light one at 252 to 256, a theme each (`dark`, `light`; colors.zig rings -//! them as seoul256_<style>_<level>). Every value is the original's own, +//! can draw it: its dark style at each of its backgrounds 233 to 237 and its +//! light one at 254 to 256, a theme each (`dark`, `light`; colors.zig rings +//! them as seoul256_<style>_<level>; 238, 239, 252 and 253 retired, DESIGN.md +//! E: their text leaves the hits no room). Every value is the original's own, //! cited on its line (path:line key), once for the family: a value every //! level shares where it is set below, one a level changes in that level's //! row of `dark_levels` or `light_levels`, with what pardes adjusted there. @@ -35,164 +36,151 @@ //! so, its tabline_fg or tabline_bg role lands on an xterm index missing //! from the default s:rgb_map, so Vim emits gui*=NONE and it inherits //! Normal (given as such). +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - dark_233: focused tag ground #9a7372 -> #4e4d4e: 3.08:1 off the tag, now 1.52:1 (R4, H: a focus step off the tag, and the loudest) +//! - dark_233: focused grip #006a6c -> #55a8aa: 1.31:1 on the focused tag, now 3.03:1 (R6: 3:1) +//! - dark_233, dark_234, dark_235, dark_236, dark_237: selection text #d9d9d9 -> #e3e3e3: 4.12:1 on the selection, now 4.53:1 (R7: 4.5:1) +//! - dark_233: search hit #007299 -> #582929: 3.30:1 off the page, now 1.51:1 (R8: 1.5:1, the text reading on it) +//! - dark_233: error #e12672 -> #eb337a: 4.03:1 on the page, now 4.51:1 (R9: 4.5:1, told from the text and the others) +//! - dark_234: focused tag ground #9a7372 -> #595959: 2.54:1 off the tag, now 1.50:1 (R4, H: a focus step off the tag, and the loudest) +//! - dark_234: focused grip #006a6c -> #64b7b8: 1.09:1 on the focused tag, now 3.00:1 (R6: 3:1) +//! - dark_234: unsaved grip #719cdf -> #80acf0: 3.77:1 on the tag, now 4.55:1 (R6: 3:1 on both tags) +//! - dark_234: search hit #007299 -> #643333: 2.82:1 off the page, now 1.51:1 (R8: 1.5:1, the text reading on it) +//! - dark_234: error #e12672 -> #fa4386: 3.45:1 on the page, now 4.53:1 (R9: 4.5:1, told from the text and the others) +//! - dark_235: focused tag ground #9a7372 -> #666666: 2.11:1 off the tag, now 1.52:1 (R4, H: a focus step off the tag, and the loudest) +//! - dark_235: focused grip #006a6c -> #76c9ca: 1.12:1 on the focused tag, now 3.00:1 (R6: 3:1) +//! - dark_235: unsaved grip #719cdf -> #94befe: 3.13:1 on the tag, now 4.59:1 (R6: 3:1 on both tags) +//! - dark_235: search hit #007299 -> #723f3f: 2.35:1 off the page, now 1.52:1 (R8: 1.5:1, the text reading on it) +//! - dark_235: error #e12672 -> #ff6395: 2.87:1 on the page, now 4.54:1 (R9: 4.5:1, told from the text and the others) +//! - dark_236: focused tag ground #9a7372 -> #717171: 1.77:1 off the tag, now 1.50:1 (R4, H: a focus step off the tag, and the loudest) +//! - dark_236: focused grip #006a6c -> #86d9da: 1.31:1 on the focused tag, now 3.01:1 (R6: 3:1) +//! - dark_236: unsaved grip #719cdf -> #adcdfe: 2.63:1 on the tag, now 4.52:1 (R6: 3:1 on both tags) +//! - dark_236: search hit #007299 -> #7e4b4a: 1.94:1 off the page, now 1.50:1 (R8: 1.5:1, the text reading on it) +//! - dark_236: error #e12672 -> #ff82a5: 2.37:1 on the page, now 4.51:1 (R9: 4.5:1, told from the text and the others) +//! - dark_237: tag ground #616161 -> #545454: 1.41:1 off the page, now 1.15:1 (H: a band 1.1:1 off the page; R3: tone on tone) +//! - dark_237: focused tag ground #9d7473 -> #6f6f6f: 1.87:1 off the tag, now 1.51:1 (R4, H: a focus step off the tag, and the loudest) +//! - dark_237: focused grip #006c6e -> #82d6d8: 1.24:1 on the focused tag, now 3.01:1 (R6: 3:1) +//! - dark_237: unsaved grip #719cdf -> #a8cafe: 2.71:1 on the tag, now 4.52:1 (R6: 3:1 on both tags) +//! - dark_237: search hit #007299 -> #7a5932: 1.61:1 off the page, now 1.37:1 (R8: 1.5:1, the text reading on it) +//! - dark_237: error #e12672 -> #fe9fb7: 1.96:1 on the page, now 4.51:1 (R9: 4.5:1, told from the text and the others) +//! - dark_237: warning #e09b99 -> #deb565: 3.87:1 on the page, now 4.53:1 (R9: 4.5:1, told from the text and the others) +//! - light_254, light_255, light_256: focused grip #4b6465 -> #213839: 1.53:1 on the focused tag, now 3.00:1 (R6: 3:1) +//! - light_254: unsaved grip #719cdf -> #0b326c: 1.98:1 on the tag, now 8.82:1 (R6: 3:1 on both tags) +//! - light_254: selection #bcdede -> #b7d8d8: 1.18:1 off the page, now 1.25:1 (R7) +//! - light_254: selection text #616161 -> #5a5a5a: 4.08:1 on the selection, now 4.54:1 (R7: 4.5:1) +//! - light_254: error #e12672 -> #cf0064: 3.66:1 on the page, now 4.51:1 (R9: 4.5:1, told from the text and the others) +//! - light_254: warning #be7572 -> #9b5553: 2.89:1 on the page, now 4.53:1 (R9: 4.5:1, told from the text and the others) +//! - light_255: unsaved grip #719cdf -> #0b326c: 2.13:1 on the tag, now 9.52:1 (R6: 3:1 on both tags) +//! - light_255, light_256: selection text #616161 -> #5e5e5e: 4.32:1 on the selection, now 4.52:1 (R7: 4.5:1) +//! - light_255: error #e12672 -> #d51169: 3.94:1 on the page, now 4.52:1 (R9: 4.5:1, told from the text and the others) +//! - light_255: warning #be7572 -> #a05a58: 3.11:1 on the page, now 4.54:1 (R9: 4.5:1, told from the text and the others) +//! - light_256: unsaved grip #719cdf -> #0b326c: 2.30:1 on the tag, now 10.25:1 (R6: 3:1 on both tags) +//! - light_256: error #e12672 -> #df2471: 4.45:1 on the page, now 4.54:1 (R9: 4.5:1, told from the text and the others) +//! - light_256: warning #be7572 -> #aa6361: 3.51:1 on the page, now 4.50:1 (R9: 4.5:1, told from the text and the others) const std = @import("std"); /// What a dark level changes; each row cites where its values come from. const Dark = struct { level: u16, - bg: [3]u8, - tag_bg: [3]u8, - tag_fg: [3]u8, - tag_active_bg: [3]u8, - tag_active_fg: [3]u8, - box: [3]u8, - box_dim: [3]u8, - border: [3]u8, + page: [3]u8, + tag: [3]u8, + tag_text: [3]u8, + tag_focus: [3]u8, + tag_focus_text: [3]u8, + accent: [3]u8, + rule: [3]u8, }; const dark_levels = [_]Dark{ - // bg: S:206 Normal guibg = s:hi arg s:dark_bg = 233 -> s:rgb_map[233] S:132 - // tag_bg: S:351 StatusLineNC guifg = s:hi arg s:dark_bg + 2 = 235 -> s:rgb_map[235] S:132 - // tag_fg: S:351 StatusLineNC guibg = s:hi arg 187 = 187 -> s:rgb_map[187] S:129 - // tag_active_bg: S:350 StatusLine guifg = s:hi arg 95 = 95 -> s:rgb_map[95] S:124 - // box_dim: derived: the grip at rest, the accent #007173 faded toward the unfocused tag #333233 as far as 1.6:1 off it (0.66 of the way) - // border: S:287 VertSplit guifg = s:hi arg s:dark_bg_2 = 16 -> s:rgb_map[16] S:120 #000000, adjusted + // page: S:206 Normal guibg = s:hi arg s:dark_bg = 233 -> s:rgb_map[233] S:132 + // tag: S:351 StatusLineNC guifg = s:hi arg s:dark_bg + 2 = 235 -> s:rgb_map[235] S:132 + // tag_text: S:351 StatusLineNC guibg = s:hi arg 187 = 187 -> s:rgb_map[187] S:129 + // tag_focus: S:350 StatusLine guifg = s:hi arg 95 = 95 -> s:rgb_map[95] S:124 + // rule: S:287 VertSplit guifg = s:hi arg s:dark_bg_2 = 16 -> s:rgb_map[16] S:120 #000000, adjusted // adjusted: focused tag text #dfdebd -> #12120f: 3.02:1 on #9a7372, tag text needs 4.5:1 // adjusted: focused grip #007173 -> #006a6c: 1.40:1 on the focused tag #9a7372 // adjusted: rules between panes #000000 -> #3d3d3d: 1.17:1 off the page, lifted toward the text to 1.6:1 (as colors.zig separatorOf does) // index gap: tabline_fg inherits Normal - .{ .level = 233, .bg = .{ 0x17, 0x17, 0x17 }, .tag_bg = .{ 0x33, 0x32, 0x33 }, .tag_fg = .{ 0xdf, 0xde, 0xbd }, .tag_active_bg = .{ 0x9a, 0x73, 0x72 }, .tag_active_fg = .{ 0x12, 0x12, 0x0f }, .box = .{ 0x00, 0x6a, 0x6c }, .box_dim = .{ 0x11, 0x5c, 0x5d }, .border = .{ 0x3d, 0x3d, 0x3d } }, - // bg: S:206 Normal guibg = s:hi arg s:dark_bg = 234 -> s:rgb_map[234] S:132 - // tag_bg: S:351 StatusLineNC guifg = s:hi arg s:dark_bg + 2 = 236 -> s:rgb_map[236] S:132 - // tag_fg: S:351 StatusLineNC guibg = s:hi arg 187 = 187 -> s:rgb_map[187] S:129 - // tag_active_bg: S:350 StatusLine guifg = s:hi arg 95 = 95 -> s:rgb_map[95] S:124 - // box_dim: derived: the grip at rest, the accent #007173 faded toward the unfocused tag #3f3f3f as far as 1.6:1 off it (0.84 of the way) - // border: S:287 VertSplit guifg = s:hi arg s:dark_bg_2 = 232 -> s:rgb_map[232] S:131 #060606, adjusted + .{ .level = 233, .page = .{ 0x17, 0x17, 0x17 }, .tag = .{ 0x33, 0x32, 0x33 }, .tag_text = .{ 0xdf, 0xde, 0xbd }, .tag_focus = .{ 0x9a, 0x73, 0x72 }, .tag_focus_text = .{ 0x12, 0x12, 0x0f }, .accent = .{ 0x00, 0x6a, 0x6c }, .rule = .{ 0x3d, 0x3d, 0x3d } }, + // page: S:206 Normal guibg = s:hi arg s:dark_bg = 234 -> s:rgb_map[234] S:132 + // tag: S:351 StatusLineNC guifg = s:hi arg s:dark_bg + 2 = 236 -> s:rgb_map[236] S:132 + // tag_text: S:351 StatusLineNC guibg = s:hi arg 187 = 187 -> s:rgb_map[187] S:129 + // tag_focus: S:350 StatusLine guifg = s:hi arg 95 = 95 -> s:rgb_map[95] S:124 + // rule: S:287 VertSplit guifg = s:hi arg s:dark_bg_2 = 232 -> s:rgb_map[232] S:131 #060606, adjusted // adjusted: focused tag text #dfdebd -> #12120f: 3.02:1 on #9a7372, tag text needs 4.5:1 // adjusted: focused grip #007173 -> #006a6c: 1.40:1 on the focused tag #9a7372 // adjusted: rules between panes #060606 -> #4a4a4a: 1.32:1 off the page, lifted toward the text to 1.6:1 (as colors.zig separatorOf does) // index gap: tabline_fg inherits Normal - .{ .level = 234, .bg = .{ 0x25, 0x25, 0x25 }, .tag_bg = .{ 0x3f, 0x3f, 0x3f }, .tag_fg = .{ 0xdf, 0xde, 0xbd }, .tag_active_bg = .{ 0x9a, 0x73, 0x72 }, .tag_active_fg = .{ 0x12, 0x12, 0x0f }, .box = .{ 0x00, 0x6a, 0x6c }, .box_dim = .{ 0x0a, 0x69, 0x6b }, .border = .{ 0x4a, 0x4a, 0x4a } }, - // bg: S:206 Normal guibg = s:hi arg s:dark_bg = 235 -> s:rgb_map[235] S:132 - // tag_bg: S:351 StatusLineNC guifg = s:hi arg s:dark_bg + 2 = 237 -> s:rgb_map[237] S:132 - // tag_fg: S:351 StatusLineNC guibg = s:hi arg 187 = 187 -> s:rgb_map[187] S:129 - // tag_active_bg: S:350 StatusLine guifg = s:hi arg 95 = 95 -> s:rgb_map[95] S:124 - // box_dim: derived: the grip at rest, the accent #007173 faded toward the unfocused tag #4b4b4b as far as 1.6:1 off it (1.00 of the way) - // border: S:287 VertSplit guifg = s:hi arg s:dark_bg_2 = 233 -> s:rgb_map[233] S:132 #171717, adjusted + .{ .level = 234, .page = .{ 0x25, 0x25, 0x25 }, .tag = .{ 0x3f, 0x3f, 0x3f }, .tag_text = .{ 0xdf, 0xde, 0xbd }, .tag_focus = .{ 0x9a, 0x73, 0x72 }, .tag_focus_text = .{ 0x12, 0x12, 0x0f }, .accent = .{ 0x00, 0x6a, 0x6c }, .rule = .{ 0x4a, 0x4a, 0x4a } }, + // page: S:206 Normal guibg = s:hi arg s:dark_bg = 235 -> s:rgb_map[235] S:132 + // tag: S:351 StatusLineNC guifg = s:hi arg s:dark_bg + 2 = 237 -> s:rgb_map[237] S:132 + // tag_text: S:351 StatusLineNC guibg = s:hi arg 187 = 187 -> s:rgb_map[187] S:129 + // tag_focus: S:350 StatusLine guifg = s:hi arg 95 = 95 -> s:rgb_map[95] S:124 + // rule: S:287 VertSplit guifg = s:hi arg s:dark_bg_2 = 233 -> s:rgb_map[233] S:132 #171717, adjusted // adjusted: focused tag text #dfdebd -> #12120f: 3.02:1 on #9a7372, tag text needs 4.5:1 // adjusted: focused grip #007173 -> #006a6c: 1.40:1 on the focused tag #9a7372 // adjusted: rules between panes #171717 -> #515151: 1.40:1 off the page, lifted toward the text to 1.6:1 (as colors.zig separatorOf does) // index gap: tabline_fg inherits Normal - .{ .level = 235, .bg = .{ 0x33, 0x32, 0x33 }, .tag_bg = .{ 0x4b, 0x4b, 0x4b }, .tag_fg = .{ 0xdf, 0xde, 0xbd }, .tag_active_bg = .{ 0x9a, 0x73, 0x72 }, .tag_active_fg = .{ 0x12, 0x12, 0x0f }, .box = .{ 0x00, 0x6a, 0x6c }, .box_dim = .{ 0x0a, 0x77, 0x79 }, .border = .{ 0x51, 0x51, 0x51 } }, - // bg: S:206 Normal guibg = s:hi arg s:dark_bg = 236 -> s:rgb_map[236] S:132 - // tag_bg: S:351 StatusLineNC guifg = s:hi arg s:dark_bg + 2 = 238 -> s:rgb_map[238] S:133 - // tag_fg: S:351 StatusLineNC guibg = s:hi arg 187 = 187 -> s:rgb_map[187] S:129 - // tag_active_bg: S:350 StatusLine guifg = s:hi arg 95 = 95 -> s:rgb_map[95] S:124 - // box_dim: derived: the grip at rest, the accent #007173 faded toward the unfocused tag #565656 as far as 1.6:1 off it (1.00 of the way) - // border: S:287 VertSplit guifg = s:hi arg s:dark_bg_2 = 234 -> s:rgb_map[234] S:132 #252525, adjusted + .{ .level = 235, .page = .{ 0x33, 0x32, 0x33 }, .tag = .{ 0x4b, 0x4b, 0x4b }, .tag_text = .{ 0xdf, 0xde, 0xbd }, .tag_focus = .{ 0x9a, 0x73, 0x72 }, .tag_focus_text = .{ 0x12, 0x12, 0x0f }, .accent = .{ 0x00, 0x6a, 0x6c }, .rule = .{ 0x51, 0x51, 0x51 } }, + // page: S:206 Normal guibg = s:hi arg s:dark_bg = 236 -> s:rgb_map[236] S:132 + // tag: S:351 StatusLineNC guifg = s:hi arg s:dark_bg + 2 = 238 -> s:rgb_map[238] S:133 + // tag_text: S:351 StatusLineNC guibg = s:hi arg 187 = 187 -> s:rgb_map[187] S:129 + // tag_focus: S:350 StatusLine guifg = s:hi arg 95 = 95 -> s:rgb_map[95] S:124 + // rule: S:287 VertSplit guifg = s:hi arg s:dark_bg_2 = 234 -> s:rgb_map[234] S:132 #252525, adjusted // adjusted: focused tag text #dfdebd -> #12120f: 3.02:1 on #9a7372, tag text needs 4.5:1 // adjusted: focused grip #007173 -> #006a6c: 1.40:1 on the focused tag #9a7372 // adjusted: rules between panes #252525 -> #5f5f5f: 1.46:1 off the page, lifted toward the text to 1.6:1 (as colors.zig separatorOf does) // index gap: tabline_fg inherits Normal - .{ .level = 236, .bg = .{ 0x3f, 0x3f, 0x3f }, .tag_bg = .{ 0x56, 0x56, 0x56 }, .tag_fg = .{ 0xdf, 0xde, 0xbd }, .tag_active_bg = .{ 0x9a, 0x73, 0x72 }, .tag_active_fg = .{ 0x12, 0x12, 0x0f }, .box = .{ 0x00, 0x6a, 0x6c }, .box_dim = .{ 0x24, 0x85, 0x87 }, .border = .{ 0x5f, 0x5f, 0x5f } }, - // bg: S:206 Normal guibg = s:hi arg s:dark_bg = 237 -> s:rgb_map[237] S:132 - // tag_bg: S:351 StatusLineNC guifg = s:hi arg s:dark_bg + 2 = 239 -> s:rgb_map[239] S:133 - // tag_fg: S:351 StatusLineNC guibg = s:hi arg 187 = 187 -> s:rgb_map[187] S:129 - // tag_active_bg: S:350 StatusLine guifg = s:hi arg 95 = 95 -> s:rgb_map[95] S:124 #9a7372, adjusted - // box_dim: derived: the grip at rest, the accent #007173 faded toward the unfocused tag #616161 as far as 1.6:1 off it (1.00 of the way) - // border: S:287 VertSplit guifg = s:hi arg s:dark_bg_2 = 235 -> s:rgb_map[235] S:132 #333233, adjusted + .{ .level = 236, .page = .{ 0x3f, 0x3f, 0x3f }, .tag = .{ 0x56, 0x56, 0x56 }, .tag_text = .{ 0xdf, 0xde, 0xbd }, .tag_focus = .{ 0x9a, 0x73, 0x72 }, .tag_focus_text = .{ 0x12, 0x12, 0x0f }, .accent = .{ 0x00, 0x6a, 0x6c }, .rule = .{ 0x5f, 0x5f, 0x5f } }, + // page: S:206 Normal guibg = s:hi arg s:dark_bg = 237 -> s:rgb_map[237] S:132 + // tag: S:351 StatusLineNC guifg = s:hi arg s:dark_bg + 2 = 239 -> s:rgb_map[239] S:133 + // tag_text: S:351 StatusLineNC guibg = s:hi arg 187 = 187 -> s:rgb_map[187] S:129 + // tag_focus: S:350 StatusLine guifg = s:hi arg 95 = 95 -> s:rgb_map[95] S:124 #9a7372, adjusted + // rule: S:287 VertSplit guifg = s:hi arg s:dark_bg_2 = 235 -> s:rgb_map[235] S:132 #333233, adjusted // adjusted: focused tag ground #9a7372 -> #9d7473: 1.50:1 off the unfocused #616161, pardes needs 1.5:1 on a dark page // adjusted: focused tag text #dfdebd -> #12120f: 2.96:1 on #9d7473, tag text needs 4.5:1 // adjusted: focused grip #007173 -> #006c6e: 1.43:1 on the focused tag #9d7473 // adjusted: rules between panes #333233 -> #6b6b6b: 1.46:1 off the page, lifted toward the text to 1.6:1 (as colors.zig separatorOf does) - .{ .level = 237, .bg = .{ 0x4b, 0x4b, 0x4b }, .tag_bg = .{ 0x61, 0x61, 0x61 }, .tag_fg = .{ 0xdf, 0xde, 0xbd }, .tag_active_bg = .{ 0x9d, 0x74, 0x73 }, .tag_active_fg = .{ 0x12, 0x12, 0x0f }, .box = .{ 0x00, 0x6c, 0x6e }, .box_dim = .{ 0x38, 0x90, 0x92 }, .border = .{ 0x6b, 0x6b, 0x6b } }, - // bg: S:206 Normal guibg = s:hi arg s:dark_bg = 238 -> s:rgb_map[238] S:133 - // tag_bg: S:351 StatusLineNC guifg = s:hi arg s:dark_bg + 2 = 240 -> s:rgb_map[240] S:133 - // tag_fg: S:351 StatusLineNC guibg = s:hi arg 187 = 187 -> s:rgb_map[187] S:129 #dfdebd, adjusted - // tag_active_bg: S:350 StatusLine guifg = s:hi arg 95 = 95 -> s:rgb_map[95] S:124 #9a7372, adjusted - // box_dim: derived: the grip at rest, the accent #007173 faded toward the unfocused tag #6b6b6b as far as 1.6:1 off it (1.00 of the way) - // border: S:287 VertSplit guifg = s:hi arg s:dark_bg_2 = 236 -> s:rgb_map[236] S:132 #3f3f3f, adjusted - // adjusted: focused tag ground #9a7372 -> #b97877: 1.29:1 off the unfocused #6b6b6b, pardes needs 1.5:1 on a dark page - // adjusted: unfocused tag text #dfdebd -> #eeeddb: 3.89:1 on #6b6b6b, tag text needs 4.5:1 to be read and run - // adjusted: focused tag text #dfdebd -> #1f1f1a: 2.55:1 on #b97877, tag text needs 4.5:1 - // adjusted: rules between panes #3f3f3f -> #767676: 1.43:1 off the page, lifted toward the text to 1.6:1 (as colors.zig separatorOf does) - // index gap: tabline_bg inherits Normal - .{ .level = 238, .bg = .{ 0x56, 0x56, 0x56 }, .tag_bg = .{ 0x6b, 0x6b, 0x6b }, .tag_fg = .{ 0xee, 0xed, 0xdb }, .tag_active_bg = .{ 0xb9, 0x78, 0x77 }, .tag_active_fg = .{ 0x1f, 0x1f, 0x1a }, .box = .{ 0x00, 0x71, 0x73 }, .box_dim = .{ 0x4d, 0x9c, 0x9d }, .border = .{ 0x76, 0x76, 0x76 } }, - // bg: S:206 Normal guibg = s:hi arg s:dark_bg = 239 -> s:rgb_map[239] S:133 - // tag_bg: S:351 StatusLineNC guifg = s:hi arg s:dark_bg + 2 = 241 -> s:rgb_map[241] S:133 - // tag_fg: S:351 StatusLineNC guibg = s:hi arg 187 = 187 -> s:rgb_map[187] S:129 #dfdebd, adjusted - // tag_active_bg: S:350 StatusLine guifg = s:hi arg 95 = 95 -> s:rgb_map[95] S:124 #9a7372, adjusted - // box_dim: derived: the grip at rest, the accent #007173 faded toward the unfocused tag #757575 as far as 1.6:1 off it (1.00 of the way) - // border: S:287 VertSplit guifg = s:hi arg s:dark_bg_2 = 237 -> s:rgb_map[237] S:132 #4b4b4b, adjusted - // adjusted: focused tag ground #9a7372 -> #ac8f86: 1.11:1 off the unfocused #757575, pardes needs 1.5:1 on a dark page - // adjusted: unfocused tag text #dfdebd -> #fdfdfb: 3.36:1 on #757575, tag text needs 4.5:1 to be read and run - // adjusted: focused tag text #dfdebd -> #2d2c26: 2.18:1 on #ac8f86, tag text needs 4.5:1 - // adjusted: rules between panes #4b4b4b -> #848484: 1.41:1 off the page, lifted toward the text to 1.6:1 (as colors.zig separatorOf does) - // index gap: tabline_bg inherits Normal - .{ .level = 239, .bg = .{ 0x61, 0x61, 0x61 }, .tag_bg = .{ 0x75, 0x75, 0x75 }, .tag_fg = .{ 0xfd, 0xfd, 0xfb }, .tag_active_bg = .{ 0xac, 0x8f, 0x86 }, .tag_active_fg = .{ 0x2d, 0x2c, 0x26 }, .box = .{ 0x00, 0x71, 0x73 }, .box_dim = .{ 0x61, 0xa7, 0xa8 }, .border = .{ 0x84, 0x84, 0x84 } }, + .{ .level = 237, .page = .{ 0x4b, 0x4b, 0x4b }, .tag = .{ 0x61, 0x61, 0x61 }, .tag_text = .{ 0xdf, 0xde, 0xbd }, .tag_focus = .{ 0x9d, 0x74, 0x73 }, .tag_focus_text = .{ 0x12, 0x12, 0x0f }, .accent = .{ 0x00, 0x6c, 0x6e }, .rule = .{ 0x6b, 0x6b, 0x6b } }, }; /// What a light level changes; each row cites where its values come from. const Light = struct { level: u16, - bg: [3]u8, - tag_bg: [3]u8, - tag_fg: [3]u8, - box_dim: [3]u8, - border: [3]u8, + page: [3]u8, + tag: [3]u8, + tag_text: [3]u8, + rule: [3]u8, }; const light_levels = [_]Light{ - // bg: S:206 Normal guibg = s:hi arg s:light_bg = 252 -> s:rgb_map[252] S:134 - // tag_bg: S:351 StatusLineNC guifg = s:hi arg s:light_bg - 2 = 250 -> s:rgb_map[250] S:134 - // tag_fg: S:351 StatusLineNC guibg = s:hi arg 238 = 238 -> s:rgb_map[238] S:133 #565656, adjusted - // box_dim: derived: the grip at rest, the accent #719899 faded toward the unfocused tag #c8c8c8 as far as 1.6:1 off it (0.78 of the way) - // border: S:287 VertSplit guifg = s:hi arg s:light_bg - 3 = 249 -> s:rgb_map[249] S:133 #bfbfbf, adjusted - // adjusted: unfocused tag text #565656 -> #545454: 4.39:1 on #c8c8c8, tag text needs 4.5:1 to be read and run - // adjusted: focused tag text #dfdebd -> #12120f: 3.02:1 on #9a7372, tag text needs 4.5:1 - // adjusted: focused grip #719899 -> #4b6465: 1.31:1 on the focused tag #9a7372 - // adjusted: rules between panes #bfbfbf -> #acacac: 1.30:1 off the page, lifted toward the text to 1.6:1 (as colors.zig separatorOf does) - // index gap: tabline_bg inherits Normal - .{ .level = 252, .bg = .{ 0xd9, 0xd9, 0xd9 }, .tag_bg = .{ 0xc8, 0xc8, 0xc8 }, .tag_fg = .{ 0x54, 0x54, 0x54 }, .box_dim = .{ 0x84, 0xa3, 0xa3 }, .border = .{ 0xac, 0xac, 0xac } }, - // bg: S:206 Normal guibg = s:hi arg s:light_bg = 253 -> s:rgb_map[253] S:134 - // tag_bg: S:351 StatusLineNC guifg = s:hi arg s:light_bg - 2 = 251 -> s:rgb_map[251] S:134 - // tag_fg: S:351 StatusLineNC guibg = s:hi arg 238 = 238 -> s:rgb_map[238] S:133 - // box_dim: derived: the grip at rest, the accent #719899 faded toward the unfocused tag #d1d0d1 as far as 1.6:1 off it (0.70 of the way) - // border: S:287 VertSplit guifg = s:hi arg s:light_bg - 3 = 250 -> s:rgb_map[250] S:134 #c8c8c8, adjusted - // adjusted: focused tag text #dfdebd -> #12120f: 3.02:1 on #9a7372, tag text needs 4.5:1 - // adjusted: focused grip #719899 -> #4b6465: 1.31:1 on the focused tag #9a7372 - // adjusted: rules between panes #c8c8c8 -> #b3b3b3: 1.28:1 off the page, lifted toward the text to 1.6:1 (as colors.zig separatorOf does) - .{ .level = 253, .bg = .{ 0xe1, 0xe1, 0xe1 }, .tag_bg = .{ 0xd1, 0xd0, 0xd1 }, .tag_fg = .{ 0x56, 0x56, 0x56 }, .box_dim = .{ 0x8e, 0xa9, 0xaa }, .border = .{ 0xb3, 0xb3, 0xb3 } }, - // bg: S:206 Normal guibg = s:hi arg s:light_bg = 254 -> s:rgb_map[254] S:134 - // tag_bg: S:351 StatusLineNC guifg = s:hi arg s:light_bg - 2 = 252 -> s:rgb_map[252] S:134 - // tag_fg: S:351 StatusLineNC guibg = s:hi arg 238 = 238 -> s:rgb_map[238] S:133 - // box_dim: derived: the grip at rest, the accent #719899 faded toward the unfocused tag #d9d9d9 as far as 1.6:1 off it (0.64 of the way) - // border: S:287 VertSplit guifg = s:hi arg s:light_bg - 3 = 251 -> s:rgb_map[251] S:134 #d1d0d1, adjusted + // page: S:206 Normal guibg = s:hi arg s:light_bg = 254 -> s:rgb_map[254] S:134 + // tag: S:351 StatusLineNC guifg = s:hi arg s:light_bg - 2 = 252 -> s:rgb_map[252] S:134 + // tag_text: S:351 StatusLineNC guibg = s:hi arg 238 = 238 -> s:rgb_map[238] S:133 + // rule: S:287 VertSplit guifg = s:hi arg s:light_bg - 3 = 251 -> s:rgb_map[251] S:134 #d1d0d1, adjusted // adjusted: focused tag text #dfdebd -> #12120f: 3.02:1 on #9a7372, tag text needs 4.5:1 // adjusted: focused grip #719899 -> #4b6465: 1.31:1 on the focused tag #9a7372 // adjusted: rules between panes #d1d0d1 -> #b8b8b8: 1.27:1 off the page, lifted toward the text to 1.6:1 (as colors.zig separatorOf does) // index gap: tabline_fg inherits Normal - .{ .level = 254, .bg = .{ 0xe9, 0xe9, 0xe9 }, .tag_bg = .{ 0xd9, 0xd9, 0xd9 }, .tag_fg = .{ 0x56, 0x56, 0x56 }, .box_dim = .{ 0x96, 0xaf, 0xb0 }, .border = .{ 0xb8, 0xb8, 0xb8 } }, - // bg: S:206 Normal guibg = s:hi arg s:light_bg = 255 -> s:rgb_map[255] S:135 - // tag_bg: S:351 StatusLineNC guifg = s:hi arg s:light_bg - 2 = 253 -> s:rgb_map[253] S:134 - // tag_fg: S:351 StatusLineNC guibg = s:hi arg 238 = 238 -> s:rgb_map[238] S:133 - // box_dim: derived: the grip at rest, the accent #719899 faded toward the unfocused tag #e1e1e1 as far as 1.6:1 off it (0.58 of the way) - // border: S:287 VertSplit guifg = s:hi arg s:light_bg - 3 = 252 -> s:rgb_map[252] S:134 #d9d9d9, adjusted + .{ .level = 254, .page = .{ 0xe9, 0xe9, 0xe9 }, .tag = .{ 0xd9, 0xd9, 0xd9 }, .tag_text = .{ 0x56, 0x56, 0x56 }, .rule = .{ 0xb8, 0xb8, 0xb8 } }, + // page: S:206 Normal guibg = s:hi arg s:light_bg = 255 -> s:rgb_map[255] S:135 + // tag: S:351 StatusLineNC guifg = s:hi arg s:light_bg - 2 = 253 -> s:rgb_map[253] S:134 + // tag_text: S:351 StatusLineNC guibg = s:hi arg 238 = 238 -> s:rgb_map[238] S:133 + // rule: S:287 VertSplit guifg = s:hi arg s:light_bg - 3 = 252 -> s:rgb_map[252] S:134 #d9d9d9, adjusted // adjusted: focused tag text #dfdebd -> #12120f: 3.02:1 on #9a7372, tag text needs 4.5:1 // adjusted: focused grip #719899 -> #4b6465: 1.31:1 on the focused tag #9a7372 // adjusted: rules between panes #d9d9d9 -> #bfbfbf: 1.25:1 off the page, lifted toward the text to 1.6:1 (as colors.zig separatorOf does) // index gap: tabline_fg inherits Normal - .{ .level = 255, .bg = .{ 0xf1, 0xf1, 0xf1 }, .tag_bg = .{ 0xe1, 0xe1, 0xe1 }, .tag_fg = .{ 0x56, 0x56, 0x56 }, .box_dim = .{ 0xa0, 0xb7, 0xb7 }, .border = .{ 0xbf, 0xbf, 0xbf } }, - // bg: S:206 Normal guibg = s:hi arg s:light_bg = 256 (256>255 -> 231 per S:184-185) -> s:rgb_map[231] S:131 - // tag_bg: S:351 StatusLineNC guifg = s:hi arg s:light_bg - 2 = 254 -> s:rgb_map[254] S:134 - // tag_fg: S:351 StatusLineNC guibg = s:hi arg 238 = 238 -> s:rgb_map[238] S:133 - // box_dim: derived: the grip at rest, the accent #719899 faded toward the unfocused tag #e9e9e9 as far as 1.6:1 off it (0.54 of the way) - // border: S:287 VertSplit guifg = s:hi arg s:light_bg - 3 = 253 -> s:rgb_map[253] S:134 #e1e1e1, adjusted + .{ .level = 255, .page = .{ 0xf1, 0xf1, 0xf1 }, .tag = .{ 0xe1, 0xe1, 0xe1 }, .tag_text = .{ 0x56, 0x56, 0x56 }, .rule = .{ 0xbf, 0xbf, 0xbf } }, + // page: S:206 Normal guibg = s:hi arg s:light_bg = 256 (256>255 -> 231 per S:184-185) -> s:rgb_map[231] S:131 + // tag: S:351 StatusLineNC guifg = s:hi arg s:light_bg - 2 = 254 -> s:rgb_map[254] S:134 + // tag_text: S:351 StatusLineNC guibg = s:hi arg 238 = 238 -> s:rgb_map[238] S:133 + // rule: S:287 VertSplit guifg = s:hi arg s:light_bg - 3 = 253 -> s:rgb_map[253] S:134 #e1e1e1, adjusted // adjusted: focused tag text #dfdebd -> #12120f: 3.02:1 on #9a7372, tag text needs 4.5:1 // adjusted: focused grip #719899 -> #4b6465: 1.31:1 on the focused tag #9a7372 // adjusted: rules between panes #e1e1e1 -> #cacaca: 1.31:1 off the page, lifted toward the text to 1.6:1 (as colors.zig separatorOf does) // index gap: tabline_fg inherits Normal - .{ .level = 256, .bg = .{ 0xff, 0xff, 0xff }, .tag_bg = .{ 0xe9, 0xe9, 0xe9 }, .tag_fg = .{ 0x56, 0x56, 0x56 }, .box_dim = .{ 0xa8, 0xbd, 0xbe }, .border = .{ 0xca, 0xca, 0xca } }, + .{ .level = 256, .page = .{ 0xff, 0xff, 0xff }, .tag = .{ 0xe9, 0xe9, 0xe9 }, .tag_text = .{ 0x56, 0x56, 0x56 }, .rule = .{ 0xca, 0xca, 0xca } }, }; /// The dark style at background `level` (233 to 239). @@ -204,58 +192,55 @@ pub fn dark(comptime level: u16) type { pub const theme = .{ .name = std.fmt.comptimePrint("seoul256_dark_{d}", .{level}), // the level's own, cited in its row of dark_levels - .bg = own.bg, + .page = own.page, // S:206 Normal guifg = s:hi arg s:dark_fg = 252 -> s:rgb_map[252] S:134 - .fg = .{ 0xd9, 0xd9, 0xd9 }, + .text = .{ 0xd9, 0xd9, 0xd9 }, // S:209 Visual guibg = s:hi arg 23 = 23 -> s:rgb_map[23] S:121 - .sel_bg = .{ 0x00, 0x71, 0x73 }, + .selection = .{ 0x00, 0x71, 0x73 }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0xd9, 0xd9, 0xd9 }, + .selection_text = .{ 0xd9, 0xd9, 0xd9 }, // the level's own, cited in its row of dark_levels - .tag_bg = own.tag_bg, + .tag = own.tag, // the level's own, cited in its row of dark_levels - .tag_fg = own.tag_fg, + .tag_text = own.tag_text, // the level's own, cited in its row of dark_levels - .tag_active_bg = own.tag_active_bg, + .tag_focus = own.tag_focus, // S:350 StatusLine guibg = s:hi arg 187 = 187 -> s:rgb_map[187] S:129; rendered as the bar text because S:354 sets gui=bold,reverse #dfdebd, adjusted - .tag_active_fg = own.tag_active_fg, + .tag_focus_text = own.tag_focus_text, // the focused grip: S:359 TabLineSel guibg = s:hi arg 23 = 23 -> s:rgb_map[23] S:121 (accent: the selected-tab background, TabLineSel, the file's only coloured focus marker; the airline/lightline seoul256 themes live outside this repo) - .box = own.box, + .accent = own.accent, // the level's own, cited in its row of dark_levels - .box_dim = own.box_dim, // an unsaved grip: the original's modified colour, S:396 GitGutterChange guifg = s:hi arg 68 = 68 -> s:rgb_map[68] S:123 (modified: vim-gitgutter Changed sign) - .box_dirty = .{ 0x71, 0x9c, 0xdf }, + .dirty = .{ 0x71, 0x9c, 0xdf }, // derived: the column grip, the original's type colour, S:247 Type guifg = s:hi arg 179 = 179 -> s:rgb_map[179] S:129 - .column_box = .{ 0xdf, 0xbc, 0x72 }, + .column_grip = .{ 0xdf, 0xbc, 0x72 }, // S:253 Keyword guifg = s:hi arg 168 = 168 -> s:rgb_map[168] S:128 - .kw = .{ 0xe1, 0x78, 0x99 }, + .keyword = .{ 0xe1, 0x78, 0x99 }, // S:216 String guifg = s:hi arg 109 = 109 -> s:rgb_map[109] S:125 - .str = .{ 0x98, 0xbc, 0xbd }, + .string = .{ 0x98, 0xbc, 0xbd }, // S:213 Number guifg = s:hi arg 222 = 222 -> s:rgb_map[222] S:131 - .num = .{ 0xff, 0xde, 0x99 }, + .number = .{ 0xff, 0xde, 0x99 }, // S:212 Comment guifg = s:hi arg 65 = 65 -> s:rgb_map[65] S:123 .comment = .{ 0x71, 0x98, 0x72 }, // S:208 LineNr guifg = s:hi arg 101 = 101 -> s:rgb_map[101] S:125 - .lineno = .{ 0x99, 0x98, 0x72 }, + .line_number = .{ 0x99, 0x98, 0x72 }, // S:276 CursorLineNr guifg = s:hi arg 131 = 131 -> s:rgb_map[131] S:126 - .lineno_active = .{ 0xbe, 0x75, 0x72 }, + .line_number_current = .{ 0xbe, 0x75, 0x72 }, // S:306 PmenuSbar guibg = s:hi arg 65 = 65 -> s:rgb_map[65] S:123 - .scroll_track = .{ 0x71, 0x98, 0x72 }, + .rail = .{ 0x71, 0x98, 0x72 }, // S:307 PmenuThumb guibg = s:hi arg 23 = 23 -> s:rgb_map[23] S:121 - .scroll_thumb = .{ 0x00, 0x71, 0x73 }, + .rail_thumb = .{ 0x00, 0x71, 0x73 }, // the level's own, cited in its row of dark_levels - .border = own.border, + .rule = own.rule, // S:309 Search guibg = s:hi arg 24 = 24 -> s:rgb_map[24] S:121 - .search_bg = .{ 0x00, 0x72, 0x99 }, - // S:309 Search guifg = s:hi arg s:dark_fg = 252 -> s:rgb_map[252] S:134 - .search_fg = .{ 0xd9, 0xd9, 0xd9 }, + .hit = .{ 0x00, 0x72, 0x99 }, // S:402 ALEErrorSign guifg = s:hi arg 161 = 161 -> s:rgb_map[161] S:128 (no Diagnostic* groups; ALE error sign used) - .diagnostic_error = .{ 0xe1, 0x26, 0x72 }, + .@"error" = .{ 0xe1, 0x26, 0x72 }, // S:403 ALEWarningSign guifg = s:hi arg 174 = 174 -> s:rgb_map[174] S:128 (no Diagnostic* groups; ALE warning sign used) - .diagnostic_warning = .{ 0xe0, 0x9b, 0x99 }, + .warning = .{ 0xe0, 0x9b, 0x99 }, // The official urxvt port (the vim colorscheme sets no terminal // colours), U = ~/05-genizah/seoul256.vim/urxvt/seoul256. - .palette = .{ + .ansi = .{ .{ 0x4e, 0x4e, 0x4e }, // 0: U:5 URxvt*color0 .{ 0xd6, 0x87, 0x87 }, // 1: U:6 URxvt*color1 .{ 0x5f, 0x86, 0x5f }, // 2: U:7 URxvt*color2 @@ -286,58 +271,56 @@ pub fn light(comptime level: u16) type { pub const theme = .{ .name = std.fmt.comptimePrint("seoul256_light_{d}", .{level}), // the level's own, cited in its row of light_levels - .bg = own.bg, + .page = own.page, // S:206 Normal guifg = s:hi arg s:light_fg = 239 -> s:rgb_map[239] S:133 - .fg = .{ 0x61, 0x61, 0x61 }, + .text = .{ 0x61, 0x61, 0x61 }, // S:209 Visual guibg = s:hi arg 152 = 152 -> s:rgb_map[152] S:127 - .sel_bg = .{ 0xbc, 0xde, 0xde }, + .selection = .{ 0xbc, 0xde, 0xde }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0x61, 0x61, 0x61 }, + .selection_text = .{ 0x61, 0x61, 0x61 }, // the level's own, cited in its row of light_levels - .tag_bg = own.tag_bg, + .tag = own.tag, // the level's own, cited in its row of light_levels - .tag_fg = own.tag_fg, + .tag_text = own.tag_text, // S:350 StatusLine guifg = s:hi arg 95 = 95 -> s:rgb_map[95] S:124; rendered as the bar background because S:354 sets gui=bold,reverse - .tag_active_bg = .{ 0x9a, 0x73, 0x72 }, + .tag_focus = .{ 0x9a, 0x73, 0x72 }, // S:350 StatusLine guibg = s:hi arg 187 = 187 -> s:rgb_map[187] S:129; rendered as the bar text because S:354 sets gui=bold,reverse #dfdebd, adjusted - .tag_active_fg = .{ 0x12, 0x12, 0x0f }, + .tag_focus_text = .{ 0x12, 0x12, 0x0f }, // the focused grip: S:359 TabLineSel guibg = s:hi arg 66 = 66 -> s:rgb_map[66] S:123 (accent: the selected-tab background, TabLineSel, the file's only coloured focus marker; the airline/lightline seoul256 themes live outside this repo) - .box = .{ 0x4b, 0x64, 0x65 }, + .accent = .{ 0x4b, 0x64, 0x65 }, // the level's own, cited in its row of light_levels - .box_dim = own.box_dim, // an unsaved grip: the original's modified colour, S:396 GitGutterChange guifg = s:hi arg 68 = 68 -> s:rgb_map[68] S:123 (modified: vim-gitgutter Changed sign) - .box_dirty = .{ 0x71, 0x9c, 0xdf }, + .dirty = .{ 0x71, 0x9c, 0xdf }, // derived: the column grip, the original's type colour, S:247 Type guifg = s:hi arg 94 = 94 -> s:rgb_map[94] S:124 - .column_box = .{ 0x9a, 0x72, 0x00 }, + .column_grip = .{ 0x9a, 0x72, 0x00 }, // S:253 Keyword guifg = s:hi arg 168 = 168 -> s:rgb_map[168] S:128 - .kw = .{ 0xe1, 0x78, 0x99 }, + .keyword = .{ 0xe1, 0x78, 0x99 }, // S:216 String guifg = s:hi arg 30 = 30 -> s:rgb_map[30] S:121 - .str = .{ 0x00, 0x97, 0x99 }, + .string = .{ 0x00, 0x97, 0x99 }, // S:213 Number guifg = s:hi arg 95 = 95 -> s:rgb_map[95] S:124 - .num = .{ 0x9a, 0x73, 0x72 }, + .number = .{ 0x9a, 0x73, 0x72 }, // S:212 Comment guifg = s:hi arg 65 = 65 -> s:rgb_map[65] S:123 .comment = .{ 0x71, 0x98, 0x72 }, // S:208 LineNr guifg = s:hi arg 101 = 101 -> s:rgb_map[101] S:125 - .lineno = .{ 0x99, 0x98, 0x72 }, + .line_number = .{ 0x99, 0x98, 0x72 }, // S:276 CursorLineNr guifg = s:hi arg 131 = 131 -> s:rgb_map[131] S:126 - .lineno_active = .{ 0xbe, 0x75, 0x72 }, + .line_number_current = .{ 0xbe, 0x75, 0x72 }, // S:306 PmenuSbar guibg = s:hi arg 65 = 65 -> s:rgb_map[65] S:123 - .scroll_track = .{ 0x71, 0x98, 0x72 }, + .rail = .{ 0x71, 0x98, 0x72 }, // S:307 PmenuThumb guibg = s:hi arg 23 = 23 -> s:rgb_map[23] S:121 - .scroll_thumb = .{ 0x00, 0x71, 0x73 }, + .rail_thumb = .{ 0x00, 0x71, 0x73 }, // the level's own, cited in its row of light_levels - .border = own.border, - // S:309 Search guibg = s:hi arg 74 = 74 -> s:rgb_map[74] S:124 - .search_bg = .{ 0x70, 0xbd, 0xdf }, - // S:309 Search guifg = s:hi arg 255 = 255 -> s:rgb_map[255] S:135 - .search_fg = .{ 0xf1, 0xf1, 0xf1 }, + .rule = own.rule, + // S:309 Search guibg = s:hi arg 74 = 74 -> s:rgb_map[74] S:124 #70bddf, adjusted + // adjusted: search hit #70bddf -> #a6e6fe: the text #616161 reads 2.96:1 on #70bddf; its sky blue lighter, 1.13:1 off the page at 254 and 1.21:1 at 255, 0.08 OKLab, the text 4.53:1 on it (DESIGN.md R0, R8) + .hit = .{ 0xa6, 0xe6, 0xfe }, // S:402 ALEErrorSign guifg = s:hi arg 161 = 161 -> s:rgb_map[161] S:128 (no Diagnostic* groups; ALE error sign used) - .diagnostic_error = .{ 0xe1, 0x26, 0x72 }, + .@"error" = .{ 0xe1, 0x26, 0x72 }, // S:403 ALEWarningSign guifg = s:hi arg 131 = 131 -> s:rgb_map[131] S:126 (no Diagnostic* groups; ALE warning sign used) - .diagnostic_warning = .{ 0xbe, 0x75, 0x72 }, + .warning = .{ 0xbe, 0x75, 0x72 }, // The official urxvt port (the vim colorscheme sets no terminal // colours), U = ~/05-genizah/seoul256.vim/urxvt/seoul256-light. - .palette = .{ + .ansi = .{ .{ 0x4e, 0x4e, 0x4e }, // 0: U:5 URxvt*color0 .{ 0xaf, 0x5f, 0x5f }, // 1: U:6 URxvt*color1 .{ 0x5f, 0x88, 0x5f }, // 2: U:7 URxvt*color2 diff --git a/core/themes/seoulbones_dark.zig b/core/themes/seoulbones_dark.zig index 74cdf1ff..8b2c40ce 100644 --- a/core/themes/seoulbones_dark.zig +++ b/core/themes/seoulbones_dark.zig @@ -18,63 +18,67 @@ //! it inherits Normal. TabLine links to StatusLine, TabLineFill to //! StatusLineNC. Accent is the lualine normal-mode a bg, a muted neutral (the //! theme is contrast-based, not hue-accented). Modified = Changed fg. +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - focused grip #919191 -> #cdcdcd: 1.53:1 on the focused tag, now 3.03:1 (R6: 3:1) +//! - unsaved grip #97bdde -> #aad1f2: 3.78:1 on the tag, now 4.65:1 (R6: 3:1 on both tags) +//! - selection text #dddddd -> #060606: 3.30:1 on the selection, now 4.52:1 (R7: 4.5:1) +//! - search hit #8283ad -> #7c5b34: 2.41:1 off the page, now 1.41:1 (R8: 1.5:1, the text reading on it) +//! - error #e388a3 -> #fd9fba: 3.45:1 on the page, now 4.51:1 (R9: 4.5:1, told from the text and the others) +//! - info #97bdde -> #99bfe0: 4.42:1 on the page, now 4.52:1 (R9: 4.5:1, told from the text and the others) +//! - hint #a5a6c5 -> #9ec49f: 3.68:1 on the page, now 4.51:1 (R9: 4.5:1, told from the text and the others) pub const theme = .{ .name = "seoulbones_dark", // ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:33 Normal guibg - .bg = .{ 0x4b, 0x4b, 0x4b }, + .page = .{ 0x4b, 0x4b, 0x4b }, // ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:33 Normal guifg - .fg = .{ 0xdd, 0xdd, 0xdd }, + .text = .{ 0xdd, 0xdd, 0xdd }, // ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:213 Visual guibg - .sel_bg = .{ 0x77, 0x77, 0x77 }, + .selection = .{ 0x77, 0x77, 0x77 }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0xdd, 0xdd, 0xdd }, + .selection_text = .{ 0xdd, 0xdd, 0xdd }, // ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:200 StatusLineNC guibg - .tag_bg = .{ 0x55, 0x55, 0x55 }, + .tag = .{ 0x55, 0x55, 0x55 }, // ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:200 StatusLineNC guifg - .tag_fg = .{ 0xe5, 0xe5, 0xe5 }, + .tag_text = .{ 0xe5, 0xe5, 0xe5 }, // ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:197 StatusLine guibg #5e5e5e, adjusted - .tag_active_bg = .{ 0x72, 0x72, 0x72 }, + .tag_focus = .{ 0x72, 0x72, 0x72 }, // ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:197 StatusLine guifg #dddddd, adjusted - .tag_active_fg = .{ 0xf8, 0xf8, 0xf8 }, + .tag_focus_text = .{ 0xf8, 0xf8, 0xf8 }, // the focused grip: ~/05-genizah/zenbones.nvim/lua/lualine/themes/seoulbones_dark_default.lua:8 normal.a bg (lualine theme, default ness; generator derives it as PmenuSbar.bg.abs_da(3), lua/zenbones/shipwright/runners/lualine.lua:66) - .box = .{ 0x91, 0x91, 0x91 }, - // derived: the grip at rest, the accent #797979 faded toward the unfocused tag #555555 as far as 1.6:1 off it (0.88 of the way) - .box_dim = .{ 0x75, 0x75, 0x75 }, + .accent = .{ 0x91, 0x91, 0x91 }, // an unsaved grip: the original's modified colour, ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:41 Changed guifg - .box_dirty = .{ 0x97, 0xbd, 0xde }, + .dirty = .{ 0x97, 0xbd, 0xde }, // derived: the column grip, the original's function colour, ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:122 Function guifg - .column_box = .{ 0xdf, 0xdf, 0xc1 }, + .column_grip = .{ 0xdf, 0xdf, 0xc1 }, // ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:150 Keyword guifg - .kw = .{ 0xdc, 0x8c, 0xa3 }, + .keyword = .{ 0xdc, 0x8c, 0xa3 }, // ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:203 String guifg - .str = .{ 0xab, 0xc4, 0xdb }, + .string = .{ 0xab, 0xc4, 0xdb }, // ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:166 Number guifg - .num = .{ 0xf7, 0xe0, 0xb3 }, + .number = .{ 0xf7, 0xe0, 0xb3 }, // ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:47 Comment guifg .comment = .{ 0x71, 0x98, 0x71 }, // ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:152 LineNr guifg - .lineno = .{ 0x86, 0x86, 0x86 }, + .line_number = .{ 0x86, 0x86, 0x86 }, // ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:62 CursorLineNr guifg - .lineno_active = .{ 0xdd, 0xdd, 0xdd }, + .line_number_current = .{ 0xdd, 0xdd, 0xdd }, // ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:169 PmenuSbar guibg - .scroll_track = .{ 0x81, 0x81, 0x81 }, + .rail = .{ 0x81, 0x81, 0x81 }, // ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:171 PmenuThumb guibg #a0a0a0, adjusted - .scroll_thumb = .{ 0xa1, 0xa1, 0xa1 }, + .rail_thumb = .{ 0xa1, 0xa1, 0xa1 }, // ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:220 WinSeparator guifg - .border = .{ 0x86, 0x86, 0x86 }, + .rule = .{ 0x86, 0x86, 0x86 }, // ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:175 Search guibg - .search_bg = .{ 0x82, 0x83, 0xad }, - // ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:175 Search guifg - .search_fg = .{ 0xdd, 0xdd, 0xdd }, + .hit = .{ 0x82, 0x83, 0xad }, // ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:113 Error guifg via DiagnosticError->Error (link :114) - .diagnostic_error = .{ 0xe3, 0x88, 0xa3 }, + .@"error" = .{ 0xe3, 0x88, 0xa3 }, // ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:214 WarningMsg guifg via DiagnosticWarn->WarningMsg (link :215) - .diagnostic_warning = .{ 0xff, 0xdf, 0x9b }, + .warning = .{ 0xff, 0xdf, 0x9b }, // ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:72 DiagnosticInfo guifg - .diagnostic_info = .{ 0x97, 0xbd, 0xde }, + .info = .{ 0x97, 0xbd, 0xde }, // ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:67 DiagnosticHint guifg - .diagnostic_hint = .{ 0xa5, 0xa6, 0xc5 }, - .palette = .{ + .hint = .{ 0xa5, 0xa6, 0xc5 }, + .ansi = .{ .{ 0x4b, 0x4b, 0x4b }, // 0: ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:17 g:terminal_color_0 .{ 0xe3, 0x88, 0xa3 }, // 1: ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:18 g:terminal_color_1 .{ 0x98, 0xbd, 0x99 }, // 2: ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:19 g:terminal_color_2 diff --git a/core/themes/seoulbones_light.zig b/core/themes/seoulbones_light.zig index 7b897be5..b509996c 100644 --- a/core/themes/seoulbones_light.zig +++ b/core/themes/seoulbones_light.zig @@ -18,63 +18,68 @@ //! it inherits Normal. TabLine links to StatusLine, TabLineFill to //! StatusLineNC. Accent is the lualine normal-mode a bg, a muted neutral (the //! theme is contrast-based, not hue-accented). Modified = Changed fg. +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - focused grip #999999 -> #676767: 1.52:1 on the focused tag, now 3.01:1 (R6: 3:1) +//! - unsaved grip #0084a3 -> #07708a: 2.93:1 on the tag, now 3.84:1 (R6: 3:1 on both tags) +//! - selection #cccccc -> #cbcbcb: 1.24:1 off the page, now 1.25:1 (R7) +//! - search hit #cbb1ca -> #ffba94: 1.52:1 off the page, now 1.28:1 (R8: 1.5:1, the text reading on it) +//! - error #dc5284 -> #b72e65: 2.90:1 on the page, now 4.51:1 (R9: 4.5:1, told from the text and the others) +//! - warning #c48562 -> #915634: 2.36:1 on the page, now 4.52:1 (R9: 4.5:1, told from the text and the others) +//! - info #0084a3 -> #026e88: 3.36:1 on the page, now 4.52:1 (R9: 4.5:1, told from the text and the others) +//! - hint #896788 -> #7b5a7a: 3.72:1 on the page, now 4.52:1 (R9: 4.5:1, told from the text and the others) pub const theme = .{ .name = "seoulbones_light", // ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:269 Normal guibg - .bg = .{ 0xe2, 0xe2, 0xe2 }, + .page = .{ 0xe2, 0xe2, 0xe2 }, // ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:269 Normal guifg - .fg = .{ 0x55, 0x55, 0x55 }, + .text = .{ 0x55, 0x55, 0x55 }, // ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:449 Visual guibg - .sel_bg = .{ 0xcc, 0xcc, 0xcc }, + .selection = .{ 0xcc, 0xcc, 0xcc }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0x55, 0x55, 0x55 }, + .selection_text = .{ 0x55, 0x55, 0x55 }, // ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:436 StatusLineNC guibg - .tag_bg = .{ 0xd4, 0xd4, 0xd4 }, + .tag = .{ 0xd4, 0xd4, 0xd4 }, // ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:436 StatusLineNC guifg #818181, adjusted - .tag_fg = .{ 0x5a, 0x5a, 0x5a }, + .tag_text = .{ 0x5a, 0x5a, 0x5a }, // ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:433 StatusLine guibg #c4c4c4, adjusted - .tag_active_bg = .{ 0xbd, 0xbd, 0xbd }, + .tag_focus = .{ 0xbd, 0xbd, 0xbd }, // ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:433 StatusLine guifg #555555, adjusted - .tag_active_fg = .{ 0x4b, 0x4b, 0x4b }, + .tag_focus_text = .{ 0x4b, 0x4b, 0x4b }, // the focused grip: ~/05-genizah/zenbones.nvim/lua/lualine/themes/seoulbones_light_default.lua:8 normal.a bg (lualine theme, default ness; generator derives it as PmenuSbar.bg.abs_da(3), lua/zenbones/shipwright/runners/lualine.lua:66) - .box = .{ 0x99, 0x99, 0x99 }, - // derived: the grip at rest, the accent #a6a6a6 faded toward the unfocused tag #d4d4d4 as far as 1.6:1 off it (0.98 of the way) - .box_dim = .{ 0xa7, 0xa7, 0xa7 }, + .accent = .{ 0x99, 0x99, 0x99 }, // an unsaved grip: the original's modified colour, ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:277 Changed guifg - .box_dirty = .{ 0x00, 0x84, 0xa3 }, + .dirty = .{ 0x00, 0x84, 0xa3 }, // derived: the column grip, the original's type colour, ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:445 Type guifg - .column_box = .{ 0x6d, 0x4c, 0x52 }, + .column_grip = .{ 0x6d, 0x4c, 0x52 }, // ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:386 Keyword guifg - .kw = .{ 0xca, 0x62, 0x84 }, + .keyword = .{ 0xca, 0x62, 0x84 }, // ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:439 String guifg - .str = .{ 0x4a, 0x75, 0x87 }, + .string = .{ 0x4a, 0x75, 0x87 }, // ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:402 Number guifg - .num = .{ 0x89, 0x65, 0x00 }, + .number = .{ 0x89, 0x65, 0x00 }, // ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:283 Comment guifg .comment = .{ 0x62, 0x85, 0x62 }, // ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:388 LineNr guifg - .lineno = .{ 0x91, 0x91, 0x91 }, + .line_number = .{ 0x91, 0x91, 0x91 }, // ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:298 CursorLineNr guifg - .lineno_active = .{ 0x55, 0x55, 0x55 }, + .line_number_current = .{ 0x55, 0x55, 0x55 }, // ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:405 PmenuSbar guibg - .scroll_track = .{ 0x9e, 0x9e, 0x9e }, + .rail = .{ 0x9e, 0x9e, 0x9e }, // ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:407 PmenuThumb guibg - .scroll_thumb = .{ 0xf3, 0xf3, 0xf3 }, + .rail_thumb = .{ 0xf3, 0xf3, 0xf3 }, // ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:456 WinSeparator guifg - .border = .{ 0x91, 0x91, 0x91 }, + .rule = .{ 0x91, 0x91, 0x91 }, // ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:411 Search guibg - .search_bg = .{ 0xcb, 0xb1, 0xca }, - // ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:411 Search guifg - .search_fg = .{ 0x55, 0x55, 0x55 }, + .hit = .{ 0xcb, 0xb1, 0xca }, // ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:349 Error guifg via DiagnosticError->Error (link :350) - .diagnostic_error = .{ 0xdc, 0x52, 0x84 }, + .@"error" = .{ 0xdc, 0x52, 0x84 }, // ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:450 WarningMsg guifg via DiagnosticWarn->WarningMsg (link :451) - .diagnostic_warning = .{ 0xc4, 0x85, 0x62 }, + .warning = .{ 0xc4, 0x85, 0x62 }, // ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:308 DiagnosticInfo guifg - .diagnostic_info = .{ 0x00, 0x84, 0xa3 }, + .info = .{ 0x00, 0x84, 0xa3 }, // ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:303 DiagnosticHint guifg - .diagnostic_hint = .{ 0x89, 0x67, 0x88 }, - .palette = .{ + .hint = .{ 0x89, 0x67, 0x88 }, + .ansi = .{ .{ 0xe2, 0xe2, 0xe2 }, // 0: ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:253 g:terminal_color_0 .{ 0xdc, 0x52, 0x84 }, // 1: ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:254 g:terminal_color_1 .{ 0x62, 0x85, 0x62 }, // 2: ~/05-genizah/zenbones.nvim/colors/seoulbones.vim:255 g:terminal_color_2 diff --git a/core/themes/sepia.zig b/core/themes/sepia.zig new file mode 100644 index 00000000..06cf96c1 --- /dev/null +++ b/core/themes/sepia.zig @@ -0,0 +1,30 @@ +//! pardes sepia: long reading by daylight (DESIGN.md part D). Warm paper, +//! brown-black ink, earth hues, a calm comment that still reads 5.9:1, and a +//! cool grey-blue selection so the hits keep their amber. For prose, docs and +//! PDFs side by side, and long sessions where white paper glares. +pub const theme = .{ + .name = "sepia", + .page = .{ 0xf4, 0xec, 0xdb }, + .text = .{ 0x3a, 0x2e, 0x22 }, + .tag = .{ 0xe6, 0xd8, 0xba }, + .tag_text = .{ 0x4b, 0x3d, 0x2b }, + .accent = .{ 0xa0, 0x56, 0x2a }, + .selection = .{ 0xc9, 0xd4, 0xdc }, + .selection_text = .{ 0x23, 0x1a, 0x10 }, + .keyword = .{ 0x94, 0x35, 0x1c }, + .string = .{ 0x4c, 0x6a, 0x1f }, + .number = .{ 0x7b, 0x4b, 0x9a }, + .comment = .{ 0x6a, 0x57, 0x3e }, + .line_number = .{ 0xa8, 0x98, 0x7c }, + .line_number_current = .{ 0x76, 0x65, 0x4b }, + .@"error" = .{ 0xb3, 0x26, 0x1e }, + .warning = .{ 0x8a, 0x5a, 0x00 }, + .info = .{ 0x2f, 0x5f, 0x8f }, + .hint = .{ 0x3f, 0x6f, 0x5f }, + .ansi = .{ + .{ 0xe6, 0xd8, 0xba }, .{ 0xb3, 0x26, 0x1e }, .{ 0x4c, 0x6a, 0x1f }, .{ 0x8a, 0x5a, 0x00 }, + .{ 0x2f, 0x5f, 0x8f }, .{ 0x7b, 0x4b, 0x9a }, .{ 0x2f, 0x6f, 0x6a }, .{ 0x5a, 0x4a, 0x36 }, + .{ 0x7a, 0x68, 0x4b }, .{ 0xc1, 0x39, 0x28 }, .{ 0x52, 0x75, 0x17 }, .{ 0x8f, 0x60, 0x00 }, + .{ 0x36, 0x6d, 0xa2 }, .{ 0x88, 0x54, 0xa7 }, .{ 0x29, 0x76, 0x71 }, .{ 0x23, 0x1a, 0x10 }, + }, +}; diff --git a/core/themes/solarium.zig b/core/themes/solarium.zig index 316113eb..cbc5df96 100644 --- a/core/themes/solarium.zig +++ b/core/themes/solarium.zig @@ -4,36 +4,32 @@ //! Pardes-specific tag, search, diagnostic and ANSI roles; see docs/typ/themes.typ. pub const theme = .{ .name = "solarium", - .bg = .{ 0x17, 0x3e, 0x45 }, - .fg = .{ 0xa7, 0xb7, 0xae }, - .tag_bg = .{ 0x12, 0x3f, 0x43 }, - .tag_fg = .{ 0xc7, 0xd4, 0xbd }, - .tag_name_fg = .{ 0xe9, 0xc1, 0xe0 }, - .tag_active_name_fg = .{ 0xf5, 0xcd, 0xec }, - .tag_active_bg = .{ 0x21, 0x4e, 0x50 }, - .tag_active_fg = .{ 0xd3, 0xe0, 0xc9 }, - .box = .{ 0xe1, 0xc2, 0x66 }, - .box_dim = .{ 0x46, 0x7f, 0x76 }, - .column_box = .{ 0x5c, 0xb1, 0xeb }, - .column_box_dim = .{ 0x34, 0x7a, 0x9a }, - .kw = .{ 0x56, 0xb2, 0xf1 }, - .str = .{ 0xbd, 0xd0, 0x3f }, - .num = .{ 0xef, 0x99, 0x48 }, + .page = .{ 0x17, 0x3e, 0x45 }, + .text = .{ 0xa7, 0xb7, 0xae }, + .tag = .{ 0x12, 0x3f, 0x43 }, + .tag_text = .{ 0xc7, 0xd4, 0xbd }, + .tag_name = .{ 0xe9, 0xc1, 0xe0 }, + .tag_focus = .{ 0x21, 0x4e, 0x50 }, + .tag_focus_text = .{ 0xd3, 0xe0, 0xc9 }, + .accent = .{ 0xe1, 0xc2, 0x66 }, + .column_grip = .{ 0x5c, 0xb1, 0xeb }, + .keyword = .{ 0x56, 0xb2, 0xf1 }, + .string = .{ 0xbd, 0xd0, 0x3f }, + .number = .{ 0xef, 0x99, 0x48 }, .comment = .{ 0xf6, 0xce, 0x5a }, - .lineno = .{ 0x64, 0x7e, 0x7c }, - .lineno_active = .{ 0x6c, 0x86, 0x84 }, - .scroll_track = .{ 0x1c, 0x45, 0x4c }, - .scroll_thumb = .{ 0x65, 0x97, 0x8c }, - .border = .{ 0x4c, 0x88, 0x80 }, - .sel_bg = .{ 0x1f, 0x5c, 0x64 }, - .sel_fg = .{ 0xee, 0xe8, 0xd5 }, - .search_bg = .{ 0x6d, 0x57, 0x1d }, - .search_fg = .{ 0xff, 0xf0, 0xb9 }, - .diagnostic_error = .{ 0xff, 0x7a, 0x6a }, - .diagnostic_warning = .{ 0xf3, 0xbe, 0x47 }, - .diagnostic_info = .{ 0x59, 0xb1, 0xee }, - .diagnostic_hint = .{ 0x5c, 0xca, 0xb9 }, - .palette = .{ + .line_number = .{ 0x64, 0x7e, 0x7c }, + .line_number_current = .{ 0x6c, 0x86, 0x84 }, + .rail = .{ 0x1c, 0x45, 0x4c }, + .rail_thumb = .{ 0x65, 0x97, 0x8c }, + .rule = .{ 0x4c, 0x88, 0x80 }, + .selection = .{ 0x1f, 0x5c, 0x64 }, + .selection_text = .{ 0xee, 0xe8, 0xd5 }, + .hit = .{ 0x6d, 0x57, 0x1d }, + .@"error" = .{ 0xff, 0x7a, 0x6a }, + .warning = .{ 0xf3, 0xbe, 0x47 }, + .info = .{ 0x59, 0xb1, 0xee }, + .hint = .{ 0x5c, 0xca, 0xb9 }, + .ansi = .{ .{ 0x17, 0x3e, 0x45 }, .{ 0xed, 0x84, 0x77 }, .{ 0xaf, 0xbd, 0x52 }, diff --git a/core/themes/solarized_dark.zig b/core/themes/solarized_dark.zig index c7c43892..e013a060 100644 --- a/core/themes/solarized_dark.zig +++ b/core/themes/solarized_dark.zig @@ -10,57 +10,60 @@ //! - focused grip #268bd2 -> #2483c5: 1.38:1 on the focused tag #93a1a1 //! Upstream notes: green is the canonical #859900 (README), not //! solarized.vim:261's "experimental" #719e07. +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - focused grip #2483c5 -> #025384: 1.53:1 on the focused tag, now 3.05:1 (R6: 3:1) +//! - unsaved grip #b58900 -> #3e2c00: 1.39:1 on the tag, now 3.01:1 (R6: 3:1 on both tags) +//! - selection text #002b36 -> #cbf2ff: 2.79:1 on the selection, now 4.53:1 (R7: 4.5:1) +//! - error #dc322f -> #f95148: 3.25:1 on the page, now 4.50:1 (R9: 4.5:1, told from the text and the others) +//! - warning #dc322f -> #b58900: 3.25:1 on the page, now 4.68:1 (R9: 4.5:1, told from the text and the others) pub const theme = .{ .name = "solarized_dark", // ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:539 Normal bg_back: base03 = ~/05-genizah/solarized/README.md:354 base03 - .bg = .{ 0x00, 0x2b, 0x36 }, + .page = .{ 0x00, 0x2b, 0x36 }, // ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:539 Normal fg: base0 = ~/05-genizah/solarized/README.md:358 base0 - .fg = .{ 0x83, 0x94, 0x96 }, + .text = .{ 0x83, 0x94, 0x96 }, // ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:614 Visual fg_base01 reversed: base01 = ~/05-genizah/solarized/README.md:356 base01 - .sel_bg = .{ 0x58, 0x6e, 0x75 }, + .selection = .{ 0x58, 0x6e, 0x75 }, // ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:614 Visual bg_base03 reversed: base03 = ~/05-genizah/solarized/README.md:354 base03 - .sel_fg = .{ 0x00, 0x2b, 0x36 }, + .selection_text = .{ 0x00, 0x2b, 0x36 }, // ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:613 StatusLineNC fg_base00 reversed: base00 = ~/05-genizah/solarized/README.md:357 base00 - .tag_bg = .{ 0x65, 0x7b, 0x83 }, + .tag = .{ 0x65, 0x7b, 0x83 }, // ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:613 StatusLineNC bg_base02 reversed: base02 = ~/05-genizah/solarized/README.md:355 base02 #073642, adjusted - .tag_fg = .{ 0x01, 0x09, 0x0b }, + .tag_text = .{ 0x01, 0x09, 0x0b }, // ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:612 StatusLine fg_base1 reversed: base1 = ~/05-genizah/solarized/README.md:359 base1 - .tag_active_bg = .{ 0x93, 0xa1, 0xa1 }, + .tag_focus = .{ 0x93, 0xa1, 0xa1 }, // ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:612 StatusLine bg_base02 reversed: base02 = ~/05-genizah/solarized/README.md:355 base02 - .tag_active_fg = .{ 0x07, 0x36, 0x42 }, + .tag_focus_text = .{ 0x07, 0x36, 0x42 }, // the focused grip: no UI accent in solarized.vim; Identifier blue, ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:552 Identifier: blue = ~/05-genizah/solarized/README.md:367 blue - .box = .{ 0x24, 0x83, 0xc5 }, - // derived: the grip at rest, the accent #268bd2 faded toward the unfocused tag #657b83 as far as 1.6:1 off it (1.00 of the way) - .box_dim = .{ 0x18, 0x59, 0x86 }, + .accent = .{ 0x24, 0x83, 0xc5 }, // an unsaved grip: the original's modified colour, ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:636 DiffChange fg_yellow: yellow = ~/05-genizah/solarized/README.md:362 yellow - .box_dirty = .{ 0xb5, 0x89, 0x00 }, + .dirty = .{ 0xb5, 0x89, 0x00 }, // derived: the column grip, the original's keyword colour, ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:556 Statement fg (Keyword links to Statement): green = ~/05-genizah/solarized/README.md:369 green - .column_box = .{ 0x85, 0x99, 0x00 }, + .column_grip = .{ 0x85, 0x99, 0x00 }, // ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:556 Statement fg (Keyword links to Statement): green = ~/05-genizah/solarized/README.md:369 green - .kw = .{ 0x85, 0x99, 0x00 }, + .keyword = .{ 0x85, 0x99, 0x00 }, // ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:544 Constant fg (String links to Constant): cyan = ~/05-genizah/solarized/README.md:368 cyan - .str = .{ 0x2a, 0xa1, 0x98 }, + .string = .{ 0x2a, 0xa1, 0x98 }, // ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:544 Constant fg (Number links to Constant): cyan = ~/05-genizah/solarized/README.md:368 cyan - .num = .{ 0x2a, 0xa1, 0x98 }, + .number = .{ 0x2a, 0xa1, 0x98 }, // ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:541 Comment fg: base01 = ~/05-genizah/solarized/README.md:356 base01 .comment = .{ 0x58, 0x6e, 0x75 }, // ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:621 LineNr fg: base01 = ~/05-genizah/solarized/README.md:356 base01 - .lineno = .{ 0x58, 0x6e, 0x75 }, + .line_number = .{ 0x58, 0x6e, 0x75 }, // ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:665 PmenuSbar fg_base2 reversed: base2 = ~/05-genizah/solarized/README.md:360 base2 - .scroll_track = .{ 0xee, 0xe8, 0xd5 }, + .rail = .{ 0xee, 0xe8, 0xd5 }, // ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:666 PmenuThumb fg_base0 reversed: base0 = ~/05-genizah/solarized/README.md:358 base0 - .scroll_thumb = .{ 0x83, 0x94, 0x96 }, + .rail_thumb = .{ 0x83, 0x94, 0x96 }, // ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:624 VertSplit fg_base00 bg_base00: base00 = ~/05-genizah/solarized/README.md:357 base00 - .border = .{ 0x65, 0x7b, 0x83 }, - // ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:618 Search fg_yellow reversed: yellow = ~/05-genizah/solarized/README.md:362 yellow - .search_bg = .{ 0xb5, 0x89, 0x00 }, - // ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:618 Search bg_none reversed: the page: base03 = ~/05-genizah/solarized/README.md:354 base03 - .search_fg = .{ 0x00, 0x2b, 0x36 }, + .rule = .{ 0x65, 0x7b, 0x83 }, + // ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:618 Search fg_yellow reversed: yellow = ~/05-genizah/solarized/README.md:362 yellow #b58900, adjusted + // adjusted: search hit #b58900 -> #1d180e: the original reverses yellow under base03 ink; pardes keeps the text's own ink on a hit, which reads 1.02:1 on #b58900; its yellow a ground 1.18:1 off the page, 0.09 OKLab, the text 5.58:1 on it (DESIGN.md R0, R8) + .hit = .{ 0x1d, 0x18, 0x0e }, // ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:592 Error fg: red = ~/05-genizah/solarized/README.md:364 red - .diagnostic_error = .{ 0xdc, 0x32, 0x2f }, + .@"error" = .{ 0xdc, 0x32, 0x2f }, // ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:630 WarningMsg fg: red = ~/05-genizah/solarized/README.md:364 red - .diagnostic_warning = .{ 0xdc, 0x32, 0x2f }, - .palette = .{ + .warning = .{ 0xdc, 0x32, 0x2f }, + .ansi = .{ .{ 0x07, 0x36, 0x42 }, // 0: ~/05-genizah/solarized/README.md:355 base02 ANSI 0 (README TERMCOL column) .{ 0xdc, 0x32, 0x2f }, // 1: ~/05-genizah/solarized/README.md:364 red ANSI 1 (README TERMCOL column) .{ 0x85, 0x99, 0x00 }, // 2: ~/05-genizah/solarized/README.md:369 green ANSI 2 (README TERMCOL column) diff --git a/core/themes/solarized_light.zig b/core/themes/solarized_light.zig index 124d6d59..801c1693 100644 --- a/core/themes/solarized_light.zig +++ b/core/themes/solarized_light.zig @@ -11,57 +11,61 @@ //! - focused grip #268bd2 -> #2f90d4: 1.46:1 on the focused tag #586e75 //! Upstream notes: green is the canonical #859900 (README), not //! solarized.vim:261's "experimental" #719e07. +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - focused tag ground #586e75 -> #728284: 1.70:1 off the tag, now 1.27:1 (R4, H: a focus step off the tag, and the loudest) +//! - focused grip #2f90d4 -> #00395e: 1.16:1 on the focused tag, now 3.00:1 (R6: 3:1) +//! - unsaved grip #b58900 -> #473300: 1.02:1 on the tag, now 3.81:1 (R6: 3:1 on both tags) +//! - selection text #fdf6e3 -> #3b3526: 2.48:1 on the selection, now 4.56:1 (R7: 4.5:1) +//! - error #dc322f -> #d72c2b: 4.29:1 on the page, now 4.54:1 (R9: 4.5:1, told from the text and the others) +//! - warning #dc322f -> #8e6c07: 4.29:1 on the page, now 4.53:1 (R9: 4.5:1, told from the text and the others) pub const theme = .{ .name = "solarized_light", // ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:539 Normal bg_back: base03 = ~/05-genizah/solarized/README.md:361 base3 (swapped for background=light, ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:379-391) - .bg = .{ 0xfd, 0xf6, 0xe3 }, + .page = .{ 0xfd, 0xf6, 0xe3 }, // ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:539 Normal fg: base0 = ~/05-genizah/solarized/README.md:357 base00 (swapped for background=light, ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:379-391) - .fg = .{ 0x65, 0x7b, 0x83 }, + .text = .{ 0x65, 0x7b, 0x83 }, // ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:614 Visual fg_base01 reversed: base01 = ~/05-genizah/solarized/README.md:359 base1 (swapped for background=light, ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:379-391) - .sel_bg = .{ 0x93, 0xa1, 0xa1 }, + .selection = .{ 0x93, 0xa1, 0xa1 }, // ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:614 Visual bg_base03 reversed: base03 = ~/05-genizah/solarized/README.md:361 base3 (swapped for background=light, ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:379-391) - .sel_fg = .{ 0xfd, 0xf6, 0xe3 }, + .selection_text = .{ 0xfd, 0xf6, 0xe3 }, // ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:613 StatusLineNC fg_base00 reversed: base00 = ~/05-genizah/solarized/README.md:358 base0 (swapped for background=light, ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:379-391) - .tag_bg = .{ 0x83, 0x94, 0x96 }, + .tag = .{ 0x83, 0x94, 0x96 }, // ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:613 StatusLineNC bg_base02 reversed: base02 = ~/05-genizah/solarized/README.md:360 base2 (swapped for background=light, ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:379-391) #eee8d5, adjusted - .tag_fg = .{ 0x2b, 0x2a, 0x26 }, + .tag_text = .{ 0x2b, 0x2a, 0x26 }, // ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:612 StatusLine fg_base1 reversed: base1 = ~/05-genizah/solarized/README.md:356 base01 (swapped for background=light, ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:379-391) - .tag_active_bg = .{ 0x58, 0x6e, 0x75 }, + .tag_focus = .{ 0x58, 0x6e, 0x75 }, // ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:612 StatusLine bg_base02 reversed: base02 = ~/05-genizah/solarized/README.md:360 base2 (swapped for background=light, ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:379-391) #eee8d5, adjusted - .tag_active_fg = .{ 0xf0, 0xeb, 0xda }, + .tag_focus_text = .{ 0xf0, 0xeb, 0xda }, // the focused grip: no UI accent in solarized.vim; Identifier blue, ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:552 Identifier: blue = ~/05-genizah/solarized/README.md:367 blue - .box = .{ 0x2f, 0x90, 0xd4 }, - // derived: the grip at rest, the accent #268bd2 faded toward the unfocused tag #839496 as far as 1.6:1 off it (1.00 of the way) - .box_dim = .{ 0x1f, 0x72, 0xac }, + .accent = .{ 0x2f, 0x90, 0xd4 }, // an unsaved grip: the original's modified colour, ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:636 DiffChange fg_yellow: yellow = ~/05-genizah/solarized/README.md:362 yellow - .box_dirty = .{ 0xb5, 0x89, 0x00 }, + .dirty = .{ 0xb5, 0x89, 0x00 }, // derived: the column grip, the original's keyword colour, ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:556 Statement fg (Keyword links to Statement): green = ~/05-genizah/solarized/README.md:369 green - .column_box = .{ 0x85, 0x99, 0x00 }, + .column_grip = .{ 0x85, 0x99, 0x00 }, // ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:556 Statement fg (Keyword links to Statement): green = ~/05-genizah/solarized/README.md:369 green - .kw = .{ 0x85, 0x99, 0x00 }, + .keyword = .{ 0x85, 0x99, 0x00 }, // ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:544 Constant fg (String links to Constant): cyan = ~/05-genizah/solarized/README.md:368 cyan - .str = .{ 0x2a, 0xa1, 0x98 }, + .string = .{ 0x2a, 0xa1, 0x98 }, // ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:544 Constant fg (Number links to Constant): cyan = ~/05-genizah/solarized/README.md:368 cyan - .num = .{ 0x2a, 0xa1, 0x98 }, + .number = .{ 0x2a, 0xa1, 0x98 }, // ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:541 Comment fg: base01 = ~/05-genizah/solarized/README.md:359 base1 (swapped for background=light, ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:379-391) .comment = .{ 0x93, 0xa1, 0xa1 }, // ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:621 LineNr fg: base01 = ~/05-genizah/solarized/README.md:359 base1 (swapped for background=light, ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:379-391) - .lineno = .{ 0x93, 0xa1, 0xa1 }, + .line_number = .{ 0x93, 0xa1, 0xa1 }, // ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:665 PmenuSbar fg_base2 reversed: base2 = ~/05-genizah/solarized/README.md:355 base02 (swapped for background=light, ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:379-391) - .scroll_track = .{ 0x07, 0x36, 0x42 }, + .rail = .{ 0x07, 0x36, 0x42 }, // ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:666 PmenuThumb fg_base0 reversed: base0 = ~/05-genizah/solarized/README.md:357 base00 (swapped for background=light, ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:379-391) - .scroll_thumb = .{ 0x65, 0x7b, 0x83 }, + .rail_thumb = .{ 0x65, 0x7b, 0x83 }, // ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:624 VertSplit fg_base00 bg_base00: base00 = ~/05-genizah/solarized/README.md:358 base0 (swapped for background=light, ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:379-391) - .border = .{ 0x83, 0x94, 0x96 }, + .rule = .{ 0x83, 0x94, 0x96 }, // ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:618 Search fg_yellow reversed: yellow = ~/05-genizah/solarized/README.md:362 yellow - .search_bg = .{ 0xb5, 0x89, 0x00 }, - // ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:618 Search bg_none reversed: the page: base03 = ~/05-genizah/solarized/README.md:361 base3 (swapped for background=light, ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:379-391) - .search_fg = .{ 0xfd, 0xf6, 0xe3 }, + // adjusted: search hit #b58900 -> #ffeb99: the original reverses yellow under base3 ink; pardes keeps the text's own ink on a hit, which reads 1.39:1 on #b58900; its yellow a ground 1.11:1 off the page, 0.09 OKLab, the text 3.73:1 on it (its own is 4.13:1; DESIGN.md R0, R8) + .hit = .{ 0xff, 0xeb, 0x99 }, // ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:592 Error fg: red = ~/05-genizah/solarized/README.md:364 red - .diagnostic_error = .{ 0xdc, 0x32, 0x2f }, + .@"error" = .{ 0xdc, 0x32, 0x2f }, // ~/05-genizah/solarized/vim-colors-solarized/colors/solarized.vim:630 WarningMsg fg: red = ~/05-genizah/solarized/README.md:364 red - .diagnostic_warning = .{ 0xdc, 0x32, 0x2f }, - .palette = .{ + .warning = .{ 0xdc, 0x32, 0x2f }, + .ansi = .{ .{ 0x07, 0x36, 0x42 }, // 0: ~/05-genizah/solarized/README.md:355 base02 ANSI 0 (README TERMCOL column) .{ 0xdc, 0x32, 0x2f }, // 1: ~/05-genizah/solarized/README.md:364 red ANSI 1 (README TERMCOL column) .{ 0x85, 0x99, 0x00 }, // 2: ~/05-genizah/solarized/README.md:369 green ANSI 2 (README TERMCOL column) diff --git a/core/themes/spectrum.zig b/core/themes/spectrum.zig index f7c25c3d..cb95fe87 100644 --- a/core/themes/spectrum.zig +++ b/core/themes/spectrum.zig @@ -4,36 +4,32 @@ //! Pardes-specific tag, search, diagnostic and ANSI roles; see docs/typ/themes.typ. pub const theme = .{ .name = "spectrum", - .bg = .{ 0x10, 0x0e, 0x11 }, - .fg = .{ 0xfc, 0xfc, 0xfa }, - .tag_bg = .{ 0x3b, 0x38, 0x30 }, - .tag_fg = .{ 0xdd, 0xd8, 0xbb }, - .tag_name_fg = .{ 0xc5, 0xd7, 0xff }, - .tag_active_name_fg = .{ 0xd7, 0xe3, 0xff }, - .tag_active_bg = .{ 0x4d, 0x47, 0x36 }, - .tag_active_fg = .{ 0xe9, 0xe4, 0xc7 }, - .box = .{ 0xff, 0xd8, 0x66 }, - .box_dim = .{ 0x92, 0x84, 0x4f }, - .column_box = .{ 0xa4, 0x92, 0xfd }, - .column_box_dim = .{ 0x70, 0x65, 0x96 }, - .kw = .{ 0xff, 0x61, 0x88 }, - .str = .{ 0xa9, 0xee, 0x64 }, - .num = .{ 0xa2, 0x90, 0xff }, + .page = .{ 0x10, 0x0e, 0x11 }, + .text = .{ 0xfc, 0xfc, 0xfa }, + .tag = .{ 0x3b, 0x38, 0x30 }, + .tag_text = .{ 0xdd, 0xd8, 0xbb }, + .tag_name = .{ 0xc5, 0xd7, 0xff }, + .tag_focus = .{ 0x4d, 0x47, 0x36 }, + .tag_focus_text = .{ 0xe9, 0xe4, 0xc7 }, + .accent = .{ 0xff, 0xd8, 0x66 }, + .column_grip = .{ 0xa4, 0x92, 0xfd }, + .keyword = .{ 0xff, 0x61, 0x88 }, + .string = .{ 0xa9, 0xee, 0x64 }, + .number = .{ 0xa2, 0x90, 0xff }, .comment = .{ 0xff, 0xe0, 0x9b }, - .lineno = .{ 0x68, 0x61, 0x6b }, - .lineno_active = .{ 0x70, 0x69, 0x73 }, - .scroll_track = .{ 0x21, 0x1d, 0x23 }, - .scroll_thumb = .{ 0x94, 0x8d, 0x6f }, - .border = .{ 0x8f, 0x87, 0x6c }, - .sel_bg = .{ 0x51, 0x3f, 0x60 }, - .sel_fg = .{ 0xfc, 0xfc, 0xfa }, - .search_bg = .{ 0x6f, 0x5b, 0x1e }, - .search_fg = .{ 0xff, 0xf0, 0xb0 }, - .diagnostic_error = .{ 0xff, 0x79, 0x9b }, - .diagnostic_warning = .{ 0xff, 0xd8, 0x66 }, - .diagnostic_info = .{ 0x67, 0xe9, 0xf9 }, - .diagnostic_hint = .{ 0xa9, 0xeb, 0x67 }, - .palette = .{ + .line_number = .{ 0x68, 0x61, 0x6b }, + .line_number_current = .{ 0x70, 0x69, 0x73 }, + .rail = .{ 0x21, 0x1d, 0x23 }, + .rail_thumb = .{ 0x94, 0x8d, 0x6f }, + .rule = .{ 0x8f, 0x87, 0x6c }, + .selection = .{ 0x51, 0x3f, 0x60 }, + .selection_text = .{ 0xfc, 0xfc, 0xfa }, + .hit = .{ 0x6f, 0x5b, 0x1e }, + .@"error" = .{ 0xff, 0x79, 0x9b }, + .warning = .{ 0xff, 0xd8, 0x66 }, + .info = .{ 0x67, 0xe9, 0xf9 }, + .hint = .{ 0xa9, 0xeb, 0x67 }, + .ansi = .{ .{ 0x10, 0x0e, 0x11 }, .{ 0xff, 0x79, 0x9b }, .{ 0xa9, 0xdc, 0x76 }, diff --git a/core/themes/tokyobones_dark.zig b/core/themes/tokyobones_dark.zig index 6a05e456..ec33b244 100644 --- a/core/themes/tokyobones_dark.zig +++ b/core/themes/tokyobones_dark.zig @@ -16,63 +16,61 @@ //! only), so it inherits Normal. TabLine links to StatusLine, TabLineFill to //! StatusLineNC. Accent is the lualine normal-mode a bg, a muted neutral (the //! theme is contrast-based, not hue-accented). Modified = Changed fg. +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - focused grip #5b5d76 -> #898ca7: 1.55:1 on the focused tag, now 3.02:1 (R6: 3:1) pub const theme = .{ .name = "tokyobones_dark", // ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:33 Normal guibg - .bg = .{ 0x1a, 0x1b, 0x26 }, + .page = .{ 0x1a, 0x1b, 0x26 }, // ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:33 Normal guifg - .fg = .{ 0xc0, 0xca, 0xf5 }, + .text = .{ 0xc0, 0xca, 0xf5 }, // ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:214 Visual guibg - .sel_bg = .{ 0x2c, 0x40, 0x75 }, + .selection = .{ 0x2c, 0x40, 0x75 }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0xc0, 0xca, 0xf5 }, + .selection_text = .{ 0xc0, 0xca, 0xf5 }, // ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:198 StatusLineNC guibg - .tag_bg = .{ 0x24, 0x25, 0x32 }, + .tag = .{ 0x24, 0x25, 0x32 }, // ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:198 StatusLineNC guifg - .tag_fg = .{ 0xd2, 0xd9, 0xf8 }, + .tag_text = .{ 0xd2, 0xd9, 0xf8 }, // ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:195 StatusLine guibg #303142, adjusted - .tag_active_bg = .{ 0x40, 0x41, 0x57 }, + .tag_focus = .{ 0x40, 0x41, 0x57 }, // ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:195 StatusLine guifg - .tag_active_fg = .{ 0xc0, 0xca, 0xf5 }, + .tag_focus_text = .{ 0xc0, 0xca, 0xf5 }, // the focused grip: ~/05-genizah/zenbones.nvim/lua/lualine/themes/tokyobones_dark_default.lua:8 normal.a bg (lualine theme, default ness; generator derives it as PmenuSbar.bg.abs_da(3), lua/zenbones/shipwright/runners/lualine.lua:66) - .box = .{ 0x5b, 0x5d, 0x76 }, - // derived: the grip at rest, the accent #51536d faded toward the unfocused tag #242532 as far as 1.6:1 off it (0.70 of the way) - .box_dim = .{ 0x44, 0x45, 0x5b }, + .accent = .{ 0x5b, 0x5d, 0x76 }, // an unsaved grip: the original's modified colour, ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:41 Changed guifg - .box_dirty = .{ 0x7b, 0xa2, 0xf7 }, + .dirty = .{ 0x7b, 0xa2, 0xf7 }, // derived: the column grip, the original's type colour, ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:210 Type guifg - .column_box = .{ 0x93, 0x94, 0xaa }, + .column_grip = .{ 0x93, 0x94, 0xaa }, // ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:192 Statement guifg (no Keyword group defined; Vim default links Keyword to Statement) - .kw = .{ 0xbb, 0x9b, 0xf7 }, + .keyword = .{ 0xbb, 0x9b, 0xf7 }, // ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:201 String guifg - .str = .{ 0x75, 0x92, 0xea }, + .string = .{ 0x75, 0x92, 0xea }, // ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:164 Number guifg - .num = .{ 0x2b, 0xc4, 0xde }, + .number = .{ 0x2b, 0xc4, 0xde }, // ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:47 Comment guifg .comment = .{ 0x65, 0x67, 0x7d }, // ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:150 LineNr guifg - .lineno = .{ 0x5f, 0x61, 0x7e }, + .line_number = .{ 0x5f, 0x61, 0x7e }, // ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:62 CursorLineNr guifg - .lineno_active = .{ 0xc0, 0xca, 0xf5 }, + .line_number_current = .{ 0xc0, 0xca, 0xf5 }, // ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:167 PmenuSbar guibg - .scroll_track = .{ 0x58, 0x5a, 0x76 }, + .rail = .{ 0x58, 0x5a, 0x76 }, // ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:169 PmenuThumb guibg - .scroll_thumb = .{ 0x80, 0x82, 0x9b }, + .rail_thumb = .{ 0x80, 0x82, 0x9b }, // ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:221 WinSeparator guifg - .border = .{ 0x5f, 0x61, 0x7e }, + .rule = .{ 0x5f, 0x61, 0x7e }, // ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:173 Search guibg - .search_bg = .{ 0x6e, 0x20, 0xbd }, - // ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:173 Search guifg - .search_fg = .{ 0xc0, 0xca, 0xf5 }, + .hit = .{ 0x6e, 0x20, 0xbd }, // ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:113 Error guifg via DiagnosticError->Error (link :114) - .diagnostic_error = .{ 0xf7, 0x78, 0x90 }, + .@"error" = .{ 0xf7, 0x78, 0x90 }, // ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:215 WarningMsg guifg via DiagnosticWarn->WarningMsg (link :216) - .diagnostic_warning = .{ 0xe1, 0xb0, 0x68 }, + .warning = .{ 0xe1, 0xb0, 0x68 }, // ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:72 DiagnosticInfo guifg - .diagnostic_info = .{ 0x7b, 0xa2, 0xf7 }, + .info = .{ 0x7b, 0xa2, 0xf7 }, // ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:67 DiagnosticHint guifg - .diagnostic_hint = .{ 0xbb, 0x9b, 0xf7 }, - .palette = .{ + .hint = .{ 0xbb, 0x9b, 0xf7 }, + .ansi = .{ .{ 0x1a, 0x1b, 0x26 }, // 0: ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:17 g:terminal_color_0 .{ 0xf7, 0x78, 0x90 }, // 1: ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:18 g:terminal_color_1 .{ 0x74, 0xdb, 0xcb }, // 2: ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:19 g:terminal_color_2 diff --git a/core/themes/tokyobones_light.zig b/core/themes/tokyobones_light.zig index f57287ce..9db586e4 100644 --- a/core/themes/tokyobones_light.zig +++ b/core/themes/tokyobones_light.zig @@ -17,63 +17,62 @@ //! only), so it inherits Normal. TabLine links to StatusLine, TabLineFill to //! StatusLineNC. Accent is the lualine normal-mode a bg, a muted neutral (the //! theme is contrast-based, not hue-accented). Modified = Changed fg. +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - focused grip #8f909b -> #5e5f6a: 1.51:1 on the focused tag, now 3.02:1 (R6: 3:1) +//! - warning #8f5e14 -> #845300: 3.87:1 on the page, now 4.54:1 (R9: 4.5:1, told from the text and the others) pub const theme = .{ .name = "tokyobones_light", // ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:271 Normal guibg - .bg = .{ 0xd6, 0xd7, 0xdc }, + .page = .{ 0xd6, 0xd7, 0xdc }, // ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:271 Normal guifg - .fg = .{ 0x33, 0x3a, 0x57 }, + .text = .{ 0x33, 0x3a, 0x57 }, // ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:452 Visual guibg - .sel_bg = .{ 0xbb, 0xc0, 0xd8 }, + .selection = .{ 0xbb, 0xc0, 0xd8 }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0x33, 0x3a, 0x57 }, + .selection_text = .{ 0x33, 0x3a, 0x57 }, // ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:436 StatusLineNC guibg - .tag_bg = .{ 0xc8, 0xc9, 0xcf }, + .tag = .{ 0xc8, 0xc9, 0xcf }, // ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:436 StatusLineNC guifg #5f6b9b, adjusted - .tag_fg = .{ 0x4a, 0x53, 0x79 }, + .tag_text = .{ 0x4a, 0x53, 0x79 }, // ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:433 StatusLine guibg #b9bbc3, adjusted - .tag_active_bg = .{ 0xb1, 0xb3, 0xbc }, + .tag_focus = .{ 0xb1, 0xb3, 0xbc }, // ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:433 StatusLine guifg - .tag_active_fg = .{ 0x33, 0x3a, 0x57 }, + .tag_focus_text = .{ 0x33, 0x3a, 0x57 }, // the focused grip: ~/05-genizah/zenbones.nvim/lua/lualine/themes/tokyobones_light_default.lua:8 normal.a bg (lualine theme, default ness; generator derives it as PmenuSbar.bg.abs_da(3), lua/zenbones/shipwright/runners/lualine.lua:66) - .box = .{ 0x8f, 0x90, 0x9b }, - // derived: the grip at rest, the accent #9b9da9 faded toward the unfocused tag #c8c9cf as far as 1.6:1 off it (0.98 of the way) - .box_dim = .{ 0x9c, 0x9e, 0xaa }, + .accent = .{ 0x8f, 0x90, 0x9b }, // an unsaved grip: the original's modified colour, ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:279 Changed guifg - .box_dirty = .{ 0x34, 0x54, 0x8c }, + .dirty = .{ 0x34, 0x54, 0x8c }, // derived: the column grip, the original's type colour, ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:448 Type guifg - .column_box = .{ 0x48, 0x4f, 0x6b }, + .column_grip = .{ 0x48, 0x4f, 0x6b }, // ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:430 Statement guifg (no Keyword group defined; Vim default links Keyword to Statement) - .kw = .{ 0x5a, 0x4a, 0x79 }, + .keyword = .{ 0x5a, 0x4a, 0x79 }, // ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:439 String guifg - .str = .{ 0x5b, 0x66, 0x94 }, + .string = .{ 0x5b, 0x66, 0x94 }, // ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:402 Number guifg - .num = .{ 0x17, 0x67, 0x75 }, + .number = .{ 0x17, 0x67, 0x75 }, // ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:285 Comment guifg .comment = .{ 0x7c, 0x7e, 0x89 }, // ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:388 LineNr guifg - .lineno = .{ 0x88, 0x8b, 0x99 }, + .line_number = .{ 0x88, 0x8b, 0x99 }, // ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:300 CursorLineNr guifg - .lineno_active = .{ 0x33, 0x3a, 0x57 }, + .line_number_current = .{ 0x33, 0x3a, 0x57 }, // ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:405 PmenuSbar guibg - .scroll_track = .{ 0x93, 0x95, 0xa2 }, + .rail = .{ 0x93, 0x95, 0xa2 }, // ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:407 PmenuThumb guibg - .scroll_thumb = .{ 0xed, 0xee, 0xf0 }, + .rail_thumb = .{ 0xed, 0xee, 0xf0 }, // ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:459 WinSeparator guifg - .border = .{ 0x88, 0x8b, 0x99 }, + .rule = .{ 0x88, 0x8b, 0x99 }, // ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:411 Search guibg - .search_bg = .{ 0xb3, 0xa9, 0xc9 }, - // ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:411 Search guifg - .search_fg = .{ 0x33, 0x3a, 0x57 }, + .hit = .{ 0xb3, 0xa9, 0xc9 }, // ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:351 Error guifg via DiagnosticError->Error (link :352) - .diagnostic_error = .{ 0x8b, 0x43, 0x51 }, + .@"error" = .{ 0x8b, 0x43, 0x51 }, // ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:453 WarningMsg guifg via DiagnosticWarn->WarningMsg (link :454) - .diagnostic_warning = .{ 0x8f, 0x5e, 0x14 }, + .warning = .{ 0x8f, 0x5e, 0x14 }, // ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:310 DiagnosticInfo guifg - .diagnostic_info = .{ 0x34, 0x54, 0x8c }, + .info = .{ 0x34, 0x54, 0x8c }, // ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:305 DiagnosticHint guifg - .diagnostic_hint = .{ 0x5a, 0x4a, 0x79 }, - .palette = .{ + .hint = .{ 0x5a, 0x4a, 0x79 }, + .ansi = .{ .{ 0xd6, 0xd7, 0xdc }, // 0: ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:255 g:terminal_color_0 .{ 0x8b, 0x43, 0x51 }, // 1: ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:256 g:terminal_color_1 .{ 0x34, 0x64, 0x5d }, // 2: ~/05-genizah/zenbones.nvim/colors/tokyobones.vim:257 g:terminal_color_2 diff --git a/core/themes/tokyonight_day.zig b/core/themes/tokyonight_day.zig index 3d188454..5e0fab0c 100644 --- a/core/themes/tokyonight_day.zig +++ b/core/themes/tokyonight_day.zig @@ -23,63 +23,68 @@ //! computed at run time by Util.invert() of the night palette plus blended //! bg_dark/bg_dark1 (lua/tokyonight/colors/day.lua); all values here come from //! the generated extras for day. +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - focused grip #2e7de9 -> #0e64ce: 2.15:1 on the focused tag, now 3.01:1 (R6: 3:1) +//! - unsaved grip #506d9c -> #4b6897: 3.57:1 on the tag, now 3.84:1 (R6: 3:1 on both tags) +//! - selection text #3760bf -> #234aa7: 3.28:1 on the selection, now 4.50:1 (R7: 4.5:1) +//! - search hit #7890dd -> #fed092: 2.38:1 off the page, now 1.11:1 (R8: 1.5:1, the text reading on it) +//! - error #c64343 -> #b73537: 3.79:1 on the page, now 4.54:1 (R9: 4.5:1, told from the text and the others) +//! - warning #8c6c3e -> #7e5f31: 3.75:1 on the page, now 4.55:1 (R9: 4.5:1, told from the text and the others) +//! - info #07879d -> #036f82: 3.27:1 on the page, now 4.51:1 (R9: 4.5:1, told from the text and the others) +//! - hint #118c74 -> #07725e: 3.23:1 on the page, now 4.54:1 (R9: 4.5:1, told from the text and the others) pub const theme = .{ .name = "tokyonight_day", // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-day.vim:193 Normal guibg - .bg = .{ 0xe1, 0xe2, 0xe7 }, + .page = .{ 0xe1, 0xe2, 0xe7 }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-day.vim:193 Normal guifg - .fg = .{ 0x37, 0x60, 0xbf }, + .text = .{ 0x37, 0x60, 0xbf }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-day.vim:245 Visual guibg - .sel_bg = .{ 0xb7, 0xc1, 0xe3 }, + .selection = .{ 0xb7, 0xc1, 0xe3 }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0x37, 0x60, 0xbf }, + .selection_text = .{ 0x37, 0x60, 0xbf }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-day.vim:220 StatusLineNC guibg - .tag_bg = .{ 0xd0, 0xd5, 0xe3 }, + .tag = .{ 0xd0, 0xd5, 0xe3 }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-day.vim:220 StatusLineNC guifg #a8aecb, adjusted - .tag_fg = .{ 0x57, 0x5a, 0x6a }, + .tag_text = .{ 0x57, 0x5a, 0x6a }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-day.vim:219 StatusLine guibg #d0d5e3, adjusted - .tag_active_bg = .{ 0xb5, 0xbd, 0xd7 }, + .tag_focus = .{ 0xb5, 0xbd, 0xd7 }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-day.vim:219 StatusLine guifg #6172b0, adjusted - .tag_active_fg = .{ 0x40, 0x4b, 0x74 }, + .tag_focus_text = .{ 0x40, 0x4b, 0x74 }, // the focused grip: ~/05-genizah/tokyonight.nvim/extras/lua/tokyonight_day.lua:15 blue; lualine normal-mode section a bg = colors.blue per ~/05-genizah/tokyonight.nvim/lua/lualine/themes/_tokyonight.lua:12 (tokyonight-day.lua calls it with style "day") - .box = .{ 0x2e, 0x7d, 0xe9 }, - // derived: the grip at rest, the accent #2e7de9 faded toward the unfocused tag #d0d5e3 as far as 1.6:1 off it (0.50 of the way) - .box_dim = .{ 0x7f, 0xa9, 0xe6 }, + .accent = .{ 0x2e, 0x7d, 0xe9 }, // an unsaved grip: the original's modified colour, ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-day.vim:254 diffChanged guifg (= palette git.change) - .box_dirty = .{ 0x50, 0x6d, 0x9c }, + .dirty = .{ 0x50, 0x6d, 0x9c }, // derived: the column grip, the original's type colour, ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-day.vim:228 Type guifg - .column_box = .{ 0x18, 0x80, 0x92 }, + .column_grip = .{ 0x18, 0x80, 0x92 }, // ~/05-genizah/tokyonight.nvim/lua/tokyonight/groups/treesitter.lua:36 ["@keyword"] = c.purple, ~/05-genizah/tokyonight.nvim/extras/lua/tokyonight_day.lua:55 purple (vim's regex Keyword is #007197) - .kw = .{ 0x78, 0x47, 0xbd }, + .keyword = .{ 0x78, 0x47, 0xbd }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-day.vim:221 String guifg - .str = .{ 0x58, 0x75, 0x39 }, + .string = .{ 0x58, 0x75, 0x39 }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-day.vim:27 Constant guifg (Number is not defined by the theme, so Neovim's default link Number->Constant applies) - .num = .{ 0xb1, 0x5c, 0x00 }, + .number = .{ 0xb1, 0x5c, 0x00 }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-day.vim:24 Comment guifg .comment = .{ 0x84, 0x8c, 0xb5 }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-day.vim:91 LineNr guifg - .lineno = .{ 0xa8, 0xae, 0xcb }, + .line_number = .{ 0xa8, 0xae, 0xcb }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-day.vim:34 CursorLineNr guifg - .lineno_active = .{ 0xb1, 0x5c, 0x00 }, + .line_number_current = .{ 0xb1, 0x5c, 0x00 }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-day.vim:201 PmenuSbar guibg - .scroll_track = .{ 0xc8, 0xcf, 0xe1 }, + .rail = .{ 0xc8, 0xcf, 0xe1 }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-day.vim:203 PmenuThumb guibg #a8aecb, adjusted - .scroll_thumb = .{ 0x9f, 0xa8, 0xca }, + .rail_thumb = .{ 0x9f, 0xa8, 0xca }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-day.vim:250 WinSeparator guifg - .border = .{ 0xb4, 0xb5, 0xb9 }, + .rule = .{ 0xb4, 0xb5, 0xb9 }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-day.vim:207 Search guibg - .search_bg = .{ 0x78, 0x90, 0xdd }, - // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-day.vim:207 Search guifg - .search_fg = .{ 0x37, 0x60, 0xbf }, + .hit = .{ 0x78, 0x90, 0xdd }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-day.vim:36 DiagnosticError guifg - .diagnostic_error = .{ 0xc6, 0x43, 0x43 }, + .@"error" = .{ 0xc6, 0x43, 0x43 }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-day.vim:48 DiagnosticWarn guifg - .diagnostic_warning = .{ 0x8c, 0x6c, 0x3e }, + .warning = .{ 0x8c, 0x6c, 0x3e }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-day.vim:38 DiagnosticInfo guifg - .diagnostic_info = .{ 0x07, 0x87, 0x9d }, + .info = .{ 0x07, 0x87, 0x9d }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-day.vim:37 DiagnosticHint guifg - .diagnostic_hint = .{ 0x11, 0x8c, 0x74 }, - .palette = .{ + .hint = .{ 0x11, 0x8c, 0x74 }, + .ansi = .{ .{ 0xb4, 0xb5, 0xb9 }, // 0: ~/05-genizah/tokyonight.nvim/extras/lua/tokyonight_day.lua:61 terminal.black (vim.g.terminal_color_0 per ~/05-genizah/tokyonight.nvim/lua/tokyonight/theme.lua:33-57) .{ 0xf5, 0x2a, 0x65 }, // 1: ~/05-genizah/tokyonight.nvim/extras/lua/tokyonight_day.lua:71 terminal.red (vim.g.terminal_color_1 per ~/05-genizah/tokyonight.nvim/lua/tokyonight/theme.lua:33-57) .{ 0x58, 0x75, 0x39 }, // 2: ~/05-genizah/tokyonight.nvim/extras/lua/tokyonight_day.lua:67 terminal.green (vim.g.terminal_color_2 per ~/05-genizah/tokyonight.nvim/lua/tokyonight/theme.lua:33-57) diff --git a/core/themes/tokyonight_moon.zig b/core/themes/tokyonight_moon.zig index 04c1bccc..b96663e7 100644 --- a/core/themes/tokyonight_moon.zig +++ b/core/themes/tokyonight_moon.zig @@ -22,63 +22,63 @@ //! named colours); terminal.* omitted from palette since it is the ansi list. //! ansi matches extras/kitty/tokyonight_moon.conf color0-15. Lowercased from //! upstream uppercase hex: bg_dark1. +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - tag ground #1e2030 -> #1a1c2c: 1.05:1 off the page, now 1.10:1 (H: a band 1.1:1 off the page; R3: tone on tone) +//! - search hit #3e68d7 -> #543d2d: 3.03:1 off the page, now 1.52:1 (R8: 1.5:1, the text reading on it) +//! - error #c53b53 -> #e85c70: 3.00:1 on the page, now 4.51:1 (R9: 4.5:1, told from the text and the others) pub const theme = .{ .name = "tokyonight_moon", // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-moon.vim:193 Normal guibg - .bg = .{ 0x22, 0x24, 0x36 }, + .page = .{ 0x22, 0x24, 0x36 }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-moon.vim:193 Normal guifg - .fg = .{ 0xc8, 0xd3, 0xf5 }, + .text = .{ 0xc8, 0xd3, 0xf5 }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-moon.vim:245 Visual guibg - .sel_bg = .{ 0x2d, 0x3f, 0x76 }, + .selection = .{ 0x2d, 0x3f, 0x76 }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0xc8, 0xd3, 0xf5 }, + .selection_text = .{ 0xc8, 0xd3, 0xf5 }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-moon.vim:220 StatusLineNC guibg - .tag_bg = .{ 0x1e, 0x20, 0x30 }, + .tag = .{ 0x1e, 0x20, 0x30 }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-moon.vim:220 StatusLineNC guifg #3b4261, adjusted - .tag_fg = .{ 0x85, 0x8a, 0x9d }, + .tag_text = .{ 0x85, 0x8a, 0x9d }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-moon.vim:219 StatusLine guibg #1e2030, adjusted - .tag_active_bg = .{ 0x3a, 0x3e, 0x56 }, + .tag_focus = .{ 0x3a, 0x3e, 0x56 }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-moon.vim:219 StatusLine guifg #828bb8, adjusted - .tag_active_fg = .{ 0xa3, 0xa9, 0xca }, + .tag_focus_text = .{ 0xa3, 0xa9, 0xca }, // the focused grip: ~/05-genizah/tokyonight.nvim/extras/lua/tokyonight_moon.lua:15 blue; lualine normal-mode section a bg = colors.blue per ~/05-genizah/tokyonight.nvim/lua/lualine/themes/_tokyonight.lua:12 (tokyonight-moon.lua calls it with style "moon") - .box = .{ 0x82, 0xaa, 0xff }, - // derived: the grip at rest, the accent #82aaff faded toward the unfocused tag #1e2030 as far as 1.6:1 off it (0.26 of the way) - .box_dim = .{ 0x38, 0x44, 0x66 }, + .accent = .{ 0x82, 0xaa, 0xff }, // an unsaved grip: the original's warning colour, ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-moon.vim:48 DiagnosticWarn guifg - .box_dirty = .{ 0xff, 0xc7, 0x77 }, + .dirty = .{ 0xff, 0xc7, 0x77 }, // derived: the column grip, the original's string colour, ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-moon.vim:221 String guifg - .column_box = .{ 0xc3, 0xe8, 0x8d }, + .column_grip = .{ 0xc3, 0xe8, 0x8d }, // ~/05-genizah/tokyonight.nvim/lua/tokyonight/groups/treesitter.lua:36 ["@keyword"] = c.purple, ~/05-genizah/tokyonight.nvim/extras/lua/tokyonight_moon.lua:55 purple (vim's regex Keyword is #86e1fc) - .kw = .{ 0xfc, 0xa7, 0xea }, + .keyword = .{ 0xfc, 0xa7, 0xea }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-moon.vim:221 String guifg - .str = .{ 0xc3, 0xe8, 0x8d }, + .string = .{ 0xc3, 0xe8, 0x8d }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-moon.vim:27 Constant guifg (Number is not defined by the theme, so Neovim's default link Number->Constant applies) - .num = .{ 0xff, 0x96, 0x6c }, + .number = .{ 0xff, 0x96, 0x6c }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-moon.vim:24 Comment guifg .comment = .{ 0x63, 0x6d, 0xa6 }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-moon.vim:91 LineNr guifg - .lineno = .{ 0x3b, 0x42, 0x61 }, + .line_number = .{ 0x3b, 0x42, 0x61 }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-moon.vim:34 CursorLineNr guifg - .lineno_active = .{ 0xff, 0x96, 0x6c }, + .line_number_current = .{ 0xff, 0x96, 0x6c }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-moon.vim:201 PmenuSbar guibg - .scroll_track = .{ 0x27, 0x29, 0x3a }, + .rail = .{ 0x27, 0x29, 0x3a }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-moon.vim:203 PmenuThumb guibg #3b4261, adjusted - .scroll_thumb = .{ 0x3e, 0x45, 0x64 }, + .rail_thumb = .{ 0x3e, 0x45, 0x64 }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-moon.vim:250 WinSeparator guifg #1b1d2b, adjusted - .border = .{ 0x41, 0x45, 0x57 }, + .rule = .{ 0x41, 0x45, 0x57 }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-moon.vim:207 Search guibg - .search_bg = .{ 0x3e, 0x68, 0xd7 }, - // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-moon.vim:207 Search guifg - .search_fg = .{ 0xc8, 0xd3, 0xf5 }, + .hit = .{ 0x3e, 0x68, 0xd7 }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-moon.vim:36 DiagnosticError guifg - .diagnostic_error = .{ 0xc5, 0x3b, 0x53 }, + .@"error" = .{ 0xc5, 0x3b, 0x53 }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-moon.vim:48 DiagnosticWarn guifg - .diagnostic_warning = .{ 0xff, 0xc7, 0x77 }, + .warning = .{ 0xff, 0xc7, 0x77 }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-moon.vim:38 DiagnosticInfo guifg - .diagnostic_info = .{ 0x0d, 0xb9, 0xd7 }, + .info = .{ 0x0d, 0xb9, 0xd7 }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-moon.vim:37 DiagnosticHint guifg - .diagnostic_hint = .{ 0x4f, 0xd6, 0xbe }, - .palette = .{ + .hint = .{ 0x4f, 0xd6, 0xbe }, + .ansi = .{ .{ 0x1b, 0x1d, 0x2b }, // 0: ~/05-genizah/tokyonight.nvim/extras/lua/tokyonight_moon.lua:61 terminal.black (vim.g.terminal_color_0 per ~/05-genizah/tokyonight.nvim/lua/tokyonight/theme.lua:33-57) .{ 0xff, 0x75, 0x7f }, // 1: ~/05-genizah/tokyonight.nvim/extras/lua/tokyonight_moon.lua:71 terminal.red (vim.g.terminal_color_1 per ~/05-genizah/tokyonight.nvim/lua/tokyonight/theme.lua:33-57) .{ 0xc3, 0xe8, 0x8d }, // 2: ~/05-genizah/tokyonight.nvim/extras/lua/tokyonight_moon.lua:67 terminal.green (vim.g.terminal_color_2 per ~/05-genizah/tokyonight.nvim/lua/tokyonight/theme.lua:33-57) diff --git a/core/themes/tokyonight_night.zig b/core/themes/tokyonight_night.zig index eeb7e5a5..792b1a25 100644 --- a/core/themes/tokyonight_night.zig +++ b/core/themes/tokyonight_night.zig @@ -20,63 +20,63 @@ //! named colours); terminal.* omitted from palette since it is the ansi list. //! ansi matches extras/kitty/tokyonight_night.conf color0-15. Lowercased from //! upstream uppercase hex: bg_dark1. +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - tag ground #16161e -> #101018: 1.05:1 off the page, now 1.11:1 (H: a band 1.1:1 off the page; R3: tone on tone) +//! - search hit #3d59a1 -> #4e351d: 2.56:1 off the page, now 1.51:1 (R8: 1.5:1, the text reading on it) +//! - error #db4b4b -> #e25251: 4.17:1 on the page, now 4.52:1 (R9: 4.5:1, told from the text and the others) pub const theme = .{ .name = "tokyonight_night", // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-night.vim:193 Normal guibg - .bg = .{ 0x1a, 0x1b, 0x26 }, + .page = .{ 0x1a, 0x1b, 0x26 }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-night.vim:193 Normal guifg - .fg = .{ 0xc0, 0xca, 0xf5 }, + .text = .{ 0xc0, 0xca, 0xf5 }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-night.vim:245 Visual guibg - .sel_bg = .{ 0x28, 0x34, 0x57 }, + .selection = .{ 0x28, 0x34, 0x57 }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0xc0, 0xca, 0xf5 }, + .selection_text = .{ 0xc0, 0xca, 0xf5 }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-night.vim:220 StatusLineNC guibg - .tag_bg = .{ 0x16, 0x16, 0x1e }, + .tag = .{ 0x16, 0x16, 0x1e }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-night.vim:220 StatusLineNC guifg #3b4261, adjusted - .tag_fg = .{ 0x7e, 0x82, 0x97 }, + .tag_text = .{ 0x7e, 0x82, 0x97 }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-night.vim:219 StatusLine guibg #16161e, adjusted - .tag_active_bg = .{ 0x36, 0x38, 0x46 }, + .tag_focus = .{ 0x36, 0x38, 0x46 }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-night.vim:219 StatusLine guifg - .tag_active_fg = .{ 0xa9, 0xb1, 0xd6 }, + .tag_focus_text = .{ 0xa9, 0xb1, 0xd6 }, // the focused grip: ~/05-genizah/tokyonight.nvim/extras/lua/tokyonight_night.lua:15 blue; lualine normal-mode section a bg = colors.blue per ~/05-genizah/tokyonight.nvim/lua/lualine/themes/_tokyonight.lua:12 (tokyonight-night.lua calls it with style "night") - .box = .{ 0x7a, 0xa2, 0xf7 }, - // derived: the grip at rest, the accent #7aa2f7 faded toward the unfocused tag #16161e as far as 1.6:1 off it (0.28 of the way) - .box_dim = .{ 0x32, 0x3d, 0x5b }, + .accent = .{ 0x7a, 0xa2, 0xf7 }, // an unsaved grip: the original's modified colour, ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-night.vim:254 diffChanged guifg (= palette git.change) - .box_dirty = .{ 0x61, 0x83, 0xbb }, + .dirty = .{ 0x61, 0x83, 0xbb }, // derived: the column grip, the original's type colour, ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-night.vim:228 Type guifg - .column_box = .{ 0x2a, 0xc3, 0xde }, + .column_grip = .{ 0x2a, 0xc3, 0xde }, // ~/05-genizah/tokyonight.nvim/lua/tokyonight/groups/treesitter.lua:36 ["@keyword"] = c.purple, ~/05-genizah/tokyonight.nvim/extras/lua/tokyonight_night.lua:55 purple (vim's regex Keyword is #7dcfff) - .kw = .{ 0x9d, 0x7c, 0xd8 }, + .keyword = .{ 0x9d, 0x7c, 0xd8 }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-night.vim:221 String guifg - .str = .{ 0x9e, 0xce, 0x6a }, + .string = .{ 0x9e, 0xce, 0x6a }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-night.vim:27 Constant guifg (Number is not defined by the theme, so Neovim's default link Number->Constant applies) - .num = .{ 0xff, 0x9e, 0x64 }, + .number = .{ 0xff, 0x9e, 0x64 }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-night.vim:24 Comment guifg .comment = .{ 0x56, 0x5f, 0x89 }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-night.vim:91 LineNr guifg - .lineno = .{ 0x3b, 0x42, 0x61 }, + .line_number = .{ 0x3b, 0x42, 0x61 }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-night.vim:34 CursorLineNr guifg - .lineno_active = .{ 0xff, 0x9e, 0x64 }, + .line_number_current = .{ 0xff, 0x9e, 0x64 }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-night.vim:201 PmenuSbar guibg - .scroll_track = .{ 0x1f, 0x1f, 0x29 }, + .rail = .{ 0x1f, 0x1f, 0x29 }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-night.vim:203 PmenuThumb guibg - .scroll_thumb = .{ 0x3b, 0x42, 0x61 }, + .rail_thumb = .{ 0x3b, 0x42, 0x61 }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-night.vim:250 WinSeparator guifg #15161e, adjusted - .border = .{ 0x3b, 0x3e, 0x4d }, + .rule = .{ 0x3b, 0x3e, 0x4d }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-night.vim:207 Search guibg - .search_bg = .{ 0x3d, 0x59, 0xa1 }, - // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-night.vim:207 Search guifg - .search_fg = .{ 0xc0, 0xca, 0xf5 }, + .hit = .{ 0x3d, 0x59, 0xa1 }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-night.vim:36 DiagnosticError guifg - .diagnostic_error = .{ 0xdb, 0x4b, 0x4b }, + .@"error" = .{ 0xdb, 0x4b, 0x4b }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-night.vim:48 DiagnosticWarn guifg - .diagnostic_warning = .{ 0xe0, 0xaf, 0x68 }, + .warning = .{ 0xe0, 0xaf, 0x68 }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-night.vim:38 DiagnosticInfo guifg - .diagnostic_info = .{ 0x0d, 0xb9, 0xd7 }, + .info = .{ 0x0d, 0xb9, 0xd7 }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-night.vim:37 DiagnosticHint guifg - .diagnostic_hint = .{ 0x1a, 0xbc, 0x9c }, - .palette = .{ + .hint = .{ 0x1a, 0xbc, 0x9c }, + .ansi = .{ .{ 0x15, 0x16, 0x1e }, // 0: ~/05-genizah/tokyonight.nvim/extras/lua/tokyonight_night.lua:61 terminal.black (vim.g.terminal_color_0 per ~/05-genizah/tokyonight.nvim/lua/tokyonight/theme.lua:33-57) .{ 0xf7, 0x76, 0x8e }, // 1: ~/05-genizah/tokyonight.nvim/extras/lua/tokyonight_night.lua:71 terminal.red (vim.g.terminal_color_1 per ~/05-genizah/tokyonight.nvim/lua/tokyonight/theme.lua:33-57) .{ 0x9e, 0xce, 0x6a }, // 2: ~/05-genizah/tokyonight.nvim/extras/lua/tokyonight_night.lua:67 terminal.green (vim.g.terminal_color_2 per ~/05-genizah/tokyonight.nvim/lua/tokyonight/theme.lua:33-57) diff --git a/core/themes/tokyonight_storm.zig b/core/themes/tokyonight_storm.zig index 5fadf177..f46dc56b 100644 --- a/core/themes/tokyonight_storm.zig +++ b/core/themes/tokyonight_storm.zig @@ -20,63 +20,65 @@ //! (colors.blue). Palette skips 'none' and the 'rainbow' list (duplicates of //! named colours); terminal.* omitted from palette since it is the ansi list. //! ansi matches extras/kitty/tokyonight_storm.conf color0-15. +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - tag ground #1f2335 -> #1c2032: 1.07:1 off the page, now 1.11:1 (H: a band 1.1:1 off the page; R3: tone on tone) +//! - unsaved grip #6183bb -> #6c8fc7: 4.20:1 on the tag, now 4.91:1 (R6: 3:1 on both tags) +//! - selection #2e3c64 -> #2d3c7a: 1.35:1 off the page, now 1.41:1 (R7) +//! - search hit #3d59a1 -> #554031: 2.18:1 off the page, now 1.50:1 (R8: 1.5:1, the text reading on it) +//! - error #db4b4b -> #f05f5c: 3.55:1 on the page, now 4.51:1 (R9: 4.5:1, told from the text and the others) pub const theme = .{ .name = "tokyonight_storm", // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-storm.vim:193 Normal guibg - .bg = .{ 0x24, 0x28, 0x3b }, + .page = .{ 0x24, 0x28, 0x3b }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-storm.vim:193 Normal guifg - .fg = .{ 0xc0, 0xca, 0xf5 }, + .text = .{ 0xc0, 0xca, 0xf5 }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-storm.vim:245 Visual guibg - .sel_bg = .{ 0x2e, 0x3c, 0x64 }, + .selection = .{ 0x2e, 0x3c, 0x64 }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0xc0, 0xca, 0xf5 }, + .selection_text = .{ 0xc0, 0xca, 0xf5 }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-storm.vim:220 StatusLineNC guibg - .tag_bg = .{ 0x1f, 0x23, 0x35 }, + .tag = .{ 0x1f, 0x23, 0x35 }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-storm.vim:220 StatusLineNC guifg #3b4261, adjusted - .tag_fg = .{ 0x85, 0x8a, 0x9d }, + .tag_text = .{ 0x85, 0x8a, 0x9d }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-storm.vim:219 StatusLine guibg #1f2335, adjusted - .tag_active_bg = .{ 0x3d, 0x42, 0x58 }, + .tag_focus = .{ 0x3d, 0x42, 0x58 }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-storm.vim:219 StatusLine guifg - .tag_active_fg = .{ 0xa9, 0xb1, 0xd6 }, + .tag_focus_text = .{ 0xa9, 0xb1, 0xd6 }, // the focused grip: ~/05-genizah/tokyonight.nvim/extras/lua/tokyonight_storm.lua:15 blue; lualine normal-mode section a bg = colors.blue per ~/05-genizah/tokyonight.nvim/lua/lualine/themes/_tokyonight.lua:12 (tokyonight-storm.lua calls it with style "storm") - .box = .{ 0x7a, 0xa2, 0xf7 }, - // derived: the grip at rest, the accent #7aa2f7 faded toward the unfocused tag #1f2335 as far as 1.6:1 off it (0.26 of the way) - .box_dim = .{ 0x37, 0x44, 0x67 }, + .accent = .{ 0x7a, 0xa2, 0xf7 }, // an unsaved grip: the original's modified colour, ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-storm.vim:254 diffChanged guifg (= palette git.change) - .box_dirty = .{ 0x61, 0x83, 0xbb }, + .dirty = .{ 0x61, 0x83, 0xbb }, // derived: the column grip, the original's type colour, ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-storm.vim:228 Type guifg - .column_box = .{ 0x2a, 0xc3, 0xde }, + .column_grip = .{ 0x2a, 0xc3, 0xde }, // ~/05-genizah/tokyonight.nvim/lua/tokyonight/groups/treesitter.lua:36 ["@keyword"] = c.purple, ~/05-genizah/tokyonight.nvim/extras/lua/tokyonight_storm.lua:55 purple (vim's regex Keyword is #7dcfff) - .kw = .{ 0x9d, 0x7c, 0xd8 }, + .keyword = .{ 0x9d, 0x7c, 0xd8 }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-storm.vim:221 String guifg - .str = .{ 0x9e, 0xce, 0x6a }, + .string = .{ 0x9e, 0xce, 0x6a }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-storm.vim:27 Constant guifg (Number is not defined by the theme, so Neovim's default link Number->Constant applies) - .num = .{ 0xff, 0x9e, 0x64 }, + .number = .{ 0xff, 0x9e, 0x64 }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-storm.vim:24 Comment guifg .comment = .{ 0x56, 0x5f, 0x89 }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-storm.vim:91 LineNr guifg - .lineno = .{ 0x3b, 0x42, 0x61 }, + .line_number = .{ 0x3b, 0x42, 0x61 }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-storm.vim:34 CursorLineNr guifg - .lineno_active = .{ 0xff, 0x9e, 0x64 }, + .line_number_current = .{ 0xff, 0x9e, 0x64 }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-storm.vim:201 PmenuSbar guibg - .scroll_track = .{ 0x27, 0x2b, 0x3f }, + .rail = .{ 0x27, 0x2b, 0x3f }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-storm.vim:203 PmenuThumb guibg #3b4261, adjusted - .scroll_thumb = .{ 0x40, 0x47, 0x67 }, + .rail_thumb = .{ 0x40, 0x47, 0x67 }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-storm.vim:250 WinSeparator guifg #1d202f, adjusted - .border = .{ 0x44, 0x49, 0x5f }, + .rule = .{ 0x44, 0x49, 0x5f }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-storm.vim:207 Search guibg - .search_bg = .{ 0x3d, 0x59, 0xa1 }, - // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-storm.vim:207 Search guifg - .search_fg = .{ 0xc0, 0xca, 0xf5 }, + .hit = .{ 0x3d, 0x59, 0xa1 }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-storm.vim:36 DiagnosticError guifg - .diagnostic_error = .{ 0xdb, 0x4b, 0x4b }, + .@"error" = .{ 0xdb, 0x4b, 0x4b }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-storm.vim:48 DiagnosticWarn guifg - .diagnostic_warning = .{ 0xe0, 0xaf, 0x68 }, + .warning = .{ 0xe0, 0xaf, 0x68 }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-storm.vim:38 DiagnosticInfo guifg - .diagnostic_info = .{ 0x0d, 0xb9, 0xd7 }, + .info = .{ 0x0d, 0xb9, 0xd7 }, // ~/05-genizah/tokyonight.nvim/extras/vim/colors/tokyonight-storm.vim:37 DiagnosticHint guifg - .diagnostic_hint = .{ 0x1a, 0xbc, 0x9c }, - .palette = .{ + .hint = .{ 0x1a, 0xbc, 0x9c }, + .ansi = .{ .{ 0x1d, 0x20, 0x2f }, // 0: ~/05-genizah/tokyonight.nvim/extras/lua/tokyonight_storm.lua:61 terminal.black (vim.g.terminal_color_0 per ~/05-genizah/tokyonight.nvim/lua/tokyonight/theme.lua:33-57) .{ 0xf7, 0x76, 0x8e }, // 1: ~/05-genizah/tokyonight.nvim/extras/lua/tokyonight_storm.lua:71 terminal.red (vim.g.terminal_color_1 per ~/05-genizah/tokyonight.nvim/lua/tokyonight/theme.lua:33-57) .{ 0x9e, 0xce, 0x6a }, // 2: ~/05-genizah/tokyonight.nvim/extras/lua/tokyonight_storm.lua:67 terminal.green (vim.g.terminal_color_2 per ~/05-genizah/tokyonight.nvim/lua/tokyonight/theme.lua:33-57) diff --git a/core/themes/vimbones.zig b/core/themes/vimbones.zig index 1823c40d..e2f5ea34 100644 --- a/core/themes/vimbones.zig +++ b/core/themes/vimbones.zig @@ -18,63 +18,62 @@ //! links to StatusLine, TabLineFill to StatusLineNC. Accent is the lualine //! normal-mode a bg, a muted neutral (the theme is contrast-based, not //! hue-accented). Modified = Changed fg. +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - focused grip #a2a287 -> #6e6e55: 1.51:1 on the focused tag, now 3.02:1 (R6: 3:1) +//! - selection #d7d7d7 -> #d8d8b3: 1.24:1 off the page, now 1.25:1 (R7) pub const theme = .{ .name = "vimbones", // ~/05-genizah/zenbones.nvim/colors/vimbones.vim:34 Normal guibg - .bg = .{ 0xf0, 0xf0, 0xca }, + .page = .{ 0xf0, 0xf0, 0xca }, // ~/05-genizah/zenbones.nvim/colors/vimbones.vim:34 Normal guifg - .fg = .{ 0x35, 0x35, 0x35 }, + .text = .{ 0x35, 0x35, 0x35 }, // ~/05-genizah/zenbones.nvim/colors/vimbones.vim:212 Visual guibg - .sel_bg = .{ 0xd7, 0xd7, 0xd7 }, + .selection = .{ 0xd7, 0xd7, 0xd7 }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0x35, 0x35, 0x35 }, + .selection_text = .{ 0x35, 0x35, 0x35 }, // ~/05-genizah/zenbones.nvim/colors/vimbones.vim:199 StatusLineNC guibg - .tag_bg = .{ 0xdf, 0xdf, 0xbc }, + .tag = .{ 0xdf, 0xdf, 0xbc }, // ~/05-genizah/zenbones.nvim/colors/vimbones.vim:199 StatusLineNC guifg #686868, adjusted - .tag_fg = .{ 0x60, 0x60, 0x60 }, + .tag_text = .{ 0x60, 0x60, 0x60 }, // ~/05-genizah/zenbones.nvim/colors/vimbones.vim:196 StatusLine guibg #d1d1b0, adjusted - .tag_active_bg = .{ 0xc7, 0xc7, 0xa8 }, + .tag_focus = .{ 0xc7, 0xc7, 0xa8 }, // ~/05-genizah/zenbones.nvim/colors/vimbones.vim:196 StatusLine guifg - .tag_active_fg = .{ 0x35, 0x35, 0x35 }, + .tag_focus_text = .{ 0x35, 0x35, 0x35 }, // the focused grip: ~/05-genizah/zenbones.nvim/lua/lualine/themes/vimbones_default.lua:8 normal.a bg (lualine theme, default ness; generator derives it as PmenuSbar.bg.abs_da(3), lua/zenbones/shipwright/runners/lualine.lua:66) - .box = .{ 0xa2, 0xa2, 0x87 }, - // derived: the grip at rest, the accent #b0b093 faded toward the unfocused tag #dfdfbc as far as 1.6:1 off it (1.00 of the way) - .box_dim = .{ 0xb0, 0xb0, 0x93 }, + .accent = .{ 0xa2, 0xa2, 0x87 }, // an unsaved grip: the original's modified colour, ~/05-genizah/zenbones.nvim/colors/vimbones.vim:42 Changed guifg - .box_dirty = .{ 0x28, 0x64, 0x86 }, + .dirty = .{ 0x28, 0x64, 0x86 }, // derived: the column grip, the original's type colour, ~/05-genizah/zenbones.nvim/colors/vimbones.vim:208 Type guifg - .column_box = .{ 0x5b, 0x5b, 0x42 }, + .column_grip = .{ 0x5b, 0x5b, 0x42 }, // ~/05-genizah/zenbones.nvim/colors/vimbones.vim:193 Statement guifg (no Keyword group defined; Vim default links Keyword to Statement) - .kw = .{ 0x15, 0x6a, 0x29 }, + .keyword = .{ 0x15, 0x6a, 0x29 }, // ~/05-genizah/zenbones.nvim/colors/vimbones.vim:202 String guifg - .str = .{ 0x63, 0x63, 0x63 }, + .string = .{ 0x63, 0x63, 0x63 }, // ~/05-genizah/zenbones.nvim/colors/vimbones.vim:165 Number guifg - .num = .{ 0x2a, 0x65, 0x35 }, + .number = .{ 0x2a, 0x65, 0x35 }, // ~/05-genizah/zenbones.nvim/colors/vimbones.vim:48 Comment guifg .comment = .{ 0x8c, 0x8c, 0x7c }, // ~/05-genizah/zenbones.nvim/colors/vimbones.vim:151 LineNr guifg - .lineno = .{ 0x9a, 0x9a, 0x81 }, + .line_number = .{ 0x9a, 0x9a, 0x81 }, // ~/05-genizah/zenbones.nvim/colors/vimbones.vim:63 CursorLineNr guifg - .lineno_active = .{ 0x35, 0x35, 0x35 }, + .line_number_current = .{ 0x35, 0x35, 0x35 }, // ~/05-genizah/zenbones.nvim/colors/vimbones.vim:168 PmenuSbar guibg - .scroll_track = .{ 0xa7, 0xa7, 0x8d }, + .rail = .{ 0xa7, 0xa7, 0x8d }, // ~/05-genizah/zenbones.nvim/colors/vimbones.vim:170 PmenuThumb guibg - .scroll_thumb = .{ 0xf9, 0xf9, 0xd2 }, + .rail_thumb = .{ 0xf9, 0xf9, 0xd2 }, // ~/05-genizah/zenbones.nvim/colors/vimbones.vim:219 WinSeparator guifg - .border = .{ 0x9a, 0x9a, 0x81 }, + .rule = .{ 0x9a, 0x9a, 0x81 }, // ~/05-genizah/zenbones.nvim/colors/vimbones.vim:174 Search guibg - .search_bg = .{ 0xde, 0xb9, 0xd6 }, - // ~/05-genizah/zenbones.nvim/colors/vimbones.vim:174 Search guifg - .search_fg = .{ 0x35, 0x35, 0x35 }, + .hit = .{ 0xde, 0xb9, 0xd6 }, // ~/05-genizah/zenbones.nvim/colors/vimbones.vim:114 Error guifg via DiagnosticError->Error (link :115) - .diagnostic_error = .{ 0xa8, 0x33, 0x4c }, + .@"error" = .{ 0xa8, 0x33, 0x4c }, // ~/05-genizah/zenbones.nvim/colors/vimbones.vim:213 WarningMsg guifg via DiagnosticWarn->WarningMsg (link :214) - .diagnostic_warning = .{ 0x94, 0x49, 0x27 }, + .warning = .{ 0x94, 0x49, 0x27 }, // ~/05-genizah/zenbones.nvim/colors/vimbones.vim:73 DiagnosticInfo guifg - .diagnostic_info = .{ 0x28, 0x64, 0x86 }, + .info = .{ 0x28, 0x64, 0x86 }, // ~/05-genizah/zenbones.nvim/colors/vimbones.vim:68 DiagnosticHint guifg - .diagnostic_hint = .{ 0x88, 0x50, 0x7d }, - .palette = .{ + .hint = .{ 0x88, 0x50, 0x7d }, + .ansi = .{ .{ 0xf0, 0xf0, 0xca }, // 0: ~/05-genizah/zenbones.nvim/colors/vimbones.vim:18 g:terminal_color_0 .{ 0xa8, 0x33, 0x4c }, // 1: ~/05-genizah/zenbones.nvim/colors/vimbones.vim:19 g:terminal_color_1 .{ 0x4f, 0x6c, 0x31 }, // 2: ~/05-genizah/zenbones.nvim/colors/vimbones.vim:20 g:terminal_color_2 diff --git a/core/themes/zenbones_dark.zig b/core/themes/zenbones_dark.zig index 89f5a934..6d5b5f55 100644 --- a/core/themes/zenbones_dark.zig +++ b/core/themes/zenbones_dark.zig @@ -15,63 +15,62 @@ //! StatusLine, TabLineFill to StatusLineNC. Accent is the lualine normal-mode a //! bg, a muted neutral (the theme is contrast-based, not hue-accented). //! Modified = Changed fg. +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - focused grip #635b58 -> #928986: 1.55:1 on the focused tag, now 3.00:1 (R6: 3:1) +//! - search hit #65435e -> #5a2c14: 2.10:1 off the page, now 1.50:1 (R8: 1.5:1, the text reading on it) pub const theme = .{ .name = "zenbones_dark", // ~/05-genizah/zenbones.nvim/colors/zenbones.vim:33 Normal guibg - .bg = .{ 0x1c, 0x19, 0x17 }, + .page = .{ 0x1c, 0x19, 0x17 }, // ~/05-genizah/zenbones.nvim/colors/zenbones.vim:33 Normal guifg - .fg = .{ 0xb4, 0xbd, 0xc3 }, + .text = .{ 0xb4, 0xbd, 0xc3 }, // ~/05-genizah/zenbones.nvim/colors/zenbones.vim:211 Visual guibg - .sel_bg = .{ 0x3d, 0x40, 0x42 }, + .selection = .{ 0x3d, 0x40, 0x42 }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0xb4, 0xbd, 0xc3 }, + .selection_text = .{ 0xb4, 0xbd, 0xc3 }, // ~/05-genizah/zenbones.nvim/colors/zenbones.vim:198 StatusLineNC guibg - .tag_bg = .{ 0x27, 0x23, 0x21 }, + .tag = .{ 0x27, 0x23, 0x21 }, // ~/05-genizah/zenbones.nvim/colors/zenbones.vim:198 StatusLineNC guifg - .tag_fg = .{ 0xca, 0xd0, 0xd4 }, + .tag_text = .{ 0xca, 0xd0, 0xd4 }, // ~/05-genizah/zenbones.nvim/colors/zenbones.vim:195 StatusLine guibg #352f2d, adjusted - .tag_active_bg = .{ 0x47, 0x3f, 0x3d }, + .tag_focus = .{ 0x47, 0x3f, 0x3d }, // ~/05-genizah/zenbones.nvim/colors/zenbones.vim:195 StatusLine guifg - .tag_active_fg = .{ 0xb4, 0xbd, 0xc3 }, + .tag_focus_text = .{ 0xb4, 0xbd, 0xc3 }, // the focused grip: ~/05-genizah/zenbones.nvim/lua/lualine/themes/zenbones_dark_default.lua:8 normal.a bg (lualine theme, default ness; generator derives it as PmenuSbar.bg.abs_da(3), lua/zenbones/shipwright/runners/lualine.lua:66) - .box = .{ 0x63, 0x5b, 0x58 }, - // derived: the grip at rest, the accent #59514d faded toward the unfocused tag #272321 as far as 1.6:1 off it (0.72 of the way) - .box_dim = .{ 0x4b, 0x44, 0x41 }, + .accent = .{ 0x63, 0x5b, 0x58 }, // an unsaved grip: the original's modified colour, ~/05-genizah/zenbones.nvim/colors/zenbones.vim:41 Changed guifg - .box_dirty = .{ 0x60, 0x99, 0xc0 }, + .dirty = .{ 0x60, 0x99, 0xc0 }, // derived: the column grip, the original's type colour, ~/05-genizah/zenbones.nvim/colors/zenbones.vim:207 Type guifg - .column_box = .{ 0xa1, 0x93, 0x8c }, + .column_grip = .{ 0xa1, 0x93, 0x8c }, // ~/05-genizah/zenbones.nvim/colors/zenbones.vim:191 Statement guifg (no Keyword group defined; Vim default links Keyword to Statement) - .kw = .{ 0xb4, 0xbd, 0xc3 }, + .keyword = .{ 0xb4, 0xbd, 0xc3 }, // ~/05-genizah/zenbones.nvim/colors/zenbones.vim:201 String guifg - .str = .{ 0x86, 0x8c, 0x91 }, + .string = .{ 0x86, 0x8c, 0x91 }, // ~/05-genizah/zenbones.nvim/colors/zenbones.vim:164 Number guifg - .num = .{ 0x86, 0x8c, 0x91 }, + .number = .{ 0x86, 0x8c, 0x91 }, // ~/05-genizah/zenbones.nvim/colors/zenbones.vim:47 Comment guifg .comment = .{ 0x6e, 0x67, 0x63 }, // ~/05-genizah/zenbones.nvim/colors/zenbones.vim:150 LineNr guifg - .lineno = .{ 0x68, 0x5f, 0x5a }, + .line_number = .{ 0x68, 0x5f, 0x5a }, // ~/05-genizah/zenbones.nvim/colors/zenbones.vim:62 CursorLineNr guifg - .lineno_active = .{ 0xb4, 0xbd, 0xc3 }, + .line_number_current = .{ 0xb4, 0xbd, 0xc3 }, // ~/05-genizah/zenbones.nvim/colors/zenbones.vim:167 PmenuSbar guibg - .scroll_track = .{ 0x61, 0x58, 0x53 }, + .rail = .{ 0x61, 0x58, 0x53 }, // ~/05-genizah/zenbones.nvim/colors/zenbones.vim:169 PmenuThumb guibg - .scroll_thumb = .{ 0x8e, 0x81, 0x7b }, + .rail_thumb = .{ 0x8e, 0x81, 0x7b }, // ~/05-genizah/zenbones.nvim/colors/zenbones.vim:218 WinSeparator guifg - .border = .{ 0x68, 0x5f, 0x5a }, + .rule = .{ 0x68, 0x5f, 0x5a }, // ~/05-genizah/zenbones.nvim/colors/zenbones.vim:172 Search guibg - .search_bg = .{ 0x65, 0x43, 0x5e }, - // ~/05-genizah/zenbones.nvim/colors/zenbones.vim:172 Search guifg - .search_fg = .{ 0xb4, 0xbd, 0xc3 }, + .hit = .{ 0x65, 0x43, 0x5e }, // ~/05-genizah/zenbones.nvim/colors/zenbones.vim:113 Error guifg via DiagnosticError->Error (link :114) - .diagnostic_error = .{ 0xde, 0x6e, 0x7c }, + .@"error" = .{ 0xde, 0x6e, 0x7c }, // ~/05-genizah/zenbones.nvim/colors/zenbones.vim:212 WarningMsg guifg via DiagnosticWarn->WarningMsg (link :213) - .diagnostic_warning = .{ 0xb7, 0x7e, 0x64 }, + .warning = .{ 0xb7, 0x7e, 0x64 }, // ~/05-genizah/zenbones.nvim/colors/zenbones.vim:72 DiagnosticInfo guifg - .diagnostic_info = .{ 0x60, 0x99, 0xc0 }, + .info = .{ 0x60, 0x99, 0xc0 }, // ~/05-genizah/zenbones.nvim/colors/zenbones.vim:67 DiagnosticHint guifg - .diagnostic_hint = .{ 0xb2, 0x79, 0xa7 }, - .palette = .{ + .hint = .{ 0xb2, 0x79, 0xa7 }, + .ansi = .{ .{ 0x1c, 0x19, 0x17 }, // 0: ~/05-genizah/zenbones.nvim/colors/zenbones.vim:17 g:terminal_color_0 .{ 0xde, 0x6e, 0x7c }, // 1: ~/05-genizah/zenbones.nvim/colors/zenbones.vim:18 g:terminal_color_1 .{ 0x81, 0x9b, 0x69 }, // 2: ~/05-genizah/zenbones.nvim/colors/zenbones.vim:19 g:terminal_color_2 diff --git a/core/themes/zenbones_light.zig b/core/themes/zenbones_light.zig index 8d5cc2b8..b60b6d54 100644 --- a/core/themes/zenbones_light.zig +++ b/core/themes/zenbones_light.zig @@ -16,63 +16,62 @@ //! StatusLine, TabLineFill to StatusLineNC. Accent is the lualine normal-mode a //! bg, a muted neutral (the theme is contrast-based, not hue-accented). //! Modified = Changed fg. +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - focused grip #ac9d96 -> #786a64: 1.52:1 on the focused tag, now 3.02:1 (R6: 3:1) +//! - selection #cbd9e3 -> #ccd7e0: 1.24:1 off the page, now 1.26:1 (R7) pub const theme = .{ .name = "zenbones_light", // ~/05-genizah/zenbones.nvim/colors/zenbones.vim:267 Normal guibg - .bg = .{ 0xf0, 0xed, 0xec }, + .page = .{ 0xf0, 0xed, 0xec }, // ~/05-genizah/zenbones.nvim/colors/zenbones.vim:267 Normal guifg - .fg = .{ 0x2c, 0x36, 0x3c }, + .text = .{ 0x2c, 0x36, 0x3c }, // ~/05-genizah/zenbones.nvim/colors/zenbones.vim:445 Visual guibg - .sel_bg = .{ 0xcb, 0xd9, 0xe3 }, + .selection = .{ 0xcb, 0xd9, 0xe3 }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0x2c, 0x36, 0x3c }, + .selection_text = .{ 0x2c, 0x36, 0x3c }, // ~/05-genizah/zenbones.nvim/colors/zenbones.vim:432 StatusLineNC guibg - .tag_bg = .{ 0xe1, 0xdc, 0xd9 }, + .tag = .{ 0xe1, 0xdc, 0xd9 }, // ~/05-genizah/zenbones.nvim/colors/zenbones.vim:432 StatusLineNC guifg #596a76, adjusted - .tag_fg = .{ 0x52, 0x62, 0x6d }, + .tag_text = .{ 0x52, 0x62, 0x6d }, // ~/05-genizah/zenbones.nvim/colors/zenbones.vim:429 StatusLine guibg #d6cdc9, adjusted - .tag_active_bg = .{ 0xcf, 0xc3, 0xbf }, + .tag_focus = .{ 0xcf, 0xc3, 0xbf }, // ~/05-genizah/zenbones.nvim/colors/zenbones.vim:429 StatusLine guifg - .tag_active_fg = .{ 0x2c, 0x36, 0x3c }, + .tag_focus_text = .{ 0x2c, 0x36, 0x3c }, // the focused grip: ~/05-genizah/zenbones.nvim/lua/lualine/themes/zenbones_light_default.lua:8 normal.a bg (lualine theme, default ness; generator derives it as PmenuSbar.bg.abs_da(3), lua/zenbones/shipwright/runners/lualine.lua:66) - .box = .{ 0xac, 0x9d, 0x96 }, - // derived: the grip at rest, the accent #bbaba3 faded toward the unfocused tag #e1dcd9 as far as 1.6:1 off it (0.98 of the way) - .box_dim = .{ 0xbc, 0xac, 0xa4 }, + .accent = .{ 0xac, 0x9d, 0x96 }, // an unsaved grip: the original's modified colour, ~/05-genizah/zenbones.nvim/colors/zenbones.vim:275 Changed guifg - .box_dirty = .{ 0x28, 0x64, 0x86 }, + .dirty = .{ 0x28, 0x64, 0x86 }, // derived: the column grip, the original's type colour, ~/05-genizah/zenbones.nvim/colors/zenbones.vim:441 Type guifg - .column_box = .{ 0x6a, 0x55, 0x49 }, + .column_grip = .{ 0x6a, 0x55, 0x49 }, // ~/05-genizah/zenbones.nvim/colors/zenbones.vim:425 Statement guifg (no Keyword group defined; Vim default links Keyword to Statement) - .kw = .{ 0x2c, 0x36, 0x3c }, + .keyword = .{ 0x2c, 0x36, 0x3c }, // ~/05-genizah/zenbones.nvim/colors/zenbones.vim:435 String guifg - .str = .{ 0x55, 0x65, 0x70 }, + .string = .{ 0x55, 0x65, 0x70 }, // ~/05-genizah/zenbones.nvim/colors/zenbones.vim:398 Number guifg - .num = .{ 0x55, 0x65, 0x70 }, + .number = .{ 0x55, 0x65, 0x70 }, // ~/05-genizah/zenbones.nvim/colors/zenbones.vim:281 Comment guifg .comment = .{ 0x94, 0x89, 0x85 }, // ~/05-genizah/zenbones.nvim/colors/zenbones.vim:384 LineNr guifg - .lineno = .{ 0xa4, 0x96, 0x8f }, + .line_number = .{ 0xa4, 0x96, 0x8f }, // ~/05-genizah/zenbones.nvim/colors/zenbones.vim:296 CursorLineNr guifg - .lineno_active = .{ 0x2c, 0x36, 0x3c }, + .line_number_current = .{ 0x2c, 0x36, 0x3c }, // ~/05-genizah/zenbones.nvim/colors/zenbones.vim:401 PmenuSbar guibg - .scroll_track = .{ 0xb2, 0xa3, 0x9b }, + .rail = .{ 0xb2, 0xa3, 0x9b }, // ~/05-genizah/zenbones.nvim/colors/zenbones.vim:403 PmenuThumb guibg - .scroll_thumb = .{ 0xf7, 0xf6, 0xf5 }, + .rail_thumb = .{ 0xf7, 0xf6, 0xf5 }, // ~/05-genizah/zenbones.nvim/colors/zenbones.vim:452 WinSeparator guifg - .border = .{ 0xa4, 0x96, 0x8f }, + .rule = .{ 0xa4, 0x96, 0x8f }, // ~/05-genizah/zenbones.nvim/colors/zenbones.vim:406 Search guibg - .search_bg = .{ 0xde, 0xb9, 0xd6 }, - // ~/05-genizah/zenbones.nvim/colors/zenbones.vim:406 Search guifg - .search_fg = .{ 0x2c, 0x36, 0x3c }, + .hit = .{ 0xde, 0xb9, 0xd6 }, // ~/05-genizah/zenbones.nvim/colors/zenbones.vim:347 Error guifg via DiagnosticError->Error (link :348) - .diagnostic_error = .{ 0xa8, 0x33, 0x4c }, + .@"error" = .{ 0xa8, 0x33, 0x4c }, // ~/05-genizah/zenbones.nvim/colors/zenbones.vim:446 WarningMsg guifg via DiagnosticWarn->WarningMsg (link :447) - .diagnostic_warning = .{ 0x94, 0x49, 0x27 }, + .warning = .{ 0x94, 0x49, 0x27 }, // ~/05-genizah/zenbones.nvim/colors/zenbones.vim:306 DiagnosticInfo guifg - .diagnostic_info = .{ 0x28, 0x64, 0x86 }, + .info = .{ 0x28, 0x64, 0x86 }, // ~/05-genizah/zenbones.nvim/colors/zenbones.vim:301 DiagnosticHint guifg - .diagnostic_hint = .{ 0x88, 0x50, 0x7d }, - .palette = .{ + .hint = .{ 0x88, 0x50, 0x7d }, + .ansi = .{ .{ 0xf0, 0xed, 0xec }, // 0: ~/05-genizah/zenbones.nvim/colors/zenbones.vim:251 g:terminal_color_0 .{ 0xa8, 0x33, 0x4c }, // 1: ~/05-genizah/zenbones.nvim/colors/zenbones.vim:252 g:terminal_color_1 .{ 0x4f, 0x6c, 0x31 }, // 2: ~/05-genizah/zenbones.nvim/colors/zenbones.vim:253 g:terminal_color_2 diff --git a/core/themes/zenburned.zig b/core/themes/zenburned.zig index 3c8baa82..4e9df574 100644 --- a/core/themes/zenburned.zig +++ b/core/themes/zenburned.zig @@ -15,63 +15,68 @@ //! (bold only), so it inherits Normal. TabLine links to StatusLine, TabLineFill //! to StatusLineNC. Accent is the lualine normal-mode a bg, a muted neutral //! (the theme is contrast-based, not hue-accented). Modified = Changed fg. +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - focused grip #838383 -> #b9b9b9: 1.56:1 on the focused tag, now 3.02:1 (R6: 3:1) +//! - unsaved grip #6099c0 -> #86c0e8: 2.92:1 on the tag, now 4.60:1 (R6: 3:1 on both tags) +//! - selection text #f0e4cf -> #f6ead4: 4.29:1 on the selection, now 4.53:1 (R7: 4.5:1) +//! - search hit #9c6992 -> #7d4f3a: 2.39:1 off the page, now 1.51:1 (R8: 1.5:1, the text reading on it) +//! - error #e3716e -> #fe8985: 3.38:1 on the page, now 4.51:1 (R9: 4.5:1, told from the text and the others) +//! - warning #b77e64 -> #d99e83: 3.05:1 on the page, now 4.53:1 (R9: 4.5:1, told from the text and the others) +//! - info #6099c0 -> #78b2da: 3.36:1 on the page, now 4.53:1 (R9: 4.5:1, told from the text and the others) +//! - hint #b279a7 -> #d499c8: 3.05:1 on the page, now 4.54:1 (R9: 4.5:1, told from the text and the others) pub const theme = .{ .name = "zenburned", // ~/05-genizah/zenbones.nvim/colors/zenburned.vim:34 Normal guibg - .bg = .{ 0x40, 0x40, 0x40 }, + .page = .{ 0x40, 0x40, 0x40 }, // ~/05-genizah/zenbones.nvim/colors/zenburned.vim:34 Normal guifg - .fg = .{ 0xf0, 0xe4, 0xcf }, + .text = .{ 0xf0, 0xe4, 0xcf }, // ~/05-genizah/zenbones.nvim/colors/zenburned.vim:212 Visual guibg - .sel_bg = .{ 0x74, 0x69, 0x56 }, + .selection = .{ 0x74, 0x69, 0x56 }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0xf0, 0xe4, 0xcf }, + .selection_text = .{ 0xf0, 0xe4, 0xcf }, // ~/05-genizah/zenbones.nvim/colors/zenburned.vim:199 StatusLineNC guibg - .tag_bg = .{ 0x49, 0x49, 0x49 }, + .tag = .{ 0x49, 0x49, 0x49 }, // ~/05-genizah/zenbones.nvim/colors/zenburned.vim:199 StatusLineNC guifg - .tag_fg = .{ 0xf5, 0xed, 0xe0 }, + .tag_text = .{ 0xf5, 0xed, 0xe0 }, // ~/05-genizah/zenbones.nvim/colors/zenburned.vim:196 StatusLine guibg #555555, adjusted - .tag_active_bg = .{ 0x64, 0x64, 0x64 }, + .tag_focus = .{ 0x64, 0x64, 0x64 }, // ~/05-genizah/zenbones.nvim/colors/zenburned.vim:196 StatusLine guifg - .tag_active_fg = .{ 0xf0, 0xe4, 0xcf }, + .tag_focus_text = .{ 0xf0, 0xe4, 0xcf }, // the focused grip: ~/05-genizah/zenbones.nvim/lua/lualine/themes/zenburned_default.lua:8 normal.a bg (lualine theme, default ness; generator derives it as PmenuSbar.bg.abs_da(3), lua/zenbones/shipwright/runners/lualine.lua:66) - .box = .{ 0x83, 0x83, 0x83 }, - // derived: the grip at rest, the accent #6f6f6f faded toward the unfocused tag #494949 as far as 1.6:1 off it (0.82 of the way) - .box_dim = .{ 0x68, 0x68, 0x68 }, + .accent = .{ 0x83, 0x83, 0x83 }, // an unsaved grip: the original's modified colour, ~/05-genizah/zenbones.nvim/colors/zenburned.vim:42 Changed guifg - .box_dirty = .{ 0x60, 0x99, 0xc0 }, + .dirty = .{ 0x60, 0x99, 0xc0 }, // derived: the column grip, the original's type colour, ~/05-genizah/zenbones.nvim/colors/zenburned.vim:208 Type guifg - .column_box = .{ 0xa8, 0xa8, 0xa8 }, + .column_grip = .{ 0xa8, 0xa8, 0xa8 }, // ~/05-genizah/zenbones.nvim/colors/zenburned.vim:193 Statement guifg (no Keyword group defined; Vim default links Keyword to Statement) - .kw = .{ 0xdc, 0xa2, 0xa2 }, + .keyword = .{ 0xdc, 0xa2, 0xa2 }, // ~/05-genizah/zenbones.nvim/colors/zenburned.vim:202 String guifg - .str = .{ 0xba, 0xa6, 0x81 }, + .string = .{ 0xba, 0xa6, 0x81 }, // ~/05-genizah/zenbones.nvim/colors/zenburned.vim:165 Number guifg - .num = .{ 0xba, 0xa6, 0x81 }, + .number = .{ 0xba, 0xa6, 0x81 }, // ~/05-genizah/zenbones.nvim/colors/zenburned.vim:48 Comment guifg .comment = .{ 0x84, 0x84, 0x84 }, // ~/05-genizah/zenbones.nvim/colors/zenburned.vim:151 LineNr guifg - .lineno = .{ 0x7f, 0x7f, 0x7f }, + .line_number = .{ 0x7f, 0x7f, 0x7f }, // ~/05-genizah/zenbones.nvim/colors/zenburned.vim:63 CursorLineNr guifg - .lineno_active = .{ 0xf0, 0xe4, 0xcf }, + .line_number_current = .{ 0xf0, 0xe4, 0xcf }, // ~/05-genizah/zenbones.nvim/colors/zenburned.vim:168 PmenuSbar guibg - .scroll_track = .{ 0x77, 0x77, 0x77 }, + .rail = .{ 0x77, 0x77, 0x77 }, // ~/05-genizah/zenbones.nvim/colors/zenburned.vim:170 PmenuThumb guibg - .scroll_thumb = .{ 0x9b, 0x9b, 0x9b }, + .rail_thumb = .{ 0x9b, 0x9b, 0x9b }, // ~/05-genizah/zenbones.nvim/colors/zenburned.vim:219 WinSeparator guifg - .border = .{ 0x7f, 0x7f, 0x7f }, + .rule = .{ 0x7f, 0x7f, 0x7f }, // ~/05-genizah/zenbones.nvim/colors/zenburned.vim:174 Search guibg - .search_bg = .{ 0x9c, 0x69, 0x92 }, - // ~/05-genizah/zenbones.nvim/colors/zenburned.vim:174 Search guifg - .search_fg = .{ 0xf0, 0xe4, 0xcf }, + .hit = .{ 0x9c, 0x69, 0x92 }, // ~/05-genizah/zenbones.nvim/colors/zenburned.vim:114 Error guifg via DiagnosticError->Error (link :115) - .diagnostic_error = .{ 0xe3, 0x71, 0x6e }, + .@"error" = .{ 0xe3, 0x71, 0x6e }, // ~/05-genizah/zenbones.nvim/colors/zenburned.vim:213 WarningMsg guifg via DiagnosticWarn->WarningMsg (link :214) - .diagnostic_warning = .{ 0xb7, 0x7e, 0x64 }, + .warning = .{ 0xb7, 0x7e, 0x64 }, // ~/05-genizah/zenbones.nvim/colors/zenburned.vim:73 DiagnosticInfo guifg - .diagnostic_info = .{ 0x60, 0x99, 0xc0 }, + .info = .{ 0x60, 0x99, 0xc0 }, // ~/05-genizah/zenbones.nvim/colors/zenburned.vim:68 DiagnosticHint guifg - .diagnostic_hint = .{ 0xb2, 0x79, 0xa7 }, - .palette = .{ + .hint = .{ 0xb2, 0x79, 0xa7 }, + .ansi = .{ .{ 0x40, 0x40, 0x40 }, // 0: ~/05-genizah/zenbones.nvim/colors/zenburned.vim:18 g:terminal_color_0 .{ 0xe3, 0x71, 0x6e }, // 1: ~/05-genizah/zenbones.nvim/colors/zenburned.vim:19 g:terminal_color_1 .{ 0x81, 0x9b, 0x69 }, // 2: ~/05-genizah/zenbones.nvim/colors/zenburned.vim:20 g:terminal_color_2 diff --git a/core/themes/zenwritten_dark.zig b/core/themes/zenwritten_dark.zig index 76b7047e..ec4db41d 100644 --- a/core/themes/zenwritten_dark.zig +++ b/core/themes/zenwritten_dark.zig @@ -15,63 +15,62 @@ //! StatusLine, TabLineFill to StatusLineNC. Accent is the lualine normal-mode a //! bg, a muted neutral (the theme is contrast-based, not hue-accented). //! Modified = Changed fg. +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - focused grip #5c5c5c -> #8c8c8c: 1.53:1 on the focused tag, now 3.04:1 (R6: 3:1) +//! - search hit #65435e -> #572d18: 2.11:1 off the page, now 1.50:1 (R8: 1.5:1, the text reading on it) pub const theme = .{ .name = "zenwritten_dark", // ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:33 Normal guibg - .bg = .{ 0x19, 0x19, 0x19 }, + .page = .{ 0x19, 0x19, 0x19 }, // ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:33 Normal guifg - .fg = .{ 0xbb, 0xbb, 0xbb }, + .text = .{ 0xbb, 0xbb, 0xbb }, // ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:211 Visual guibg - .sel_bg = .{ 0x40, 0x40, 0x40 }, + .selection = .{ 0x40, 0x40, 0x40 }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0xbb, 0xbb, 0xbb }, + .selection_text = .{ 0xbb, 0xbb, 0xbb }, // ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:198 StatusLineNC guibg - .tag_bg = .{ 0x24, 0x24, 0x24 }, + .tag = .{ 0x24, 0x24, 0x24 }, // ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:198 StatusLineNC guifg - .tag_fg = .{ 0xcf, 0xcf, 0xcf }, + .tag_text = .{ 0xcf, 0xcf, 0xcf }, // ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:195 StatusLine guibg #303030, adjusted - .tag_active_bg = .{ 0x41, 0x41, 0x41 }, + .tag_focus = .{ 0x41, 0x41, 0x41 }, // ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:195 StatusLine guifg - .tag_active_fg = .{ 0xbb, 0xbb, 0xbb }, + .tag_focus_text = .{ 0xbb, 0xbb, 0xbb }, // the focused grip: ~/05-genizah/zenbones.nvim/lua/lualine/themes/zenwritten_dark_default.lua:8 normal.a bg (lualine theme, default ness; generator derives it as PmenuSbar.bg.abs_da(3), lua/zenbones/shipwright/runners/lualine.lua:66) - .box = .{ 0x5c, 0x5c, 0x5c }, - // derived: the grip at rest, the accent #525252 faded toward the unfocused tag #242424 as far as 1.6:1 off it (0.72 of the way) - .box_dim = .{ 0x45, 0x45, 0x45 }, + .accent = .{ 0x5c, 0x5c, 0x5c }, // an unsaved grip: the original's modified colour, ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:41 Changed guifg - .box_dirty = .{ 0x60, 0x99, 0xc0 }, + .dirty = .{ 0x60, 0x99, 0xc0 }, // derived: the column grip, the original's type colour, ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:207 Type guifg - .column_box = .{ 0x96, 0x96, 0x96 }, + .column_grip = .{ 0x96, 0x96, 0x96 }, // ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:191 Statement guifg (no Keyword group defined; Vim default links Keyword to Statement) - .kw = .{ 0xbb, 0xbb, 0xbb }, + .keyword = .{ 0xbb, 0xbb, 0xbb }, // ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:201 String guifg - .str = .{ 0x8b, 0x8b, 0x8b }, + .string = .{ 0x8b, 0x8b, 0x8b }, // ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:164 Number guifg - .num = .{ 0x8b, 0x8b, 0x8b }, + .number = .{ 0x8b, 0x8b, 0x8b }, // ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:47 Comment guifg .comment = .{ 0x68, 0x68, 0x68 }, // ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:150 LineNr guifg - .lineno = .{ 0x61, 0x61, 0x61 }, + .line_number = .{ 0x61, 0x61, 0x61 }, // ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:62 CursorLineNr guifg - .lineno_active = .{ 0xbb, 0xbb, 0xbb }, + .line_number_current = .{ 0xbb, 0xbb, 0xbb }, // ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:167 PmenuSbar guibg - .scroll_track = .{ 0x59, 0x59, 0x59 }, + .rail = .{ 0x59, 0x59, 0x59 }, // ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:169 PmenuThumb guibg - .scroll_thumb = .{ 0x84, 0x84, 0x84 }, + .rail_thumb = .{ 0x84, 0x84, 0x84 }, // ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:218 WinSeparator guifg - .border = .{ 0x61, 0x61, 0x61 }, + .rule = .{ 0x61, 0x61, 0x61 }, // ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:172 Search guibg - .search_bg = .{ 0x65, 0x43, 0x5e }, - // ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:172 Search guifg - .search_fg = .{ 0xbb, 0xbb, 0xbb }, + .hit = .{ 0x65, 0x43, 0x5e }, // ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:113 Error guifg via DiagnosticError->Error (link :114) - .diagnostic_error = .{ 0xde, 0x6e, 0x7c }, + .@"error" = .{ 0xde, 0x6e, 0x7c }, // ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:212 WarningMsg guifg via DiagnosticWarn->WarningMsg (link :213) - .diagnostic_warning = .{ 0xb7, 0x7e, 0x64 }, + .warning = .{ 0xb7, 0x7e, 0x64 }, // ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:72 DiagnosticInfo guifg - .diagnostic_info = .{ 0x60, 0x99, 0xc0 }, + .info = .{ 0x60, 0x99, 0xc0 }, // ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:67 DiagnosticHint guifg - .diagnostic_hint = .{ 0xb2, 0x79, 0xa7 }, - .palette = .{ + .hint = .{ 0xb2, 0x79, 0xa7 }, + .ansi = .{ .{ 0x19, 0x19, 0x19 }, // 0: ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:17 g:terminal_color_0 .{ 0xde, 0x6e, 0x7c }, // 1: ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:18 g:terminal_color_1 .{ 0x81, 0x9b, 0x69 }, // 2: ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:19 g:terminal_color_2 diff --git a/core/themes/zenwritten_light.zig b/core/themes/zenwritten_light.zig index 42e1623a..4581b1a6 100644 --- a/core/themes/zenwritten_light.zig +++ b/core/themes/zenwritten_light.zig @@ -16,63 +16,62 @@ //! StatusLine, TabLineFill to StatusLineNC. Accent is the lualine normal-mode a //! bg, a muted neutral (the theme is contrast-based, not hue-accented). //! Modified = Changed fg. +//! Moved by pardes as it loads, to meet its floors (DESIGN.md G4: that colour alone; colors.Chrome.of): +//! - focused grip #a0a0a0 -> #6c6c6c: 1.52:1 on the focused tag, now 3.04:1 (R6: 3:1) +//! - selection #d7d7d7 -> #d6d6d6: 1.24:1 off the page, now 1.25:1 (R7) pub const theme = .{ .name = "zenwritten_light", // ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:267 Normal guibg - .bg = .{ 0xee, 0xee, 0xee }, + .page = .{ 0xee, 0xee, 0xee }, // ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:267 Normal guifg - .fg = .{ 0x35, 0x35, 0x35 }, + .text = .{ 0x35, 0x35, 0x35 }, // ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:445 Visual guibg - .sel_bg = .{ 0xd7, 0xd7, 0xd7 }, + .selection = .{ 0xd7, 0xd7, 0xd7 }, // the original keeps text colours over its selection; its text colour - .sel_fg = .{ 0x35, 0x35, 0x35 }, + .selection_text = .{ 0x35, 0x35, 0x35 }, // ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:432 StatusLineNC guibg - .tag_bg = .{ 0xdd, 0xdd, 0xdd }, + .tag = .{ 0xdd, 0xdd, 0xdd }, // ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:432 StatusLineNC guifg #686868, adjusted - .tag_fg = .{ 0x60, 0x60, 0x60 }, + .tag_text = .{ 0x60, 0x60, 0x60 }, // ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:429 StatusLine guibg #cfcfcf, adjusted - .tag_active_bg = .{ 0xc5, 0xc5, 0xc5 }, + .tag_focus = .{ 0xc5, 0xc5, 0xc5 }, // ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:429 StatusLine guifg - .tag_active_fg = .{ 0x35, 0x35, 0x35 }, + .tag_focus_text = .{ 0x35, 0x35, 0x35 }, // the focused grip: ~/05-genizah/zenbones.nvim/lua/lualine/themes/zenwritten_light_default.lua:8 normal.a bg (lualine theme, default ness; generator derives it as PmenuSbar.bg.abs_da(3), lua/zenbones/shipwright/runners/lualine.lua:66) - .box = .{ 0xa0, 0xa0, 0xa0 }, - // derived: the grip at rest, the accent #aeaeae faded toward the unfocused tag #dddddd as far as 1.6:1 off it (0.98 of the way) - .box_dim = .{ 0xaf, 0xaf, 0xaf }, + .accent = .{ 0xa0, 0xa0, 0xa0 }, // an unsaved grip: the original's modified colour, ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:275 Changed guifg - .box_dirty = .{ 0x28, 0x64, 0x86 }, + .dirty = .{ 0x28, 0x64, 0x86 }, // derived: the column grip, the original's type colour, ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:441 Type guifg - .column_box = .{ 0x73, 0x50, 0x57 }, + .column_grip = .{ 0x73, 0x50, 0x57 }, // ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:425 Statement guifg (no Keyword group defined; Vim default links Keyword to Statement) - .kw = .{ 0x35, 0x35, 0x35 }, + .keyword = .{ 0x35, 0x35, 0x35 }, // ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:435 String guifg - .str = .{ 0x63, 0x63, 0x63 }, + .string = .{ 0x63, 0x63, 0x63 }, // ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:398 Number guifg - .num = .{ 0x63, 0x63, 0x63 }, + .number = .{ 0x63, 0x63, 0x63 }, // ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:281 Comment guifg .comment = .{ 0x8b, 0x8b, 0x8b }, // ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:384 LineNr guifg - .lineno = .{ 0x98, 0x98, 0x98 }, + .line_number = .{ 0x98, 0x98, 0x98 }, // ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:296 CursorLineNr guifg - .lineno_active = .{ 0x35, 0x35, 0x35 }, + .line_number_current = .{ 0x35, 0x35, 0x35 }, // ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:401 PmenuSbar guibg - .scroll_track = .{ 0xa6, 0xa6, 0xa6 }, + .rail = .{ 0xa6, 0xa6, 0xa6 }, // ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:403 PmenuThumb guibg - .scroll_thumb = .{ 0xf6, 0xf6, 0xf6 }, + .rail_thumb = .{ 0xf6, 0xf6, 0xf6 }, // ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:452 WinSeparator guifg - .border = .{ 0x98, 0x98, 0x98 }, + .rule = .{ 0x98, 0x98, 0x98 }, // ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:406 Search guibg - .search_bg = .{ 0xde, 0xb9, 0xd6 }, - // ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:406 Search guifg - .search_fg = .{ 0x35, 0x35, 0x35 }, + .hit = .{ 0xde, 0xb9, 0xd6 }, // ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:347 Error guifg via DiagnosticError->Error (link :348) - .diagnostic_error = .{ 0xa8, 0x33, 0x4c }, + .@"error" = .{ 0xa8, 0x33, 0x4c }, // ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:446 WarningMsg guifg via DiagnosticWarn->WarningMsg (link :447) - .diagnostic_warning = .{ 0x94, 0x49, 0x27 }, + .warning = .{ 0x94, 0x49, 0x27 }, // ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:306 DiagnosticInfo guifg - .diagnostic_info = .{ 0x28, 0x64, 0x86 }, + .info = .{ 0x28, 0x64, 0x86 }, // ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:301 DiagnosticHint guifg - .diagnostic_hint = .{ 0x88, 0x50, 0x7d }, - .palette = .{ + .hint = .{ 0x88, 0x50, 0x7d }, + .ansi = .{ .{ 0xee, 0xee, 0xee }, // 0: ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:251 g:terminal_color_0 .{ 0xa8, 0x33, 0x4c }, // 1: ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:252 g:terminal_color_1 .{ 0x4f, 0x6c, 0x31 }, // 2: ~/05-genizah/zenbones.nvim/colors/zenwritten.vim:253 g:terminal_color_2 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/gui/gui.zig b/dev/gui/gui.zig index 7a87c110..ccf9387b 100644 --- a/dev/gui/gui.zig +++ b/dev/gui/gui.zig @@ -45,8 +45,10 @@ const log = std.log.scoped(.gui); const font_ttf = @embedFile("AdwaitaMono-Regular.ttf"); -const bg_default = [3]u8{ 18, 18, 18 }; -const fg_default = [3]u8{ 204, 204, 204 }; +/// The page and text a window draws for a theme that leaves them to the +/// host (`dark`): the chrome's one null page (DESIGN.md R1). +const null_page = pardes.colors.null_page; +const null_text = pardes.colors.null_text; const p9_arrow_clr = [32]u8{ 0xFF, 0xFF, 0x80, 0x01, 0x80, 0x02, 0x80, 0x0C, @@ -4025,7 +4027,7 @@ fn renderFrame( coverFrame(covered, surface.cols, surface.rows, surface.bodyLayers(), surface.tagLayers(), surface.regionList()); try buildDecor(g, gpa, surface, &groups, layout, win_w, win_h, cursors_shown); - const page = chrome.page orelse bg_default; + const page = chrome.page orelse null_page; const background_opacity = backgroundOpacity(g.applied_window_opacity); const clear: c.SDL_FColor = .{ .r = @as(f32, @floatFromInt(page[0])) / 255.0 * background_opacity, @@ -4171,13 +4173,13 @@ const taglineBandOffset = pardes.Layer.taglineBandOffset; /// in `line`, block or bar: shaping breaks around it. fn resolveCell(g: *Gui, line: []const pardes.Cell, at: usize, cursor: ?usize, role: pardes.FontRole, is_cursor: bool, page: [3]u8) ResolvedCell { const cell = &line[at]; - var fg = fg_default; + var fg = null_text; var bg = page; var reverse = is_cursor; if (!cell.default) { const st = cell.style; fg = switch (st.fg) { - .default => fg_default, + .default => null_text, .index => |i| pardes.colors.xterm[i], .rgb => |rgb| rgb, }; @@ -4193,9 +4195,9 @@ fn resolveCell(g: *Gui, line: []const pardes.Cell, at: usize, cursor: ?usize, ro // full opacity would expose text that the terminal concealed, so // cellSlot draws a concealed cell blank. } - if (st.dim) for (&fg) |*ch| { - ch.* = @intCast(@as(u16, ch.*) * 6 / 10); - }; + // SGR faint: the ink toward its ground to the dim floor (DESIGN.md + // R15), so fainter on a light page too, never darkened to black. + if (st.dim) fg = fadeToward(fg, bg, 1, @min(pardes.colors.contrast(fg, bg), pardes.colors.Chrome.dim_floor)); } if (reverse) std.mem.swap([3]u8, &fg, &bg); @@ -4353,13 +4355,14 @@ fn gripButton(g: *const Gui, chrome: *const pardes.Chrome, col: u16, row: u16, l fn gripFill(chrome: *const pardes.Chrome, focus: bool, dirty: bool, reading: bool) [3]u8 { if (dirty) return chrome.grip_dirty; if (focus) return chrome.grip_focus_ring; - // The ring's inside is the tag's ground: a reading pane's tint. + // The ring's inside is the tag's ground. return if (reading) chrome.tag_reading_bg else chrome.tag_bg; } -fn inkOn(bg: [3]u8) [3]u8 { - const lum = (@as(u16, bg[0]) * 3 + @as(u16, bg[1]) * 6 + @as(u16, bg[2])) / 10; - return if (lum > 140) .{ 0x00, 0x00, 0x00 } else .{ 0xff, 0xff, 0xff }; +/// The ink on a pane's button (DESIGN.md R6): the chrome's grip ink on a +/// fill, the tag's own on its ground. +fn gripInk(chrome: *const pardes.Chrome, focus: bool, dirty: bool) [3]u8 { + return if (focus or dirty) chrome.grip_ink else chrome.tag_fg; } /// Cuts an instance's quad to a pixel rectangle (left, top, right, bottom), @@ -4471,8 +4474,8 @@ fn emitSurfaceCell( // or dirty (UX D4). const ink = if (mark) switch (glyph.style.fg) { .rgb => |rgb| pardes.colors.pushAway(rgb, &.{fill}, pardes.colors.Roles.ink_floor), - else => inkOn(fill), - } else if (here.pane_grip) inkOn(fill) else resolved.fg; + else => gripInk(chrome, here.focus, here.dirty), + } else if (here.pane_grip) gripInk(chrome, here.focus, here.dirty) else resolved.fg; instances[next.*].fr = @as(f32, @floatFromInt(ink[0])) / 255; instances[next.*].fg = @as(f32, @floatFromInt(ink[1])) / 255; instances[next.*].fb = @as(f32, @floatFromInt(ink[2])) / 255; @@ -5149,7 +5152,7 @@ fn laneStrip(g: *Gui, gpa: std.mem.Allocator, lane: pardes.Lane, row: i32, ride: /// coloured gutter with a thin track and its thumb, running down through the /// pixels past the last whole row. fn paneDecor(g: *Gui, gpa: std.mem.Allocator, regions: []const pardes.Region, tags: []const pardes.Layer, ticks: []const pardes.RailTick, heat: []const pardes.RailHeat, chrome: *const pardes.Chrome, layout: CellLayout, cols: u16, rows: u16, win_w: f32, win_h: f32) !void { - const page = chrome.page orelse bg_default; + const page = chrome.page orelse null_page; for (regions) |rail| { if (rail.kind != .rail or rail.rect.h == 0) continue; const tag = for (regions) |region| { @@ -5173,7 +5176,7 @@ fn paneDecor(g: *Gui, gpa: std.mem.Allocator, regions: []const pardes.Region, ta if (!tag_bottom and head.rows > 0) tag_end = @max(tag_end, head.viewport.y + head.rows); if (!tag_bottom and band.rows > 0 and band.kind == .band and band.id == rail.owner) tag_end = @max(tag_end, band.viewport.y + band.rows); const rule_y = @as(f32, @floatFromInt(if (tag_bottom) tag.rect.y else tag_end)) * layout.h; - try addDecor(g, gpa, x0, if (tag_bottom) rule_y else rule_y - dp(1), rule_x1, if (tag_bottom) rule_y + dp(1) else rule_y, chrome.tag_rule orelse mixRgb(chrome.tag_bg, page), 1, win_w, win_h); + try addDecor(g, gpa, x0, if (tag_bottom) rule_y else rule_y - dp(1), rule_x1, if (tag_bottom) rule_y + dp(1) else rule_y, chrome.tag_rule, 1, win_w, win_h); // Stacked panes are ruled apart as columns are, where one pane's // body meets the next one's tag (acme's Border). { @@ -5246,9 +5249,6 @@ fn paneDecor(g: *Gui, gpa: std.mem.Allocator, regions: []const pardes.Region, ta } } -/// Halfway between two colours. -const mixRgb = pardes.colors.mix; - /// A rule's width: the theme's own, or one pixel. fn rulePx(chrome: *const pardes.Chrome) f32 { return dp(@floatFromInt(@max(1, chrome.rule_px))); @@ -5278,17 +5278,15 @@ fn updateDisplayScale(window: *c.SDL_Window) void { /// InactiveDim: the unfocused panes' text faded toward its ground by the /// setting's percent, never below the pair's own contrast or 4.5, whichever -/// is lower. The window's alone, from the regions' focus: renderFrame -/// begins it each frame. ponytail: one window per process, as display_scale. +/// is lower (`fadeToward`: worked out, no search, so nothing is kept). The +/// window's alone, from the regions' focus: renderFrame begins it each +/// frame. ponytail: one window per process, as display_scale. var dim: Dim = .{}; const Dim = struct { amount: f32 = 0, /// The pane with the keyboard, from its regions. focused: u16 = pardes.Region.none, - /// The few ink and paper pairs a frame has, each faded once. - keys: [32]?[6]u8 = @splat(null), - values: [32][3]u8 = undefined, fn begin(d: *Dim, percent: u8, regions: []const pardes.Region) void { d.* = .{ .amount = @as(f32, @floatFromInt(@min(percent, 100))) / 100 }; @@ -5305,35 +5303,15 @@ const Dim = struct { } /// A cell instance's ink faded toward its ground. - fn fade(d: *Dim, instance: *CellInstance) void { - const ink = d.faded(byteRgb(.{ instance.fr, instance.fg, instance.fb }), byteRgb(.{ instance.br, instance.bg, instance.bb })); + fn fade(d: *const Dim, instance: *CellInstance) void { + const from = byteRgb(.{ instance.fr, instance.fg, instance.fb }); + const paper = byteRgb(.{ instance.br, instance.bg, instance.bb }); + const ink = fadeToward(from, paper, d.amount, @min(pardes.colors.contrast(from, paper), 4.5)); instance.fr = @as(f32, @floatFromInt(ink[0])) / 255.0; instance.fg = @as(f32, @floatFromInt(ink[1])) / 255.0; instance.fb = @as(f32, @floatFromInt(ink[2])) / 255.0; } - fn faded(d: *Dim, ink: [3]u8, paper: [3]u8) [3]u8 { - const key = ink ++ paper; - const slot = (@as(usize, ink[0]) *% 31 +% @as(usize, ink[1]) *% 7 +% ink[2] +% @as(usize, paper[0]) *% 13 +% @as(usize, paper[1]) *% 3 +% paper[2]) % d.keys.len; - if (d.keys[slot]) |held| if (std.mem.eql(u8, &held, &key)) return d.values[slot]; - // Contrast falls as the ink nears its paper: the most of `amount` - // that keeps the pair at its own contrast or 4.5, whichever is lower. - const floor = @min(pardes.colors.contrast(ink, paper), 4.5); - var t = d.amount; - if (pardes.colors.contrast(blendLinear(ink, paper, t), paper) < floor) { - var lo: f32 = 0; - var hi: f32 = t; - for (0..8) |_| { - const mid = (lo + hi) / 2; - if (pardes.colors.contrast(blendLinear(ink, paper, mid), paper) >= floor) lo = mid else hi = mid; - } - t = lo; - } - d.keys[slot] = key; - d.values[slot] = blendLinear(ink, paper, t); - return d.values[slot]; - } - fn byteRgb(rgb: [3]f32) [3]u8 { var out: [3]u8 = undefined; for (&out, rgb) |*o, v| o.* = @intFromFloat(@round(std.math.clamp(v, 0, 1) * 255)); @@ -5341,6 +5319,19 @@ const Dim = struct { } }; +/// `ink` toward `paper` in linear light, `most` of the way at most and +/// never under `floor`:1 on it. Luminance runs straight in linear light, so +/// the most that keeps the floor is worked out, never searched (a hair +/// inside it, for the bytes' rounding). +fn fadeToward(ink: [3]u8, paper: [3]u8, most: f32, floor: f32) [3]u8 { + const yi = pardes.colors.relativeLuminance(ink); + const yp = pardes.colors.relativeLuminance(paper); + if (@abs(yi - yp) < 1e-6) return ink; + const f = floor * 1.02; + const stop = if (yi > yp) f * (yp + 0.05) - 0.05 else (yp + 0.05) / f - 0.05; + return blendLinear(ink, paper, std.math.clamp((yi - stop) / (yi - yp), 0, most)); +} + /// `t` of the way from one colour to the other in linear light, so a /// coloured ink does not muddy on its way to the paper. fn blendLinear(from: [3]u8, to: [3]u8, t: f32) [3]u8 { @@ -5386,10 +5377,12 @@ fn gripDecor(g: *Gui, gpa: std.mem.Allocator, regions: []const pardes.Region, ce try addDecor(g, gpa, button[2], button[1], right, button[3], band, 1, win_w, win_h); if (grip.kind != .grip) continue; // acme's button ring, two pixels (ButtonBorder) inside the button: - // the focused one's in its own fill. An unfocused dirty one keeps a - // pixel of band inside its ring, so the four states differ in shape - // whatever a theme's colours (a focused dirty one is acme's - // modbutton, filled up to its ring). + // the focused one's in its own fill, a reading pane's in the mode's + // ink (DESIGN.md G1'). An unfocused dirty one and a reading one keep + // a pixel of band inside the ring, so the fill never touches the + // mode's ring and the four states differ in shape whatever a theme's + // colours (a focused dirty held one is acme's modbutton, filled up to + // its ring). { // The rules drawn over the row (paneDecor, after this) cut into // it: the ring runs inside them, from rule to rule. @@ -5409,14 +5402,14 @@ fn gripDecor(g: *Gui, gpa: std.mem.Allocator, regions: []const pardes.Region, ce const x1 = button[2]; const y0 = button[1] + top_rule; const y1 = button[3] - bottom_rule; - const ring = if (grip.active) chrome.grip_focus_ring else chrome.grip_border; + const ring = if (grip.reading) chrome.grip_mode else if (grip.active) chrome.grip_focus_ring else chrome.grip_border; // acme's ButtonBorder: two logical pixels. const b = dp(2); try addDecor(g, gpa, x0, y0, x1, y0 + b, ring, 1, win_w, win_h); try addDecor(g, gpa, x0, y1 - b, x1, y1, ring, 1, win_w, win_h); try addDecor(g, gpa, x0, y0 + b, x0 + b, y1 - b, ring, 1, win_w, win_h); try addDecor(g, gpa, x1 - b, y0 + b, x1, y1 - b, ring, 1, win_w, win_h); - if (grip.dirty and !grip.active) { + if (grip.reading or (grip.dirty and !grip.active)) { const gap = b + dp(1); try addDecor(g, gpa, x0 + b, y0 + b, x1 - b, y0 + gap, band, 1, win_w, win_h); try addDecor(g, gpa, x0 + b, y1 - gap, x1 - b, y1 - b, band, 1, win_w, win_h); @@ -5432,7 +5425,7 @@ fn gripDecor(g: *Gui, gpa: std.mem.Allocator, regions: []const pardes.Region, ce if (x >= cols) continue; const cell = &cells[@as(usize, y) * cols + x]; if (cell.default or cell.printableAscii() != ' ' or boxMark(cells[@as(usize, y) * cols ..][0..cols], x)) continue; - const rgb = inkOn(gripFill(chrome, grip.active, grip.dirty, grip.reading)); + const rgb = gripInk(chrome, grip.active, grip.dirty); const center_x = @floor((button[0] + button[2]) / 2); const center_y = @as(f32, @floatFromInt(y)) * layout.h + @as(f32, @floatFromInt(taglineBandOffset(y, win_h, g.cell_h, g.tagline_height))) + @as(f32, @floatFromInt(g.tagline_height)) / 2; const half_w = @max(dp(1), @min(dp(3), @floor((button[2] - button[0] - 2 * dp(3)) / 2))); @@ -5765,7 +5758,7 @@ fn appendJumpTrail(g: *Gui, on: bool, surface: *const pardes.Surface, now_ns: u6 if (region.kind == .body and cursor.x >= region.rect.x and cursor.x < @as(u32, region.rect.x) + region.rect.w and cursor.y >= region.rect.y and cursor.y < @as(u32, region.rect.y) + region.rect.h) break region.rect; } else return; - const page = surface.chrome.page orelse bg_default; + const page = surface.chrome.page orelse null_page; const w: f32 = @floatFromInt(g.cell_w); const h: f32 = @floatFromInt(g.cell_h); for (lit) |cell| { @@ -5777,7 +5770,7 @@ fn appendJumpTrail(g: *Gui, on: bool, surface: *const pardes.Surface, now_ns: u6 else => page, }; if (!std.mem.eql(u8, &ground, &page)) continue; - var color = overlayRgb(surface.chrome.fg orelse fg_default); + var color = overlayRgb(surface.chrome.fg orelse null_text); color.a = cell.strength; const x0 = @as(f32, @floatFromInt(cell.x)) * w; const y0 = @as(f32, @floatFromInt(cell.y)) * h; @@ -5863,7 +5856,7 @@ fn appendCursorGlide(g: *Gui, surface: *const pardes.Surface, now_ns: u64, build } // Its colour: the cursor the cells would draw nearest the quad. var boxes: [max_cursors]CursorBox = undefined; - var rgb: [3]u8 = chrome.fg orelse fg_default; + var rgb: [3]u8 = chrome.fg orelse null_text; var nearest: f32 = std.math.inf(f32); for (boxes[0..cursorBoxes(g, surface, layout, builder.win_h, &boxes)]) |box| { const dx = (box.x0 + box.x1) / 2 - centre[0]; @@ -6038,7 +6031,7 @@ fn cursorColor(chrome: *const pardes.Chrome, cell: *const pardes.Cell, role: par return if (role == .tagline) switch (cell.style.fg) { .rgb => |rgb| rgb, else => chrome.tag_fg, - } else chrome.fg orelse fg_default; + } else chrome.fg orelse null_text; } test "FreeType and HarfBuzz allocate from the gui allocator and give it all back" { @@ -6357,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); @@ -7178,7 +7172,7 @@ test "a touchpad's fraction over a body whose context rows went (scrolled out of for (&s.body_layers) |*layer| layer.cells = blank[0..layer.cells.len]; @memset(wr.g.scroll_edge, .{}); const held = if (s.facts.pane(id)) |shown| shown.context_rows else 0; - const n = emitScrollRows(&wr.g, instances.ptr, 0, &s, fixedCellLayout(&wr.g), 800, 480, bg_default, held); + const n = emitScrollRows(&wr.g, instances.ptr, 0, &s, fixedCellLayout(&wr.g), 800, 480, null_page, held); // The body's moving rows under the held ones, the layer's // rows past the grid's while there is a layer, and the row // that left. @@ -7205,24 +7199,24 @@ test "a scroll's body taller than its body layer (the pane shrunk under a glide) g.scroll_body_h = 19; var instances: [3 * 40 * 20]CellInstance = undefined; const layout = fixedCellLayout(&g); - try std.testing.expectEqual(@as(u32, 0), emitScrollRows(&g, &instances, 0, &surface, layout, 400, 400, bg_default, 2)); + try std.testing.expectEqual(@as(u32, 0), emitScrollRows(&g, &instances, 0, &surface, layout, 400, 400, null_page, 2)); // As tall as the body, its cells short of its rows: the same. surface.body_layers[0].rows = 21; - try std.testing.expectEqual(@as(u32, 0), emitScrollRows(&g, &instances, 0, &surface, layout, 400, 400, bg_default, 2)); + try std.testing.expectEqual(@as(u32, 0), emitScrollRows(&g, &instances, 0, &surface, layout, 400, 400, null_page, 2)); // Its cells all there: the body's moving rows under the two held, and // the layer's two past the grid's. var whole: [38 * 21]pardes.Cell = @splat(.{}); surface.body_layers[0].cells = &whole; - try std.testing.expectEqual(@as(u32, (19 - 2 + 2) * 38), emitScrollRows(&g, &instances, 0, &surface, layout, 400, 400, bg_default, 2)); + try std.testing.expectEqual(@as(u32, (19 - 2 + 2) * 38), emitScrollRows(&g, &instances, 0, &surface, layout, 400, 400, null_page, 2)); } test "concealed terminal text emits no ink on its ground" { var g = testGui(10, 20, 6, 12); var cell: pardes.Cell = .{ .default = false, .style = .{ .invisible = true, .ul = .single } }; cell.text[0] = 'X'; - const resolved = resolveCell(&g, (&cell)[0..1], 0, null, .body, false, bg_default); + const resolved = resolveCell(&g, (&cell)[0..1], 0, null, .body, false, null_page); try std.testing.expectEqualDeep(g.atlas.space_slot, resolved.slot); - try std.testing.expectEqual(bg_default, resolved.bg); + try std.testing.expectEqual(null_page, resolved.bg); } test "a block cursor's cell is drawn reversed: the cell's ink its ground, its ground its ink" { @@ -7234,8 +7228,8 @@ test "a block cursor's cell is drawn reversed: the cell's ink its ground, its gr .default = false, .style = .{ .fg = .{ .rgb = .{ 10, 20, 30 } }, .bg = .{ .rgb = .{ 200, 210, 220 } } }, }; - const plain = resolveCell(&g, (&cell)[0..1], 0, null, .body, false, bg_default); - const cursor = resolveCell(&g, (&cell)[0..1], 0, 0, .body, true, bg_default); + const plain = resolveCell(&g, (&cell)[0..1], 0, null, .body, false, null_page); + const cursor = resolveCell(&g, (&cell)[0..1], 0, 0, .body, true, null_page); try std.testing.expectEqual([3]u8{ 10, 20, 30 }, plain.fg); try std.testing.expectEqual(plain.fg, cursor.bg); try std.testing.expectEqual(plain.bg, cursor.fg); @@ -7362,7 +7356,7 @@ test "every pixel of a grip column is band, button or ring, and the button sits const row: u16 = grip.rect.y + @as(u16, @intCast(line)); const at = @as(usize, row) * s.cols; var next: u32 = 0; - emitSurfaceCell(&g, &s.chrome, &instances, &next, col, row, layout, win_w, win_h, s.cells[at..][0..s.cols], cover[at..][0..s.cols], col, null, false, bg_default); + emitSurfaceCell(&g, &s.chrome, &instances, &next, col, row, layout, win_w, win_h, s.cells[at..][0..s.cols], cover[at..][0..s.cols], col, null, false, null_page); for (instances[0..next]) |i| paint.quad(pixels, i.x0, i.y0, i.x1, i.y1, .{ i.br, i.bg, i.bb }, win_w, win_h, x_px, y_px, w_px, h_px); }; for (g.decor.items) |i| if (i.fr >= 1 and i.clip_x1 < i.clip_x0) paint.quad(pixels, i.x0, i.y0, i.x1, i.y1, .{ i.br, i.bg, i.bb }, win_w, win_h, x_px, y_px, w_px, h_px); @@ -7378,8 +7372,8 @@ test "every pixel of a grip column is band, button or ring, and the button sits const band = if (pardes.Trail.reading(core, core.panes[0].?)) chrome.tag_reading_bg else if (focus == 0) chrome.tag_focus_bg else chrome.tag_bg; // Band, fills, rings, the rules between stacked panes and under the // tag, and the mode marks' ink (the grip's first cell's). - const ink = inkOn(gripFill(chrome, grip.active, grip.dirty, grip.reading)); - const allowed = [_][3]f32{ rgb(band), rgb(core.chromeTheme().box), rgb(pardes.draw.boxDirty(core)), rgb(chrome.grip_border), rgb(chrome.grip_focus_ring), rgb(chrome.border), rgb(ink), rgb(chrome.tag_rule orelse mixRgb(chrome.tag_bg, chrome.page orelse bg_default)) }; + const ink = gripInk(chrome, grip.active, grip.dirty); + const allowed = [_][3]f32{ rgb(band), rgb(chrome.grip_focus_ring), rgb(chrome.grip_dirty), rgb(chrome.grip_border), rgb(chrome.grip_mode), rgb(chrome.border), rgb(ink), rgb(chrome.tag_rule) }; for (pixels, 0..) |pixel, n| { const got = pixel orelse return error.TestUnpaintedGripPixel; const known = for (allowed) |a| { @@ -7393,7 +7387,7 @@ test "every pixel of a grip column is band, button or ring, and the button sits } // The rule under the tag runs unbroken across the grip column. for (pixels[(h_px - 1) * w_px ..][0..w_px]) |pixel| - try std.testing.expectEqual(rgb(chrome.tag_rule orelse mixRgb(chrome.tag_bg, chrome.page orelse bg_default)), pixel.?); + try std.testing.expectEqual(rgb(chrome.tag_rule), pixel.?); // The button's edges are the scrollbar's. const button = gripButton(&g, chrome, grip.rect.x, grip.rect.y, layout); const column = scrollColumn(&g, chrome, s.region(.rail, 0).?.rect.x, layout); @@ -7411,7 +7405,7 @@ test "small tagline fonts leave no background gutters between adjacent tags" { var next: u32 = 0; for (0..3) |row| { // Column 1: past the anchor's inset edge at the column's left. - emitSurfaceCell(&g, &chrome, &instances, &next, 1, @intCast(row), fixedCellLayout(&g), 800, 480, (&cell)[0..1], &.{.{}}, 0, null, false, bg_default); + emitSurfaceCell(&g, &chrome, &instances, &next, 1, @intCast(row), fixedCellLayout(&g), 800, 480, (&cell)[0..1], &.{.{}}, 0, null, false, null_page); const base = instances[row * 2]; const ink = instances[row * 2 + 1]; try std.testing.expectApproxEqAbs(@as(f32, 20.0 / 480.0 * 2), base.y0 - base.y1, 0.0001); @@ -7424,7 +7418,7 @@ test "small tagline fonts leave no background gutters between adjacent tags" { // Column 0 is an anchor's edge: its ink is inset by the band's margin // (2 px here) and its underlay still covers the whole cell. next = 0; - emitSurfaceCell(&g, &chrome, &instances, &next, 0, 1, fixedCellLayout(&g), 800, 480, (&cell)[0..1], &.{.{ .anchor = true }}, 0, null, false, bg_default); + emitSurfaceCell(&g, &chrome, &instances, &next, 0, 1, fixedCellLayout(&g), 800, 480, (&cell)[0..1], &.{.{ .anchor = true }}, 0, null, false, null_page); try std.testing.expectApproxEqAbs(@as(f32, 10.0 / 800.0 * 2), instances[0].x1 - instances[0].x0, 0.0001); try std.testing.expectApproxEqAbs(@as(f32, 8.0 / 800.0 * 2), instances[1].x1 - instances[1].x0, 0.0001); try std.testing.expectApproxEqAbs(@as(f32, 8) / atlas_w, instances[1].u1 - instances[1].u0, 0.0001); @@ -7435,7 +7429,7 @@ test "block cursor alone overrides transparent cell background" { const cell: pardes.Cell = .{}; var instances: [2]CellInstance = undefined; for ([_]bool{ false, true }, 0..) |cursor, i| { - emitInstance(&g, &instances, @intCast(i), 0, 0, fixedCellLayout(&g), 800, 480, .body, (&cell)[0..1], 0, null, cursor, bg_default); + emitInstance(&g, &instances, @intCast(i), 0, 0, fixedCellLayout(&g), 800, 480, .body, (&cell)[0..1], 0, null, cursor, null_page); try std.testing.expectEqual(cursor, instances[i].effect & opaque_bg_bit != 0); } } @@ -7604,7 +7598,7 @@ test "pane indicator halves are safe on an exhausted atlas" { var instances: [4]CellInstance = undefined; var next: u32 = 0; for (0..2) |col| { - emitSurfaceCell(&g, &chrome, &instances, &next, @intCast(col), 0, fixedCellLayout(&g), 100, 100, cells[0..6], cover[0..6], col, null, false, bg_default); + emitSurfaceCell(&g, &chrome, &instances, &next, @intCast(col), 0, fixedCellLayout(&g), 100, 100, cells[0..6], cover[0..6], col, null, false, null_page); try std.testing.expectEqual(@as(f32, 0), instances[col * 2 + 1].u0); } try std.testing.expectEqual(@as(u32, 4), next); @@ -8045,7 +8039,7 @@ test "compact body layer rendering fills recovered rows and clips the final glyp layer.setContextLines(&.{ 0, 4, 5, 6 }); var instances: [32]CellInstance = undefined; var next: u32 = 0; - emitBodyLayer(&g, &instances, &next, &layer, 200, 200, bg_default, false, .{ 80, 90, 100 }); + emitBodyLayer(&g, &instances, &next, &layer, 200, 200, null_page, false, .{ 80, 90, 100 }); // Four compact header rows (48px), then three body rows: two complete // and a third clipped to the remaining12px of the100px viewport. try std.testing.expectEqual(@as(u32, 20), next); @@ -8060,7 +8054,7 @@ test "compact body layer rendering fills recovered rows and clips the final glyp // A drag preview reserves the last physical column without changing cells. layer.viewport.w = 1; next = 0; - emitBodyLayer(&g, &instances, &next, &layer, 200, 200, bg_default, false, .{ 80, 90, 100 }); + emitBodyLayer(&g, &instances, &next, &layer, 200, 200, null_page, false, .{ 80, 90, 100 }); for (instances[0..next]) |instance| try std.testing.expect(instance.x1 <= -0.6 + 0.0001); } @@ -8070,14 +8064,14 @@ test "compact tag layers fill available width and clip at their physical edge" { const layer: pardes.Layer = .{ .kind = .pane, .id = 0, .serial = 7, .viewport = .{ .x = 2, .y = 3, .w = 3, .h = 1 }, .cols = 6, .rows = 1, .cells = &cells, .bg = .{ 20, 30, 40 } }; var instances: [8]CellInstance = undefined; var next: u32 = 0; - emitTagLayer(&g, &instances, &next, &layer, 100, 100, bg_default, false); + emitTagLayer(&g, &instances, &next, &layer, 100, 100, null_page, false); // Five six-pixel cells fit in the three body-column viewport. try std.testing.expectEqual(@as(u32, 6), next); try std.testing.expectApproxEqAbs(@as(f32, -0.6), instances[1].x0, 0.0001); try std.testing.expectApproxEqAbs(@as(f32, 0), instances[5].x1, 0.0001); g.tagline_width = 8; next = 0; - emitTagLayer(&g, &instances, &next, &layer, 100, 100, bg_default, false); + emitTagLayer(&g, &instances, &next, &layer, 100, 100, null_page, false); try std.testing.expectEqual(@as(u32, 5), next); try std.testing.expectApproxEqAbs(@as(f32, 0), instances[4].x1, 0.0001); try std.testing.expectApproxEqAbs(@as(f32, 6) / atlas_w, instances[4].u1 - instances[4].u0, 0.0001); @@ -8342,7 +8336,7 @@ test "a `│` in a tag layer runs its row's whole height at a tagline smaller th var instances: [8]CellInstance = undefined; var next: u32 = 0; const win_h: f32 = 200; - emitTagLayer(&g, &instances, &next, &layer, 200, win_h, bg_default, false); + emitTagLayer(&g, &instances, &next, &layer, 200, win_h, null_page, false); try std.testing.expectEqual(@as(u32, 3), next); const bh: f32 = @floatFromInt(g.cell_h); // [0] the row's ground, [1] `a` at the tagline's height, [2] `│` the @@ -8410,7 +8404,7 @@ test "a pane's mark is its button's glyph where the mode draws none, in its kind defer g.decor.deinit(gpa); var instances: [4]CellInstance = undefined; var next: u32 = 0; - for (0..2) |col| emitSurfaceCell(&g, &chrome, &instances, &next, @intCast(col), 0, fixedCellLayout(&g), 100, 100, cells[0..6], cover[0..6], col, null, false, bg_default); + for (0..2) |col| emitSurfaceCell(&g, &chrome, &instances, &next, @intCast(col), 0, fixedCellLayout(&g), 100, 100, cells[0..6], cover[0..6], col, null, false, null_page); try std.testing.expectEqual(@as(u32, 4), next); // Each of the box's two cells draws its slice of the mark's glyph, in // the err ink pushed off the focused button's fill. diff --git a/dev/lsp/lsp_client.zig b/dev/lsp/lsp_client.zig index be5069ae..d90f655a 100644 --- a/dev/lsp/lsp_client.zig +++ b/dev/lsp/lsp_client.zig @@ -52,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; @@ -1034,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; @@ -1138,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. diff --git a/dev/macos/Sources/PardesView.swift b/dev/macos/Sources/PardesView.swift index 11818e10..8dbaea0e 100644 --- a/dev/macos/Sources/PardesView.swift +++ b/dev/macos/Sources/PardesView.swift @@ -96,14 +96,16 @@ private let sRGB: CGColorSpace = CGColorSpace(name: CGColorSpace.sRGB) ?? CGColo // a CTFont instead of being bridged to NSFont on the way in. private let fontAttribute = NSAttributedString.Key(kCTFontAttributeName as String) -// The named sixteen, then xterm's 6x6x6 cube, then the 24-step grey ramp. These -// sixteen are app.mjs's, not gui.zig's: gui.zig borrows ghostty's palette -// because it already links it, and the two disagree on the base colors. +// The named sixteen, then xterm's 6x6x6 cube, then the 24-step grey ramp. A +// window is handed a program's sixteen as the theme's own colours (the core's +// terminal paint, colors.Chrome's ansi), so an index under 16 reaches it only +// from elsewhere; these are core/colors.zig's `xterm`, the gui's, so an index +// is one colour in every window. private let ansi16: [UInt32] = [ - 0x00_00_00, 0xCC_00_00, 0x4E_9A_06, 0xC4_A0_00, - 0x34_65_A4, 0x75_50_7B, 0x06_98_9A, 0xD3_D7_CF, - 0x55_57_53, 0xEF_29_29, 0x8A_E2_34, 0xFC_E9_4F, - 0x72_9F_CF, 0xAD_7F_A8, 0x34_E2_E2, 0xEE_EE_EC, + 0x1D_1F_21, 0xCC_66_66, 0xB5_BD_68, 0xF0_C6_74, + 0x81_A2_BE, 0xB2_94_BB, 0x8A_BE_B7, 0xC5_C8_C6, + 0x66_66_66, 0xD5_4E_53, 0xB9_CA_4A, 0xE7_C5_47, + 0x7A_A6_DA, 0xC3_97_D8, 0x70_C0_B1, 0xEA_EA_EA, ] private func paletteColor(_ index: UInt8) -> UInt32 { diff --git a/dev/tui/tui.zig b/dev/tui/tui.zig index f7b9cae8..8cb06b05 100644 --- a/dev/tui/tui.zig +++ b/dev/tui/tui.zig @@ -2244,7 +2244,7 @@ fn trailCells(arena: std.mem.Allocator, shown: *const pardes.Surface, trail: *Ju if (region.kind == .body and cursor.x >= region.rect.x and cursor.x < @as(u32, region.rect.x) + region.rect.w and cursor.y >= region.rect.y and cursor.y < @as(u32, region.rect.y) + region.rect.h) break region.rect; } else return shown; - const ink = shown.chrome.fg orelse .{ 0xcc, 0xcc, 0xcc }; + const ink = shown.chrome.fg orelse pardes.colors.null_text; const page = shown.chrome.page orelse pardes.colors.null_page; const out = try arena.create(pardes.Surface); out.* = shown.*; @@ -3361,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 449e6176..126330fa 100644 --- a/docs/typ/reference.typ +++ b/docs/typ/reference.typ @@ -290,7 +290,8 @@ 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>; diff --git a/runtime/macos.zig b/runtime/macos.zig index 6a6d39a2..afce23ee 100644 --- a/runtime/macos.zig +++ b/runtime/macos.zig @@ -479,8 +479,8 @@ export fn pardes_animating() bool { export fn pardes_theme_bg() u32 { pardes.turn.wake(); defer pardes.turn.rest(); - const th = if (state) |*st| st.core.theme() else &pardes.colors.legacy_themes[0]; - const bg = th.bg orelse return color_default; + const page = if (state) |*st| st.core.theme().bg else pardes.themes[pardes.colors.default_theme].page; + const bg = page orelse return color_default; return @as(u32, bg[0]) << 16 | @as(u32, bg[1]) << 8 | bg[2]; } @@ -548,20 +548,6 @@ export fn pardes_topbar_pane_border_rgb() u32 { return @as(u32, rgb[0]) << 16 | @as(u32, rgb[1]) << 8 | rgb[2]; } -export fn pardes_tag_active_bg() u32 { - pardes.turn.wake(); - defer pardes.turn.rest(); - const st = state orelse return color_default; - const rgb = st.core.chromeTheme().tag_active_bg; - return @as(u32, rgb[0]) << 16 | @as(u32, rgb[1]) << 8 | rgb[2]; -} -export fn pardes_tagline_bg() u32 { - pardes.turn.wake(); - defer pardes.turn.rest(); - const st = state orelse return color_default; - const rgb = st.core.chromeTheme().tag_bg; - return @as(u32, rgb[0]) << 16 | @as(u32, rgb[1]) << 8 | rgb[2]; -} export fn pardes_fallback_font_count() u32 { return fonts.fallback_names.len; @@ -2388,11 +2374,9 @@ test "pardes.h declares every export the way it is defined" { try expectSameAbi(@TypeOf(c.pardes_tagline_band_offset), @TypeOf(pardes_tagline_band_offset)); try expectSameAbi(@TypeOf(c.pardes_topbar_pane_border_rgb), @TypeOf(pardes_topbar_pane_border_rgb)); try expectSameAbi(@TypeOf(c.pardes_topbar_pane_border_px), @TypeOf(pardes_topbar_pane_border_px)); - try expectSameAbi(@TypeOf(c.pardes_tag_active_bg), @TypeOf(pardes_tag_active_bg)); try expectSameAbi(@TypeOf(c.pardes_tagline_origin_col), @TypeOf(pardes_tagline_origin_col)); try expectSameAbi(@TypeOf(c.pardes_grid_col_at), @TypeOf(pardes_grid_col_at)); try expectSameAbi(@TypeOf(c.pardes_topbar_pane_border_rgb), @TypeOf(pardes_topbar_pane_border_rgb)); - try expectSameAbi(@TypeOf(c.pardes_tagline_bg), @TypeOf(pardes_tagline_bg)); try expectSameAbi(@TypeOf(c.pardes_fallback_font_count), @TypeOf(pardes_fallback_font_count)); try expectSameAbi(@TypeOf(c.pardes_fallback_font_name), @TypeOf(pardes_fallback_font_name)); try expectSameAbi(@TypeOf(c.pardes_scene), @TypeOf(pardes_scene)); diff --git a/test/behaviour/addons_pdf.zig b/test/behaviour/addons_pdf.zig index eca39012..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. 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 6256a0b7..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 => { @@ -236,7 +237,7 @@ test "keys: SPC j n and SPC j p walk Themes' rows, whole, never its section head // A heading, then a row a theme; each section after the first a blank // line and its heading. var lines = std.mem.splitScalar(u8, body, '\n'); - try std.testing.expectEqualStrings("# Pardes themes", lines.next().?); + try std.testing.expectEqualStrings("# Pardes", lines.next().?); var names: std.ArrayList([]const u8) = .empty; var first_break: ?usize = null; while (lines.next()) |line| { @@ -250,7 +251,7 @@ test "keys: SPC j n and SPC j p walk Themes' rows, whole, never its section head try names.append(s.arena.allocator(), line); } const brk = first_break orelse return error.NoSections; - try std.testing.expect(std.mem.indexOf(u8, body[0..std.mem.indexOf(u8, body, "\n\n").?], "\nTheme acme\n") != null); + try std.testing.expect(std.mem.indexOf(u8, body[0..std.mem.indexOf(u8, body, "\n\n").?], "\nTheme orchard\n") != null); // Across the first section's end and back, the theme as it was. for (names.items[0 .. brk + 1]) |row| { try s.keys(" jn"); @@ -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"); } @@ -352,7 +354,7 @@ test "keys: SPC j n from the pane a Look gave the keyboard walks back into the c const themes = try s.focused(); try std.testing.expect(themes != a); const sel = s.at("/pane/{d}/sel", .{themes}); - try s.expect(sel, "Theme orchard"); + try s.expect(sel, "Theme dark"); try s.write(s.at("/pane/{d}/exec", .{a}), "Look b.txt\n"); try std.testing.expect(try s.focused() != themes); try s.keys(" jn"); @@ -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 79b556f4..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")); } @@ -324,6 +324,29 @@ test "language-servers: SPC l a lists the server's code actions in the pane's ta 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 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/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/consumer/lib.zig b/test/consumer/lib.zig index ea0d56fd..2832bdf1 100644 --- a/test/consumer/lib.zig +++ b/test/consumer/lib.zig @@ -88,7 +88,7 @@ test "a C and a Zig source are coloured, outlined and walked as pardes has them, try std.testing.expectEqual(null, pardes.parse("main.rs", "fn main() {}")); const orchard = pardes.theme("Orchard").?; - try std.testing.expectEqual(orchard, &pardes.themes[0]); + try std.testing.expectEqual(orchard, &pardes.themes[pardes.default_theme]); try std.testing.expectEqual([3]u8{ 0x0d, 0x14, 0x10 }, pardes.page(orchard)); try std.testing.expectEqual([3]u8{ 0xe5, 0xee, 0xe5 }, pardes.ink(orchard)); try std.testing.expectEqual([3]u8{ 0xc9, 0xa7, 0xed }, pardes.synInk(orchard, .keyword).?); @@ -97,7 +97,7 @@ test "a C and a Zig source are coloured, outlined and walked as pardes has them, try std.testing.expectEqual([3]u8{ 0xb9, 0xf4, 0x80 }, pardes.synInk(orchard, .comment).?); try std.testing.expectEqual(null, pardes.synInk(orchard, .none)); // `dark` has no page of its own, and an imported palette is in the ring - try std.testing.expectEqual(pardes.theme("dark").?.tag_bg, pardes.page(pardes.theme("dark").?)); + try std.testing.expectEqual(pardes.theme("dark").?.tag, pardes.page(pardes.theme("dark").?)); try std.testing.expect(pardes.theme("gruvbox") != null); try std.testing.expectEqual(null, pardes.theme("no such theme")); } 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/output.zig b/test/output.zig index 77de7649..f2a35c01 100644 --- a/test/output.zig +++ b/test/output.zig @@ -41,7 +41,7 @@ test "search tint survives wrapping and theme changes while selections remain au const surface = try p.render(frame.allocator()); var marked: usize = 0; for (surface.cells) |cell| { - if (std.meta.eql(cell.style.bg, pardes.Color{ .rgb = p.theme().search_bg.? })) marked += 1; + if (std.meta.eql(cell.style.bg, pardes.Color{ .rgb = p.chrome().hit })) marked += 1; } try std.testing.expectEqual(@as(usize, 3), marked); _ = frame.reset(.retain_capacity); @@ -50,8 +50,8 @@ test "search tint survives wrapping and theme changes while selections remain au const light = try p.render(frame.allocator()); var light_matches: usize = 0; for (light.cells) |cell| { - if (!std.meta.eql(cell.style.bg, pardes.Color{ .rgb = p.theme().search_bg.? })) continue; - try std.testing.expectEqualDeep(pardes.Color{ .rgb = p.theme().search_fg.? }, cell.style.fg); + if (!std.meta.eql(cell.style.bg, pardes.Color{ .rgb = p.chrome().hit })) continue; + try std.testing.expectEqualDeep(pardes.Color{ .rgb = p.chrome().page.text }, cell.style.fg); light_matches += 1; } try std.testing.expectEqual(@as(usize, 3), light_matches); @@ -61,7 +61,7 @@ test "search tint survives wrapping and theme changes while selections remain au pane.body.vsel = .{ .active = true, .row = 0, .col = pane.body.cur_col - 2, .explicit = true }; const selected = try p.render(frame.allocator()); for (selected.cells) |cell| - try std.testing.expect(!std.meta.eql(cell.style.bg, pardes.Color{ .rgb = p.theme().search_bg.? })); + try std.testing.expect(!std.meta.eql(cell.style.bg, pardes.Color{ .rgb = p.chrome().hit })); try std.testing.expectEqualStrings(text, pane.file.?.content); } } @@ -128,15 +128,15 @@ test "location producers retain rendered location match and diagnostic styles" { var frame = std.heap.ArenaAllocator.init(p.gpa); defer frame.deinit(); const surface = try p.render(frame.allocator()); - const chrome = pardes.ChromeTheme.fromTheme(p.theme()); - try std.testing.expectEqual(pardes.Color{ .rgb = chrome.lineno }, outputCell(p, surface, id, 0).style.fg); + const chrome = p.chrome(); + try std.testing.expectEqual(pardes.Color{ .rgb = chrome.line_number }, outputCell(p, surface, id, 0).style.fg); const start = file.location_rows[0].code_start; const first = outputCell(p, surface, id, start); if (diagnostic) { - try std.testing.expectEqual(pardes.Color{ .rgb = chrome.diagnostic_warning }, first.style.fg); + try std.testing.expectEqual(pardes.Color{ .rgb = chrome.page.severity[1] }, first.style.fg); try std.testing.expect(first.style.bold); } else if (origin == .search or origin == .cmd) { - try std.testing.expectEqual(pardes.Color{ .rgb = chrome.search_bg }, first.style.bg); + try std.testing.expectEqual(pardes.Color{ .rgb = chrome.hit }, first.style.bg); } if (!diagnostic) { const number = start + std.mem.indexOf(u8, code, "42").?; @@ -1145,10 +1145,10 @@ test "LSP occurrence tint follows the supplied source span through context" { var frame = std.heap.ArenaAllocator.init(p.gpa); defer frame.deinit(); const surface = try p.render(frame.allocator()); - const chrome = pardes.ChromeTheme.fromTheme(p.theme()); + const chrome = p.chrome(); var marked: usize = 0; for (surface.cells) |cell| { - if (!std.meta.eql(cell.style.bg, pardes.Color{ .rgb = chrome.search_bg })) continue; + if (!std.meta.eql(cell.style.bg, pardes.Color{ .rgb = chrome.hit })) continue; try std.testing.expect(cell.text[0] == 'f' or cell.text[0] == 'o'); marked += 1; } @@ -1294,10 +1294,10 @@ test "stacked search and LSP results retain source tint navigation and dump owne var arena = std.heap.ArenaAllocator.init(p.gpa); defer arena.deinit(); const surface = try p.render(arena.allocator()); - const chrome = pardes.ChromeTheme.fromTheme(p.theme()); + const chrome = p.chrome(); var marked: usize = 0; for (surface.cells) |cell| { - if (!std.meta.eql(cell.style.bg, pardes.Color{ .rgb = chrome.search_bg })) continue; + if (!std.meta.eql(cell.style.bg, pardes.Color{ .rgb = chrome.hit })) continue; try std.testing.expect(cell.text[0] == 'f' or cell.text[0] == 'o'); marked += 1; } diff --git a/test/panes.zig b/test/panes.zig index 74988a0a..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 } }); } @@ -2056,7 +2059,7 @@ const OutputTests = struct { const y = body_y + @as(u16, @intCast(index)); const cell = surface.at(x, y); try std.testing.expect(!cell.style.bold); - try std.testing.expectEqual(pardes.Color{ .rgb = pardes.ChromeTheme.fromTheme(p.theme()).lineno }, cell.style.fg); + try std.testing.expectEqual(pardes.Color{ .rgb = p.chrome().line_number }, cell.style.fg); } // Old dumps and edited outputs still identify both context prefixes. panes.File.setContent(p, file, try p.gpa.dupe(u8, "| old.zig:1 old\n new.zig:2 new\nmain.zig:42 ***\t\tmatch\n")); @@ -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" { @@ -2322,9 +2325,11 @@ const ImageTests = struct { }; const TerminalTests = struct { - // Tests asserting raw ANSI indices explicitly select helix, whose palette - // is inherited. Native-palette coverage lives in the overlay/eviction and - // trailing-blank tests and checks their concrete RGB values instead. + // Tests asserting raw ANSI indices explicitly select `dark` in a tty, + // which leaves its page and sixteen to the host (a theme with no sixteen + // of its own draws the ones worked out for it, DESIGN.md R14). Native- + // palette coverage lives in the overlay/eviction and trailing-blank tests + // and checks their concrete RGB values instead. const forwardKey = pardes.keys.forwardKey; const enterTty = pardes.keys.enterTty; @@ -2598,7 +2603,7 @@ const TerminalTests = struct { test "an edit buffer slides shell rows and their colors together" { const testing = std.testing; - const p = try Pardes.init(testing.allocator, .{ .startup_config = "Theme helix\n", .tty_only = true, .cols = 18, .rows = 12 }); + const p = try Pardes.init(testing.allocator, .{ .startup_config = "Theme dark\n", .tty_only = true, .windowed = false, .cols = 18, .rows = 12 }); defer p.deinit(); while (p.nextEffect()) |_| {} const pane = p.panes[0].?; @@ -2648,7 +2653,7 @@ const TerminalTests = struct { test "a combining mark in the prompt keeps the command and its colors aligned" { const testing = std.testing; - const p = try Pardes.init(testing.allocator, .{ .startup_config = "Theme helix\n", .tty_only = true, .cols = 18, .rows = 6 }); + const p = try Pardes.init(testing.allocator, .{ .startup_config = "Theme dark\n", .tty_only = true, .windowed = false, .cols = 18, .rows = 6 }); defer p.deinit(); while (p.nextEffect()) |_| {} const pane = p.panes[0].?; @@ -2682,7 +2687,7 @@ const TerminalTests = struct { test "colors are never taken from shell rows below the viewport" { const testing = std.testing; - const p = try Pardes.init(testing.allocator, .{ .startup_config = "Theme helix\n", .tty_only = true, .cols = 18, .rows = 14 }); + const p = try Pardes.init(testing.allocator, .{ .startup_config = "Theme dark\n", .tty_only = true, .windowed = false, .cols = 18, .rows = 14 }); defer p.deinit(); while (p.nextEffect()) |_| {} const pane = p.panes[0].?; @@ -2740,7 +2745,7 @@ const TerminalTests = struct { test "a row the edit buffer only swallowed keeps its color" { const testing = std.testing; - const p = try Pardes.init(testing.allocator, .{ .startup_config = "Theme helix\n", .tty_only = true, .cols = 18, .rows = 12 }); + const p = try Pardes.init(testing.allocator, .{ .startup_config = "Theme dark\n", .tty_only = true, .windowed = false, .cols = 18, .rows = 12 }); defer p.deinit(); while (p.nextEffect()) |_| {} const pane = p.panes[0].?; @@ -2777,7 +2782,7 @@ const TerminalTests = struct { test "an edit buffer reaching past the dumped rows colors nothing from row zero" { const testing = std.testing; - const p = try Pardes.init(testing.allocator, .{ .startup_config = "Theme helix\n", .tty_only = true, .cols = 18, .rows = 12 }); + const p = try Pardes.init(testing.allocator, .{ .startup_config = "Theme dark\n", .tty_only = true, .windowed = false, .cols = 18, .rows = 12 }); defer p.deinit(); while (p.nextEffect()) |_| {} const pane = p.panes[0].?; @@ -2853,7 +2858,7 @@ const TerminalTests = struct { }; for (prompts) |prompt| { for ([_]bool{ false, true }) |filter| { - const p = try Pardes.init(testing.allocator, .{ .startup_config = "Theme helix\n", .tty_only = true, .cols = 24, .rows = 6 }); + const p = try Pardes.init(testing.allocator, .{ .startup_config = "Theme dark\n", .tty_only = true, .windowed = false, .cols = 24, .rows = 6 }); defer p.deinit(); while (p.nextEffect()) |_| {} const pane = p.panes[0].?; @@ -3035,6 +3040,8 @@ const TerminalTests = struct { // ghostty leaves a `spacer_head` in that last column, carrying the row's // background, and wraps the glyph to the next row. A head OWNS its column, // so skipping it the way a tail is skipped left the row's final column bare. + // A theme with a page of its own (helix): every cell of the row is the + // body's, its red the sixteen worked out for it. for ([_]panes.Text.Mode{ .tty, .normal }) |mode| { const p = try Pardes.init(testing.allocator, .{ .startup_config = "Theme helix\n", .tty_only = true, .cols = 16, .rows = 9 }); defer p.deinit(); @@ -3052,7 +3059,7 @@ const TerminalTests = struct { p.shell_rows.stale = true; const s = try p.render(frame.allocator()); - const red: pardes.Color = .{ .index = 1 }; + const red: pardes.Color = .{ .rgb = p.chrome().ansi[1] }; var c: u16 = 0; while (c < r.w -| config.GUTTER) : (c += 1) { errdefer std.debug.print("\nmode={any} col {d} bg={any}\n", .{ mode, c, s.at(tx + c, body_y).style.bg }); @@ -3187,7 +3194,7 @@ const TerminalTests = struct { test "an emptied edit buffer does not shift the colors below it" { const testing = std.testing; - const p = try Pardes.init(testing.allocator, .{ .startup_config = "Theme helix\n", .tty_only = true, .cols = 18, .rows = 12 }); + const p = try Pardes.init(testing.allocator, .{ .startup_config = "Theme dark\n", .tty_only = true, .windowed = false, .cols = 18, .rows = 12 }); defer p.deinit(); while (p.nextEffect()) |_| {} const pane = p.panes[0].?; @@ -3221,7 +3228,7 @@ const TerminalTests = struct { test "an edit overlay never changes tty-mode ansi colors" { const testing = std.testing; - const p = try Pardes.init(testing.allocator, .{ .startup_config = "Theme helix\n", .tty_only = true, .cols = 18, .rows = 7 }); + const p = try Pardes.init(testing.allocator, .{ .startup_config = "Theme dark\n", .tty_only = true, .windowed = false, .cols = 18, .rows = 7 }); defer p.deinit(); while (p.nextEffect()) |_| {} const pane = p.panes[0].?; diff --git a/test/perf.zig b/test/perf.zig index 2ea666c4..ad873691 100644 --- a/test/perf.zig +++ b/test/perf.zig @@ -1030,7 +1030,7 @@ fn checkTerminalTail(core: *pardes.Pardes, surface: *pardes.Surface, batch: usiz // The program's green (SGR 32) as the pane draws it with its filter off // (measureTerminalSession turns it off): the theme's own colour 2. std.debug.assert(!pane.tty_filter); - const green = pardes.ansi.inkOf(core.theme()).palColor(2); + const green = pardes.ansi.inkOf(core).palColor(2); for (expected, 0..) |byte, col| { const cell = surface.at(x + @as(u16, @intCast(col)), y); if (!std.mem.eql(u8, cell.grapheme(), &.{byte})) return error.LatestTerminalTailMissing; 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/process/tty_themes.zig b/test/process/tty_themes.zig index 1975c02b..8c49b77f 100644 --- a/test/process/tty_themes.zig +++ b/test/process/tty_themes.zig @@ -17,6 +17,10 @@ pub const cases = .{ fn theme(gpa: std.mem.Allocator, exe: [:0]const u8) !void { var t = try Tty.init(gpa, exe, "theme"); defer t.deinit(); + // From the ring's first, dark (the host's page: the tty's own cells), + // through pardes's own, those after a classic and acme's, into the first + // faithful ports (DESIGN.md E's groups). + try t.config("Theme dark"); try t.file("t.txt", "x"); try t.start(31, 100, &.{ "-n", "3" }); try t.wait(8000, "t.txt"); @@ -30,13 +34,23 @@ fn theme(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.key("esc"); try t.settle(100); try t.stable(700, 10000); + try t.snap("dark"); + try t.style("dark"); + try t.press("middle", "@NextColor", 1); + try t.release("middle", "@NextColor", 1); + try t.stable(700, 10000); + try t.snap("light"); + try t.style("light"); + try t.press("middle", "@NextColor", 1); + try t.release("middle", "@NextColor", 1); + try t.stable(700, 10000); try t.snap("orchard"); try t.style("orchard"); try t.press("middle", "@NextColor", 1); try t.release("middle", "@NextColor", 1); try t.stable(700, 10000); - try t.snap("dusk"); - try t.style("dusk"); + try t.snap("orchard-black"); + try t.style("orchard-black"); try t.press("middle", "@NextColor", 1); try t.release("middle", "@NextColor", 1); try t.stable(700, 10000); @@ -45,6 +59,21 @@ fn theme(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.press("middle", "@NextColor", 1); try t.release("middle", "@NextColor", 1); try t.stable(700, 10000); + try t.snap("mono"); + try t.style("mono"); + try t.press("middle", "@NextColor", 1); + try t.release("middle", "@NextColor", 1); + try t.stable(700, 10000); + try t.snap("okabe"); + try t.style("okabe"); + try t.press("middle", "@NextColor", 1); + try t.release("middle", "@NextColor", 1); + try t.stable(700, 10000); + try t.snap("sepia"); + try t.style("sepia"); + try t.press("middle", "@NextColor", 1); + try t.release("middle", "@NextColor", 1); + try t.stable(700, 10000); try t.snap("paper"); try t.style("paper"); try t.press("middle", "@NextColor", 1); @@ -55,8 +84,13 @@ fn theme(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.press("middle", "@NextColor", 1); try t.release("middle", "@NextColor", 1); try t.stable(700, 10000); - try t.snap("atelier"); - try t.style("atelier"); + try t.snap("dusk"); + try t.style("dusk"); + try t.press("middle", "@NextColor", 1); + try t.release("middle", "@NextColor", 1); + try t.stable(700, 10000); + try t.snap("lapis"); + try t.style("lapis"); try t.press("middle", "@NextColor", 1); try t.release("middle", "@NextColor", 1); try t.stable(700, 10000); @@ -65,6 +99,16 @@ fn theme(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.press("middle", "@NextColor", 1); try t.release("middle", "@NextColor", 1); try t.stable(700, 10000); + try t.snap("forge-black"); + try t.style("forge-black"); + try t.press("middle", "@NextColor", 1); + try t.release("middle", "@NextColor", 1); + try t.stable(700, 10000); + try t.snap("forge-soft"); + try t.style("forge-soft"); + try t.press("middle", "@NextColor", 1); + try t.release("middle", "@NextColor", 1); + try t.stable(700, 10000); try t.snap("lagoon"); try t.style("lagoon"); try t.press("middle", "@NextColor", 1); @@ -90,28 +134,13 @@ fn theme(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.press("middle", "@NextColor", 1); try t.release("middle", "@NextColor", 1); try t.stable(700, 10000); - try t.snap("forge-black"); - try t.style("forge-black"); - try t.press("middle", "@NextColor", 1); - try t.release("middle", "@NextColor", 1); - try t.stable(700, 10000); - try t.snap("forge-soft"); - try t.style("forge-soft"); - try t.press("middle", "@NextColor", 1); - try t.release("middle", "@NextColor", 1); - try t.stable(700, 10000); - try t.snap("orchard-black"); - try t.style("orchard-black"); - try t.press("middle", "@NextColor", 1); - try t.release("middle", "@NextColor", 1); - try t.stable(700, 10000); try t.snap("acme"); try t.style("acme"); try t.press("middle", "@NextColor", 1); try t.release("middle", "@NextColor", 1); try t.stable(700, 10000); - try t.snap("lapis"); - try t.style("lapis"); + try t.snap("atelier"); + try t.style("atelier"); try t.press("middle", "@NextColor", 1); try t.release("middle", "@NextColor", 1); try t.stable(700, 10000); @@ -120,7 +149,6 @@ fn theme(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.press("middle", "@NextColor", 1); try t.release("middle", "@NextColor", 1); try t.stable(700, 10000); - // After orchard_black: acme and lapis, then the first faithful ports. try t.snap("solarized-dark"); try t.style("solarized-dark"); try t.done(); @@ -138,10 +166,10 @@ fn theme(gpa: std.mem.Allocator, exe: [:0]const u8) !void { // running it and stopping. There is still no preview state, nothing to confirm // and nothing to cancel: the row you ran is the theme you have. // -// The whole ring is in the buffer, in sections: the fifteen native themes, -// acme and lapis, the faithful ports a family at a time, the legacy helix and -// dark, then everything exported from the vendored helix .toml and zed .json -// files, sorted. The colors below are +// The whole ring is in the buffer, in sections (DESIGN.md E): pardes's own, +// those after a classic, acme's, the faithful ports a family at a time, the +// captured helix, then everything imported from the vendored helix .toml and +// zed .json files, a family at a time and the lone ones last, sorted. The colors below are // read with snapstyle, so this proves the generated themes are real data and // not just names in a list. fn themesel(gpa: std.mem.Allocator, exe: [:0]const u8) !void { @@ -159,66 +187,77 @@ fn themesel(gpa: std.mem.Allocator, exe: [:0]const u8) !void { // fresh output buffer is where the walk's ring starts, so the first n goes // into the list and every one after it carries on down it. try t.key("space t t"); - try t.wait(10000, "Theme orchard"); + try t.wait(10000, "Theme dark"); try t.stable(700, 15000); try t.snap("list"); - // n selects row 1 whole and Tab runs it: `Theme orchard`, which is already the - // boot theme, so only the selection moves. That is the honest first step — an - // idempotent command has to be safe to run. + // n selects row 1 whole and Tab runs it: `Theme dark`, the ring's first; + // the theme changes under the cursor one row at a time, a section's + // heading and its blank line skipped (Output.isWalkRow). + try t.key("space j n"); + try t.key("tab"); + try t.stable(700, 15000); + try t.snap("step-dark"); + try t.style("step-dark"); + try t.key("space j n"); + try t.key("tab"); + try t.stable(700, 15000); + try t.snap("step-light"); + try t.style("step-light"); try t.key("space j n"); try t.key("tab"); try t.stable(700, 15000); try t.snap("step-orchard"); try t.style("step-orchard"); - // ...and now the theme really does change under the cursor, one row at a time try t.key("space j n"); try t.key("tab"); try t.stable(700, 15000); - try t.snap("step-dusk"); - try t.style("step-dusk"); - // Selection alone can skip rows without previewing or applying their themes. - // Four steps reach atelier, the Acme homage; Tab then applies it. - try t.key("space j n"); + try t.snap("step-orchard-black"); + try t.style("step-orchard-black"); try t.key("space j n"); + try t.key("tab"); + try t.stable(700, 15000); + try t.snap("step-ink"); + try t.style("step-ink"); try t.key("space j n"); + try t.key("tab"); + try t.stable(700, 15000); + try t.snap("step-mono"); + try t.style("step-mono"); try t.key("space j n"); try t.key("tab"); try t.stable(700, 15000); - try t.snap("step-atelier"); - try t.style("step-atelier"); + try t.snap("step-okabe"); + try t.style("step-okabe"); try t.key("space j n"); try t.key("tab"); try t.stable(700, 15000); - try t.snap("step-forge"); - try t.style("step-forge"); + try t.snap("step-sepia"); + try t.style("step-sepia"); try t.key("space j n"); try t.key("tab"); try t.stable(700, 15000); - try t.snap("step-lagoon"); - try t.style("step-lagoon"); + try t.snap("step-paper"); + try t.style("step-paper"); try t.key("space j n"); try t.key("tab"); try t.stable(700, 15000); - try t.snap("step-solarium"); - try t.style("step-solarium"); + try t.snap("step-daybreak"); + try t.style("step-daybreak"); try t.key("space j n"); try t.key("tab"); try t.stable(700, 15000); - try t.snap("step-spectrum"); - try t.style("step-spectrum"); + try t.snap("step-dusk"); + try t.style("step-dusk"); try t.key("space j n"); try t.key("tab"); try t.stable(700, 15000); - try t.snap("step-harvest"); - try t.style("step-harvest"); + try t.snap("step-lapis"); + try t.style("step-lapis"); try t.key("space j n"); try t.key("tab"); try t.stable(700, 15000); - try t.snap("step-clay"); - try t.style("step-clay"); - // The three native contrast variants precede acme and lapis, and then the first - // ported family's section. Its heading - // and blank separator are not stops in the n/N command walk. + try t.snap("step-forge"); + try t.style("step-forge"); try t.key("space j n"); try t.key("tab"); try t.stable(700, 15000); @@ -232,8 +271,28 @@ fn themesel(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.key("space j n"); try t.key("tab"); try t.stable(700, 15000); - try t.snap("step-orchard-black"); - try t.style("step-orchard-black"); + try t.snap("step-lagoon"); + try t.style("step-lagoon"); + try t.key("space j n"); + try t.key("tab"); + try t.stable(700, 15000); + try t.snap("step-solarium"); + try t.style("step-solarium"); + try t.key("space j n"); + try t.key("tab"); + try t.stable(700, 15000); + try t.snap("step-spectrum"); + try t.style("step-spectrum"); + try t.key("space j n"); + try t.key("tab"); + try t.stable(700, 15000); + try t.snap("step-harvest"); + try t.style("step-harvest"); + try t.key("space j n"); + try t.key("tab"); + try t.stable(700, 15000); + try t.snap("step-clay"); + try t.style("step-clay"); try t.key("space j n"); try t.key("tab"); try t.stable(700, 15000); @@ -242,17 +301,13 @@ fn themesel(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.key("space j n"); try t.key("tab"); try t.stable(700, 15000); - try t.snap("step-lapis"); - try t.style("step-lapis"); + try t.snap("step-atelier"); + try t.style("step-atelier"); try t.key("space j n"); try t.key("tab"); try t.stable(700, 15000); try t.snap("step-dark-plus"); try t.style("step-dark-plus"); - // across the Visual Studio Code section into Solarized: a section heading and - // its blank line are skipped like the first. (The imported half, past the - // legacy section, is sorted by name, so the ring is the same everywhere - // whatever order the directory read handed the files over in.) try t.key("space j n"); try t.key("tab"); try t.stable(700, 15000); 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 c64b3fc8..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,#887455, 2-99 #becfc4,#314738, -|2: 0-1 d,#add38a, 2-27 #becfc4,#314738, 28-37 #dfbce5,#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 d1140d0c..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,#887455, 2-109 #becfc4,#314738, -|2: 0-1 d,#496656, 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 #dfbce5,#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 #92d1de,#0d1410, 12-109 #59675c,#0d1410, -|12: 0-0 d,#608269, 1-4 d,#0d1410, 5-9 #59675c,#0d1410, 10-11 #92d1de,#0d1410, 12-14 #c9a7ed,#0d1410, 15-109 #e5eee5,#0d1410, -|13: 0-0 d,#608269, 1-4 d,#0d1410, 5-9 #59675c,#0d1410, 10-12 #92d1de,#0d1410, 13-109 #59675c,#0d1410, -|14: 0-0 d,#608269, 1-4 d,#0d1410, 5-9 #59675c,#0d1410, 10-12 #92d1de,#0d1410, 13-16 #c9a7ed,#0d1410, 17-109 #e5eee5,#0d1410, -|15: 0-0 d,#608269, 1-4 d,#0d1410, 5-9 #59675c,#0d1410, 10-12 #92d1de,#0d1410, 13-109 #59675c,#0d1410, -|16: 0-0 d,#608269, 1-4 d,#0d1410, 5-9 #59675c,#0d1410, 10-12 #92d1de,#0d1410, 13-16 #c9a7ed,#0d1410, 17-109 #e5eee5,#0d1410, -|17: 0-0 d,#608269, 1-4 d,#0d1410, 5-9 #59675c,#0d1410, 10-14 #92d1de,#0d1410, 15-109 #59675c,#0d1410, -|18: 0-0 d,#608269, 1-4 d,#0d1410, 5-12 #59675c,#0d1410, 13-14 #92d1de,#0d1410, 15-17 #c9a7ed,#0d1410, 18-109 #e5eee5,#0d1410, -|19: 0-0 d,#608269, 1-4 d,#0d1410, 5-12 #59675c,#0d1410, 13-15 #92d1de,#0d1410, 16-109 #59675c,#0d1410, -|20: 0-0 d,#608269, 1-3 d,#0d1410, 4-12 #59675c,#0d1410, 13-15 #92d1de,#0d1410, 16-19 #c9a7ed,#0d1410, 20-23 #e5eee5,#0d1410, 24-26 #f7e4a5,#5e4923, 27-109 #e5eee5,#0d1410, -|21: 0-0 d,#608269, 1-3 d,#0d1410, 4-12 #59675c,#0d1410, 13-15 #92d1de,#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 #f7e4a5,#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 30c89315..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, -|1: 0-1 d,#887455, 2-59 #becfc4,#314738, 60-61 #becfc4,#887455, 62-119 #b2c3b8,#1d2824, -|2: 0-1 d,#496656, 2-31 #b2c3b8,#1d2824, 32-41 #d3b0d9,#1d2824, 42-59 #b2c3b8,#1d2824, 60-61 #b2c3b8,#496656, 62-91 #b2c3b8,#1d2824, 92-101 #d3b0d9,#1d2824, 102-119 #b2c3b8,#1d2824, -|3: 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-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,#496656, 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,#496656, 2-31 #b2c3b8,#1d2824, 32-41 #d3b0d9,#1d2824, 42-59 #b2c3b8,#1d2824, 60-61 #b2c3b8,#496656, 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 #dfbce5,#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 7a11e85b..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, -|1: 0-1 d,#887455, 2-49 #b2c3b8,#1d2824, 50-51 #b2c3b8,#887455, 52-99 #becfc4,#314738, -|2: 0-1 d,#496656, 2-30 #b2c3b8,#2c2c0f, 31-36 #d3b0d9,#2c2c0f, 37-49 #b2c3b8,#2c2c0f, 50-51 #b2c3b8,#add38a, 52-80 #becfc4,#314738, 81-90 #dfbce5,#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, +|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-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, @@ -24,12 +24,11 @@ |22: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, |23: 0-1 d,#1d2824, 2-99 #b2c3b8,#1d2824, == style held grid=100x24 -|1: 0-1 d,#887455, 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 +|1: 0-1 d,#504733, 2-49 #b2c3b8,#1d2824, 50-51 #b2c3b8,#f4c086, 52-99 #becfc4,#314738, +== 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,#887455, 2-39 #b2c3b8,#1d2824, 40-41 #b2c3b8,#f4c086, 42-99 #becfc4,#314738, -|2: 0-1 d,#496656, 2-30 #b2c3b8,#2c2c0f, 31-36 #d3b0d9,#2c2c0f, 37-39 #b2c3b8,#2c2c0f, 40-41 #b2c3b8,#add38a, 42-70 #becfc4,#314738, 71-80 #dfbce5,#314738, 81-99 #becfc4,#314738, -|3: 0-1 d,#2c2c0f, 2-39 #b2c3b8,#2c2c0f, 40-41 #b2c3b8,#314738, 42-99 #becfc4,#314738, +|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-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 da7d22ee..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,#887455,,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 #dfbce5,#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 689ffe94..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, -|1: 0-1 d,#887455, 2-74 #b2c3b8,#1d2824, 75-76 #b2c3b8,#887455, 77-149 #becfc4,#314738, -|2: 0-1 d,#496656, 2-33 #b2c3b8,#1d2824, 34-43 #d3b0d9,#1d2824, 44-74 #b2c3b8,#1d2824, 75-76 #b2c3b8,#496656, 77-108 #b2c3b8,#1d2824, 109-118 #d3b0d9,#1d2824, 119-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-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,#496656, 2-33 #b2c3b8,#1d2824, 34-43 #d3b0d9,#1d2824, 44-74 #b2c3b8,#1d2824, 75-76 #b2c3b8,#add38a, 77-115 #becfc4,#2c2c0f, 116-123 #dfbce5,#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 68c58062..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,#887455, 2-99 #becfc4,#314738, -|2: 0-1 #000000,#add38a, 2-32 #becfc4,#314738, 33-42 #dfbce5,#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,#496656, 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,#453832, 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,#364131, 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,#171f18,b 3-10 #b6ce94,#171f18, 11-99 #e5eee5,#171f18, +|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 3a83fb25..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,#887455, 2-99 #becfc4,#314738, -|2: 0-1 d,#add38a, 2-31 #becfc4,#2c2c0f, 32-43 #dfbce5,#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,#302b25,b 8-11 #f1a39b,#302b25, 12-24 #e5eee5,#302b25, 25-25 #f8c082,#302b25, 26-99 #e5eee5,#302b25, -|13: 0-0 d,#608269, 1-3 d,#0d1410, 4-6 #59675c,#0d1410, 7-7 #b6ce94,#263025,b 8-11 #b6ce94,#263025, 12-99 #e5eee5,#263025, -|14: 0-0 d,#608269, 1-3 d,#0d1410, 4-6 #59675c,#0d1410, 7-7 #b6ce94,#263025,b 8-11 #b6ce94,#263025, 12-21 #e5eee5,#263025, 22-28 #c9a7ed,#263025, 29-99 #e5eee5,#263025, -|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,#302b25,b 8-15 #f1a39b,#302b25, 16-99 #b8d88a,#302b25, -|18: 0-0 d,#608269, 1-3 d,#0d1410, 4-6 #59675c,#0d1410, 7-7 #b6ce94,#263025,b 8-15 #b6ce94,#263025, 16-99 #b8d88a,#263025, -|19: 0-0 d,#608269, 1-3 d,#0d1410, 4-6 #59675c,#0d1410, 7-7 #b6ce94,#263025,b 8-15 #b6ce94,#263025, 16-99 #b8d88a,#263025, -|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, +|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-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,#887455, 2-99 #becfc4,#314738, -|2: 0-1 d,#add38a, 2-31 #becfc4,#2c2c0f, 32-40 #dfbce5,#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, @@ -134,32 +133,32 @@ |13: 0-0 d,#608269, 1-99 d,#0d1410, |14: 0-0 d,#608269, 1-99 d,#0d1410, |15: 0-0 d,#608269, 1-99 d,#0d1410, -|16: 0-1 d,#496656, 2-99 #b2c3b8,#1d2824, +|16: 0-1 d,#465a43, 2-99 #b2c3b8,#1d2824, |17: 0-0 d,#152019, 1-6 d,#0d1410, 7-99 #e5eee5,#0d1410, -|18: 0-0 d,#152019, 1-1 d,#0d1410, 2-2 #f1a39b,#302b25,b 3-6 #f1a39b,#302b25, 7-19 #e5eee5,#302b25, 20-20 #f8c082,#302b25, 21-99 #e5eee5,#302b25, -|19: 0-0 d,#152019, 1-1 d,#0d1410, 2-2 #b6ce94,#263025,b 3-6 #b6ce94,#263025, 7-99 #e5eee5,#263025, -|20: 0-0 d,#152019, 1-1 d,#0d1410, 2-2 #b6ce94,#263025,b 3-6 #b6ce94,#263025, 7-16 #e5eee5,#263025, 17-23 #c9a7ed,#263025, 24-99 #e5eee5,#263025, +|18: 0-0 d,#152019, 1-1 d,#0d1410, 2-2 #f1a39b,#331a12,b 3-6 #f1a39b,#331a12, 7-19 #e5eee5,#331a12, 20-20 #f8c082,#331a12, 21-99 #e5eee5,#331a12, +|19: 0-0 d,#152019, 1-1 d,#0d1410, 2-2 #b6ce94,#132503,b 3-6 #b6ce94,#132503, 7-99 #e5eee5,#132503, +|20: 0-0 d,#152019, 1-1 d,#0d1410, 2-2 #b6ce94,#132503,b 3-6 #b6ce94,#132503, 7-16 #e5eee5,#132503, 17-23 #c9a7ed,#132503, 24-99 #e5eee5,#132503, |21: 0-0 d,#152019, 1-99 d,#0d1410, |22: 0-0 d,#608269, 1-6 d,#0d1410, 7-99 #e5eee5,#0d1410, -|23: 0-0 d,#608269, 1-1 d,#0d1410, 2-2 #f1a39b,#302b25,b 3-10 #f1a39b,#302b25, 11-99 #b8d88a,#302b25, -|24: 0-0 d,#608269, 1-1 d,#0d1410, 2-2 #b6ce94,#263025,b 3-10 #b6ce94,#263025, 11-99 #b8d88a,#263025, -|25: 0-0 d,#608269, 1-1 d,#0d1410, 2-2 #b6ce94,#263025,b 3-10 #b6ce94,#263025, 11-99 #b8d88a,#263025, +|23: 0-0 d,#608269, 1-1 d,#0d1410, 2-2 #f1a39b,#331a12,b 3-10 #f1a39b,#331a12, 11-99 #b8d88a,#331a12, +|24: 0-0 d,#608269, 1-1 d,#0d1410, 2-2 #b6ce94,#132503,b 3-10 #b6ce94,#132503, 11-99 #b8d88a,#132503, +|25: 0-0 d,#608269, 1-1 d,#0d1410, 2-2 #b6ce94,#132503,b 3-10 #b6ce94,#132503, 11-99 #b8d88a,#132503, |26: 0-0 d,#608269, 1-6 d,#0d1410, 7-99 #e5eee5,#0d1410, |27: 0-0 d,#608269, 1-2 d,#0d1410, 3-99 #e5eee5,#0d1410, |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 fc40c904..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, -|1: 0-1 d,#887455, 2-49 #becfc4,#314738, 50-51 #becfc4,#887455, 52-99 #b2c3b8,#1d2824, -|2: 0-1 d,#add38a, 2-27 #becfc4,#314738, 28-37 #dfbce5,#314738, 38-49 #becfc4,#314738, 50-51 #becfc4,#496656, 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, +|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-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,#496656, 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 905c35e8..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,64 +38,65 @@ | | | +| | /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: │ │ -|8: │ │ |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: -|8: |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: │ │ -|8: │ │ |40: ⏎ lands here · its text is the preview · S-⏎ a new pane 1 message · SPC h m 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 6a70d3c4..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, -|1: 0-1 d,#887455, 2-89 #b2c3b8,#1d2824, 90-91 #b2c3b8,#887455, 92-179 #becfc4,#314738, -|2: 0-1 d,#496656, 2-30 #b2c3b8,#1d2824, 31-40 #d3b0d9,#1d2824, 41-89 #b2c3b8,#1d2824, 90-91 #b2c3b8,#496656, 92-120 #b2c3b8,#1d2824, 121-130 #d3b0d9,#1d2824, 131-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-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,9 +52,9 @@ |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,#496656, 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 #bada9d,#0d1410,b 97-100 #f5f7ee,#3c614a, 101-101 #f5f7ee,#0d1410, 102-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, |20: 0-0 d,#608269, 1-89 d,#0d1410, 90-90 d,#608269, 91-94 d,#0d1410, 95-96 #59675c,#0d1410, 97-179 #e5eee5,#0d1410, |21: 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 f7e5b2a4..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,#887455, 2-35 #becfc4,#314738, 36-43 #f5f7ee,#5b7e5a, 44-59 #becfc4,#314738, 60-61 #becfc4,#887455, 62-119 #b2c3b8,#1d2824, -|2: 0-1 d,#add38a, 2-43 #becfc4,#314738, 44-53 #dfbce5,#314738, 54-59 #becfc4,#314738, 60-61 #becfc4,#496656, 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-23 #e5eee5,#0d1410,f 24-59 #e5eee5,#0d1410, 60-60 #e5eee5,#608269, 61-61 #e5eee5,#0d1410, 62-83 #e5eee5,#0d1410,f 84-119 #e5eee5,#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,#496656, 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-23 #e5eee5,#0d1410,f 24-59 #e5eee5,#0d1410, 60-60 #e5eee5,#608269, 61-119 #e5eee5,#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 #f5f7ee,#5b7e5a, 109-119 #b2c3b8,#1d2824, -|1: 0-1 d,#887455, 2-59 #becfc4,#314738, 60-61 #becfc4,#887455, 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-23 #e5eee5,#0d1410,f 24-59 #e5eee5,#0d1410, 60-60 #e5eee5,#608269, 61-119 #e5eee5,#0d1410, -|15: 0-0 d,#152019, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, -|16: 0-1 d,#496656, 2-59 #b2c3b8,#1d2824, 60-60 #b2c3b8,#608269, 61-119 #b2c3b8,#0d1410, +|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, +|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 8763fbb2..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,#887455, 2-35 #becfc4,#314738, 36-43 #f5f7ee,#5b7e5a, 44-59 #becfc4,#314738, 60-61 #becfc4,#887455, 62-119 #b2c3b8,#1d2824, -|2: 0-1 d,#add38a, 2-34 #becfc4,#314738, 35-44 #dfbce5,#314738, 45-59 #becfc4,#314738, 60-61 #becfc4,#496656, 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,#496656, 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,#887455, 2-59 #b2c3b8,#1d2824, 60-61 #b2c3b8,#887455, 62-70 #becfc4,#314738, 71-80 #f5f7ee,#3c614a, 81-119 #becfc4,#314738, -|2: 0-1 d,#496656, 2-34 #b2c3b8,#1d2824, 35-44 #d3b0d9,#1d2824, 45-59 #b2c3b8,#1d2824, 60-61 #b2c3b8,#add38a, 62-94 #becfc4,#314738, 95-104 #dfbce5,#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,#496656, 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, -|16: 0-1 d,#496656, 2-59 #b2c3b8,#1d2824, 60-60 #b2c3b8,#608269, 61-119 #b2c3b8,#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 7808e7d4..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,14 +32,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 == style img-open grid=150x32 -|0: 0-1 d,#1d2824, 2-149 #b2c3b8,#1d2824, -|1: 0-1 d,#887455, 2-74 #becfc4,#314738, 75-76 #becfc4,#887455, 77-149 #b2c3b8,#1d2824, -|2: 0-1 d,#496656, 2-29 #b2c3b8,#1d2824, 30-39 #d3b0d9,#1d2824, 40-74 #b2c3b8,#1d2824, 75-76 #b2c3b8,#496656, 77-104 #b2c3b8,#1d2824, 105-114 #d3b0d9,#1d2824, 115-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-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, -|6: 0-1 d,#add38a, 2-71 #becfc4,#314738, 72-74 #dfbce5,#314738, 75-75 #dfbce5,#608269, 76-149 #dfbce5,#0d1410, -|7: 0-1 d,#314738, 2-6 #dfbce5,#314738, 7-74 #becfc4,#314738, 75-75 #becfc4,#608269, 76-149 #becfc4,#0d1410, +|6: 0-1 d,#add38a, 2-71 #becfc4,#314738, 72-74 #ecc8f2,#314738, 75-75 #ecc8f2,#608269, 76-149 #ecc8f2,#0d1410, +|7: 0-1 d,#314738, 2-6 #ecc8f2,#314738, 7-74 #becfc4,#314738, 75-75 #becfc4,#608269, 76-149 #becfc4,#0d1410, |8: 0-0 d,#152019, 1-28 d,#0d1410, 29-30 #959595,#6c6c6c, 31-31 #6c6c6c,#959595, 32-32 #959595,#6c6c6c, 33-33 #6c6c6c,#959595, 34-35 #959595,#6c6c6c, 36-36 #6c6c6c,#959595, 37-37 #959595,#6c6c6c, 38-40 #6c6c6c,#959595, 41-41 #959595,#6c6c6c, 42-43 #6c6c6c,#959595, 44-44 #959595,#6c6c6c, 45-45 #6c6c6c,#6c5eb5, 46-46 #352879,#959595, 47-74 #352879,#0d1410, 75-75 #352879,#608269, 76-149 #352879,#0d1410, |9: 0-0 d,#152019, 1-28 d,#0d1410, 29-29 #959595,#6c6c6c, 30-31 #6c6c6c,#959595, 32-35 #959595,#6c6c6c, 36-36 #6c6c6c,#959595, 37-38 #959595,#6c6c6c, 39-42 #6c6c6c,#959595, 43-43 #6c6c6c,#352879, 44-44 #352879,#6c6c6c, 45-46 #352879,#352879, 47-74 #352879,#0d1410, 75-75 #352879,#608269, 76-149 #352879,#0d1410, |10: 0-0 d,#152019, 1-28 d,#0d1410, 29-30 #959595,#6c6c6c, 31-31 #6c6c6c,#959595, 32-32 #959595,#6c6c6c, 33-33 #6c6c6c,#959595, 34-34 #959595,#6c6c6c, 35-36 #6c6c6c,#959595, 37-39 #959595,#6c6c6c, 40-40 #6c6c6c,#959595, 41-41 #6c6c6c,#6c5eb5, 42-42 #352879,#6c5eb5, 43-46 #352879,#352879, 47-74 #352879,#0d1410, 75-75 #352879,#608269, 76-149 #352879,#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,#496656, 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, @@ -65,8 +65,8 @@ |30: 0-0 d,#608269, 1-74 d,#0d1410, 75-75 d,#608269, 76-149 d,#0d1410, |31: 0-1 d,#1d2824, 2-149 #6f7d75,#1d2824, == style term-palette grid=150x32 -|6: 0-1 d,#add38a, 2-70 #becfc4,#314738, 71-74 #dfbce5,#314738, 75-75 #dfbce5,#608269, 76-149 #dfbce5,#0d1410, -|7: 0-1 d,#314738, 2-5 #dfbce5,#314738, 6-74 #becfc4,#314738, 75-75 #becfc4,#608269, 76-149 #becfc4,#0d1410, +|6: 0-1 d,#add38a, 2-70 #becfc4,#314738, 71-74 #ecc8f2,#314738, 75-75 #ecc8f2,#608269, 76-149 #ecc8f2,#0d1410, +|7: 0-1 d,#314738, 2-5 #ecc8f2,#314738, 6-74 #becfc4,#314738, 75-75 #becfc4,#608269, 76-149 #becfc4,#0d1410, |8: 0-0 d,#152019, 1-28 d,#0d1410, 29-31 p8,p4, 32-33 p4,p8, 34-37 p8,p4, 38-38 p4,p8, 39-44 p8,p4, 45-45 p8,p12, 46-46 p12,p8, 47-74 p12,#0d1410, 75-75 p12,#608269, 76-149 p12,#0d1410, |9: 0-0 d,#152019, 1-28 d,#0d1410, 29-29 p8,p4, 30-30 p4,p8, 31-35 p8,p4, 36-36 p5,p8, 37-37 p8,p4, 38-38 p4,p8, 39-41 p8,p4, 42-42 p4,p8, 43-43 p8,p12, 44-45 p12,p8, 46-46 p12,p12, 47-74 p12,#0d1410, 75-75 p12,#608269, 76-149 p12,#0d1410, |10: 0-0 d,#152019, 1-28 d,#0d1410, 29-30 p8,p4, 31-32 p4,p8, 33-40 p8,p4, 41-41 p8,p12, 42-43 p12,p8, 44-46 p12,p12, 47-74 p12,#0d1410, 75-75 p12,#608269, 76-149 p12,#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 5ac7f4d8..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, -|1: 0-1 d,#887455, 2-74 #b2c3b8,#1d2824, 75-76 #b2c3b8,#887455, 77-149 #becfc4,#314738, -|2: 0-1 d,#496656, 2-28 #b2c3b8,#1d2824, 29-36 #d3b0d9,#1d2824, 37-74 #b2c3b8,#1d2824, 75-76 #b2c3b8,#add38a, 77-103 #becfc4,#314738, 104-113 #dfbce5,#314738, 114-149 #becfc4,#314738, +|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-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, @@ -166,13 +192,13 @@ |13: 0-0 d,#152019, 1-3 d,#0d1410, 4-6 #59675c,#0d1410, 7-74 #e5eee5,#0d1410, 75-75 #e5eee5,#608269, 76-149 #e5eee5,#0d1410, |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,#496656, 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, +|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-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 bb28bbfe..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, -|1: 0-1 d,#887455, 2-49 #becfc4,#314738, 50-51 #becfc4,#887455, 52-99 #b2c3b8,#1d2824, -|2: 0-1 d,#add38a, 2-27 #becfc4,#314738, 28-37 #dfbce5,#314738, 38-49 #becfc4,#314738, 50-51 #becfc4,#496656, 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, +|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-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-73 #e5eee5,#0d1410,f 74-99 #e5eee5,#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,#496656, 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-23 #e5eee5,#0d1410,f 24-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-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 c6a703c4..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, -|1: 0-1 d,#887455, 2-74 #b2c3b8,#1d2824, 75-76 #b2c3b8,#887455, 77-149 #becfc4,#314738, -|2: 0-1 d,#496656, 2-32 #b2c3b8,#1d2824, 33-42 #d3b0d9,#1d2824, 43-74 #b2c3b8,#1d2824, 75-76 #b2c3b8,#496656, 77-107 #b2c3b8,#1d2824, 108-117 #d3b0d9,#1d2824, 118-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-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,#496656, 2-32 #b2c3b8,#1d2824, 33-42 #d3b0d9,#1d2824, 43-74 #b2c3b8,#1d2824, 75-76 #b2c3b8,#add38a, 77-114 #becfc4,#2c2c0f, 115-122 #dfbce5,#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 0f1e38a6..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, -|1: 0-1 d,#887455, 2-64 #becfc4,#314738, 65-66 #becfc4,#887455, 67-129 #b2c3b8,#1d2824, -|2: 0-1 d,#496656, 2-51 #b2c3b8,#2c2c0f, 52-60 #d3b0d9,#2c2c0f, 61-64 #b2c3b8,#2c2c0f, 65-66 #b2c3b8,#496656, 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, +|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-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,#496656, 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 #dfbce5,#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 47b8b065..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,#887455, 2-149 #becfc4,#314738, -|2: 0-1 d,#496656, 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 #dfbce5,#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 #dfbce5,#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 #f5f7ee,#3c614a, 18-149 #f5f7ee,#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 #dfbce5,#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 #f5f7ee,#3c614a, 16-16 #f5f7ee,#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 #f5f7ee,#3c614a, 18-149 #f5f7ee,#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 bd2dc172..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,33 +44,33 @@ |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,#887455, 2-99 #becfc4,#314738, -|2: 0-1 d,#496656, 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 #f5f7ee,#3c614a, 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, |14: 0-0 d,#608269, 1-99 d,#0d1410, -|15: 0-1 d,#496656, 2-99 #b2c3b8,#1d2824, +|15: 0-1 d,#465a43, 2-99 #b2c3b8,#1d2824, |16: 0-0 d,#608269, 1-1 d,#0d1410, 2-99 #e5eee5,#0d1410, |17: 0-0 d,#608269, 1-1 d,#0d1410, 2-99 #e5eee5,#0d1410, -|18: 0-0 d,#608269, 1-1 d,#0d1410, 2-21 #59675c,#243a2d, 22-31 #e5eee5,#243a2d, 32-36 #f7e4a5,#5e4923, 37-37 #f7e4a5,#243a2d, 38-39 #e5eee5,#243a2d, 40-44 #c9a7ed,#243a2d, 45-99 #e5eee5,#243a2d, +|18: 0-0 d,#608269, 1-1 d,#0d1410, 2-21 #59675c,#24382c, 22-31 #e5eee5,#24382c, 32-36 #e5eee5,#5e4923, 37-39 #e5eee5,#24382c, 40-44 #c9a7ed,#24382c, 45-99 #e5eee5,#24382c, |19: 0-0 d,#608269, 1-1 d,#0d1410, 2-99 #e5eee5,#0d1410, -|20: 0-0 d,#608269, 1-1 d,#0d1410, 2-19 #59675c,#0d1410, 20-23 #e5eee5,#0d1410, 24-26 #c9a7ed,#0d1410, 27-40 #e5eee5,#0d1410, 41-45 #f7e4a5,#5e4923, 46-99 #e5eee5,#0d1410, +|20: 0-0 d,#608269, 1-1 d,#0d1410, 2-19 #59675c,#0d1410, 20-23 #e5eee5,#0d1410, 24-26 #c9a7ed,#0d1410, 27-40 #e5eee5,#0d1410, 41-45 #0d1410,#917a53, 46-99 #e5eee5,#0d1410, |21: 0-0 d,#608269, 1-99 d,#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-1 d,#add38a, 2-33 #becfc4,#314738, 34-43 #dfbce5,#314738, 44-99 #becfc4,#314738, -|26: 0-0 d,#e5eee5, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-16 #e5eee5,#0d1410, 17-21 #f5f7ee,#3c614a, 22-22 #f5f7ee,#0d1410, 23-24 #e5eee5,#0d1410, 25-29 #c9a7ed,#0d1410, 30-99 #e5eee5,#0d1410, +|25: 0-1 d,#add38a, 2-33 #becfc4,#314738, 34-43 #ecc8f2,#314738, 44-99 #becfc4,#314738, +|26: 0-0 d,#e5eee5, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-16 #e5eee5,#0d1410, 17-21 #0d1410,#917a53, 22-22 #0d1410,#0d1410, 23-24 #e5eee5,#0d1410, 25-29 #c9a7ed,#0d1410, 30-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-6 #59675c,#0d1410, 7-99 #e5eee5,#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,51 +115,50 @@ | | | /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,#887455, 2-99 #becfc4,#314738, -|2: 0-1 d,#496656, 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 #f5f7ee,#3c614a, 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, |14: 0-0 d,#608269, 1-99 d,#0d1410, -|15: 0-1 d,#496656, 2-99 #b2c3b8,#1d2824, +|15: 0-1 d,#465a43, 2-99 #b2c3b8,#1d2824, |16: 0-0 d,#608269, 1-1 d,#0d1410, 2-99 #e5eee5,#0d1410, |17: 0-0 d,#608269, 1-1 d,#0d1410, 2-99 #e5eee5,#0d1410, -|18: 0-0 d,#608269, 1-1 d,#0d1410, 2-23 #59675c,#243a2d, 24-33 #e5eee5,#243a2d, 34-37 #f7e4a5,#5e4923, 38-38 #f7e4a5,#243a2d, 39-40 #e5eee5,#243a2d, 41-45 #c9a7ed,#243a2d, 46-99 #e5eee5,#243a2d, +|18: 0-0 d,#608269, 1-1 d,#0d1410, 2-23 #59675c,#24382c, 24-33 #e5eee5,#24382c, 34-37 #e5eee5,#5e4923, 38-40 #e5eee5,#24382c, 41-45 #c9a7ed,#24382c, 46-99 #e5eee5,#24382c, |19: 0-0 d,#608269, 1-1 d,#0d1410, 2-99 #e5eee5,#0d1410, -|20: 0-0 d,#608269, 1-1 d,#0d1410, 2-19 #59675c,#0d1410, 20-23 #e5eee5,#0d1410, 24-26 #c9a7ed,#0d1410, 27-38 #e5eee5,#0d1410, 39-42 #f7e4a5,#5e4923, 43-99 #e5eee5,#0d1410, +|20: 0-0 d,#608269, 1-1 d,#0d1410, 2-19 #59675c,#0d1410, 20-23 #e5eee5,#0d1410, 24-26 #c9a7ed,#0d1410, 27-38 #e5eee5,#0d1410, 39-42 #0d1410,#917a53, 43-99 #e5eee5,#0d1410, |21: 0-0 d,#608269, 1-99 d,#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-1 d,#add38a, 2-43 #becfc4,#314738, 44-52 #dfbce5,#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 #f5f7ee,#3c614a, 21-21 #f5f7ee,#0d1410, 22-23 #e5eee5,#0d1410, 24-28 #c9a7ed,#0d1410, 29-99 #e5eee5,#0d1410, +|25: 0-1 d,#add38a, 2-43 #becfc4,#314738, 44-52 #ecc8f2,#314738, 53-99 #becfc4,#314738, +|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 f3383ab0..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,#887455, 2-91 #becfc4,#314738, -|2: 0-1 d,#add38a, 2-29 #becfc4,#2c2c0f, 30-39 #dfbce5,#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,#887455, 2-91 #becfc4,#314738, -|2: 0-1 d,#add38a, 2-29 #becfc4,#2c2c0f, 30-38 #dfbce5,#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 e8f63a82..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,#887455, 2-89 #becfc4,#314738, -|2: 0-1 d,#496656, 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 #dfbce5,#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,#887455,,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,#496656,,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 #dfbce5,#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,#887455,,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,#496656,,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 #dfbce5,#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 258549c1..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, -|1: 0-1 d,#887455, 2-49 #becfc4,#314738, 50-51 #becfc4,#887455, 52-99 #b2c3b8,#1d2824, -|2: 0-1 d,#add38a, 2-28 #becfc4,#314738, 29-38 #dfbce5,#314738, 39-49 #becfc4,#314738, 50-51 #becfc4,#496656, 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, +|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-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,#496656, 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 267fba5e..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, -|1: 0-1 d,#887455, 2-74 #b2c3b8,#1d2824, 75-76 #b2c3b8,#887455, 77-149 #becfc4,#314738, -|2: 0-1 d,#496656, 2-34 #b2c3b8,#1d2824, 35-44 #d3b0d9,#1d2824, 45-74 #b2c3b8,#1d2824, 75-76 #b2c3b8,#496656, 77-109 #b2c3b8,#1d2824, 110-119 #d3b0d9,#1d2824, 120-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-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,#496656, 2-34 #b2c3b8,#1d2824, 35-44 #d3b0d9,#1d2824, 45-74 #b2c3b8,#1d2824, 75-76 #b2c3b8,#add38a, 77-116 #becfc4,#2c2c0f, 117-122 #dfbce5,#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,#496656, 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 #dfbce5,#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 #f5f7ee,#243a2d, 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 #f5f7ee,#243a2d, 83-83 #3c614a,#f5f7ee, 84-149 #e5eee5,#0d1410, +|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 d62b01a4..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,#887455, 2-89 #becfc4,#314738, -|2: 0-1 d,#add38a, 2-28 #becfc4,#2c2c0f, 29-37 #dfbce5,#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,#887455,,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 #dfbce5,#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 #dfbce5,#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 #dfbce5,#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,#887455, 2-104 #becfc4,#314738, -|2: 0-0 d,#add38a, 1-1 #000000,#f9cb70,b 2-28 #becfc4,#314738, 29-37 #dfbce5,#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,#887455,,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 #dfbce5,#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 beaaf7f5..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,#887455, 2-99 #becfc4,#314738, -|2: 0-1 #000000,#add38a, 2-33 #becfc4,#314738, 34-43 #dfbce5,#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, @@ -83,7 +83,7 @@ |30: 0-0 d,#608269, 1-99 d,#0d1410, |31: 0-0 d,#608269, 1-99 d,#0d1410, |32: 0-0 d,#608269, 1-99 d,#0d1410, -|33: 0-1 d,#496656, 2-33 #b2c3b8,#1d2824, 34-38 #d3b0d9,#1d2824, 39-99 #b2c3b8,#1d2824, +|33: 0-1 d,#465a43, 2-33 #b2c3b8,#1d2824, 34-38 #d3b0d9,#1d2824, 39-99 #b2c3b8,#1d2824, |34: 0-0 d,#608269, 1-4 d,#0d1410, 5-99 #59675c,#0d1410, |35: 0-0 d,#608269, 1-99 d,#0d1410, |36: 0-0 d,#608269, 1-99 d,#0d1410, @@ -91,7 +91,7 @@ |38: 0-0 d,#608269, 1-99 d,#0d1410, |39: 0-0 d,#608269, 1-99 d,#0d1410, |40: 0-0 d,#608269, 1-99 d,#0d1410, -|41: 0-1 d,#496656, 2-33 #b2c3b8,#1d2824, 34-40 #d3b0d9,#1d2824, 41-99 #b2c3b8,#1d2824, +|41: 0-1 d,#465a43, 2-33 #b2c3b8,#1d2824, 34-40 #d3b0d9,#1d2824, 41-99 #b2c3b8,#1d2824, |42: 0-0 d,#608269, 1-1 d,#0d1410, 2-5 #f1a39b,#0d1410, 6-15 #b6ce94,#0d1410,b 16-16 #b6ce94,#0d1410, 17-20 #c5917e,#0d1410, 21-22 #e5eee5,#0d1410,u 23-23 #e5eee5,#0d1410, 24-27 #e5eee5,#0d1410,b 28-28 #e5eee5,#0d1410, 29-30 #e5eee5,#0d1410,u 31-99 #e5eee5,#0d1410, |43: 0-0 d,#608269, 1-99 d,#0d1410, |44: 0-0 d,#608269, 1-99 d,#0d1410, @@ -100,30 +100,30 @@ |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,#496656, 2-33 #b2c3b8,#1d2824, 34-47 #d3b0d9,#1d2824, 48-99 #b2c3b8,#1d2824, +|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, -|36: 0-0 d,#608269, 1-1 d,#0d1410, 2-2 #f1a39b,#1a1d18,b 3-99 #f8c082,#1a1d18, -|37: 0-0 d,#608269, 1-1 d,#0d1410, 2-2 #b6ce94,#171f18,b 3-99 #b8d88a,#171f18, +|36: 0-0 d,#608269, 1-1 d,#0d1410, 2-2 #f1a39b,#211812,b 3-99 #f8c082,#211812, +|37: 0-0 d,#608269, 1-1 d,#0d1410, 2-2 #b6ce94,#101c0b,b 3-99 #b8d88a,#101c0b, |41: 0-0 d,#608269, 1-99 d,#0d1410, |42: 0-0 d,#608269, 1-99 d,#0d1410, -|45: 0-1 d,#496656, 2-33 #b2c3b8,#1d2824, 34-40 #d3b0d9,#1d2824, 41-99 #b2c3b8,#1d2824, +|45: 0-1 d,#465a43, 2-33 #b2c3b8,#1d2824, 34-40 #d3b0d9,#1d2824, 41-99 #b2c3b8,#1d2824, |46: 0-0 d,#608269, 1-1 d,#0d1410, 2-5 #f1a39b,#0d1410, 6-15 #b6ce94,#0d1410,b 16-16 #b6ce94,#0d1410, 17-20 #c5917e,#0d1410, 21-22 #e5eee5,#0d1410,u 23-23 #e5eee5,#0d1410, 24-27 #e5eee5,#0d1410,b 28-28 #e5eee5,#0d1410, 29-30 #e5eee5,#0d1410,u 31-99 #e5eee5,#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 9f7eab39..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,#887455, 2-139 #becfc4,#314738, -|2: 0-1 d,#add38a, 2-30 #becfc4,#314738, 31-40 #dfbce5,#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,#496656, 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 #f7e4a5,#5e4923, 13-13 #f7e4a5,#0d1410, 14-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 #f7e4a5,#5e4923, 13-13 #f7e4a5,#0d1410, 14-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 #f7e4a5,#5e4923, 13-13 #f7e4a5,#0d1410, 14-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 2125f0e9..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, -|1: 0-1 d,#887455, 2-49 #becfc4,#314738, 50-51 #becfc4,#887455, 52-99 #b2c3b8,#1d2824, -|2: 0-1 d,#add38a, 2-29 #becfc4,#314738, 30-39 #dfbce5,#314738, 40-49 #becfc4,#314738, 50-51 #becfc4,#496656, 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, +|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-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,#496656, 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 fa7ec980..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,#887455, 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 #f5f7ee,#243a2d, 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 #f5f7ee,#243a2d, 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 #dfbce5,#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 #f5f7ee,#243a2d, 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 #f5f7ee,#243a2d, 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 #dfbce5,#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 #f5f7ee,#243a2d, 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 #f5f7ee,#243a2d, 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 5f73bd1f..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,27 +34,27 @@ |11: ^ +Search 2/3 Del == style step-row2 grid=150x31 |0: 0-1 d,#1d2824, 2-149 #b2c3b8,#1d2824, -|1: 0-1 d,#887455, 2-149 #becfc4,#314738, -|2: 0-1 d,#496656, 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 #f5f7ee,#3c614a, 36-36 #f5f7ee,#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, |11: 0-1 #000000,#add38a, 2-149 #becfc4,#314738, |12: 0-0 d,#608269, 1-1 d,#0d1410, 2-149 #e5eee5,#0d1410, |13: 0-0 d,#608269, 1-1 d,#0d1410, 2-149 #e5eee5,#0d1410, -|14: 0-0 d,#608269, 1-1 d,#0d1410, 2-14 #59675c,#0d1410, 15-20 #e5eee5,#0d1410, 21-26 #f7e4a5,#5e4923, 27-27 #f7e4a5,#0d1410, 28-149 #e5eee5,#0d1410, -|15: 0-0 d,#608269, 1-1 d,#0d1410, 2-14 #59675c,#243a2d, 15-37 #e5eee5,#243a2d, 38-43 #f7e4a5,#5e4923, 44-44 #f7e4a5,#243a2d, 45-149 #e5eee5,#243a2d, +|14: 0-0 d,#608269, 1-1 d,#0d1410, 2-14 #59675c,#0d1410, 15-20 #e5eee5,#0d1410, 21-26 #e5eee5,#5e4923, 27-149 #e5eee5,#0d1410, +|15: 0-0 d,#608269, 1-1 d,#0d1410, 2-14 #59675c,#24382c, 15-37 #e5eee5,#24382c, 38-43 #e5eee5,#5e4923, 44-149 #e5eee5,#24382c, |16: 0-0 d,#608269, 1-1 d,#0d1410, 2-149 #e5eee5,#0d1410, -|17: 0-0 d,#608269, 1-1 d,#0d1410, 2-18 #59675c,#0d1410, 19-24 #f7e4a5,#5e4923, 25-25 #f7e4a5,#0d1410, 26-149 #e5eee5,#0d1410, +|17: 0-0 d,#608269, 1-1 d,#0d1410, 2-18 #59675c,#0d1410, 19-24 #e5eee5,#5e4923, 25-149 #e5eee5,#0d1410, |18: 0-0 d,#608269, 1-149 d,#0d1410, |19: 0-0 d,#608269, 1-149 d,#0d1410, |20: 0-0 d,#608269, 1-149 d,#0d1410, -|21: 0-1 d,#496656, 2-32 #b2c3b8,#1d2824, 33-41 #d3b0d9,#1d2824, 42-149 #b2c3b8,#1d2824, +|21: 0-1 d,#465a43, 2-32 #b2c3b8,#1d2824, 33-41 #d3b0d9,#1d2824, 42-149 #b2c3b8,#1d2824, |22: 0-0 d,#608269, 1-4 d,#0d1410, 5-149 #59675c,#0d1410, |23: 0-0 d,#608269, 1-149 d,#0d1410, |24: 0-0 d,#608269, 1-149 d,#0d1410, @@ -82,15 +82,14 @@ |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, -|13: 0-0 d,#608269, 1-1 d,#0d1410, 2-5 #e5eee5,#243a2d, 6-10 #f7e4a5,#5e4923,b 11-149 #e5eee5,#243a2d, +|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, |16: 0-0 d,#608269, 1-149 d,#0d1410, |17: 0-0 d,#608269, 1-149 d,#0d1410, -|21: 0-1 d,#496656, 2-32 #b2c3b8,#1d2824, 33-46 #d3b0d9,#1d2824, 47-149 #b2c3b8,#1d2824, +|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 e4413147..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, -|1: 0-1 d,#887455, 2-74 #b2c3b8,#1d2824, 75-76 #b2c3b8,#887455, 77-149 #becfc4,#314738, -|2: 0-1 d,#496656, 2-29 #b2c3b8,#1d2824, 30-39 #d3b0d9,#1d2824, 40-74 #b2c3b8,#1d2824, 75-76 #b2c3b8,#496656, 77-104 #b2c3b8,#1d2824, 105-114 #d3b0d9,#1d2824, 115-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-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,#496656, 2-29 #b2c3b8,#1d2824, 30-39 #d3b0d9,#1d2824, 40-74 #b2c3b8,#1d2824, 75-76 #b2c3b8,#add38a, 77-111 #becfc4,#2c2c0f, 112-120 #dfbce5,#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 1039c40a..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 themes -|15: 2 Theme orchard -|16: 3 Theme dusk -|17: 4 Theme ink -|18: 5 Theme paper -|19: 6 Theme daybreak -|20: 7 Theme atelier -|21: 8 Theme forge -|22: 9 Theme lagoon -|23: 10 Theme solarium -|24: 11 Theme spectrum -|25: 12 Theme harvest -|26: 13 Theme clay -|27: 14 Theme forge_black -|28: 15 Theme forge_soft -|29: 16 Theme orchard_black -|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 df331438..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,#887455, 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 4654ea93..ca73ed35 100644 --- a/test/snapshots/theme.golden +++ b/test/snapshots/theme.golden @@ -1,8 +1,7 @@ -== snap orchard 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,14 +28,83 @@ | | | +| | /tmp/pardes-snap/theme/cwd +== style dark grid=100x31 +|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-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-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, +|10: 0-0 d,#5a596f, 1-1 d,d, 2-49 d,#121212, 50-50 d,#5a596f, 51-51 d,d, 52-99 d,#121212, +|11: 0-0 d,#5a596f, 1-1 d,d, 2-49 d,#121212, 50-50 d,#5a596f, 51-51 d,d, 52-99 d,#121212, +|12: 0-0 d,#5a596f, 1-1 d,d, 2-49 d,#121212, 50-50 d,#5a596f, 51-51 d,d, 52-99 d,#121212, +|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-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-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, +|24: 0-0 d,#5a596f, 1-1 d,d, 2-49 d,#121212, 50-50 d,#5a596f, 51-51 d,d, 52-99 d,#121212, +|25: 0-0 d,#5a596f, 1-1 d,d, 2-49 d,#121212, 50-50 d,#5a596f, 51-51 d,d, 52-99 d,#121212, +|26: 0-0 d,#5a596f, 1-1 d,d, 2-49 d,#121212, 50-50 d,#5a596f, 51-51 d,d, 52-99 d,#121212, +|27: 0-0 d,#5a596f, 1-1 d,d, 2-49 d,#121212, 50-50 d,#5a596f, 51-51 d,d, 52-99 d,#121212, +|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,5 +|30: ✓ @p1 NextColor 1 message · SPC h m +== style light grid=100x31 +|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-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-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, +|9: 0-0 d,#a4a2b5, 1-49 d,#fbfbfd, 50-50 d,#a4a2b5, 51-99 d,#fbfbfd, +|10: 0-0 d,#a4a2b5, 1-49 d,#fbfbfd, 50-50 d,#a4a2b5, 51-99 d,#fbfbfd, +|11: 0-0 d,#a4a2b5, 1-49 d,#fbfbfd, 50-50 d,#a4a2b5, 51-99 d,#fbfbfd, +|12: 0-0 d,#a4a2b5, 1-49 d,#fbfbfd, 50-50 d,#a4a2b5, 51-99 d,#fbfbfd, +|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-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-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, +|23: 0-0 d,#a4a2b5, 1-49 d,#fbfbfd, 50-50 d,#a4a2b5, 51-99 d,#fbfbfd, +|24: 0-0 d,#a4a2b5, 1-49 d,#fbfbfd, 50-50 d,#a4a2b5, 51-99 d,#fbfbfd, +|25: 0-0 d,#a4a2b5, 1-49 d,#fbfbfd, 50-50 d,#a4a2b5, 51-99 d,#fbfbfd, +|26: 0-0 d,#a4a2b5, 1-49 d,#fbfbfd, 50-50 d,#a4a2b5, 51-99 d,#fbfbfd, +|27: 0-0 d,#a4a2b5, 1-49 d,#fbfbfd, 50-50 d,#a4a2b5, 51-99 d,#fbfbfd, +|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,5 +|30: ✓ @p1 NextColor ×2 1 message · SPC h m == style orchard grid=100x31 -|0: 0-1 d,#1d2824, 2-99 #b2c3b8,#1d2824, -|1: 0-1 d,#887455, 2-49 #becfc4,#314738, 50-51 #becfc4,#887455, 52-99 #b2c3b8,#1d2824, -|2: 0-1 d,#add38a, 2-28 #becfc4,#314738, 29-38 #dfbce5,#314738, 39-49 #becfc4,#314738, 50-51 #becfc4,#496656, 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, +|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-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, @@ -47,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,#496656, 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, @@ -61,50 +129,47 @@ |27: 0-0 d,#608269, 1-49 d,#0d1410, 50-50 d,#608269, 51-99 d,#0d1410, |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 dusk grid=100x31 cursor=4,6 -|30: ✓ @p1 NextColor 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, -|1: 0-1 d,#757a5f, 2-49 #d2c2d1,#533d4d, 50-51 #d2c2d1,#757a5f, 52-99 #c6b6c5,#2c2630, -|2: 0-1 d,#edb092, 2-28 #d2c2d1,#533d4d, 29-38 #a1d5c4,#533d4d, 39-49 #d2c2d1,#533d4d, 50-51 #d2c2d1,#745469, 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, -|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, -|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, -|9: 0-0 d,#8e667c, 1-49 d,#39323b, 50-50 d,#8e667c, 51-99 d,#39323b, -|10: 0-0 d,#8e667c, 1-49 d,#39323b, 50-50 d,#8e667c, 51-99 d,#39323b, -|11: 0-0 d,#8e667c, 1-49 d,#39323b, 50-50 d,#8e667c, 51-99 d,#39323b, -|12: 0-0 d,#8e667c, 1-49 d,#39323b, 50-50 d,#8e667c, 51-99 d,#39323b, -|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,#745469, 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, -|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, -|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, -|23: 0-0 d,#8e667c, 1-49 d,#39323b, 50-50 d,#8e667c, 51-99 d,#39323b, -|24: 0-0 d,#8e667c, 1-49 d,#39323b, 50-50 d,#8e667c, 51-99 d,#39323b, -|25: 0-0 d,#8e667c, 1-49 d,#39323b, 50-50 d,#8e667c, 51-99 d,#39323b, -|26: 0-0 d,#8e667c, 1-49 d,#39323b, 50-50 d,#8e667c, 51-99 d,#39323b, -|27: 0-0 d,#8e667c, 1-49 d,#39323b, 50-50 d,#8e667c, 51-99 d,#39323b, -|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 ink grid=100x31 cursor=4,6 -|30: ✓ @p1 NextColor ×2 1 message · SPC h m +|30: 0-1 d,#1d2824, 2-99 #6f7d75,#1d2824, +== 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-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, +|9: 0-0 d,#608269, 1-49 d,#000000, 50-50 d,#608269, 51-99 d,#000000, +|10: 0-0 d,#608269, 1-49 d,#000000, 50-50 d,#608269, 51-99 d,#000000, +|11: 0-0 d,#608269, 1-49 d,#000000, 50-50 d,#608269, 51-99 d,#000000, +|12: 0-0 d,#608269, 1-49 d,#000000, 50-50 d,#608269, 51-99 d,#000000, +|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-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-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, +|23: 0-0 d,#608269, 1-49 d,#000000, 50-50 d,#608269, 51-99 d,#000000, +|24: 0-0 d,#608269, 1-49 d,#000000, 50-50 d,#608269, 51-99 d,#000000, +|25: 0-0 d,#608269, 1-49 d,#000000, 50-50 d,#608269, 51-99 d,#000000, +|26: 0-0 d,#608269, 1-49 d,#000000, 50-50 d,#608269, 51-99 d,#000000, +|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,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, -|1: 0-1 d,#8f7d5b, 2-49 #e1eef9,#2b4051, 50-51 #e1eef9,#8f7d5b, 52-99 #d5e4f1,#15212c, -|2: 0-1 d,#86d8ff, 2-28 #e1eef9,#2b4051, 29-38 #ffeab8,#2b4051, 39-49 #e1eef9,#2b4051, 50-51 #e1eef9,#5f7990, 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, +|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-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, @@ -115,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,#5f7990, 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, @@ -130,15 +195,117 @@ |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 paper grid=100x31 cursor=4,6 -|30: ✓ @p1 NextColor ×3 1 message · SPC h m +== snap mono grid=100x31 cursor=4,5 +|30: ✓ @p1 NextColor ×5 1 message · SPC h m +== style mono grid=100x31 +|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-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-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, +|9: 0-0 d,#4e4f56, 1-49 d,#111113, 50-50 d,#4e4f56, 51-99 d,#111113, +|10: 0-0 d,#4e4f56, 1-49 d,#111113, 50-50 d,#4e4f56, 51-99 d,#111113, +|11: 0-0 d,#4e4f56, 1-49 d,#111113, 50-50 d,#4e4f56, 51-99 d,#111113, +|12: 0-0 d,#4e4f56, 1-49 d,#111113, 50-50 d,#4e4f56, 51-99 d,#111113, +|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-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-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, +|23: 0-0 d,#4e4f56, 1-49 d,#111113, 50-50 d,#4e4f56, 51-99 d,#111113, +|24: 0-0 d,#4e4f56, 1-49 d,#111113, 50-50 d,#4e4f56, 51-99 d,#111113, +|25: 0-0 d,#4e4f56, 1-49 d,#111113, 50-50 d,#4e4f56, 51-99 d,#111113, +|26: 0-0 d,#4e4f56, 1-49 d,#111113, 50-50 d,#4e4f56, 51-99 d,#111113, +|27: 0-0 d,#4e4f56, 1-49 d,#111113, 50-50 d,#4e4f56, 51-99 d,#111113, +|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,5 +|30: ✓ @p1 NextColor ×6 1 message · SPC h m +== style okabe grid=100x31 +|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-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-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, +|9: 0-0 d,#49525e, 1-49 d,#0e1218, 50-50 d,#49525e, 51-99 d,#0e1218, +|10: 0-0 d,#49525e, 1-49 d,#0e1218, 50-50 d,#49525e, 51-99 d,#0e1218, +|11: 0-0 d,#49525e, 1-49 d,#0e1218, 50-50 d,#49525e, 51-99 d,#0e1218, +|12: 0-0 d,#49525e, 1-49 d,#0e1218, 50-50 d,#49525e, 51-99 d,#0e1218, +|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-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-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, +|23: 0-0 d,#49525e, 1-49 d,#0e1218, 50-50 d,#49525e, 51-99 d,#0e1218, +|24: 0-0 d,#49525e, 1-49 d,#0e1218, 50-50 d,#49525e, 51-99 d,#0e1218, +|25: 0-0 d,#49525e, 1-49 d,#0e1218, 50-50 d,#49525e, 51-99 d,#0e1218, +|26: 0-0 d,#49525e, 1-49 d,#0e1218, 50-50 d,#49525e, 51-99 d,#0e1218, +|27: 0-0 d,#49525e, 1-49 d,#0e1218, 50-50 d,#49525e, 51-99 d,#0e1218, +|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,5 +|30: ✓ @p1 NextColor ×7 1 message · SPC h m +== style sepia grid=100x31 +|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-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-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, +|9: 0-0 d,#a6987e, 1-49 d,#f4ecdb, 50-50 d,#a6987e, 51-99 d,#f4ecdb, +|10: 0-0 d,#a6987e, 1-49 d,#f4ecdb, 50-50 d,#a6987e, 51-99 d,#f4ecdb, +|11: 0-0 d,#a6987e, 1-49 d,#f4ecdb, 50-50 d,#a6987e, 51-99 d,#f4ecdb, +|12: 0-0 d,#a6987e, 1-49 d,#f4ecdb, 50-50 d,#a6987e, 51-99 d,#f4ecdb, +|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-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-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, +|23: 0-0 d,#a6987e, 1-49 d,#f4ecdb, 50-50 d,#a6987e, 51-99 d,#f4ecdb, +|24: 0-0 d,#a6987e, 1-49 d,#f4ecdb, 50-50 d,#a6987e, 51-99 d,#f4ecdb, +|25: 0-0 d,#a6987e, 1-49 d,#f4ecdb, 50-50 d,#a6987e, 51-99 d,#f4ecdb, +|26: 0-0 d,#a6987e, 1-49 d,#f4ecdb, 50-50 d,#a6987e, 51-99 d,#f4ecdb, +|27: 0-0 d,#a6987e, 1-49 d,#f4ecdb, 50-50 d,#a6987e, 51-99 d,#f4ecdb, +|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,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, -|1: 0-1 d,#bda27e, 2-49 #4a5a52,#bdd8ca, 50-51 #4a5a52,#bda27e, 52-99 #52625a,#e8eae3, -|2: 0-1 d,#367157, 2-28 #4a5a52,#bdd8ca, 29-38 #69447a,#bdd8ca, 39-49 #4a5a52,#bdd8ca, 50-51 #4a5a52,#8fa594, 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, +|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-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, @@ -149,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,#8fa594, 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, @@ -164,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 -|30: ✓ @p1 NextColor ×4 1 message · SPC h m +== 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, -|1: 0-1 d,#b79a7a, 2-49 #213e56,#c7dcec, 50-51 #213e56,#b79a7a, 52-99 #29465e,#edf2f7, -|2: 0-1 d,#006198, 2-28 #213e56,#c7dcec, 29-38 #52255f,#c7dcec, 39-49 #213e56,#c7dcec, 50-51 #213e56,#7b9eb7, 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, +|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-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, @@ -183,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,#7b9eb7, 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, @@ -198,49 +365,83 @@ |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 atelier grid=100x31 cursor=4,6 -|30: ✓ @p1 NextColor ×5 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, -|1: 0-1 d,#bca481, 2-49 #35584d,#bfdcce, 50-51 #35584d,#bca481, 52-99 #3d6055,#e4f0ed, -|2: 0-1 d,#36826b, 2-28 #35584d,#bfdcce, 29-38 #653f6b,#bfdcce, 39-49 #35584d,#bfdcce, 50-51 #35584d,#95baa2, 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, -|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, -|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, -|9: 0-0 d,#9fae76, 1-49 d,#fffdeb, 50-50 d,#9fae76, 51-99 d,#fffdeb, -|10: 0-0 d,#9fae76, 1-49 d,#fffdeb, 50-50 d,#9fae76, 51-99 d,#fffdeb, -|11: 0-0 d,#9fae76, 1-49 d,#fffdeb, 50-50 d,#9fae76, 51-99 d,#fffdeb, -|12: 0-0 d,#9fae76, 1-49 d,#fffdeb, 50-50 d,#9fae76, 51-99 d,#fffdeb, -|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,#95baa2, 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, -|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, -|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, -|23: 0-0 d,#9fae76, 1-49 d,#fffdeb, 50-50 d,#9fae76, 51-99 d,#fffdeb, -|24: 0-0 d,#9fae76, 1-49 d,#fffdeb, 50-50 d,#9fae76, 51-99 d,#fffdeb, -|25: 0-0 d,#9fae76, 1-49 d,#fffdeb, 50-50 d,#9fae76, 51-99 d,#fffdeb, -|26: 0-0 d,#9fae76, 1-49 d,#fffdeb, 50-50 d,#9fae76, 51-99 d,#fffdeb, -|27: 0-0 d,#9fae76, 1-49 d,#fffdeb, 50-50 d,#9fae76, 51-99 d,#fffdeb, -|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 forge grid=100x31 cursor=4,6 -|30: ✓ @p1 NextColor ×6 1 message · SPC h m +== snap dusk grid=100x31 cursor=4,5 +|30: ✓ @p1 NextColor ×10 1 message · SPC h m +== style dusk grid=100x31 +|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-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-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, +|9: 0-0 d,#8e667c, 1-49 d,#39323b, 50-50 d,#8e667c, 51-99 d,#39323b, +|10: 0-0 d,#8e667c, 1-49 d,#39323b, 50-50 d,#8e667c, 51-99 d,#39323b, +|11: 0-0 d,#8e667c, 1-49 d,#39323b, 50-50 d,#8e667c, 51-99 d,#39323b, +|12: 0-0 d,#8e667c, 1-49 d,#39323b, 50-50 d,#8e667c, 51-99 d,#39323b, +|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-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-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, +|23: 0-0 d,#8e667c, 1-49 d,#39323b, 50-50 d,#8e667c, 51-99 d,#39323b, +|24: 0-0 d,#8e667c, 1-49 d,#39323b, 50-50 d,#8e667c, 51-99 d,#39323b, +|25: 0-0 d,#8e667c, 1-49 d,#39323b, 50-50 d,#8e667c, 51-99 d,#39323b, +|26: 0-0 d,#8e667c, 1-49 d,#39323b, 50-50 d,#8e667c, 51-99 d,#39323b, +|27: 0-0 d,#8e667c, 1-49 d,#39323b, 50-50 d,#8e667c, 51-99 d,#39323b, +|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,5 +|30: ✓ @p1 NextColor ×11 1 message · SPC h m +== style lapis grid=100x31 +|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-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-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, +|9: 0-0 d,#e8c46a, 1-49 d,#0a1030, 50-50 d,#e8c46a, 51-99 d,#0a1030, +|10: 0-0 d,#e8c46a, 1-49 d,#0a1030, 50-50 d,#e8c46a, 51-99 d,#0a1030, +|11: 0-0 d,#e8c46a, 1-49 d,#0a1030, 50-50 d,#e8c46a, 51-99 d,#0a1030, +|12: 0-0 d,#e8c46a, 1-49 d,#0a1030, 50-50 d,#e8c46a, 51-99 d,#0a1030, +|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-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-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, +|23: 0-0 d,#e8c46a, 1-49 d,#0a1030, 50-50 d,#e8c46a, 51-99 d,#0a1030, +|24: 0-0 d,#e8c46a, 1-49 d,#0a1030, 50-50 d,#e8c46a, 51-99 d,#0a1030, +|25: 0-0 d,#e8c46a, 1-49 d,#0a1030, 50-50 d,#e8c46a, 51-99 d,#0a1030, +|26: 0-0 d,#e8c46a, 1-49 d,#0a1030, 50-50 d,#e8c46a, 51-99 d,#0a1030, +|27: 0-0 d,#e8c46a, 1-49 d,#0a1030, 50-50 d,#e8c46a, 51-99 d,#0a1030, +|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,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, -|1: 0-1 d,#6a7b67, 2-49 #d1d5de,#374253, 50-51 #d1d5de,#6a7b67, 52-99 #c5c9d2,#22252b, -|2: 0-1 d,#9cc3f7, 2-28 #d1d5de,#374253, 29-38 #f8cba7,#374253, 39-49 #d1d5de,#374253, 50-51 #d1d5de,#55647b, 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, +|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-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, @@ -251,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,#55647b, 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, @@ -266,15 +467,80 @@ |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 lagoon grid=100x31 cursor=4,6 -|30: ✓ @p1 NextColor ×7 1 message · SPC h m +== 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-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, +|9: 0-0 d,#708095, 1-49 d,#000000, 50-50 d,#708095, 51-99 d,#000000, +|10: 0-0 d,#708095, 1-49 d,#000000, 50-50 d,#708095, 51-99 d,#000000, +|11: 0-0 d,#708095, 1-49 d,#000000, 50-50 d,#708095, 51-99 d,#000000, +|12: 0-0 d,#708095, 1-49 d,#000000, 50-50 d,#708095, 51-99 d,#000000, +|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-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-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, +|23: 0-0 d,#708095, 1-49 d,#000000, 50-50 d,#708095, 51-99 d,#000000, +|24: 0-0 d,#708095, 1-49 d,#000000, 50-50 d,#708095, 51-99 d,#000000, +|25: 0-0 d,#708095, 1-49 d,#000000, 50-50 d,#708095, 51-99 d,#000000, +|26: 0-0 d,#708095, 1-49 d,#000000, 50-50 d,#708095, 51-99 d,#000000, +|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,5 +|30: ✓ @p1 NextColor ×14 1 message · SPC h m +== style forge-soft grid=100x31 +|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-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-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, +|9: 0-0 d,#708095, 1-49 d,#35383e, 50-50 d,#708095, 51-99 d,#35383e, +|10: 0-0 d,#708095, 1-49 d,#35383e, 50-50 d,#708095, 51-99 d,#35383e, +|11: 0-0 d,#708095, 1-49 d,#35383e, 50-50 d,#708095, 51-99 d,#35383e, +|12: 0-0 d,#708095, 1-49 d,#35383e, 50-50 d,#708095, 51-99 d,#35383e, +|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-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-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, +|23: 0-0 d,#708095, 1-49 d,#35383e, 50-50 d,#708095, 51-99 d,#35383e, +|24: 0-0 d,#708095, 1-49 d,#35383e, 50-50 d,#708095, 51-99 d,#35383e, +|25: 0-0 d,#708095, 1-49 d,#35383e, 50-50 d,#708095, 51-99 d,#35383e, +|26: 0-0 d,#708095, 1-49 d,#35383e, 50-50 d,#708095, 51-99 d,#35383e, +|27: 0-0 d,#708095, 1-49 d,#35383e, 50-50 d,#708095, 51-99 d,#35383e, +|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,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, -|1: 0-1 d,#9a7662, 2-49 #c7e3d7,#3a6154, 50-51 #c7e3d7,#9a7662, 52-99 #bbd7cb,#29443f, -|2: 0-1 d,#81cfb7, 2-28 #c7e3d7,#3a6154, 29-38 #f0cef8,#3a6154, 39-49 #c7e3d7,#3a6154, 50-51 #c7e3d7,#548372, 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, +|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-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, @@ -285,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,#548372, 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, @@ -300,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 -|30: ✓ @p1 NextColor ×8 1 message · SPC h m +== 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, -|1: 0-1 d,#347a9a, 2-49 #d3e0c9,#2f5c5c, 50-51 #d3e0c9,#347a9a, 52-99 #c7d4bd,#123f43, -|2: 0-1 d,#e1c266, 2-28 #d3e0c9,#2f5c5c, 29-38 #f5cdec,#2f5c5c, 39-49 #d3e0c9,#2f5c5c, 50-51 #d3e0c9,#467f76, 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, +|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-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, @@ -319,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,#467f76, 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, @@ -334,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 -|30: ✓ @p1 NextColor ×9 1 message · SPC h m +== 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, -|1: 0-1 d,#706596, 2-49 #e9e4c7,#5a523a, 50-51 #e9e4c7,#706596, 52-99 #ddd8bb,#3b3830, -|2: 0-1 d,#ffd866, 2-28 #e9e4c7,#5a523a, 29-38 #d7e3ff,#5a523a, 39-49 #e9e4c7,#5a523a, 50-51 #e9e4c7,#92844f, 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, +|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-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, @@ -353,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,#92844f, 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, @@ -368,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 -|30: ✓ @p1 NextColor ×10 1 message · SPC h m +== 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, -|1: 0-1 d,#9b583f, 2-49 #e1e4c4,#4a583e, 50-51 #e1e4c4,#9b583f, 52-99 #d5d8b8,#343b2e, -|2: 0-1 d,#d8bd83, 2-28 #e1e4c4,#4a583e, 29-38 #c5e7f7,#4a583e, 39-49 #e1e4c4,#4a583e, 50-51 #e1e4c4,#7b7e4e, 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, +|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-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, @@ -387,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,#7b7e4e, 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, @@ -402,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 -|30: ✓ @p1 NextColor ×11 1 message · SPC h m +== 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, -|1: 0-1 d,#875e65, 2-49 #e3e2c2,#4d5c48, 50-51 #e3e2c2,#875e65, 52-99 #d7d6b6,#343f36, -|2: 0-1 d,#8ac874, 2-28 #e3e2c2,#4d5c48, 29-38 #b5ecec,#4d5c48, 39-49 #e3e2c2,#4d5c48, 50-51 #e3e2c2,#687c4d, 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, +|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-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, @@ -421,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,#687c4d, 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, @@ -436,117 +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 forge-black grid=100x31 cursor=4,6 -|30: ✓ @p1 NextColor ×12 1 message · SPC h m -== style forge-black grid=100x31 -|0: 0-1 d,#22252b, 2-85 #c5c9d2,#22252b, 86-94 #e2eef4,#1c5172, 95-99 #e2eef4,#22252b, -|1: 0-1 d,#6a7b67, 2-49 #d1d5de,#374253, 50-51 #d1d5de,#6a7b67, 52-99 #c5c9d2,#22252b, -|2: 0-1 d,#9cc3f7, 2-28 #d1d5de,#374253, 29-38 #f8cba7,#374253, 39-49 #d1d5de,#374253, 50-51 #d1d5de,#55647b, 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, -|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, -|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, -|9: 0-0 d,#708095, 1-49 d,#000000, 50-50 d,#708095, 51-99 d,#000000, -|10: 0-0 d,#708095, 1-49 d,#000000, 50-50 d,#708095, 51-99 d,#000000, -|11: 0-0 d,#708095, 1-49 d,#000000, 50-50 d,#708095, 51-99 d,#000000, -|12: 0-0 d,#708095, 1-49 d,#000000, 50-50 d,#708095, 51-99 d,#000000, -|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,#55647b, 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, -|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, -|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, -|23: 0-0 d,#708095, 1-49 d,#000000, 50-50 d,#708095, 51-99 d,#000000, -|24: 0-0 d,#708095, 1-49 d,#000000, 50-50 d,#708095, 51-99 d,#000000, -|25: 0-0 d,#708095, 1-49 d,#000000, 50-50 d,#708095, 51-99 d,#000000, -|26: 0-0 d,#708095, 1-49 d,#000000, 50-50 d,#708095, 51-99 d,#000000, -|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, -|30: 0-1 d,#22252b, 2-99 #767a82,#22252b, -== snap forge-soft grid=100x31 cursor=4,6 -|30: ✓ @p1 NextColor ×13 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, -|1: 0-1 d,#6d7f6c, 2-49 #d1d5de,#404a58, 50-51 #d1d5de,#6d7f6c, 52-99 #c5c9d2,#2a2d34, -|2: 0-1 d,#9cc3f7, 2-28 #d1d5de,#404a58, 29-38 #f8cba7,#404a58, 39-49 #d1d5de,#404a58, 50-51 #d1d5de,#55647b, 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, -|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, -|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, -|9: 0-0 d,#708095, 1-49 d,#35383e, 50-50 d,#708095, 51-99 d,#35383e, -|10: 0-0 d,#708095, 1-49 d,#35383e, 50-50 d,#708095, 51-99 d,#35383e, -|11: 0-0 d,#708095, 1-49 d,#35383e, 50-50 d,#708095, 51-99 d,#35383e, -|12: 0-0 d,#708095, 1-49 d,#35383e, 50-50 d,#708095, 51-99 d,#35383e, -|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,#55647b, 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, -|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, -|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, -|23: 0-0 d,#708095, 1-49 d,#35383e, 50-50 d,#708095, 51-99 d,#35383e, -|24: 0-0 d,#708095, 1-49 d,#35383e, 50-50 d,#708095, 51-99 d,#35383e, -|25: 0-0 d,#708095, 1-49 d,#35383e, 50-50 d,#708095, 51-99 d,#35383e, -|26: 0-0 d,#708095, 1-49 d,#35383e, 50-50 d,#708095, 51-99 d,#35383e, -|27: 0-0 d,#708095, 1-49 d,#35383e, 50-50 d,#708095, 51-99 d,#35383e, -|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 orchard-black grid=100x31 cursor=4,6 -|30: ✓ @p1 NextColor ×14 1 message · SPC h m -== style orchard-black grid=100x31 -|0: 0-1 d,#1d2824, 2-85 #b2c3b8,#1d2824, 86-94 #f5f7ee,#3c614a, 95-99 #f5f7ee,#1d2824, -|1: 0-1 d,#887455, 2-49 #becfc4,#314738, 50-51 #becfc4,#887455, 52-99 #b2c3b8,#1d2824, -|2: 0-1 d,#add38a, 2-28 #becfc4,#314738, 29-38 #dfbce5,#314738, 39-49 #becfc4,#314738, 50-51 #becfc4,#496656, 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, -|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, -|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, -|9: 0-0 d,#608269, 1-49 d,#000000, 50-50 d,#608269, 51-99 d,#000000, -|10: 0-0 d,#608269, 1-49 d,#000000, 50-50 d,#608269, 51-99 d,#000000, -|11: 0-0 d,#608269, 1-49 d,#000000, 50-50 d,#608269, 51-99 d,#000000, -|12: 0-0 d,#608269, 1-49 d,#000000, 50-50 d,#608269, 51-99 d,#000000, -|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,#496656, 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, -|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, -|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, -|23: 0-0 d,#608269, 1-49 d,#000000, 50-50 d,#608269, 51-99 d,#000000, -|24: 0-0 d,#608269, 1-49 d,#000000, 50-50 d,#608269, 51-99 d,#000000, -|25: 0-0 d,#608269, 1-49 d,#000000, 50-50 d,#608269, 51-99 d,#000000, -|26: 0-0 d,#608269, 1-49 d,#000000, 50-50 d,#608269, 51-99 d,#000000, -|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, -|30: 0-1 d,#1d2824, 2-99 #6f7d75,#1d2824, -== snap acme grid=100x31 cursor=4,6 -|30: ✓ @p1 NextColor ×15 1 message · SPC h m +== 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, -|1: 0-1 d,#8888cc, 2-49 #000000,#eaffff, 50-51 #000000,#8888cc, 52-99 #000000,#eaffff, -|2: 0-1 d,#8888cc, 2-28 #000000,#eaffff, 29-38 #000099,#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, +|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-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, @@ -557,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, @@ -572,49 +736,49 @@ |28: 0-99 d,#ffffea, |29: 0-99 d,#ffffea, |30: 0-1 d,#eaffff, 2-99 #7a8686,#eaffff, -== snap lapis grid=100x31 cursor=4,6 -|30: ✓ @p1 NextColor ×16 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, -|1: 0-1 d,#8a3a3a, 2-49 #eee6d2,#25397d, 50-51 #eee6d2,#8a3a3a, 52-99 #9aa6d9,#0f1a4a, -|2: 0-1 d,#e8c46a, 2-28 #eee6d2,#25397d, 29-38 #f2d280,#25397d, 39-49 #eee6d2,#25397d, 50-51 #eee6d2,#6a78b1, 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, -|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, -|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, -|9: 0-0 d,#e8c46a, 1-49 d,#0a1030, 50-50 d,#e8c46a, 51-99 d,#0a1030, -|10: 0-0 d,#e8c46a, 1-49 d,#0a1030, 50-50 d,#e8c46a, 51-99 d,#0a1030, -|11: 0-0 d,#e8c46a, 1-49 d,#0a1030, 50-50 d,#e8c46a, 51-99 d,#0a1030, -|12: 0-0 d,#e8c46a, 1-49 d,#0a1030, 50-50 d,#e8c46a, 51-99 d,#0a1030, -|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,#6a78b1, 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, -|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, -|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, -|23: 0-0 d,#e8c46a, 1-49 d,#0a1030, 50-50 d,#e8c46a, 51-99 d,#0a1030, -|24: 0-0 d,#e8c46a, 1-49 d,#0a1030, 50-50 d,#e8c46a, 51-99 d,#0a1030, -|25: 0-0 d,#e8c46a, 1-49 d,#0a1030, 50-50 d,#e8c46a, 51-99 d,#0a1030, -|26: 0-0 d,#e8c46a, 1-49 d,#0a1030, 50-50 d,#e8c46a, 51-99 d,#0a1030, -|27: 0-0 d,#e8c46a, 1-49 d,#0a1030, 50-50 d,#e8c46a, 51-99 d,#0a1030, -|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 dark-plus grid=100x31 cursor=4,6 -|30: ✓ @p1 NextColor ×17 1 message · SPC h m +== snap atelier grid=100x31 cursor=4,5 +|30: ✓ @p1 NextColor ×21 1 message · SPC h m +== style atelier grid=100x31 +|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-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-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, +|9: 0-0 d,#9fae76, 1-49 d,#fffdeb, 50-50 d,#9fae76, 51-99 d,#fffdeb, +|10: 0-0 d,#9fae76, 1-49 d,#fffdeb, 50-50 d,#9fae76, 51-99 d,#fffdeb, +|11: 0-0 d,#9fae76, 1-49 d,#fffdeb, 50-50 d,#9fae76, 51-99 d,#fffdeb, +|12: 0-0 d,#9fae76, 1-49 d,#fffdeb, 50-50 d,#9fae76, 51-99 d,#fffdeb, +|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-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-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, +|23: 0-0 d,#9fae76, 1-49 d,#fffdeb, 50-50 d,#9fae76, 51-99 d,#fffdeb, +|24: 0-0 d,#9fae76, 1-49 d,#fffdeb, 50-50 d,#9fae76, 51-99 d,#fffdeb, +|25: 0-0 d,#9fae76, 1-49 d,#fffdeb, 50-50 d,#9fae76, 51-99 d,#fffdeb, +|26: 0-0 d,#9fae76, 1-49 d,#fffdeb, 50-50 d,#9fae76, 51-99 d,#fffdeb, +|27: 0-0 d,#9fae76, 1-49 d,#fffdeb, 50-50 d,#9fae76, 51-99 d,#fffdeb, +|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,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, -|1: 0-1 d,#458276, 2-49 #ffffff,#1e1e1e, 50-51 #ffffff,#458276, 52-99 #a7a7a7,#3c3c3c, -|2: 0-1 d,#007fd4, 2-28 #ffffff,#1e1e1e, 29-38 #cbe5fc,#1e1e1e, 39-49 #ffffff,#1e1e1e, 50-51 #ffffff,#1c608e, 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, +|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-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, @@ -625,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,#1c608e, 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, @@ -640,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 -|30: ✓ @p1 NextColor ×18 1 message · SPC h m +== 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, -|1: 0-1 d,#758a41, 2-49 #073642,#93a1a1, 50-51 #073642,#758a41, 52-99 #01090b,#657b83, -|2: 0-1 d,#2483c5, 2-28 #073642,#93a1a1, 29-38 #2d3502,#93a1a1, 39-49 #073642,#93a1a1, 50-51 #073642,#185986, 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, +|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-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, @@ -659,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,#185986, 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 b975c35b..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,640 +28,971 @@ | 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 themes -|18: 2 Theme orchard -|19: 3 Theme dusk -|20: 4 Theme ink -|21: 5 Theme paper -|22: 6 Theme daybreak -|23: 7 Theme atelier -|24: 8 Theme forge -|25: 9 Theme lagoon -|26: 10 Theme solarium -|27: 11 Theme spectrum -|28: 12 Theme harvest -|29: 13 Theme clay +== 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-orchard 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,#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,#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-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-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-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-99 #5c5c66,d, +|30: 0-1 d,#2c2a3e, 2-99 #817f97,#2c2a3e, +== 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,#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,#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-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-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-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-99 #a3a1b0,#fbfbfd, +|30: 0-1 d,#e9e7f3, 2-99 #7a778e,#e9e7f3, +== 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,#887455, 2-99 #becfc4,#314738, -|2: 0-1 d,#496656, 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 #dfbce5,#314738, 40-99 #becfc4,#314738, -|17: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-99 #e5eee5,#0d1410, -|18: 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-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-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-dusk grid=100x31 cursor=7,19 -|30: ✓ /tmp/pardes-snap/themesel/cwd/+Themes Theme 5 messages · SPC h m +== 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 +|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,#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-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, +|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-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-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-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,#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,#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-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-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-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-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-99 #626b75,#000000, +|30: 0-1 d,#15212c, 2-99 #697784,#15212c, +== 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,#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,#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-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-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-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-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-99 #55565e,#111113, +|30: 0-1 d,#1e1f24, 2-99 #73747c,#1e1f24, +== 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,#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,#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-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-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-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-99 #4e5866,#0e1218, +|30: 0-1 d,#1b222c, 2-99 #6d7784,#1b222c, +== 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,#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,#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-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-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-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-99 #a8987c,#f4ecdb, +|30: 0-1 d,#e6d8ba, 2-99 #7c6e58,#e6d8ba, +== 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,#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,#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-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-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, +|21: 0-0 d,#e5e8df, 1-4 d,#f5f3ed, 5-6 #8b9185,#f5f3ed, 7-99 #303b3b,#f5f3ed, +|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-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-99 #8b9185,#f5f3ed, +|30: 0-1 d,#e8eae3, 2-99 #6f7d75,#e8eae3, +== snap step-daybreak grid=100x31 cursor=7,26 +|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,#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,#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-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-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, +|21: 0-0 d,#e6edf3, 1-4 d,#ffffff, 5-6 #88939b,#ffffff, 7-99 #142d40,#ffffff, +|22: 0-0 d,#e6edf3, 1-4 d,#ffffff, 5-6 #88939b,#ffffff, 7-99 #142d40,#ffffff, +|23: 0-0 d,#e6edf3, 1-4 d,#ffffff, 5-6 #88939b,#ffffff, 7-99 #142d40,#ffffff, +|24: 0-0 d,#e6edf3, 1-4 d,#ffffff, 5-6 #88939b,#ffffff, 7-99 #142d40,#ffffff, +|25: 0-0 d,#e6edf3, 1-3 d,#ffffff, 4-6 #88939b,#ffffff, 7-99 #142d40,#ffffff, +|26: 0-0 d,#e6edf3, 1-1 d,#ffffff, 2-3 d,#ffffff,b 4-6 #808b93,#ffffff,b 7-99 #142d40,#ffffff, +|27: 0-0 d,#e6edf3, 1-3 d,#ffffff, 4-6 #88939b,#ffffff, 7-99 #142d40,#ffffff, +|28: 0-0 d,#e6edf3, 1-3 d,#ffffff, 4-6 #88939b,#ffffff, 7-99 #142d40,#ffffff, +|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 +|20: 6 Theme ink +|21: 7 Theme mono +|22: 8 Theme okabe +|23: 9 Theme sepia +|24: 10 Theme paper +|25: 11 Theme daybreak +|26: 12 Theme dusk +|27: 13 Theme lapis +|28: 14 +|29: 15 # Pardes, after a classic +|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,#757a5f, 2-99 #d2c2d1,#533d4d, -|2: 0-1 d,#745469, 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 #a1d5c4,#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-1 d,#39323b, 2-4 d,#39323b,b 5-6 #8a7986,#39323b,b 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, |21: 0-0 d,#3d3540, 1-4 d,#39323b, 5-6 #82717e,#39323b, 7-99 #c3b6c1,#39323b, |22: 0-0 d,#3d3540, 1-4 d,#39323b, 5-6 #82717e,#39323b, 7-99 #c3b6c1,#39323b, |23: 0-0 d,#3d3540, 1-4 d,#39323b, 5-6 #82717e,#39323b, 7-99 #c3b6c1,#39323b, -|24: 0-0 d,#3d3540, 1-4 d,#39323b, 5-6 #82717e,#39323b, 7-99 #c3b6c1,#39323b, -|25: 0-0 d,#3d3540, 1-4 d,#39323b, 5-6 #82717e,#39323b, 7-99 #c3b6c1,#39323b, -|26: 0-0 d,#3d3540, 1-3 d,#39323b, 4-6 #82717e,#39323b, 7-99 #c3b6c1,#39323b, +|24: 0-0 d,#3d3540, 1-3 d,#39323b, 4-6 #82717e,#39323b, 7-99 #c3b6c1,#39323b, +|25: 0-0 d,#3d3540, 1-3 d,#39323b, 4-6 #82717e,#39323b, 7-99 #c3b6c1,#39323b, +|26: 0-0 d,#3d3540, 1-1 d,#39323b, 2-3 d,#39323b,b 4-6 #8a7986,#39323b,b 7-99 #c3b6c1,#39323b, |27: 0-0 d,#3d3540, 1-3 d,#39323b, 4-6 #82717e,#39323b, 7-99 #c3b6c1,#39323b, -|28: 0-0 d,#3d3540, 1-3 d,#39323b, 4-6 #82717e,#39323b, 7-99 #c3b6c1,#39323b, +|28: 0-0 d,#3d3540, 1-3 d,#39323b, 4-99 #82717e,#39323b, |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-atelier grid=100x31 cursor=7,23 -|30: ✓ /tmp/pardes-snap/themesel/cwd/+Themes Theme 7 messages · SPC h m -== style step-atelier grid=100x31 -|0: 0-1 d,#e4f0ed, 2-99 #3d6055,#e4f0ed, -|1: 0-1 d,#bca481, 2-99 #35584d,#bfdcce, -|2: 0-1 d,#95baa2, 2-31 #3d6055,#e4f0ed, 32-37 #6e4774,#e4f0ed, 38-99 #3d6055,#e4f0ed, -|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, -|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, -|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 #653f6b,#bfdcce, 40-99 #35584d,#bfdcce, -|17: 0-0 d,#9fae76, 1-4 d,#fffdeb, 5-6 #909880,#fffdeb, 7-99 #293f35,#fffdeb, -|18: 0-0 d,#eeeccf, 1-4 d,#fffdeb, 5-6 #909880,#fffdeb, 7-99 #293f35,#fffdeb, -|19: 0-0 d,#eeeccf, 1-4 d,#fffdeb, 5-6 #909880,#fffdeb, 7-99 #293f35,#fffdeb, -|20: 0-0 d,#eeeccf, 1-4 d,#fffdeb, 5-6 #909880,#fffdeb, 7-99 #293f35,#fffdeb, -|21: 0-0 d,#eeeccf, 1-4 d,#fffdeb, 5-6 #909880,#fffdeb, 7-99 #293f35,#fffdeb, -|22: 0-0 d,#eeeccf, 1-4 d,#fffdeb, 5-6 #909880,#fffdeb, 7-99 #293f35,#fffdeb, -|23: 0-0 d,#eeeccf, 1-1 d,#fffdeb, 2-4 d,#fffdeb,b 5-6 #889078,#fffdeb,b 7-99 #293f35,#fffdeb, -|24: 0-0 d,#eeeccf, 1-4 d,#fffdeb, 5-6 #909880,#fffdeb, 7-99 #293f35,#fffdeb, -|25: 0-0 d,#eeeccf, 1-4 d,#fffdeb, 5-6 #909880,#fffdeb, 7-99 #293f35,#fffdeb, -|26: 0-0 d,#eeeccf, 1-3 d,#fffdeb, 4-6 #909880,#fffdeb, 7-99 #293f35,#fffdeb, -|27: 0-0 d,#eeeccf, 1-3 d,#fffdeb, 4-6 #909880,#fffdeb, 7-99 #293f35,#fffdeb, -|28: 0-0 d,#eeeccf, 1-3 d,#fffdeb, 4-6 #909880,#fffdeb, 7-99 #293f35,#fffdeb, -|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-forge grid=100x31 cursor=7,24 -|30: ✓ /tmp/pardes-snap/themesel/cwd/+Themes Theme 9 messages · SPC h m +== 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 +|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/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,#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,#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-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-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, +|21: 0-0 d,#050a24, 1-4 d,#0a1030, 5-6 #5a6aa8,#0a1030, 7-99 #eee6d2,#0a1030, +|22: 0-0 d,#050a24, 1-4 d,#0a1030, 5-6 #5a6aa8,#0a1030, 7-99 #eee6d2,#0a1030, +|23: 0-0 d,#050a24, 1-3 d,#0a1030, 4-6 #5a6aa8,#0a1030, 7-99 #eee6d2,#0a1030, +|24: 0-0 d,#050a24, 1-3 d,#0a1030, 4-6 #5a6aa8,#0a1030, 7-99 #eee6d2,#0a1030, +|25: 0-0 d,#050a24, 1-3 d,#0a1030, 4-6 #5a6aa8,#0a1030, 7-99 #eee6d2,#0a1030, +|26: 0-0 d,#050a24, 1-1 d,#0a1030, 2-3 d,#0a1030,b 4-6 #6a7ab8,#0a1030,b 7-99 #eee6d2,#0a1030, +|27: 0-0 d,#050a24, 1-3 d,#0a1030, 4-99 #5a6aa8,#0a1030, +|28: 0-0 d,#050a24, 1-3 d,#0a1030, 4-6 #5a6aa8,#0a1030, 7-99 #eee6d2,#0a1030, +|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 +|20: 10 Theme paper +|21: 11 Theme daybreak +|22: 12 Theme dusk +|23: 13 Theme lapis +|24: 14 +|25: 15 # Pardes, after a classic +|26: 16 Theme forge +|27: 17 Theme forge_black +|28: 18 Theme forge_soft +|29: 19 Theme lagoon +|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,#6a7b67, 2-99 #d1d5de,#374253, -|2: 0-1 d,#55647b, 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 #f8cba7,#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-4 d,#0c0c0e, 5-6 #62656c,#0c0c0e, 7-99 #e5e5e5,#0c0c0e, -|21: 0-0 d,#1a1c21, 1-4 d,#0c0c0e, 5-6 #62656c,#0c0c0e, 7-99 #e5e5e5,#0c0c0e, -|22: 0-0 d,#1a1c21, 1-4 d,#0c0c0e, 5-6 #62656c,#0c0c0e, 7-99 #e5e5e5,#0c0c0e, -|23: 0-0 d,#1a1c21, 1-4 d,#0c0c0e, 5-6 #62656c,#0c0c0e, 7-99 #e5e5e5,#0c0c0e, -|24: 0-0 d,#1a1c21, 1-1 d,#0c0c0e, 2-4 d,#0c0c0e,b 5-6 #6a6d74,#0c0c0e,b 7-99 #e5e5e5,#0c0c0e, -|25: 0-0 d,#1a1c21, 1-4 d,#0c0c0e, 5-6 #62656c,#0c0c0e, 7-99 #e5e5e5,#0c0c0e, -|26: 0-0 d,#1a1c21, 1-3 d,#0c0c0e, 4-6 #62656c,#0c0c0e, 7-99 #e5e5e5,#0c0c0e, +|20: 0-0 d,#1a1c21, 1-3 d,#0c0c0e, 4-6 #62656c,#0c0c0e, 7-99 #e5e5e5,#0c0c0e, +|21: 0-0 d,#1a1c21, 1-3 d,#0c0c0e, 4-6 #62656c,#0c0c0e, 7-99 #e5e5e5,#0c0c0e, +|22: 0-0 d,#1a1c21, 1-3 d,#0c0c0e, 4-6 #62656c,#0c0c0e, 7-99 #e5e5e5,#0c0c0e, +|23: 0-0 d,#1a1c21, 1-3 d,#0c0c0e, 4-6 #62656c,#0c0c0e, 7-99 #e5e5e5,#0c0c0e, +|24: 0-0 d,#1a1c21, 1-3 d,#0c0c0e, 4-99 #62656c,#0c0c0e, +|25: 0-0 d,#1a1c21, 1-3 d,#0c0c0e, 4-6 #62656c,#0c0c0e, 7-99 #e5e5e5,#0c0c0e, +|26: 0-0 d,#1a1c21, 1-1 d,#0c0c0e, 2-3 d,#0c0c0e,b 4-6 #6a6d74,#0c0c0e,b 7-99 #e5e5e5,#0c0c0e, |27: 0-0 d,#1a1c21, 1-3 d,#0c0c0e, 4-6 #62656c,#0c0c0e, 7-99 #e5e5e5,#0c0c0e, |28: 0-0 d,#1a1c21, 1-3 d,#0c0c0e, 4-6 #62656c,#0c0c0e, 7-99 #e5e5e5,#0c0c0e, |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-lagoon grid=100x31 cursor=7,25 -|30: ✓ /tmp/pardes-snap/themesel/cwd/+Themes Theme 11 messages · SPC h m +== 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 +|20: 11 Theme daybreak +|21: 12 Theme dusk +|22: 13 Theme lapis +|23: 14 +|24: 15 # Pardes, after a classic +|25: 16 Theme forge +|26: 17 Theme forge_black +|27: 18 Theme forge_soft +|28: 19 Theme lagoon +|29: 20 Theme solarium +|30: ✓ /tmp/pardes-snap/themesel/cwd/+Themes Theme 29 messages · SPC h m +== style step-forge-black grid=100x31 +|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,#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-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, +|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, +|21: 0-0 d,#14161a, 1-3 d,#000000, 4-6 #62656c,#000000, 7-99 #f6f6f6,#000000, +|22: 0-0 d,#14161a, 1-3 d,#000000, 4-6 #62656c,#000000, 7-99 #f6f6f6,#000000, +|23: 0-0 d,#14161a, 1-3 d,#000000, 4-99 #62656c,#000000, +|24: 0-0 d,#14161a, 1-3 d,#000000, 4-6 #62656c,#000000, 7-99 #f6f6f6,#000000, +|25: 0-0 d,#14161a, 1-3 d,#000000, 4-6 #62656c,#000000, 7-99 #f6f6f6,#000000, +|26: 0-0 d,#14161a, 1-1 d,#000000, 2-3 d,#000000,b 4-6 #6a6d74,#000000,b 7-99 #f6f6f6,#000000, +|27: 0-0 d,#14161a, 1-3 d,#000000, 4-6 #62656c,#000000, 7-99 #f6f6f6,#000000, +|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 +|20: 12 Theme dusk +|21: 13 Theme lapis +|22: 14 +|23: 15 # Pardes, after a classic +|24: 16 Theme forge +|25: 17 Theme forge_black +|26: 18 Theme forge_soft +|27: 19 Theme lagoon +|28: 20 Theme solarium +|29: 21 Theme spectrum +|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,#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,#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-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-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, +|21: 0-0 d,#3d4047, 1-3 d,#35383e, 4-6 #868991,#35383e, 7-99 #bfc3cc,#35383e, +|22: 0-0 d,#3d4047, 1-3 d,#35383e, 4-99 #868991,#35383e, +|23: 0-0 d,#3d4047, 1-3 d,#35383e, 4-6 #868991,#35383e, 7-99 #bfc3cc,#35383e, +|24: 0-0 d,#3d4047, 1-3 d,#35383e, 4-6 #868991,#35383e, 7-99 #bfc3cc,#35383e, +|25: 0-0 d,#3d4047, 1-3 d,#35383e, 4-6 #868991,#35383e, 7-99 #bfc3cc,#35383e, +|26: 0-0 d,#3d4047, 1-1 d,#35383e, 2-3 d,#35383e,b 4-6 #8e9199,#35383e,b 7-99 #bfc3cc,#35383e, +|27: 0-0 d,#3d4047, 1-3 d,#35383e, 4-6 #868991,#35383e, 7-99 #bfc3cc,#35383e, +|28: 0-0 d,#3d4047, 1-3 d,#35383e, 4-6 #868991,#35383e, 7-99 #bfc3cc,#35383e, +|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 +|20: 13 Theme lapis +|21: 14 +|22: 15 # Pardes, after a classic +|23: 16 Theme forge +|24: 17 Theme forge_black +|25: 18 Theme forge_soft +|26: 19 Theme lagoon +|27: 20 Theme solarium +|28: 21 Theme spectrum +|29: 22 Theme harvest +|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,#9a7662, 2-99 #c7e3d7,#3a6154, -|2: 0-1 d,#548372, 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 #f0cef8,#3a6154, 40-99 #c7e3d7,#3a6154, -|17: 0-0 d,#6e9b8b, 1-4 d,#34464c, 5-6 #7b9194,#34464c, 7-99 #bac9ce,#34464c, -|18: 0-0 d,#3a4c50, 1-4 d,#34464c, 5-6 #7b9194,#34464c, 7-99 #bac9ce,#34464c, -|19: 0-0 d,#3a4c50, 1-4 d,#34464c, 5-6 #7b9194,#34464c, 7-99 #bac9ce,#34464c, -|20: 0-0 d,#3a4c50, 1-4 d,#34464c, 5-6 #7b9194,#34464c, 7-99 #bac9ce,#34464c, -|21: 0-0 d,#3a4c50, 1-4 d,#34464c, 5-6 #7b9194,#34464c, 7-99 #bac9ce,#34464c, -|22: 0-0 d,#3a4c50, 1-4 d,#34464c, 5-6 #7b9194,#34464c, 7-99 #bac9ce,#34464c, -|23: 0-0 d,#3a4c50, 1-4 d,#34464c, 5-6 #7b9194,#34464c, 7-99 #bac9ce,#34464c, -|24: 0-0 d,#3a4c50, 1-4 d,#34464c, 5-6 #7b9194,#34464c, 7-99 #bac9ce,#34464c, -|25: 0-0 d,#3a4c50, 1-1 d,#34464c, 2-4 d,#34464c,b 5-6 #83999c,#34464c,b 7-99 #bac9ce,#34464c, -|26: 0-0 d,#3a4c50, 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, +|21: 0-0 d,#3a4c50, 1-3 d,#34464c, 4-99 #7b9194,#34464c, +|22: 0-0 d,#3a4c50, 1-3 d,#34464c, 4-6 #7b9194,#34464c, 7-99 #bac9ce,#34464c, +|23: 0-0 d,#3a4c50, 1-3 d,#34464c, 4-6 #7b9194,#34464c, 7-99 #bac9ce,#34464c, +|24: 0-0 d,#3a4c50, 1-3 d,#34464c, 4-6 #7b9194,#34464c, 7-99 #bac9ce,#34464c, +|25: 0-0 d,#3a4c50, 1-3 d,#34464c, 4-6 #7b9194,#34464c, 7-99 #bac9ce,#34464c, +|26: 0-0 d,#3a4c50, 1-1 d,#34464c, 2-3 d,#34464c,b 4-6 #83999c,#34464c,b 7-99 #bac9ce,#34464c, |27: 0-0 d,#3a4c50, 1-3 d,#34464c, 4-6 #7b9194,#34464c, 7-99 #bac9ce,#34464c, |28: 0-0 d,#3a4c50, 1-3 d,#34464c, 4-6 #7b9194,#34464c, 7-99 #bac9ce,#34464c, |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 -|30: ✓ /tmp/pardes-snap/themesel/cwd/+Themes Theme 13 messages · SPC h m +|16: 10 Theme paper +|17: 11 Theme daybreak +|18: 12 Theme dusk +|19: 13 Theme lapis +|20: 14 +|21: 15 # Pardes, after a classic +|22: 16 Theme forge +|23: 17 Theme forge_black +|24: 18 Theme forge_soft +|25: 19 Theme lagoon +|26: 20 Theme solarium +|27: 21 Theme spectrum +|28: 22 Theme harvest +|29: 23 Theme clay +|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,#347a9a, 2-99 #d3e0c9,#2f5c5c, -|2: 0-1 d,#467f76, 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 #f5cdec,#2f5c5c, 40-99 #d3e0c9,#2f5c5c, -|17: 0-0 d,#65978c, 1-4 d,#173e45, 5-6 #647e7c,#173e45, 7-99 #a7b7ae,#173e45, -|18: 0-0 d,#1c454c, 1-4 d,#173e45, 5-6 #647e7c,#173e45, 7-99 #a7b7ae,#173e45, -|19: 0-0 d,#1c454c, 1-4 d,#173e45, 5-6 #647e7c,#173e45, 7-99 #a7b7ae,#173e45, -|20: 0-0 d,#1c454c, 1-4 d,#173e45, 5-6 #647e7c,#173e45, 7-99 #a7b7ae,#173e45, -|21: 0-0 d,#1c454c, 1-4 d,#173e45, 5-6 #647e7c,#173e45, 7-99 #a7b7ae,#173e45, -|22: 0-0 d,#1c454c, 1-4 d,#173e45, 5-6 #647e7c,#173e45, 7-99 #a7b7ae,#173e45, -|23: 0-0 d,#1c454c, 1-4 d,#173e45, 5-6 #647e7c,#173e45, 7-99 #a7b7ae,#173e45, -|24: 0-0 d,#1c454c, 1-4 d,#173e45, 5-6 #647e7c,#173e45, 7-99 #a7b7ae,#173e45, -|25: 0-0 d,#1c454c, 1-4 d,#173e45, 5-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, +|21: 0-0 d,#1c454c, 1-3 d,#173e45, 4-6 #647e7c,#173e45, 7-99 #a7b7ae,#173e45, +|22: 0-0 d,#1c454c, 1-3 d,#173e45, 4-6 #647e7c,#173e45, 7-99 #a7b7ae,#173e45, +|23: 0-0 d,#1c454c, 1-3 d,#173e45, 4-6 #647e7c,#173e45, 7-99 #a7b7ae,#173e45, +|24: 0-0 d,#1c454c, 1-3 d,#173e45, 4-6 #647e7c,#173e45, 7-99 #a7b7ae,#173e45, +|25: 0-0 d,#1c454c, 1-3 d,#173e45, 4-6 #647e7c,#173e45, 7-99 #a7b7ae,#173e45, |26: 0-0 d,#1c454c, 1-1 d,#173e45, 2-3 d,#173e45,b 4-6 #6c8684,#173e45,b 7-99 #a7b7ae,#173e45, |27: 0-0 d,#1c454c, 1-3 d,#173e45, 4-6 #647e7c,#173e45, 7-99 #a7b7ae,#173e45, |28: 0-0 d,#1c454c, 1-3 d,#173e45, 4-6 #647e7c,#173e45, 7-99 #a7b7ae,#173e45, |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 -|17: 2 Theme orchard -|18: 3 Theme dusk -|19: 4 Theme ink -|20: 5 Theme paper -|21: 6 Theme daybreak -|22: 7 Theme atelier -|23: 8 Theme forge -|24: 9 Theme lagoon -|25: 10 Theme solarium -|26: 11 Theme spectrum -|27: 12 Theme harvest -|28: 13 Theme clay -|29: 14 Theme forge_black -|30: ✓ /tmp/pardes-snap/themesel/cwd/+Themes Theme 15 messages · SPC h m +|16: 11 Theme daybreak +|17: 12 Theme dusk +|18: 13 Theme lapis +|19: 14 +|20: 15 # Pardes, after a classic +|21: 16 Theme forge +|22: 17 Theme forge_black +|23: 18 Theme forge_soft +|24: 19 Theme lagoon +|25: 20 Theme solarium +|26: 21 Theme spectrum +|27: 22 Theme harvest +|28: 23 Theme clay +|29: 24 +|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,#706596, 2-99 #e9e4c7,#5a523a, -|2: 0-1 d,#92844f, 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 #d7e3ff,#5a523a, 40-99 #e9e4c7,#5a523a, -|17: 0-0 d,#948d6f, 1-4 d,#100e11, 5-6 #68616b,#100e11, 7-99 #fcfcfa,#100e11, -|18: 0-0 d,#211d23, 1-4 d,#100e11, 5-6 #68616b,#100e11, 7-99 #fcfcfa,#100e11, -|19: 0-0 d,#211d23, 1-4 d,#100e11, 5-6 #68616b,#100e11, 7-99 #fcfcfa,#100e11, -|20: 0-0 d,#211d23, 1-4 d,#100e11, 5-6 #68616b,#100e11, 7-99 #fcfcfa,#100e11, -|21: 0-0 d,#211d23, 1-4 d,#100e11, 5-6 #68616b,#100e11, 7-99 #fcfcfa,#100e11, -|22: 0-0 d,#211d23, 1-4 d,#100e11, 5-6 #68616b,#100e11, 7-99 #fcfcfa,#100e11, -|23: 0-0 d,#211d23, 1-4 d,#100e11, 5-6 #68616b,#100e11, 7-99 #fcfcfa,#100e11, -|24: 0-0 d,#211d23, 1-4 d,#100e11, 5-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, +|21: 0-0 d,#211d23, 1-3 d,#100e11, 4-6 #68616b,#100e11, 7-99 #fcfcfa,#100e11, +|22: 0-0 d,#211d23, 1-3 d,#100e11, 4-6 #68616b,#100e11, 7-99 #fcfcfa,#100e11, +|23: 0-0 d,#211d23, 1-3 d,#100e11, 4-6 #68616b,#100e11, 7-99 #fcfcfa,#100e11, +|24: 0-0 d,#211d23, 1-3 d,#100e11, 4-6 #68616b,#100e11, 7-99 #fcfcfa,#100e11, |25: 0-0 d,#211d23, 1-3 d,#100e11, 4-6 #68616b,#100e11, 7-99 #fcfcfa,#100e11, |26: 0-0 d,#211d23, 1-1 d,#100e11, 2-3 d,#100e11,b 4-6 #706973,#100e11,b 7-99 #fcfcfa,#100e11, |27: 0-0 d,#211d23, 1-3 d,#100e11, 4-6 #68616b,#100e11, 7-99 #fcfcfa,#100e11, |28: 0-0 d,#211d23, 1-3 d,#100e11, 4-6 #68616b,#100e11, 7-99 #fcfcfa,#100e11, -|29: 0-0 d,#211d23, 1-3 d,#100e11, 4-6 #68616b,#100e11, 7-99 #fcfcfa,#100e11, +|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 -|17: 3 Theme dusk -|18: 4 Theme ink -|19: 5 Theme paper -|20: 6 Theme daybreak -|21: 7 Theme atelier -|22: 8 Theme forge -|23: 9 Theme lagoon -|24: 10 Theme solarium -|25: 11 Theme spectrum -|26: 12 Theme harvest -|27: 13 Theme clay -|28: 14 Theme forge_black -|29: 15 Theme forge_soft -|30: ✓ /tmp/pardes-snap/themesel/cwd/+Themes Theme 17 messages · SPC h m +|16: 12 Theme dusk +|17: 13 Theme lapis +|18: 14 +|19: 15 # Pardes, after a classic +|20: 16 Theme forge +|21: 17 Theme forge_black +|22: 18 Theme forge_soft +|23: 19 Theme lagoon +|24: 20 Theme solarium +|25: 21 Theme spectrum +|26: 22 Theme harvest +|27: 23 Theme clay +|28: 24 +|29: 25 # acme +|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,#9b583f, 2-99 #e1e4c4,#4a583e, -|2: 0-1 d,#7b7e4e, 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 #c5e7f7,#4a583e, 40-99 #e1e4c4,#4a583e, -|17: 0-0 d,#888e5e, 1-4 d,#100e0b, 5-6 #6a6456,#100e0b, 7-99 #f3f2cc,#100e0b, -|18: 0-0 d,#201d17, 1-4 d,#100e0b, 5-6 #6a6456,#100e0b, 7-99 #f3f2cc,#100e0b, -|19: 0-0 d,#201d17, 1-4 d,#100e0b, 5-6 #6a6456,#100e0b, 7-99 #f3f2cc,#100e0b, -|20: 0-0 d,#201d17, 1-4 d,#100e0b, 5-6 #6a6456,#100e0b, 7-99 #f3f2cc,#100e0b, -|21: 0-0 d,#201d17, 1-4 d,#100e0b, 5-6 #6a6456,#100e0b, 7-99 #f3f2cc,#100e0b, -|22: 0-0 d,#201d17, 1-4 d,#100e0b, 5-6 #6a6456,#100e0b, 7-99 #f3f2cc,#100e0b, -|23: 0-0 d,#201d17, 1-4 d,#100e0b, 5-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, +|21: 0-0 d,#201d17, 1-3 d,#100e0b, 4-6 #6a6456,#100e0b, 7-99 #f3f2cc,#100e0b, +|22: 0-0 d,#201d17, 1-3 d,#100e0b, 4-6 #6a6456,#100e0b, 7-99 #f3f2cc,#100e0b, +|23: 0-0 d,#201d17, 1-3 d,#100e0b, 4-6 #6a6456,#100e0b, 7-99 #f3f2cc,#100e0b, |24: 0-0 d,#201d17, 1-3 d,#100e0b, 4-6 #6a6456,#100e0b, 7-99 #f3f2cc,#100e0b, |25: 0-0 d,#201d17, 1-3 d,#100e0b, 4-6 #6a6456,#100e0b, 7-99 #f3f2cc,#100e0b, |26: 0-0 d,#201d17, 1-1 d,#100e0b, 2-3 d,#100e0b,b 4-6 #726c5e,#100e0b,b 7-99 #f3f2cc,#100e0b, |27: 0-0 d,#201d17, 1-3 d,#100e0b, 4-6 #6a6456,#100e0b, 7-99 #f3f2cc,#100e0b, -|28: 0-0 d,#201d17, 1-3 d,#100e0b, 4-6 #6a6456,#100e0b, 7-99 #f3f2cc,#100e0b, +|28: 0-0 d,#201d17, 1-3 d,#100e0b, 4-99 #6a6456,#100e0b, |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 -|17: 4 Theme ink -|18: 5 Theme paper -|19: 6 Theme daybreak -|20: 7 Theme atelier -|21: 8 Theme forge -|22: 9 Theme lagoon -|23: 10 Theme solarium -|24: 11 Theme spectrum -|25: 12 Theme harvest -|26: 13 Theme clay -|27: 14 Theme forge_black -|28: 15 Theme forge_soft -|29: 16 Theme orchard_black -|30: ✓ /tmp/pardes-snap/themesel/cwd/+Themes Theme 19 messages · SPC h m +|16: 13 Theme lapis +|17: 14 +|18: 15 # Pardes, after a classic +|19: 16 Theme forge +|20: 17 Theme forge_black +|21: 18 Theme forge_soft +|22: 19 Theme lagoon +|23: 20 Theme solarium +|24: 21 Theme spectrum +|25: 22 Theme harvest +|26: 23 Theme clay +|27: 24 +|28: 25 # acme +|29: 26 Theme acme +|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,#875e65, 2-99 #e3e2c2,#4d5c48, -|2: 0-1 d,#687c4d, 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 #b5ecec,#4d5c48, 40-99 #e3e2c2,#4d5c48, -|17: 0-0 d,#8c9467, 1-4 d,#10100e, 5-6 #696455,#10100e, 7-99 #f3e5bc,#10100e, -|18: 0-0 d,#222119, 1-4 d,#10100e, 5-6 #696455,#10100e, 7-99 #f3e5bc,#10100e, -|19: 0-0 d,#222119, 1-4 d,#10100e, 5-6 #696455,#10100e, 7-99 #f3e5bc,#10100e, -|20: 0-0 d,#222119, 1-4 d,#10100e, 5-6 #696455,#10100e, 7-99 #f3e5bc,#10100e, -|21: 0-0 d,#222119, 1-4 d,#10100e, 5-6 #696455,#10100e, 7-99 #f3e5bc,#10100e, -|22: 0-0 d,#222119, 1-4 d,#10100e, 5-6 #696455,#10100e, 7-99 #f3e5bc,#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, +|21: 0-0 d,#222119, 1-3 d,#10100e, 4-6 #696455,#10100e, 7-99 #f3e5bc,#10100e, +|22: 0-0 d,#222119, 1-3 d,#10100e, 4-6 #696455,#10100e, 7-99 #f3e5bc,#10100e, |23: 0-0 d,#222119, 1-3 d,#10100e, 4-6 #696455,#10100e, 7-99 #f3e5bc,#10100e, |24: 0-0 d,#222119, 1-3 d,#10100e, 4-6 #696455,#10100e, 7-99 #f3e5bc,#10100e, |25: 0-0 d,#222119, 1-3 d,#10100e, 4-6 #696455,#10100e, 7-99 #f3e5bc,#10100e, |26: 0-0 d,#222119, 1-1 d,#10100e, 2-3 d,#10100e,b 4-6 #716c5d,#10100e,b 7-99 #f3e5bc,#10100e, -|27: 0-0 d,#222119, 1-3 d,#10100e, 4-6 #696455,#10100e, 7-99 #f3e5bc,#10100e, +|27: 0-0 d,#222119, 1-3 d,#10100e, 4-99 #696455,#10100e, |28: 0-0 d,#222119, 1-3 d,#10100e, 4-6 #696455,#10100e, 7-99 #f3e5bc,#10100e, |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-forge-black grid=100x31 cursor=7,26 -|17: 5 Theme paper -|18: 6 Theme daybreak -|19: 7 Theme atelier -|20: 8 Theme forge -|21: 9 Theme lagoon -|22: 10 Theme solarium -|23: 11 Theme spectrum -|24: 12 Theme harvest -|25: 13 Theme clay -|26: 14 Theme forge_black -|27: 15 Theme forge_soft -|28: 16 Theme orchard_black -|29: 17 Theme acme -|30: ✓ /tmp/pardes-snap/themesel/cwd/+Themes Theme 21 messages · SPC h m -== style step-forge-black grid=100x31 -|0: 0-1 d,#22252b, 2-99 #c5c9d2,#22252b, -|1: 0-1 d,#6a7b67, 2-99 #d1d5de,#374253, -|2: 0-1 d,#55647b, 2-31 #c5c9d2,#22252b, 32-37 #ecbf9b,#22252b, 38-99 #c5c9d2,#22252b, -|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, -|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, -|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, -|16: 0-1 d,#9cc3f7, 2-31 #d1d5de,#374253, 32-39 #f8cba7,#374253, 40-99 #d1d5de,#374253, -|17: 0-0 d,#708095, 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-4 d,#000000, 5-6 #62656c,#000000, 7-99 #f6f6f6,#000000, -|20: 0-0 d,#14161a, 1-4 d,#000000, 5-6 #62656c,#000000, 7-99 #f6f6f6,#000000, -|21: 0-0 d,#14161a, 1-4 d,#000000, 5-6 #62656c,#000000, 7-99 #f6f6f6,#000000, -|22: 0-0 d,#14161a, 1-3 d,#000000, 4-6 #62656c,#000000, 7-99 #f6f6f6,#000000, -|23: 0-0 d,#14161a, 1-3 d,#000000, 4-6 #62656c,#000000, 7-99 #f6f6f6,#000000, -|24: 0-0 d,#14161a, 1-3 d,#000000, 4-6 #62656c,#000000, 7-99 #f6f6f6,#000000, -|25: 0-0 d,#14161a, 1-3 d,#000000, 4-6 #62656c,#000000, 7-99 #f6f6f6,#000000, -|26: 0-0 d,#14161a, 1-1 d,#000000, 2-3 d,#000000,b 4-6 #6a6d74,#000000,b 7-99 #f6f6f6,#000000, -|27: 0-0 d,#14161a, 1-3 d,#000000, 4-6 #62656c,#000000, 7-99 #f6f6f6,#000000, -|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, -|30: 0-1 d,#22252b, 2-99 #767a82,#22252b, -== snap step-forge-soft grid=100x31 cursor=7,26 -|17: 6 Theme daybreak -|18: 7 Theme atelier -|19: 8 Theme forge -|20: 9 Theme lagoon -|21: 10 Theme solarium -|22: 11 Theme spectrum -|23: 12 Theme harvest -|24: 13 Theme clay -|25: 14 Theme forge_black -|26: 15 Theme forge_soft -|27: 16 Theme orchard_black -|28: 17 Theme acme -|29: 18 Theme lapis -|30: ✓ /tmp/pardes-snap/themesel/cwd/+Themes Theme 23 messages · SPC h m -== style step-forge-soft grid=100x31 -|0: 0-1 d,#2a2d34, 2-99 #c5c9d2,#2a2d34, -|1: 0-1 d,#6d7f6c, 2-99 #d1d5de,#404a58, -|2: 0-1 d,#55647b, 2-31 #c5c9d2,#2a2d34, 32-37 #ecbf9b,#2a2d34, 38-99 #c5c9d2,#2a2d34, -|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, -|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, -|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 #f8cba7,#404a58, 40-99 #d1d5de,#404a58, -|17: 0-0 d,#708095, 1-4 d,#35383e, 5-6 #868991,#35383e, 7-99 #bfc3cc,#35383e, -|18: 0-0 d,#3d4047, 1-4 d,#35383e, 5-6 #868991,#35383e, 7-99 #bfc3cc,#35383e, -|19: 0-0 d,#3d4047, 1-4 d,#35383e, 5-6 #868991,#35383e, 7-99 #bfc3cc,#35383e, -|20: 0-0 d,#3d4047, 1-4 d,#35383e, 5-6 #868991,#35383e, 7-99 #bfc3cc,#35383e, -|21: 0-0 d,#3d4047, 1-3 d,#35383e, 4-6 #868991,#35383e, 7-99 #bfc3cc,#35383e, -|22: 0-0 d,#3d4047, 1-3 d,#35383e, 4-6 #868991,#35383e, 7-99 #bfc3cc,#35383e, -|23: 0-0 d,#3d4047, 1-3 d,#35383e, 4-6 #868991,#35383e, 7-99 #bfc3cc,#35383e, -|24: 0-0 d,#3d4047, 1-3 d,#35383e, 4-6 #868991,#35383e, 7-99 #bfc3cc,#35383e, -|25: 0-0 d,#3d4047, 1-3 d,#35383e, 4-6 #868991,#35383e, 7-99 #bfc3cc,#35383e, -|26: 0-0 d,#3d4047, 1-1 d,#35383e, 2-3 d,#35383e,b 4-6 #8e9199,#35383e,b 7-99 #bfc3cc,#35383e, -|27: 0-0 d,#3d4047, 1-3 d,#35383e, 4-6 #868991,#35383e, 7-99 #bfc3cc,#35383e, -|28: 0-0 d,#3d4047, 1-3 d,#35383e, 4-6 #868991,#35383e, 7-99 #bfc3cc,#35383e, -|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-orchard-black grid=100x31 cursor=7,26 -|17: 7 Theme atelier -|18: 8 Theme forge -|19: 9 Theme lagoon -|20: 10 Theme solarium -|21: 11 Theme spectrum -|22: 12 Theme harvest -|23: 13 Theme clay -|24: 14 Theme forge_black -|25: 15 Theme forge_soft -|26: 16 Theme orchard_black -|27: 17 Theme acme -|28: 18 Theme lapis -|29: 19 -|30: ✓ /tmp/pardes-snap/themesel/cwd/+Themes Theme 25 messages · SPC h m -== style step-orchard-black grid=100x31 -|0: 0-1 d,#1d2824, 2-99 #b2c3b8,#1d2824, -|1: 0-1 d,#887455, 2-99 #becfc4,#314738, -|2: 0-1 d,#496656, 2-31 #b2c3b8,#1d2824, 32-37 #d3b0d9,#1d2824, 38-99 #b2c3b8,#1d2824, -|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, -|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, -|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, -|16: 0-1 d,#add38a, 2-31 #becfc4,#314738, 32-39 #dfbce5,#314738, 40-99 #becfc4,#314738, -|17: 0-0 d,#608269, 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-3 d,#000000, 4-6 #59675c,#000000, 7-99 #f2f8ef,#000000, -|21: 0-0 d,#111813, 1-3 d,#000000, 4-6 #59675c,#000000, 7-99 #f2f8ef,#000000, -|22: 0-0 d,#111813, 1-3 d,#000000, 4-6 #59675c,#000000, 7-99 #f2f8ef,#000000, -|23: 0-0 d,#111813, 1-3 d,#000000, 4-6 #59675c,#000000, 7-99 #f2f8ef,#000000, -|24: 0-0 d,#111813, 1-3 d,#000000, 4-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-1 d,#000000, 2-3 d,#000000,b 4-6 #616f64,#000000,b 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-99 #59675c,#000000, -|30: 0-1 d,#1d2824, 2-99 #6f7d75,#1d2824, == snap step-acme grid=100x31 cursor=7,26 -|17: 8 Theme forge -|18: 9 Theme lagoon -|19: 10 Theme solarium -|20: 11 Theme spectrum -|21: 12 Theme harvest -|22: 13 Theme clay -|23: 14 Theme forge_black -|24: 15 Theme forge_soft -|25: 16 Theme orchard_black -|26: 17 Theme acme -|27: 18 Theme lapis -|28: 19 -|29: 20 # Visual Studio Code -|30: ✓ /tmp/pardes-snap/themesel/cwd/+Themes Theme 27 messages · SPC h m +|16: 16 Theme forge +|17: 17 Theme forge_black +|18: 18 Theme forge_soft +|19: 19 Theme lagoon +|20: 20 Theme solarium +|21: 21 Theme spectrum +|22: 22 Theme harvest +|23: 23 Theme clay +|24: 24 +|25: 25 # acme +|26: 26 Theme acme +|27: 27 Theme atelier +|28: 28 +|29: 29 # Visual Studio Code +|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,#8888cc, 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,#8888cc, 2-31 #000000,#eaffff, 32-39 #000099,#eaffff, 40-99 #000000,#eaffff, -|17: 0-4 d,#ffffea, 5-6 #999980,#ffffea, 7-99 #000000,#ffffea, -|18: 0-0 d,#99994c, 1-4 d,#ffffea, 5-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, |21: 0-0 d,#99994c, 1-3 d,#ffffea, 4-6 #999980,#ffffea, 7-99 #000000,#ffffea, |22: 0-0 d,#99994c, 1-3 d,#ffffea, 4-6 #999980,#ffffea, 7-99 #000000,#ffffea, |23: 0-0 d,#99994c, 1-3 d,#ffffea, 4-6 #999980,#ffffea, 7-99 #000000,#ffffea, -|24: 0-0 d,#99994c, 1-3 d,#ffffea, 4-6 #999980,#ffffea, 7-99 #000000,#ffffea, +|24: 0-0 d,#99994c, 1-3 d,#ffffea, 4-99 #999980,#ffffea, |25: 0-0 d,#99994c, 1-3 d,#ffffea, 4-6 #999980,#ffffea, 7-99 #000000,#ffffea, -|26: 0-0 d,#99994c, 1-1 d,#ffffea, 2-3 d,#ffffea,b 4-6 #999980,#ffffea,b 7-99 #000000,#ffffea, +|26: 0-0 d,#99994c, 1-1 d,#ffffea, 2-3 d,#ffffea,b 4-6 #74746a,#ffffea,b 7-99 #000000,#ffffea, |27: 0-0 d,#99994c, 1-3 d,#ffffea, 4-6 #999980,#ffffea, 7-99 #000000,#ffffea, |28: 0-0 d,#99994c, 1-3 d,#ffffea, 4-99 #999980,#ffffea, |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-lapis grid=100x31 cursor=7,26 -|17: 9 Theme lagoon -|18: 10 Theme solarium -|19: 11 Theme spectrum -|20: 12 Theme harvest -|21: 13 Theme clay -|22: 14 Theme forge_black -|23: 15 Theme forge_soft -|24: 16 Theme orchard_black -|25: 17 Theme acme -|26: 18 Theme lapis -|27: 19 -|28: 20 # Visual Studio Code -|29: 21 Theme dark_plus -|30: ✓ /tmp/pardes-snap/themesel/cwd/+Themes Theme 29 messages · SPC h m -== style step-lapis grid=100x31 -|0: 0-1 d,#0f1a4a, 2-99 #9aa6d9,#0f1a4a, -|1: 0-1 d,#8a3a3a, 2-99 #eee6d2,#25397d, -|2: 0-1 d,#6a78b1, 2-31 #9aa6d9,#0f1a4a, 32-37 #e8c46a,#0f1a4a, 38-99 #9aa6d9,#0f1a4a, -|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, -|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, -|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 #f2d280,#25397d, 40-99 #eee6d2,#25397d, -|17: 0-0 d,#e8c46a, 1-4 d,#0a1030, 5-6 #5a6aa8,#0a1030, 7-99 #eee6d2,#0a1030, -|18: 0-0 d,#050a24, 1-3 d,#0a1030, 4-6 #5a6aa8,#0a1030, 7-99 #eee6d2,#0a1030, -|19: 0-0 d,#050a24, 1-3 d,#0a1030, 4-6 #5a6aa8,#0a1030, 7-99 #eee6d2,#0a1030, -|20: 0-0 d,#050a24, 1-3 d,#0a1030, 4-6 #5a6aa8,#0a1030, 7-99 #eee6d2,#0a1030, -|21: 0-0 d,#050a24, 1-3 d,#0a1030, 4-6 #5a6aa8,#0a1030, 7-99 #eee6d2,#0a1030, -|22: 0-0 d,#050a24, 1-3 d,#0a1030, 4-6 #5a6aa8,#0a1030, 7-99 #eee6d2,#0a1030, -|23: 0-0 d,#050a24, 1-3 d,#0a1030, 4-6 #5a6aa8,#0a1030, 7-99 #eee6d2,#0a1030, -|24: 0-0 d,#050a24, 1-3 d,#0a1030, 4-6 #5a6aa8,#0a1030, 7-99 #eee6d2,#0a1030, -|25: 0-0 d,#050a24, 1-3 d,#0a1030, 4-6 #5a6aa8,#0a1030, 7-99 #eee6d2,#0a1030, -|26: 0-0 d,#050a24, 1-1 d,#0a1030, 2-3 d,#0a1030,b 4-6 #6a7ab8,#0a1030,b 7-99 #eee6d2,#0a1030, -|27: 0-0 d,#050a24, 1-3 d,#0a1030, 4-99 #5a6aa8,#0a1030, -|28: 0-0 d,#050a24, 1-3 d,#0a1030, 4-6 #5a6aa8,#0a1030, 7-99 #eee6d2,#0a1030, -|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-atelier grid=100x31 cursor=7,26 +|16: 17 Theme forge_black +|17: 18 Theme forge_soft +|18: 19 Theme lagoon +|19: 20 Theme solarium +|20: 21 Theme spectrum +|21: 22 Theme harvest +|22: 23 Theme clay +|23: 24 +|24: 25 # acme +|25: 26 Theme acme +|26: 27 Theme atelier +|27: 28 +|28: 29 # Visual Studio Code +|29: 30 Theme dark_plus +|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,#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,#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-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-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, +|21: 0-0 d,#eeeccf, 1-3 d,#fffdeb, 4-6 #909880,#fffdeb, 7-99 #293f35,#fffdeb, +|22: 0-0 d,#eeeccf, 1-3 d,#fffdeb, 4-6 #909880,#fffdeb, 7-99 #293f35,#fffdeb, +|23: 0-0 d,#eeeccf, 1-3 d,#fffdeb, 4-99 #909880,#fffdeb, +|24: 0-0 d,#eeeccf, 1-3 d,#fffdeb, 4-6 #909880,#fffdeb, 7-99 #293f35,#fffdeb, +|25: 0-0 d,#eeeccf, 1-3 d,#fffdeb, 4-6 #909880,#fffdeb, 7-99 #293f35,#fffdeb, +|26: 0-0 d,#eeeccf, 1-1 d,#fffdeb, 2-3 d,#fffdeb,b 4-6 #889078,#fffdeb,b 7-99 #293f35,#fffdeb, +|27: 0-0 d,#eeeccf, 1-3 d,#fffdeb, 4-99 #909880,#fffdeb, +|28: 0-0 d,#eeeccf, 1-3 d,#fffdeb, 4-6 #909880,#fffdeb, 7-99 #293f35,#fffdeb, +|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 -|17: 12 Theme harvest -|18: 13 Theme clay -|19: 14 Theme forge_black -|20: 15 Theme forge_soft -|21: 16 Theme orchard_black -|22: 17 Theme acme -|23: 18 Theme lapis -|24: 19 -|25: 20 # Visual Studio Code -|26: 21 Theme dark_plus -|27: 22 -|28: 23 # Solarized -|29: 24 Theme solarized_dark -|30: ✓ /tmp/pardes-snap/themesel/cwd/+Themes Theme 31 messages · SPC h m +|16: 20 Theme solarium +|17: 21 Theme spectrum +|18: 22 Theme harvest +|19: 23 Theme clay +|20: 24 +|21: 25 # acme +|22: 26 Theme acme +|23: 27 Theme atelier +|24: 28 +|25: 29 # Visual Studio Code +|26: 30 Theme dark_plus +|27: 31 +|28: 32 # Solarized +|29: 33 Theme solarized_dark +|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,#458276, 2-99 #ffffff,#1e1e1e, -|2: 0-1 d,#1c608e, 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,#007fd4, 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-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, +|20: 0-3 d,#1e1e1e, 4-99 #858585,#1e1e1e, |21: 0-3 d,#1e1e1e, 4-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e, |22: 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, @@ -674,39 +1004,40 @@ |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 -|17: 15 Theme forge_soft -|18: 16 Theme orchard_black -|19: 17 Theme acme -|20: 18 Theme lapis -|21: 19 -|22: 20 # Visual Studio Code -|23: 21 Theme dark_plus -|24: 22 -|25: 23 # Solarized -|26: 24 Theme solarized_dark -|27: 25 Theme solarized_light -|28: 26 -|29: 27 # Dracula -|30: ✓ /tmp/pardes-snap/themesel/cwd/+Themes Theme 33 messages · SPC h m +|16: 23 Theme clay +|17: 24 +|18: 25 # acme +|19: 26 Theme acme +|20: 27 Theme atelier +|21: 28 +|22: 29 # Visual Studio Code +|23: 30 Theme dark_plus +|24: 31 +|25: 32 # Solarized +|26: 33 Theme solarized_dark +|27: 34 Theme solarized_light +|28: 35 +|29: 36 # Dracula +|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,#758a41, 2-99 #073642,#93a1a1, -|2: 0-1 d,#185986, 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,#2483c5, 2-31 #073642,#93a1a1, 32-39 #2d3502,#93a1a1, 40-99 #073642,#93a1a1, -|17: 0-0 d,#839496, 1-3 d,#002b36, 4-6 #586e75,#002b36, 7-99 #839496,#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, @@ -715,32 +1046,32 @@ |23: 0-0 d,#eee8d5, 1-3 d,#002b36, 4-6 #586e75,#002b36, 7-99 #839496,#002b36, |24: 0-0 d,#eee8d5, 1-3 d,#002b36, 4-99 #586e75,#002b36, |25: 0-0 d,#eee8d5, 1-3 d,#002b36, 4-6 #586e75,#002b36, 7-99 #839496,#002b36, -|26: 0-0 d,#eee8d5, 1-1 d,#002b36, 2-3 d,#002b36,b 4-6 #586e75,#002b36,b 7-99 #839496,#002b36, +|26: 0-0 d,#eee8d5, 1-1 d,#002b36, 2-3 d,#002b36,b 4-6 #7f9193,#002b36,b 7-99 #839496,#002b36, |27: 0-0 d,#eee8d5, 1-3 d,#002b36, 4-6 #586e75,#002b36, 7-99 #839496,#002b36, |28: 0-0 d,#eee8d5, 1-3 d,#002b36, 4-99 #586e75,#002b36, |29: 0-0 d,#eee8d5, 1-3 d,#002b36, 4-6 #586e75,#002b36, 7-99 #839496,#002b36, |30: 0-1 d,#657b83, 2-99 #162528,#657b83, == snap step-back grid=100x31 cursor=7,23 -|30: ✓ /tmp/pardes-snap/themesel/cwd/+Themes Theme 35 messages · SPC h m +|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,#458276, 2-99 #ffffff,#1e1e1e, -|2: 0-1 d,#1c608e, 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,#007fd4, 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-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, @@ -755,50 +1086,54 @@ |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 -|17: 305 Theme wolf_alabaster_dark_bg -|18: 306 Theme wolf_alabaster_dark_mono -|19: 307 Theme wolf_alabaster_light -|20: 308 Theme wolf_alabaster_light_bg -|21: 309 Theme wolf_alabaster_light_mono -|22: 310 Theme yellowed -|23: 311 Theme yo -|24: 312 Theme yo_berry -|25: 313 Theme yo_light -|26: 314 Theme zed_onedark -|27: 315 Theme zed_onelight -|28: 316 Theme zenburn +|16: 330 Theme sidra +|17: 331 Theme snazzy +|18: 332 Theme sonokai +|19: 333 Theme spacebones_light +|20: 334 Theme starlight +|21: 335 Theme sunset +|22: 336 Theme varua +|23: 337 Theme vesper +|24: 338 Theme vim_dark_high_contrast +|25: 339 Theme vintage +|26: 340 Theme voxed +|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 -|30: ✓ /tmp/pardes-snap/themesel/cwd/+Themes Del 36 messages · SPC h m +== 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,#007fd4, 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 5ab2e6f6..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,21 +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 -|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 aae39015..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, -|1: 0-1 d,#887455, 2-59 #becfc4,#314738, 60-61 #becfc4,#887455, 62-119 #b2c3b8,#1d2824, -|2: 0-1 d,#add38a, 2-30 #becfc4,#314738, 31-40 #dfbce5,#314738, 41-59 #becfc4,#314738, 60-61 #becfc4,#496656, 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, +|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-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,#496656, 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 4c640cae..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,#887455, 2-99 #becfc4,#314738, -|2: 0-1 #000000,#add38a, 2-30 #becfc4,#314738, 31-40 #dfbce5,#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,#496656, 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 ed43ef7f..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, -|1: 0-1 d,#887455, 2-49 #b2c3b8,#1d2824, 50-51 #b2c3b8,#887455, 52-61 #becfc4,#314738, 62-99 d,d, -|2: 0-1 d,#496656, 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, +|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-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,#496656, 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,#496656, 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/terminal.zig b/test/terminal.zig index 5cf853e7..1168fac7 100644 --- a/test/terminal.zig +++ b/test/terminal.zig @@ -269,7 +269,8 @@ test "rows asked for after a pane's cached rows were dropped, before the sweep, test "terminal Filter keys indexed truecolor OSC and background-only cells through the theme" { const testing = std.testing; - // Raw index assertions require a theme that inherits the ANSI palette. + // A theme with no sixteen of its own (helix): a program's sixteen drawn + // in the ones worked out for it (DESIGN.md R14), the rest as they are. const p = try Pardes.init(testing.allocator, .{ .startup_config = "Theme helix\n", .tty_only = true, .cols = 18, .rows = 7 }); defer p.deinit(); while (p.nextEffect()) |_| {} @@ -295,7 +296,7 @@ test "terminal Filter keys indexed truecolor OSC and background-only cells throu const body_y = p.bodyTop(pane, r); const raw = try p.render(frame.allocator()); - try testing.expectEqual(plain.Color{ .index = 1 }, raw.at(tx, body_y).style.fg); + try testing.expectEqual(plain.Color{ .rgb = p.chrome().ansi[1] }, raw.at(tx, body_y).style.fg); try testing.expectEqual(plain.Color{ .index = 196 }, raw.at(tx + 1, body_y).style.fg); try testing.expectEqual(plain.Color{ .rgb = .{ 255, 0, 0 } }, raw.at(tx + 2, body_y).style.fg); @@ -303,7 +304,7 @@ test "terminal Filter keys indexed truecolor OSC and background-only cells throu _ = frame.reset(.retain_capacity); const filtered = try p.render(frame.allocator()); var expected_cache: FilterPalette = .{}; - const expected = filterPalette(&expected_cache, &ansi.inkOf(p.theme())); + const expected = filterPalette(&expected_cache, &ansi.inkOf(p)); try testing.expectEqual(asPardesColor(asGhostRgb(expected[1])), filtered.at(tx, body_y).style.fg); try testing.expectEqual(asPardesColor(asGhostRgb(expected[196])), filtered.at(tx + 1, body_y).style.fg); try testing.expectEqual(filtered.at(tx + 1, body_y).style.fg, filtered.at(tx + 2, body_y).style.fg); @@ -312,7 +313,9 @@ test "terminal Filter keys indexed truecolor OSC and background-only cells throu const attrs = filtered.at(tx + 5, body_y).style; try testing.expect(attrs.bold); - try testing.expect(attrs.dim); + // Faint on the page's text: the page's dim ink (DESIGN.md R15). + try testing.expect(!attrs.dim); + try testing.expectEqual(plain.Color{ .rgb = p.chrome().page.dim }, attrs.fg); try testing.expect(attrs.italic); try testing.expect(attrs.blink); try testing.expect(attrs.reverse); @@ -374,7 +377,7 @@ test "terminal Filter keys indexed truecolor OSC and background-only cells throu try testing.expectEqual(asPardesColor(asGhostRgb(expected[196])), reversed_blank.bg); const reversed_explicit = reversed.at(tx, body_y).style; try testing.expectEqual(asPardesColor(asGhostRgb(expected[196])), reversed_explicit.bg); - try testing.expectEqual(plain.Color{ .rgb = p.theme().bg.? }, reversed_explicit.fg); + try testing.expectEqual(plain.Color{ .rgb = p.chrome().page.ground }, reversed_explicit.fg); try testing.expect(!std.meta.eql(reversed_explicit.fg, reversed_explicit.bg)); p.update(.{ .output = .{ .pane = .at(0), .bytes = "\x1b[?5l" } }); @@ -384,31 +387,74 @@ test "terminal Filter keys indexed truecolor OSC and background-only cells throu try testing.expectEqual(asPardesColor(asGhostRgb(expected[196])), unreversed_blank.fg); try testing.expectEqual(asPardesColor(asGhostRgb(expected[59])), unreversed_blank.bg); - // The cache is keyed by values, not a theme name. Replacing a custom - // theme in place immediately recolours already-rendered indexed cells. + // The cache is keyed by values, not a theme name. A custom theme of the + // same name with another sixteen, its chrome worked out (as a + // ThemeFile's load does), recolours already-rendered indexed cells. p.update(.{ .output = .{ .pane = .at(0), .bytes = "\x1b]104;1\x1b\\" } }); var custom = p.theme().*; custom.name = try p.gpa.dupe(u8, "same-name"); - custom.palette = null; - custom.kw = .{ 1, 2, 3 }; + custom.palette = pardes.colors.xterm[0..16].*; + custom.palette.?[1] = .{ 1, 2, 3 }; p.custom_theme = custom; + pardes.colors.finishThemeInitialization(p); _ = frame.reset(.retain_capacity); const custom_first = try p.render(frame.allocator()); try testing.expectEqual(plain.Color{ .rgb = .{ 1, 2, 3 } }, custom_first.at(tx, body_y).style.fg); - if (p.custom_theme) |*theme| theme.kw = .{ 4, 5, 6 }; + if (p.custom_theme) |*theme| theme.palette.?[1] = .{ 4, 5, 6 }; + pardes.colors.finishThemeInitialization(p); _ = frame.reset(.retain_capacity); const custom_second = try p.render(frame.allocator()); try testing.expectEqual(plain.Color{ .rgb = .{ 4, 5, 6 } }, custom_second.at(tx, body_y).style.fg); } +test "a theme that leaves its page to the host (`dark`) draws a terminal's page, text, faint and sixteen as the null page and its own in a window, and leaves them to a tty; its filter keys to that page, never its tag (DESIGN.md R1, R14, R15)" { + const testing = std.testing; + for ([_]bool{ false, true }) |windowed| { + const p = try Pardes.init(testing.allocator, .{ .startup_config = "Theme dark\n", .tty_only = true, .cols = 18, .rows = 7, .windowed = windowed }); + defer p.deinit(); + while (p.nextEffect()) |_| {} + const pane = p.panes[0].?; + pane.tag_expanded = false; + pane.tty_filter = false; + p.update(.{ .output = .{ .pane = .at(0), .bytes = "A\x1b[31mB\x1b[0;2mC" } }); + p.sync(); + var frame = std.heap.ArenaAllocator.init(testing.allocator); + defer frame.deinit(); + const r = p.view().rects[0]; + const tx = r.x + config.GUTTER; + const body_y = p.bodyTop(pane, r); + const s = try p.render(frame.allocator()); + const c = p.chrome(); + try testing.expect(c.host_page); + const plain_cell = s.at(tx, body_y).style; + const red = s.at(tx + 1, body_y).style; + const faint = s.at(tx + 2, body_y).style; + if (windowed) { + try testing.expectEqual(plain.Color{ .rgb = pardes.colors.null_page }, plain_cell.bg); + try testing.expectEqual(plain.Color{ .rgb = c.page.text }, plain_cell.fg); + try testing.expectEqual(plain.Color{ .rgb = c.ansi[1] }, red.fg); + try testing.expectEqual(plain.Color{ .rgb = c.page.dim }, faint.fg); + try testing.expect(!faint.dim); + } else { + try testing.expect(plain_cell.bg == .default and plain_cell.fg == .default); + try testing.expectEqual(plain.Color{ .index = 1 }, red.fg); + try testing.expect(faint.dim and faint.fg == .default); + } + var cache: FilterPalette = .{}; + const f = filterOf(&ansi.inkOf(p), &cache, &of(pane.terminal.?).vt); + try testing.expectEqual(pardes.colors.null_page, f.theme_bg); + try testing.expectEqual(c.page.text, f.theme_fg); + } +} + test "terminal Filter keeps extended keys dark-to-light on a light theme" { const p = try Pardes.init(std.testing.allocator, .{ .startup_config = "Theme acme\n", .tty_only = true }); defer p.deinit(); try std.testing.expectEqualStrings("acme", p.theme().name); var cache: FilterPalette = .{}; - const palette = filterPalette(&cache, &ansi.inkOf(p.theme())); - try std.testing.expect(asGhostRgb(palette[16]).eql(asGhostRgb(p.theme().fg.?))); - try std.testing.expect(asGhostRgb(palette[231]).eql(asGhostRgb(p.theme().bg.?))); + const palette = filterPalette(&cache, &ansi.inkOf(p)); + try std.testing.expect(asGhostRgb(palette[16]).eql(asGhostRgb(p.chrome().page.text))); + try std.testing.expect(asGhostRgb(palette[231]).eql(asGhostRgb(p.chrome().page.ground))); } test "terminal Filter preserves exact palette-null light theme default roles" { @@ -423,6 +469,7 @@ test "terminal Filter preserves exact palette-null light theme default roles" { light.fg = .{ 0x38, 0x38, 0x38 }; light.palette = null; p.custom_theme = light; + pardes.colors.finishThemeInitialization(p); const pane = p.panes[0].?; try testing.expectEqual(@as(?GColor.RGB, null), of(pane.terminal.?).vt.colorForXterm(.{ .dynamic = .foreground })); @@ -453,25 +500,23 @@ test "terminal Filter maps the default roles before it maps anything else" { const pane = p.panes[0].?; try testing.expect(pane.tty_filter); - // Native dark/light palettes plus legacy helix/dark/acme, including - // the null-page fallback that only the legacy dark theme exercises. - for (0..9) |t| { - p.settings.theme = @intCast(t); - const stage_one = filterOf(&ansi.inkOf(p.theme()), &p.tty_filter_palette, &of(pane.terminal.?).vt); - // `dark` declares no background of its own, which is exactly why the - // resolver reads the tag colours as the fallback rather than `.?`. - const theme = p.theme(); - try testing.expect(asGhostRgb(stage_one.theme_bg).eql(asGhostRgb(theme.bg orelse theme.tag_bg))); - try testing.expect(asGhostRgb(stage_one.theme_fg).eql(asGhostRgb(theme.fg orelse theme.tag_fg))); + // The first nine of the ring, dark and light, and `dark`, whose page is + // the host's: its filter keys to the null page, never its tag. + for ([_]usize{ 0, 1, 2, 3, 4, 5, 6, 7, 8, pardes.colors.themeIndex("dark").? }) |t| { + pardes.colors.setThemeIndex(p, t); + const stage_one = filterOf(&ansi.inkOf(p), &p.tty_filter_palette, &of(pane.terminal.?).vt); + const page = p.chrome().page; + try testing.expect(asGhostRgb(stage_one.theme_bg).eql(asGhostRgb(page.ground))); + try testing.expect(asGhostRgb(stage_one.theme_fg).eql(asGhostRgb(page.text))); // With no OSC 11 in play the mapped page IS that anchor, and the // fallback is the other one: a background never contrasts with itself. try testing.expect(asGhostRgb(stage_one.default_bg).eql(asGhostRgb(stage_one.theme_bg))); try testing.expect(asGhostRgb(stage_one.fallback_fg).eql(asGhostRgb(stage_one.theme_fg))); } - p.settings.theme = 0; + pardes.colors.setThemeIndex(p, 0); p.update(.{ .output = .{ .pane = .at(0), .bytes = "\x1b]11;#5f5f5f\x1b\\" } }); - var moved = filterOf(&ansi.inkOf(p.theme()), &p.tty_filter_palette, &of(pane.terminal.?).vt); + var moved = filterOf(&ansi.inkOf(p), &p.tty_filter_palette, &of(pane.terminal.?).vt); try testing.expect(!asGhostRgb(moved.default_bg).eql(asGhostRgb(moved.theme_bg))); try testing.expect(asGhostRgb(moved.default_bg).eql(keyedRgb(&moved, .{ .r = 0x5f, .g = 0x5f, .b = 0x5f }))); } @@ -495,8 +540,8 @@ test "terminal Filter refuses a foreground that would collapse onto the page" { const body_y = p.bodyTop(pane, r); for (0..9) |t| { - p.settings.theme = @intCast(t); - var fc = filterOf(&ansi.inkOf(p.theme()), &p.tty_filter_palette, &of(pane.terminal.?).vt); + pardes.colors.setThemeIndex(p, t); + var fc = filterOf(&ansi.inkOf(p), &p.tty_filter_palette, &of(pane.terminal.?).vt); const page = asPardesColor(asGhostRgb(fc.default_bg)); const rescued = asPardesColor(asGhostRgb(fc.fallback_fg)); _ = frame.reset(.retain_capacity); @@ -547,8 +592,8 @@ test "terminal Filter holds every projected foreground off the page" { const pane = p.panes[0].?; for (0..9) |t| { - p.settings.theme = @intCast(t); - var fc = filterOf(&ansi.inkOf(p.theme()), &p.tty_filter_palette, &of(pane.terminal.?).vt); + pardes.colors.setThemeIndex(p, t); + var fc = filterOf(&ansi.inkOf(p), &p.tty_filter_palette, &of(pane.terminal.?).vt); var refused: usize = 0; for (fc.target, 0..) |projected_triple, slot| { const projected = asGhostRgb(projected_triple); diff --git a/tools/gen_themes.zig b/tools/gen_themes.zig index b9a9adb0..79a23a19 100644 --- a/tools/gen_themes.zig +++ b/tools/gen_themes.zig @@ -25,7 +25,9 @@ //! acme of its own; the file is otherwise untouched. So are `monokai`, //! `ayu_dark` and `nord` as `<name>_helix.toml`, kept (unlike helix's other //! copies of themes ported here) because helix themes inherit them; those -//! `inherits` lines name the renamed file. Two themes answering to +//! `inherits` lines name the renamed file. A retired theme a kept one +//! inherits from (ayu_dark_helix, hex_steel, nord_helix: DESIGN.md E) sits in +//! vendor/themes/base/, passed as `base=<path>`: read, never rung. Two themes answering to //! one name is a bug (`Theme <name>` would silently pick one), so core/colors.zig //! asserts the ring's names are distinct at comptime. //! @@ -57,26 +59,37 @@ const Rgb = [3]u8; /// code) — core/colors.zig's `fold` is what turns it into a real Theme. const Theme = struct { name: []const u8, - bg: ?Rgb, - fg: ?Rgb, - sel_bg: Rgb, - sel_fg: Rgb, - tag_bg: Rgb, - tag_fg: Rgb, - box: Rgb, - box_dim: Rgb, - kw: Rgb, - str: Rgb, - num: Rgb, + page: ?Rgb, + text: ?Rgb, + selection: Rgb, + selection_text: Rgb, + tag: Rgb, + tag_text: Rgb, + accent: Rgb, + keyword: Rgb, + string: Rgb, + number: Rgb, comment: Rgb, - lineno: Rgb, - scroll_track: Rgb, - scroll_thumb: Rgb, - /// A message's error ink (colors.Roles.err): diagnostic.error's, else - /// error's, else the theme's red (UX E3: neonotte's diagnostic.error is - /// an underline only). - diagnostic_error: ?Rgb = null, - palette: ?[16]Rgb, + line_number: Rgb, + rail: Rgb, + rail_thumb: Rgb, + /// B7: what the sources say beyond the ten (core/theme_schema.zig's + /// overrides): the focused tag, the severities, a diff's hues, the hits, + /// the caret's line number. Null: derived (colors.Chrome.of). + tag_focus: ?Rgb = null, + tag_focus_text: ?Rgb = null, + /// A message's error ink: diagnostic.error's, else error's, else the + /// theme's own red (UX E3: neonotte's diagnostic.error is an underline + /// only). + @"error": ?Rgb = null, + warning: ?Rgb = null, + info: ?Rgb = null, + hint: ?Rgb = null, + added: ?Rgb = null, + deleted: ?Rgb = null, + hit: ?Rgb = null, + line_number_current: ?Rgb = null, + ansi: ?[16]Rgb, }; pub fn main(init: std.process.Init) !void { @@ -92,12 +105,16 @@ pub fn main(init: std.process.Init) !void { // and the parent may be later in argv (or inherit something itself). var tomls: std.StringHashMapUnmanaged(Toml) = .empty; var stems: std.ArrayList([]const u8) = .empty; - for (args[2..]) |src| { + for (args[2..]) |arg| { + // `base=` a retired theme kept themes inherit from: read, never rung + // (vendor/themes/base/) + const base = std.mem.startsWith(u8, arg, "base="); + const src = if (base) arg["base=".len..] else arg; const text = try std.Io.Dir.cwd().readFileAlloc(io, src, arena, .limited(8 << 20)); if (std.mem.endsWith(u8, src, ".toml")) { const stem = std.fs.path.stem(src); try tomls.put(arena, stem, parseToml(arena, src, text)); - try stems.append(arena, stem); + if (!base) try stems.append(arena, stem); } else if (std.mem.endsWith(u8, src, ".json")) { try readZed(arena, gpa, src, text, &themes); } else { @@ -105,9 +122,20 @@ pub fn main(init: std.process.Init) !void { } } for (stems.items) |stem| try themes.append(arena, try helixTheme(arena, stem, resolve(arena, &tomls, stem, 8))); + for (themes.items) |*t| toneOnTone(t); + for (fixes) |f| { + const t = for (themes.items) |*t| { + if (std.mem.eql(u8, t.name, f.name)) break t; + } else std.process.fatal("tools/gen_themes.zig fixes {s}, which no vendored theme is", .{f.name}); + t.hit = f.hit; + } // sorted, so the ring's tail is the same on every machine whatever order - // the directory happened to be read in - std.mem.sort(Theme, themes.items, {}, byName); + // the directory happened to be read in: a family at a time (a name's + // first word, two themes or more), the lone ones after every family, so + // the picker heads each family once (colors.zig `import_heads`) + var families: std.StringHashMapUnmanaged(u32) = .empty; + for (themes.items) |t| (try families.getOrPutValue(arena, family(t.name), 0)).value_ptr.* += 1; + std.mem.sort(Theme, themes.items, &families, byFamily); var dir = try std.Io.Dir.cwd().openDir(io, args[1], .{}); defer dir.close(io); @@ -132,7 +160,14 @@ fn write(io: std.Io, dir: std.Io.Dir, arena: std.mem.Allocator, stem: []const u8 try file.writeStreamingAll(io, text); } -fn byName(_: void, a: Theme, b: Theme) bool { +fn family(name: []const u8) []const u8 { + return name[0 .. std.mem.indexOfScalar(u8, name, '_') orelse name.len]; +} + +fn byFamily(families: *const std.StringHashMapUnmanaged(u32), a: Theme, b: Theme) bool { + const lone_a = families.get(family(a.name)).? < 2; + const lone_b = families.get(family(b.name)).? < 2; + if (lone_a != lone_b) return lone_b; return std.mem.order(u8, a.name, b.name) == .lt; } @@ -142,22 +177,22 @@ fn emit(w: *std.Io.Writer, t: Theme) !void { const info = @typeInfo(Theme).@"struct"; inline for (info.field_names, info.field_types) |name, T| { if (comptime std.mem.eql(u8, name, "name")) continue; - if (comptime std.mem.eql(u8, name, "palette")) continue; - try w.print(" .{s} = ", .{name}); + if (comptime std.mem.eql(u8, name, "ansi")) continue; + try w.print(" .{f} = ", .{std.zig.fmtId(name)}); if (comptime @typeInfo(T) == .optional) { if (@field(t, name)) |c| try rgb(w, c) else try w.writeAll("null"); } else try rgb(w, @field(t, name)); try w.writeAll(",\n"); } - if (t.palette) |p| { - try w.writeAll(" .palette = .{\n"); + if (t.ansi) |p| { + try w.writeAll(" .ansi = .{\n"); for (p) |c| { try w.writeAll(" "); try rgb(w, c); try w.writeAll(",\n"); } try w.writeAll(" },\n"); - } else try w.writeAll(" .palette = null,\n"); + } else try w.writeAll(" .ansi = null,\n"); try w.writeAll("};\n"); } @@ -270,42 +305,47 @@ fn resolve(arena: std.mem.Allocator, tomls: *const std.StringHashMapUnmanaged(To return .{ .path = t.path, .keys = keys, .palette = palette }; } -/// A resolved helix theme mapped onto pardes's fourteen fields. +/// A resolved helix theme mapped onto pardes's fields (core/theme_schema.zig). /// /// EVERY FALLBACK HERE IS HELIX'S OWN RULE, which is why none of them is fatal: /// an unstyled scope wears `ui.text`, an unpainted cell wears `ui.background`, /// and a theme that styles neither is saying "wear whatever the terminal is /// already wearing" (the base16/term16/transparent themes exist precisely to do -/// that). pardes spells that last step as a null bg/fg, so those two pass -/// straight through — but the other twelve fields are RGB and cannot be null, so +/// that). pardes spells that last step as a null page/text, so those two pass +/// straight through — but the other fields are RGB and cannot be null, so /// they need a concrete stand-in for "the terminal's", and that is the default /// palette's ink and page below. Field by field: /// -/// bg ui.background.bg, else null = the host terminal's own cell -/// fg ui.text.fg, else null = ditto -/// box ui.cursor.primary.bg, else ui.cursor.bg, else keyword.fg, +/// page ui.background.bg, else null = the host terminal's own cell +/// text ui.text.fg, else null = ditto +/// accent ui.cursor.primary.bg, else ui.cursor.bg, else keyword.fg, /// else ink — skipping any of them that IS the page (see /// firstNotPage) -/// box_dim, -/// scroll_thumb, -/// sel_bg ui.selection.bg, else ui.selection.primary.bg, else +/// rail_thumb, +/// selection ui.selection.bg, else ui.selection.primary.bg, else /// ui.selection.fg, same page-skipping, else page. No selection /// colour anywhere means the author drew no selection either, -/// and a dim box the colour of the page is the honest rendering -/// of that — no theme in the vendored set actually gets there -/// sel_fg ui.selection.fg, unless that IS sel_bg, else whichever of -/// ink and page the highlight is farther from -/// tag_bg, -/// scroll_track ui.statusline.bg, else page -/// tag_fg ui.statusline.fg, else ink -/// kw/str/comment their scope's fg, else ink (helix: unstyled = ui.text) -/// num constant.numeric.fg, else constant.fg, else ink -/// lineno ui.linenr.fg, else ink +/// and a selection the colour of the page is the honest +/// rendering of that — no theme in the vendored set gets there +/// selection_text ui.selection.fg, unless that IS the selection, else +/// whichever of ink and page the highlight is farther from +/// tag, +/// rail ui.statusline.bg, else page +/// tag_text ui.statusline.fg, else ink +/// keyword/string/comment their scope's fg, else ink (helix: unstyled = ui.text) +/// number constant.numeric.fg, else constant.fg, else ink +/// line_number ui.linenr.fg, else ink fn helixTheme(arena: std.mem.Allocator, stem: []const u8, h: Helix) !Theme { const fg = h.get("ui.text", .fg); const bg = h.get("ui.background", .bg); const ink = fg orelse ansi_default[7]; const page = bg orelse ansi_default[0]; + // B7: the text is what the theme draws code in. Many set `ui.text` to a + // muted UI grey and code in `variable` (github's #8b949e and #c9d1d9): + // `variable` where it is a neutral ink that reads 4.5:1 on the page; a + // coloured one (base16's red) is an identifier's hue, not the text. + const text = if (h.get("variable", .fg)) |v| (if (chroma(v) < 0.04 and contrast(v, page) >= 4.5) v else fg) else fg; + const body = text orelse ink; // The move box is the accent that says "here". helix's is the primary // cursor's background — but a theme that draws its cursor by REVERSING // video (nord, monokai) never names one, so the fallback is the loudest @@ -335,41 +375,84 @@ fn helixTheme(arena: std.mem.Allocator, stem: []const u8, h: Helix) !Theme { const sel_lum = @as(i32, sel[0]) * 3 + @as(i32, sel[1]) * 6 + sel[2]; const ink_lum = @as(i32, ink[0]) * 3 + @as(i32, ink[1]) * 6 + ink[2]; const page_lum = @as(i32, page[0]) * 3 + @as(i32, page[1]) * 6 + page[2]; - const sel_far = if (@abs(sel_lum - ink_lum) >= @abs(sel_lum - page_lum)) ink else page; + const sel_far = if (@abs(sel_lum - ink_lum) >= @abs(sel_lum - page_lum)) body else page; // A theme that DID name a selection foreground meant it — 16 of the // vendored ones do — except when it is the colour taken for the background // one line up, which is the reverse-video case again: those two would paint // the highlight in one colour on itself. const named_ink = h.get("ui.selection", .fg); + // B7: the tag is the inactive status bar where the theme has one (107 + // do), and the active one its focused tag where it is tone on tone. + const inactive = h.get("ui.statusline.inactive", .bg); + const tag = inactive orelse h.get("ui.statusline", .bg) orelse page; + const active = if (inactive != null) h.get("ui.statusline", .bg) else null; + const focused = if (active) |a| !std.mem.eql(u8, &a, &tag) and dark(a) == dark(tag) else false; return .{ .name = try slug(arena, stem), - // `palette` stays null: helix leaves the colors a PROGRAM emits alone, - // and so do we. - .bg = bg, - .fg = fg, - .sel_bg = sel, - .sel_fg = if (named_ink) |c| (if (std.mem.eql(u8, &c, &sel)) sel_far else c) else sel_far, - .tag_bg = h.get("ui.statusline", .bg) orelse page, - .tag_fg = h.get("ui.statusline", .fg) orelse ink, - .box = box, - .box_dim = sel, - .kw = h.get("keyword", .fg) orelse ink, - .str = h.get("string", .fg) orelse ink, + .page = bg, + .text = text, + .selection = sel, + .selection_text = if (named_ink) |c| (if (std.mem.eql(u8, &c, &sel)) sel_far else c) else sel_far, + .tag = tag, + // the status bar's ink (an inactive bar's is often a faded one, + // neonotte's #555973, where pardes's tag holds words to run) + .tag_text = h.get("ui.statusline", .fg) orelse ink, + .tag_focus = if (focused) active else null, + .tag_focus_text = if (focused) h.get("ui.statusline", .fg) else null, + .accent = box, + .keyword = h.get("keyword", .fg) orelse ink, + .string = h.get("string", .fg) orelse ink, // most themes only colour `constant`; the ones that split out numbers // are being more specific, so they win - .num = h.first(&.{ .{ "constant.numeric", .fg }, .{ "constant", .fg } }) orelse ink, + .number = h.first(&.{ .{ "constant.numeric", .fg }, .{ "constant", .fg } }) orelse ink, .comment = h.get("comment", .fg) orelse ink, - .lineno = h.get("ui.linenr", .fg) orelse ink, + .line_number = h.get("ui.linenr", .fg) orelse ink, // the scrollbar is chrome, so it takes the chrome colors: the tag bar's // own background for the track, the selection (one step brighter than // anything else in the theme's greys) for the thumb riding it - .scroll_track = h.get("ui.statusline", .bg) orelse page, - .scroll_thumb = sel, - .diagnostic_error = h.first(&.{ .{ "diagnostic.error", .fg }, .{ "error", .fg } }) orelse h.color("red"), - .palette = null, + .rail = h.get("ui.statusline", .bg) orelse page, + .rail_thumb = sel, + // B7: the severities from diagnostic.* (often an underline only, + // which names no fg) and the plain scopes; error, else the theme's + // own red (UX E3) + .@"error" = h.first(&.{ .{ "diagnostic.error", .fg }, .{ "error", .fg } }) orelse h.named(&.{"red"}), + .warning = h.first(&.{ .{ "diagnostic.warning", .fg }, .{ "warning", .fg } }), + .info = h.first(&.{ .{ "diagnostic.info", .fg }, .{ "info", .fg } }), + .hint = h.first(&.{ .{ "diagnostic.hint", .fg }, .{ "hint", .fg } }), + .added = diffPair(h.get("diff.plus", .fg), h.get("diff.minus", .fg))[0], + .deleted = diffPair(h.get("diff.plus", .fg), h.get("diff.minus", .fg))[1], + .line_number_current = h.get("ui.linenr.selected", .fg), + // B7: a program's sixteen from the theme's own palette where it names + // the six hues; else pardes derives them from its colours (R14) + .ansi = h.sixteen(page, ink, h.get("comment", .fg) orelse ink), }; } +/// DESIGN.md E1's fixes for an import: a colour of its own its source does +/// not name, where the one pardes derives cannot meet a floor. +const fixes = [_]struct { name: []const u8, hit: Rgb }{ + // Its text reads 5.18:1 on its page: no ground 1.5:1 off leaves it its + // 4.5:1, and the derived amber stops short: its yellow (#dfa000) as a + // ground 1.14:1 off the page, 0.09 OKLab, the text 4.53:1 on it (R0, R8). + .{ .name = "everforest_light", .hit = .{ 0xff, 0xe6, 0x99 } }, + // Its text 4.73:1: its toxic yellow (#c9d400) a ground 1.11:1 off the + // page, 0.09 OKLab, the text 4.27:1 on it, its floor (R0, R8). + .{ .name = "hex_toxic", .hit = .{ 0x2f, 0x32, 0x00 } }, +}; + +/// R3, the import rule: a status bar on the other side of light from the +/// page (merionette's red one on a dark page) is no tag: the tag is the page +/// a 1.15 step off in its own hue, in the text (tone on tone). +fn toneOnTone(t: *Theme) void { + const page = t.page orelse ansi_default[0]; + if (dark(t.tag) == dark(page)) return; + t.tag = stepOff(page, 1.15); + t.tag_text = t.text orelse ansi_default[7]; + t.tag_focus = null; + t.tag_focus_text = null; + t.rail = t.tag; +} + /// helix lets a theme name one of the terminal's sixteen colors instead of an /// RGB (`fg = "light-gray"`), and four of them — base16_terminal, term16_dark, /// term16_light, ttox — are written that way from top to bottom. pardes's Theme @@ -415,6 +498,38 @@ const Helix = struct { return null; } + /// The first of `names` the theme's own [palette] has (never the + /// terminal's sixteen it falls back to: those are a guess). + fn named(h: Helix, names: []const []const u8) ?Rgb { + for (names) |n| if (h.palette.contains(n)) return h.color(n); + return null; + } + + /// B7: a program's sixteen from the palette's own red, green, yellow, + /// blue, magenta (or purple) and cyan (or aqua), their light or bright + /// ones (else the same), black (else the page), white (else the ink) and + /// a grey (else the comment); null unless all six hues are named. + fn sixteen(h: Helix, page: Rgb, ink: Rgb, comment: Rgb) ?[16]Rgb { + const hues = [6][2][]const u8{ .{ "red", "red" }, .{ "green", "green" }, .{ "yellow", "yellow" }, .{ "blue", "blue" }, .{ "magenta", "purple" }, .{ "cyan", "aqua" } }; + var out: [16]Rgb = undefined; + var buf: [4][32]u8 = undefined; + for (hues, 1..) |pair, i| { + const n = if (h.palette.contains(pair[0])) pair[0] else pair[1]; + out[i] = h.named(&.{n}) orelse return null; + out[i + 8] = h.named(&.{ + std.fmt.bufPrint(&buf[0], "light-{s}", .{n}) catch unreachable, + std.fmt.bufPrint(&buf[1], "bright-{s}", .{n}) catch unreachable, + std.fmt.bufPrint(&buf[2], "light_{s}", .{n}) catch unreachable, + std.fmt.bufPrint(&buf[3], "bright_{s}", .{n}) catch unreachable, + }) orelse out[i]; + } + out[0] = h.named(&.{"black"}) orelse page; + out[7] = h.named(&.{ "white", "light-gray", "light_gray" }) orelse ink; + out[8] = h.named(&.{ "gray", "grey", "bright-black", "bright_black" }) orelse comment; + out[15] = h.named(&.{ "bright-white", "bright_white", "light-white" }) orelse out[7]; + return out; + } + /// `first`, skipping any candidate that comes out equal to the page. A /// cursor or a selection painted in the page's own colour is a theme /// drawing that highlight by REVERSING video (it names the cell it is about @@ -555,8 +670,8 @@ fn readZed(arena: std.mem.Allocator, gpa: std.mem.Allocator, path: []const u8, t // name rather than a suffix that appears only on the eight that // happen to clash today .name = try std.fmt.allocPrint(arena, "{s}_zed", .{try slug(arena, (v.get("name") orelse std.process.fatal("{s}: a variant has no `name`", .{path})).string)}), - .bg = z.need("editor.background"), - .fg = z.need("editor.foreground"), + .page = z.need("editor.background"), + .text = z.need("editor.foreground"), // zed's TEXT selection is `players[0].selection`, and it is a 24% // alpha over the page — the colour on screen is the composite, not // the value. pardes paints opaque cells and `hex` drops alpha, so @@ -565,24 +680,33 @@ fn readZed(arena: std.mem.Allocator, gpa: std.mem.Allocator, path: []const u8, t // selected" fill, which is the question actually being asked. The // ink then stays the editor's own text colour, because that fill is // always a step off the background and never off the text. - .sel_bg = z.need("element.selected"), - .sel_fg = z.need("editor.foreground"), - .tag_bg = z.need("status_bar.background"), - .tag_fg = z.need("text.muted"), + .selection = z.need("element.selected"), + .selection_text = z.need("editor.foreground"), + // B7: the status bar the tag, the active tab its focus + .tag = z.need("status_bar.background"), + .tag_text = z.need("text.muted"), + .tag_focus = z.get("tab.active_background"), // zed names its accent, so the move box does not have to be guessed // out of the cursor the way it is for a helix theme - .box = z.need("text.accent"), - .box_dim = z.need("border"), - .kw = z.syn(syntax, "keyword"), - .str = z.syn(syntax, "string"), - .num = z.syn(syntax, "number"), + .accent = z.need("text.accent"), + .keyword = z.syn(syntax, "keyword"), + .string = z.syn(syntax, "string"), + .number = z.syn(syntax, "number"), .comment = z.syn(syntax, "comment"), - .lineno = z.need("editor.line_number"), - .scroll_track = z.need("scrollbar.thumb.border"), - .scroll_thumb = z.need("scrollbar.thumb.background"), + .line_number = z.need("editor.line_number"), + .rail = z.need("scrollbar.thumb.border"), + .rail_thumb = z.need("scrollbar.thumb.background"), // its status colour, else the palette's red (colors.zig) - .diagnostic_error = if (z.style.get("error") != null) z.need("error") else null, - .palette = pal, + .@"error" = z.get("error"), + .warning = z.get("warning"), + .info = z.get("info"), + .hint = z.get("hint"), + .added = diffPair(z.get("created"), z.get("deleted"))[0], + .deleted = diffPair(z.get("created"), z.get("deleted"))[1], + // a search match is a translucent wash over the page: as drawn + .hit = z.over("search.match_background", z.need("editor.background")), + .line_number_current = z.get("editor.active_line_number"), + .ansi = pal, }); } } @@ -594,6 +718,24 @@ const Zed = struct { path: []const u8, style: std.json.ObjectMap, + fn get(z: Zed, key: []const u8) ?Rgb { + return if (z.style.get(key) != null) z.need(key) else null; + } + + /// A colour with an alpha (`#rrggbbaa`) as it shows over `ground`. + fn over(z: Zed, key: []const u8, ground: Rgb) ?Rgb { + const s = switch (z.style.get(key) orelse return null) { + .string => |s| s, + else => std.process.fatal("{s}: style.{s} is not a color string", .{ z.path, key }), + }; + const c = hex(z.path, s); + const d = if (s.len > 0 and s[0] == '#') s[1..] else s; + const alpha: f32 = if (d.len == 8) @as(f32, @floatFromInt(std.fmt.parseInt(u8, d[6..8], 16) catch std.process.fatal("{s}: \"{s}\" is not #rrggbbaa", .{ z.path, s }))) / 255 else 1; + var out: Rgb = undefined; + for (&out, c, ground) |*o, x, g| o.* = @intFromFloat(@round(@as(f32, @floatFromInt(x)) * alpha + @as(f32, @floatFromInt(g)) * (1 - alpha))); + return out; + } + fn need(z: Zed, key: []const u8) Rgb { const v = z.style.get(key) orelse std.process.fatal("{s}: missing style.{s}", .{ z.path, key }); return switch (v) { @@ -612,6 +754,79 @@ const Zed = struct { } }; +// ---- colour: the little of colors.zig's maths B7 and R3 need ---- + +fn linear(c: u8) f32 { + const x = @as(f32, @floatFromInt(c)) / 255; + return if (x <= 0.04045) x / 12.92 else std.math.pow(f32, (x + 0.055) / 1.055, 2.4); +} + +fn luminance(c: Rgb) f32 { + return 0.2126 * linear(c[0]) + 0.7152 * linear(c[1]) + 0.0722 * linear(c[2]); +} + +fn contrast(a: Rgb, b: Rgb) f32 { + const x = luminance(a); + const y = luminance(b); + return (@max(x, y) + 0.05) / (@min(x, y) + 0.05); +} + +/// colors.zig's isDark. +fn dark(c: Rgb) bool { + return luminance(c) < 0.18; +} + +/// A colour's OKLab a and b: where its hue points and how far from grey. +fn ab(c: Rgb) [2]f32 { + const l = [3]f32{ linear(c[0]), linear(c[1]), linear(c[2]) }; + const lm = std.math.cbrt(0.4122214708 * l[0] + 0.5363325363 * l[1] + 0.0514459929 * l[2]); + const mm = std.math.cbrt(0.2119034982 * l[0] + 0.6806995451 * l[1] + 0.1073969566 * l[2]); + const sm = std.math.cbrt(0.0883024619 * l[0] + 0.2817188376 * l[1] + 0.6299787005 * l[2]); + return .{ 1.9779984951 * lm - 2.4285922050 * mm + 0.4505937099 * sm, 0.0259040371 * lm + 0.7827717662 * mm - 0.8086757660 * sm }; +} + +/// How far from grey a colour is: its OKLab chroma. +fn chroma(c: Rgb) f32 { + const v = ab(c); + return @sqrt(v[0] * v[0] + v[1] * v[1]); +} + +/// A hue (chroma 0.04) within 60 degrees of `hue` (OKLab). +fn hueNear(c: Rgb, hue: f32) bool { + const v = ab(c); + const h = std.math.radiansToDegrees(std.math.atan2(v[1], v[0])); + const apart = @abs(@mod(h - hue + 540, 360) - 180); + return chroma(c) >= 0.04 and apart <= 60; +} + +/// R10 draws a diff's rows in its added and deleted hues: a theme's own +/// where they are a green and a red, else pardes's, its sixteen's (a grey, a +/// yellow for deleted or a tritan blue cannot be told apart as rows: ashen, +/// wolf_alabaster's, modus_operandi_tritanopia's). +fn diffPair(plus: ?Rgb, minus: ?Rgb) [2]?Rgb { + const p = plus orelse return .{ null, null }; + const m = minus orelse return .{ null, null }; + return if (hueNear(p, 145) and hueNear(m, 25)) .{ p, m } else .{ null, null }; +} + +/// `page` a `step`:1 contrast off itself, lighter on a dark page, darker on +/// a light one, its light scaled so its hue stays (a black page a grey). +fn stepOff(page: Rgb, step: f32) Rgb { + const y = luminance(page); + const want = if (dark(page)) step * (y + 0.05) - 0.05 else (y + 0.05) / step - 0.05; + var out: Rgb = undefined; + for (&out, page) |*o, c| { + const l = if (y > 0) @min(linear(c) * want / y, 1) else want; + const e = if (l <= 0.0031308) l * 12.92 else 1.055 * std.math.pow(f32, l, 1.0 / 2.4) - 0.055; + o.* = @intFromFloat(@round(e * 255)); + } + // the bytes' rounding short of the step: one more + while (contrast(out, page) < step) for (&out) |*o| { + o.* = if (dark(page)) o.* +| 1 else o.* -| 1; + }; + return out; +} + /// `#rrggbb`, helix's `#rgb` shorthand, or zed's `#rrggbbaa`. The alpha is /// DROPPED: pardes paints opaque cells, and the only translucent colors we read /// are the scrollbar's, where a dropped alpha reads as a slightly bolder bar and @@ -629,3 +844,142 @@ fn hex(path: []const u8, s: []const u8) Rgb { } return out; } + +// ---- tests: each of B7's rules on a minimal theme ---- + +fn helixOf(arena: std.mem.Allocator, text: []const u8) !Theme { + var tomls: std.StringHashMapUnmanaged(Toml) = .empty; + try tomls.put(arena, "t", parseToml(arena, "t.toml", text)); + var t = try helixTheme(arena, "t", resolve(arena, &tomls, "t", 8)); + toneOnTone(&t); + return t; +} + +test "B7: the text is helix's `variable` where it is a neutral ink that reads 4.5:1, else ui.text" { + var arena: std.heap.ArenaAllocator = .init(std.testing.allocator); + defer arena.deinit(); + const a = arena.allocator(); + // github's: ui.text a muted grey, code in a neutral variable + const github = try helixOf(a, "\"ui.background\" = { bg = \"#0d1117\" }\n\"ui.text\" = \"#8b949e\"\nvariable = \"#c9d1d9\"\n"); + try std.testing.expectEqual(Rgb{ 0xc9, 0xd1, 0xd9 }, github.text.?); + // a coloured variable (base16's red) is an identifier's hue + const base16 = try helixOf(a, "\"ui.background\" = { bg = \"#181818\" }\n\"ui.text\" = \"#d8d8d8\"\nvariable = \"#ab4642\"\n"); + try std.testing.expectEqual(Rgb{ 0xd8, 0xd8, 0xd8 }, base16.text.?); + // a neutral variable that does not read stays out + const faint = try helixOf(a, "\"ui.background\" = { bg = \"#181818\" }\n\"ui.text\" = \"#d8d8d8\"\nvariable = \"#444444\"\n"); + try std.testing.expectEqual(Rgb{ 0xd8, 0xd8, 0xd8 }, faint.text.?); +} + +test "B7: the tag is the inactive status bar, and the active one its focus where it is tone on tone" { + var arena: std.heap.ArenaAllocator = .init(std.testing.allocator); + defer arena.deinit(); + const a = arena.allocator(); + const both = try helixOf(a, "\"ui.background\" = { bg = \"#1e1e2e\" }\n\"ui.text\" = \"#cdd6f4\"\n\"ui.statusline\" = { fg = \"#cdd6f4\", bg = \"#313244\" }\n\"ui.statusline.inactive\" = { fg = \"#a6adc8\", bg = \"#181825\" }\n"); + try std.testing.expectEqual(Rgb{ 0x18, 0x18, 0x25 }, both.tag); + try std.testing.expectEqual(Rgb{ 0xcd, 0xd6, 0xf4 }, both.tag_text); + try std.testing.expectEqual(Rgb{ 0x31, 0x32, 0x44 }, both.tag_focus.?); + try std.testing.expectEqual(Rgb{ 0xcd, 0xd6, 0xf4 }, both.tag_focus_text.?); + // one status bar: the tag, its focus pardes's to derive + const one = try helixOf(a, "\"ui.background\" = { bg = \"#1e1e2e\" }\n\"ui.statusline\" = { fg = \"#cdd6f4\", bg = \"#313244\" }\n"); + try std.testing.expectEqual(Rgb{ 0x31, 0x32, 0x44 }, one.tag); + try std.testing.expectEqual(null, one.tag_focus); + // an active bar on the other side of light is no focus + const loud = try helixOf(a, "\"ui.background\" = { bg = \"#1e1e2e\" }\n\"ui.statusline\" = { fg = \"#000000\", bg = \"#f0f0f0\" }\n\"ui.statusline.inactive\" = { fg = \"#a6adc8\", bg = \"#181825\" }\n"); + try std.testing.expectEqual(null, loud.tag_focus); +} + +test "R3, the import rule: a status bar on the other side of light from the page leaves the page a 1.15 step off as the tag, in the text" { + var arena: std.heap.ArenaAllocator = .init(std.testing.allocator); + defer arena.deinit(); + const t = try helixOf(arena.allocator(), "\"ui.background\" = { bg = \"#1a1a1a\" }\n\"ui.text\" = \"#e0e0e0\"\n\"ui.statusline\" = { fg = \"#ffffff\", bg = \"#e05050\" }\n"); + try std.testing.expect(dark(t.tag) and contrast(t.tag, .{ 0x1a, 0x1a, 0x1a }) >= 1.15 and contrast(t.tag, .{ 0x1a, 0x1a, 0x1a }) < 1.2); + try std.testing.expectEqual(Rgb{ 0xe0, 0xe0, 0xe0 }, t.tag_text); + try std.testing.expectEqual(t.tag, t.rail); + // and on paper, darker + const light = try helixOf(arena.allocator(), "\"ui.background\" = { bg = \"#f8f8f0\" }\n\"ui.text\" = \"#202020\"\n\"ui.statusline\" = { fg = \"#ffffff\", bg = \"#203040\" }\n"); + try std.testing.expect(!dark(light.tag) and luminance(light.tag) < luminance(.{ 0xf8, 0xf8, 0xf0 }) and contrast(light.tag, .{ 0xf8, 0xf8, 0xf0 }) >= 1.15); +} + +test "B7: the severities from diagnostic.* and the plain scopes, error else the theme's own red" { + var arena: std.heap.ArenaAllocator = .init(std.testing.allocator); + defer arena.deinit(); + const a = arena.allocator(); + // gruvbox_material's: diagnostic.* an underline only, the plain scopes named + const t = try helixOf(a, "\"diagnostic.error\" = { underline = { color = \"red\", style = \"curl\" } }\n\"diagnostic.warning\" = { fg = \"#d8a657\" }\nerror = \"red\"\nwarning = \"#111111\"\ninfo = \"blue\"\nhint = \"#a9b665\"\n[palette]\nred = \"#ea6962\"\nblue = \"#7daea3\"\n"); + try std.testing.expectEqual(Rgb{ 0xea, 0x69, 0x62 }, t.@"error".?); + try std.testing.expectEqual(Rgb{ 0xd8, 0xa6, 0x57 }, t.warning.?); + try std.testing.expectEqual(Rgb{ 0x7d, 0xae, 0xa3 }, t.info.?); + try std.testing.expectEqual(Rgb{ 0xa9, 0xb6, 0x65 }, t.hint.?); + // none named: the theme's own red, never the terminal's guess; the rest pardes's + const bare = try helixOf(a, "[palette]\nred = \"#ff7ea2\"\n"); + try std.testing.expectEqual(Rgb{ 0xff, 0x7e, 0xa2 }, bare.@"error".?); + try std.testing.expectEqual(null, bare.warning); + try std.testing.expectEqual(null, (try helixOf(a, "\"ui.text\" = \"#cccccc\"\n")).@"error"); +} + +test "B7: added and deleted from diff.plus and diff.minus, the caret's line number from ui.linenr.selected" { + var arena: std.heap.ArenaAllocator = .init(std.testing.allocator); + defer arena.deinit(); + const t = try helixOf(arena.allocator(), "\"diff.plus\" = \"#9feb99\"\n\"diff.minus\" = { fg = \"#ff7ea2\" }\n\"ui.linenr.selected\" = { fg = \"#abb7ff\" }\n"); + try std.testing.expectEqual(Rgb{ 0x9f, 0xeb, 0x99 }, t.added.?); + try std.testing.expectEqual(Rgb{ 0xff, 0x7e, 0xa2 }, t.deleted.?); + try std.testing.expectEqual(Rgb{ 0xab, 0xb7, 0xff }, t.line_number_current.?); + // wolf_alabaster's deleted is a yellow, ashen's added a grey: rows of + // them cannot be told apart, so pardes's green and red + const yellow = try helixOf(arena.allocator(), "\"diff.plus\" = \"#95cb82\"\n\"diff.minus\" = \"#dfdf8e\"\n"); + try std.testing.expectEqual(null, yellow.added); + try std.testing.expectEqual(null, yellow.deleted); + try std.testing.expectEqual(null, (try helixOf(arena.allocator(), "\"diff.plus\" = \"#737373\"\n\"diff.minus\" = \"#b14242\"\n")).added); +} + +test "B7: a program's sixteen from the palette where it names the six hues, purple and aqua for magenta and cyan" { + var arena: std.heap.ArenaAllocator = .init(std.testing.allocator); + defer arena.deinit(); + const a = arena.allocator(); + const t = try helixOf(a, "\"ui.background\" = { bg = \"#282828\" }\n\"ui.text\" = \"#ebdbb2\"\ncomment = \"#928374\"\n[palette]\nred = \"#cc241d\"\ngreen = \"#98971a\"\nyellow = \"#d79921\"\nblue = \"#458588\"\npurple = \"#b16286\"\naqua = \"#689d6a\"\nlight-red = \"#fb4934\"\n"); + const s = t.ansi.?; + try std.testing.expectEqual(Rgb{ 0xcc, 0x24, 0x1d }, s[1]); + try std.testing.expectEqual(Rgb{ 0xb1, 0x62, 0x86 }, s[5]); + try std.testing.expectEqual(Rgb{ 0x68, 0x9d, 0x6a }, s[6]); + try std.testing.expectEqual(Rgb{ 0xfb, 0x49, 0x34 }, s[9]); + try std.testing.expectEqual(s[2], s[10]); + try std.testing.expectEqual(Rgb{ 0x28, 0x28, 0x28 }, s[0]); + try std.testing.expectEqual(Rgb{ 0xeb, 0xdb, 0xb2 }, s[7]); + try std.testing.expectEqual(Rgb{ 0x92, 0x83, 0x74 }, s[8]); + // five of six: pardes derives them + try std.testing.expectEqual(null, (try helixOf(a, "[palette]\nred = \"#cc241d\"\ngreen = \"#98971a\"\nyellow = \"#d79921\"\nblue = \"#458588\"\npurple = \"#b16286\"\n")).ansi); +} + +test "B7, zed: the status bar the tag, the active tab its focus, the status colours, a search match as drawn over the page" { + var arena: std.heap.ArenaAllocator = .init(std.testing.allocator); + defer arena.deinit(); + const a = arena.allocator(); + var style: std.ArrayList(u8) = .empty; + const keys = [_][2][]const u8{ + .{ "editor.background", "#282c33ff" }, .{ "editor.foreground", "#acb2beff" }, + .{ "element.selected", "#454a56ff" }, .{ "status_bar.background", "#3b414dff" }, + .{ "text.muted", "#a9afbcff" }, .{ "text.accent", "#74ade8ff" }, + .{ "editor.line_number", "#4e5a5f" }, .{ "scrollbar.thumb.border", "#363c46ff" }, + .{ "scrollbar.thumb.background", "#c8ccd44c" }, .{ "tab.active_background", "#282c33ff" }, + .{ "error", "#d07277ff" }, .{ "warning", "#dec184ff" }, + .{ "info", "#74ade8ff" }, .{ "hint", "#788ca6ff" }, + .{ "created", "#a1c181ff" }, .{ "deleted", "#d07277ff" }, + .{ "search.match_background", "#74ade866" }, .{ "editor.active_line_number", "#d0d4da" }, + }; + for (keys) |k| try style.print(a, "\"{s}\": \"{s}\", ", .{ k[0], k[1] }); + inline for (ansi) |n| try style.print(a, "\"terminal.ansi.{s}\": \"#101010\", \"terminal.ansi.bright_{s}\": \"#202020\", ", .{ n, n }); + const json = try std.fmt.allocPrint(a, "{{\"themes\": [{{\"name\": \"One Dark\", \"style\": {{ {s} \"syntax\": {{ \"keyword\": {{\"color\": \"#b477cf\"}}, \"string\": {{\"color\": \"#a1c181\"}}, \"number\": {{\"color\": \"#bf956a\"}}, \"comment\": {{\"color\": \"#5d636f\"}} }} }} }}]}}", .{style.items}); + var out: std.ArrayList(Theme) = .empty; + try readZed(a, std.testing.allocator, "one.json", json, &out); + const t = out.items[0]; + try std.testing.expectEqualStrings("one_dark_zed", t.name); + try std.testing.expectEqual(Rgb{ 0x3b, 0x41, 0x4d }, t.tag); + try std.testing.expectEqual(Rgb{ 0x28, 0x2c, 0x33 }, t.tag_focus.?); + try std.testing.expectEqual(Rgb{ 0xd0, 0x72, 0x77 }, t.@"error".?); + try std.testing.expectEqual(Rgb{ 0x78, 0x8c, 0xa6 }, t.hint.?); + try std.testing.expectEqual(Rgb{ 0xa1, 0xc1, 0x81 }, t.added.?); + try std.testing.expectEqual(Rgb{ 0xd0, 0x72, 0x77 }, t.deleted.?); + try std.testing.expectEqual(Rgb{ 0xd0, 0xd4, 0xda }, t.line_number_current.?); + // #74ade8 at 0x66 (40 %) over #282c33 + try std.testing.expectEqual(Rgb{ 0x46, 0x60, 0x7b }, t.hit.?); +} diff --git a/vendor/themes/ayu.LICENSE b/vendor/themes/ayu.LICENSE deleted file mode 100644 index 37a92292..00000000 --- a/vendor/themes/ayu.LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2016 Ike Ku - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/vendor/themes/ayu.json b/vendor/themes/ayu.json deleted file mode 100644 index ee5073e7..00000000 --- a/vendor/themes/ayu.json +++ /dev/null @@ -1,1228 +0,0 @@ -{ - "$schema": "https://zed.dev/schema/themes/v0.2.0.json", - "name": "Ayu", - "author": "Zed Industries", - "themes": [ - { - "name": "Ayu Dark", - "appearance": "dark", - "style": { - "border": "#3f4043ff", - "border.variant": "#2d2f34ff", - "border.focused": "#1b4a6eff", - "border.selected": "#1b4a6eff", - "border.transparent": "#00000000", - "border.disabled": "#383a3eff", - "elevated_surface.background": "#1f2127ff", - "surface.background": "#1f2127ff", - "background": "#313337ff", - "element.background": "#1f2127ff", - "element.hover": "#2d2f34ff", - "element.active": "#3e4043ff", - "element.selected": "#3e4043ff", - "element.disabled": "#1f2127ff", - "drop_target.background": "#8a898680", - "ghost_element.background": "#00000000", - "ghost_element.hover": "#2d2f34ff", - "ghost_element.active": "#3e4043ff", - "ghost_element.selected": "#3e4043ff", - "ghost_element.disabled": "#1f2127ff", - "text": "#bfbdb6ff", - "text.muted": "#8a8986ff", - "text.placeholder": "#696a6aff", - "text.disabled": "#696a6aff", - "text.accent": "#5ac1feff", - "icon": "#bfbdb6ff", - "icon.muted": "#8a8986ff", - "icon.disabled": "#696a6aff", - "icon.placeholder": "#8a8986ff", - "icon.accent": "#5ac1feff", - "status_bar.background": "#313337ff", - "title_bar.background": "#313337ff", - "title_bar.inactive_background": "#1f2127ff", - "toolbar.background": "#0d1016ff", - "tab_bar.background": "#1f2127ff", - "tab.inactive_background": "#1f2127ff", - "tab.active_background": "#0d1016ff", - "search.match_background": "#5ac2fe66", - "search.active_match_background": "#ea570166", - "panel.background": "#1f2127ff", - "panel.focused_border": "#5ac1feff", - "pane.focused_border": null, - "scrollbar.thumb.background": "#bfbdb64c", - "scrollbar.thumb.hover_background": "#2d2f34ff", - "scrollbar.thumb.border": "#2d2f34ff", - "scrollbar.track.background": "#00000000", - "scrollbar.track.border": "#1b1e24ff", - "editor.foreground": "#bfbdb6ff", - "editor.background": "#0d1016ff", - "editor.gutter.background": "#0d1016ff", - "editor.subheader.background": "#1f2127ff", - "editor.active_line.background": "#1f2127bf", - "editor.highlighted_line.background": "#1f2127ff", - "editor.line_number": "#4b4c4e", - "editor.active_line_number": "#cbcccd", - "editor.hover_line_number": "#a1a2a5", - "editor.invisible": "#666767ff", - "editor.wrap_guide": "#bfbdb60d", - "editor.active_wrap_guide": "#bfbdb61a", - "editor.document_highlight.read_background": "#5ac1fe1a", - "editor.document_highlight.write_background": "#66676766", - "terminal.background": "#0d1016ff", - "terminal.foreground": "#bfbdb6ff", - "terminal.bright_foreground": "#bfbdb6ff", - "terminal.dim_foreground": "#85847fff", - "terminal.ansi.black": "#0d1016ff", - "terminal.ansi.bright_black": "#545557ff", - "terminal.ansi.dim_black": "#3a3b3cff", - "terminal.ansi.red": "#ef7177ff", - "terminal.ansi.bright_red": "#83353bff", - "terminal.ansi.dim_red": "#a74f53ff", - "terminal.ansi.green": "#aad84cff", - "terminal.ansi.bright_green": "#567627ff", - "terminal.ansi.dim_green": "#769735ff", - "terminal.ansi.yellow": "#feb454ff", - "terminal.ansi.bright_yellow": "#92582bff", - "terminal.ansi.dim_yellow": "#b17d3aff", - "terminal.ansi.blue": "#5ac1feff", - "terminal.ansi.bright_blue": "#27618cff", - "terminal.ansi.dim_blue": "#3e87b1ff", - "terminal.ansi.magenta": "#39bae5ff", - "terminal.ansi.bright_magenta": "#205a78ff", - "terminal.ansi.dim_magenta": "#2782a0ff", - "terminal.ansi.cyan": "#95e5cbff", - "terminal.ansi.bright_cyan": "#4c806fff", - "terminal.ansi.dim_cyan": "#68a08eff", - "terminal.ansi.white": "#bfbdb6ff", - "terminal.ansi.bright_white": "#fafafaff", - "terminal.ansi.dim_white": "#85847fff", - "link_text.hover": "#5ac1feff", - "conflict": "#feb454ff", - "conflict.background": "#572815ff", - "conflict.border": "#754221ff", - "created": "#aad84cff", - "created.background": "#294113ff", - "created.border": "#405c1cff", - "deleted": "#ef7177ff", - "deleted.background": "#48161bff", - "deleted.border": "#66272dff", - "error": "#ef7177ff", - "error.background": "#48161bff", - "error.border": "#66272dff", - "hidden": "#696a6aff", - "hidden.background": "#313337ff", - "hidden.border": "#383a3eff", - "hint": "#628b80ff", - "hint.background": "#0d2f4eff", - "hint.border": "#1b4a6eff", - "ignored": "#696a6aff", - "ignored.background": "#313337ff", - "ignored.border": "#3f4043ff", - "info": "#5ac1feff", - "info.background": "#0d2f4eff", - "info.border": "#1b4a6eff", - "modified": "#feb454ff", - "modified.background": "#572815ff", - "modified.border": "#754221ff", - "predictive": "#5a728bff", - "predictive.background": "#294113ff", - "predictive.border": "#405c1cff", - "renamed": "#5ac1feff", - "renamed.background": "#0d2f4eff", - "renamed.border": "#1b4a6eff", - "success": "#aad84cff", - "success.background": "#294113ff", - "success.border": "#405c1cff", - "unreachable": "#8a8986ff", - "unreachable.background": "#313337ff", - "unreachable.border": "#3f4043ff", - "warning": "#feb454ff", - "warning.background": "#572815ff", - "warning.border": "#754221ff", - "players": [ - { - "cursor": "#5ac1feff", - "background": "#5ac1feff", - "selection": "#5ac1fe3d" - }, - { - "cursor": "#39bae5ff", - "background": "#39bae5ff", - "selection": "#39bae53d" - }, - { - "cursor": "#fe8f40ff", - "background": "#fe8f40ff", - "selection": "#fe8f403d" - }, - { - "cursor": "#d2a6feff", - "background": "#d2a6feff", - "selection": "#d2a6fe3d" - }, - { - "cursor": "#95e5cbff", - "background": "#95e5cbff", - "selection": "#95e5cb3d" - }, - { - "cursor": "#ef7177ff", - "background": "#ef7177ff", - "selection": "#ef71773d" - }, - { - "cursor": "#feb454ff", - "background": "#feb454ff", - "selection": "#feb4543d" - }, - { - "cursor": "#aad84cff", - "background": "#aad84cff", - "selection": "#aad84c3d" - } - ], - "syntax": { - "attribute": { - "color": "#5ac1feff", - "font_style": null, - "font_weight": null - }, - "boolean": { - "color": "#d2a6ffff", - "font_style": null, - "font_weight": null - }, - "comment": { - "color": "#5c6773ff", - "font_style": null, - "font_weight": null - }, - "comment.doc": { - "color": "#8c8b88ff", - "font_style": null, - "font_weight": null - }, - "constant": { - "color": "#d2a6ffff", - "font_style": null, - "font_weight": null - }, - "constructor": { - "color": "#5ac1feff", - "font_style": null, - "font_weight": null - }, - "embedded": { - "color": "#bfbdb6ff", - "font_style": null, - "font_weight": null - }, - "emphasis": { - "color": "#5ac1feff", - "font_style": null, - "font_weight": null - }, - "emphasis.strong": { - "color": "#5ac1feff", - "font_style": null, - "font_weight": 700 - }, - "enum": { - "color": "#fe8f40ff", - "font_style": null, - "font_weight": null - }, - "function": { - "color": "#ffb353ff", - "font_style": null, - "font_weight": null - }, - "hint": { - "color": "#628b80ff", - "font_style": null, - "font_weight": null - }, - "keyword": { - "color": "#ff8f3fff", - "font_style": null, - "font_weight": null - }, - "label": { - "color": "#5ac1feff", - "font_style": null, - "font_weight": null - }, - "link_text": { - "color": "#fe8f40ff", - "font_style": "italic", - "font_weight": null - }, - "link_uri": { - "color": "#aad84cff", - "font_style": null, - "font_weight": null - }, - "namespace": { - "color": "#bfbdb6ff", - "font_style": null, - "font_weight": null - }, - "number": { - "color": "#d2a6ffff", - "font_style": null, - "font_weight": null - }, - "operator": { - "color": "#f29668ff", - "font_style": null, - "font_weight": null - }, - "predictive": { - "color": "#5a728bff", - "font_style": "italic", - "font_weight": null - }, - "preproc": { - "color": "#ff8f3fff", - "font_style": null, - "font_weight": null - }, - "primary": { - "color": "#bfbdb6ff", - "font_style": null, - "font_weight": null - }, - "property": { - "color": "#5ac1feff", - "font_style": null, - "font_weight": null - }, - "punctuation": { - "color": "#a6a5a0ff", - "font_style": null, - "font_weight": null - }, - "punctuation.bracket": { - "color": "#a6a5a0ff", - "font_style": null, - "font_weight": null - }, - "punctuation.delimiter": { - "color": "#a6a5a0ff", - "font_style": null, - "font_weight": null - }, - "punctuation.list_marker": { - "color": "#a6a5a0ff", - "font_style": null, - "font_weight": null - }, - "punctuation.markup": { - "color": "#a6a5a0ff", - "font_style": null, - "font_weight": null - }, - "punctuation.special": { - "color": "#d2a6ffff", - "font_style": null, - "font_weight": null - }, - "selector": { - "color": "#d2a6ffff", - "font_style": null, - "font_weight": null - }, - "selector.pseudo": { - "color": "#5ac1feff", - "font_style": null, - "font_weight": null - }, - "string": { - "color": "#a9d94bff", - "font_style": null, - "font_weight": null - }, - "string.escape": { - "color": "#8c8b88ff", - "font_style": null, - "font_weight": null - }, - "string.regex": { - "color": "#95e6cbff", - "font_style": null, - "font_weight": null - }, - "string.special": { - "color": "#e5b572ff", - "font_style": null, - "font_weight": null - }, - "string.special.symbol": { - "color": "#fe8f40ff", - "font_style": null, - "font_weight": null - }, - "tag": { - "color": "#5ac1feff", - "font_style": null, - "font_weight": null - }, - "text.literal": { - "color": "#fe8f40ff", - "font_style": null, - "font_weight": null - }, - "title": { - "color": "#bfbdb6ff", - "font_style": null, - "font_weight": 700 - }, - "type": { - "color": "#59c2ffff", - "font_style": null, - "font_weight": null - }, - "variable": { - "color": "#bfbdb6ff", - "font_style": null, - "font_weight": null - }, - "variable.parameter": { - "color": "#d2a6ffff", - "font_style": null, - "font_weight": null - }, - "variant": { - "color": "#5ac1feff", - "font_style": null, - "font_weight": null - }, - "diff.plus": { - "color": "#aad94cff", - "font_style": null, - "font_weight": null - }, - "diff.minus": { - "color": "#f07178ff", - "font_style": null, - "font_weight": null - } - } - } - }, - { - "name": "Ayu Light", - "appearance": "light", - "style": { - "border": "#cfd1d2ff", - "border.variant": "#dfe0e1ff", - "border.focused": "#c4daf6ff", - "border.selected": "#c4daf6ff", - "border.transparent": "#00000000", - "border.disabled": "#d5d6d8ff", - "elevated_surface.background": "#ececedff", - "surface.background": "#ececedff", - "background": "#dcdddeff", - "element.background": "#ececedff", - "element.hover": "#dfe0e1ff", - "element.active": "#cfd0d2ff", - "element.selected": "#cfd0d2ff", - "element.disabled": "#ececedff", - "drop_target.background": "#8b8e9280", - "ghost_element.background": "#00000000", - "ghost_element.hover": "#dfe0e1ff", - "ghost_element.active": "#cfd0d2ff", - "ghost_element.selected": "#cfd0d2ff", - "ghost_element.disabled": "#ececedff", - "text": "#5c6166ff", - "text.muted": "#8b8e92ff", - "text.placeholder": "#a9acaeff", - "text.disabled": "#a9acaeff", - "text.accent": "#3b9ee5ff", - "icon": "#5c6166ff", - "icon.muted": "#8b8e92ff", - "icon.disabled": "#a9acaeff", - "icon.placeholder": "#8b8e92ff", - "icon.accent": "#3b9ee5ff", - "status_bar.background": "#dcdddeff", - "title_bar.background": "#dcdddeff", - "title_bar.inactive_background": "#ececedff", - "toolbar.background": "#fcfcfcff", - "tab_bar.background": "#ececedff", - "tab.inactive_background": "#ececedff", - "tab.active_background": "#fcfcfcff", - "search.match_background": "#3b9ee566", - "search.active_match_background": "#f88b3666", - "panel.background": "#ececedff", - "panel.focused_border": "#3b9ee5ff", - "pane.focused_border": null, - "scrollbar.thumb.background": "#5c61664c", - "scrollbar.thumb.hover_background": "#dfe0e1ff", - "scrollbar.thumb.border": "#dfe0e1ff", - "scrollbar.track.background": "#00000000", - "scrollbar.track.border": "#efeff0ff", - "editor.foreground": "#5c6166ff", - "editor.background": "#fcfcfcff", - "editor.gutter.background": "#fcfcfcff", - "editor.subheader.background": "#ececedff", - "editor.active_line.background": "#ececedbf", - "editor.highlighted_line.background": "#ececedff", - "editor.line_number": "#b0b3b5", - "editor.active_line_number": "#313435", - "editor.hover_line_number": "#62686a", - "editor.invisible": "#acafb1ff", - "editor.wrap_guide": "#5c61660d", - "editor.active_wrap_guide": "#5c61661a", - "editor.document_highlight.read_background": "#3b9ee51a", - "editor.document_highlight.write_background": "#acafb166", - "terminal.background": "#fcfcfcff", - "terminal.foreground": "#5c6166ff", - "terminal.bright_foreground": "#5c6166ff", - "terminal.dim_foreground": "#fcfcfcff", - "terminal.ansi.black": "#5c6166ff", - "terminal.ansi.bright_black": "#3b9ee5ff", - "terminal.ansi.dim_black": "#9c9fa2ff", - "terminal.ansi.red": "#ef7271ff", - "terminal.ansi.bright_red": "#febab6ff", - "terminal.ansi.dim_red": "#833538ff", - "terminal.ansi.green": "#85b304ff", - "terminal.ansi.bright_green": "#c7d98fff", - "terminal.ansi.dim_green": "#445613ff", - "terminal.ansi.yellow": "#f1ad49ff", - "terminal.ansi.bright_yellow": "#fed5a3ff", - "terminal.ansi.dim_yellow": "#8a5227ff", - "terminal.ansi.blue": "#3b9ee5ff", - "terminal.ansi.bright_blue": "#abcdf2ff", - "terminal.ansi.dim_blue": "#214c76ff", - "terminal.ansi.magenta": "#55b4d3ff", - "terminal.ansi.bright_magenta": "#b1d8e8ff", - "terminal.ansi.dim_magenta": "#2f5669ff", - "terminal.ansi.cyan": "#4dbf99ff", - "terminal.ansi.bright_cyan": "#ace0cbff", - "terminal.ansi.dim_cyan": "#2a5f4aff", - "terminal.ansi.white": "#fcfcfcff", - "terminal.ansi.bright_white": "#ffffffff", - "terminal.ansi.dim_white": "#bcbec0ff", - "link_text.hover": "#3b9ee5ff", - "conflict": "#f1ad49ff", - "conflict.background": "#ffeedaff", - "conflict.border": "#ffe1beff", - "created": "#85b304ff", - "created.background": "#e9efd2ff", - "created.border": "#d7e3aeff", - "deleted": "#ef7271ff", - "deleted.background": "#ffe3e1ff", - "deleted.border": "#ffcdcaff", - "error": "#ef7271ff", - "error.background": "#ffe3e1ff", - "error.border": "#ffcdcaff", - "hidden": "#a9acaeff", - "hidden.background": "#dcdddeff", - "hidden.border": "#d5d6d8ff", - "hint": "#8ca7c2ff", - "hint.background": "#deebfaff", - "hint.border": "#c4daf6ff", - "ignored": "#a9acaeff", - "ignored.background": "#dcdddeff", - "ignored.border": "#cfd1d2ff", - "info": "#3b9ee5ff", - "info.background": "#deebfaff", - "info.border": "#c4daf6ff", - "modified": "#f1ad49ff", - "modified.background": "#ffeedaff", - "modified.border": "#ffe1beff", - "predictive": "#9eb9d3ff", - "predictive.background": "#e9efd2ff", - "predictive.border": "#d7e3aeff", - "renamed": "#3b9ee5ff", - "renamed.background": "#deebfaff", - "renamed.border": "#c4daf6ff", - "success": "#85b304ff", - "success.background": "#e9efd2ff", - "success.border": "#d7e3aeff", - "unreachable": "#8b8e92ff", - "unreachable.background": "#dcdddeff", - "unreachable.border": "#cfd1d2ff", - "warning": "#f1ad49ff", - "warning.background": "#ffeedaff", - "warning.border": "#ffe1beff", - "players": [ - { - "cursor": "#3b9ee5ff", - "background": "#3b9ee5ff", - "selection": "#3b9ee53d" - }, - { - "cursor": "#55b4d3ff", - "background": "#55b4d3ff", - "selection": "#55b4d33d" - }, - { - "cursor": "#f98d3fff", - "background": "#f98d3fff", - "selection": "#f98d3f3d" - }, - { - "cursor": "#a37accff", - "background": "#a37accff", - "selection": "#a37acc3d" - }, - { - "cursor": "#4dbf99ff", - "background": "#4dbf99ff", - "selection": "#4dbf993d" - }, - { - "cursor": "#ef7271ff", - "background": "#ef7271ff", - "selection": "#ef72713d" - }, - { - "cursor": "#f1ad49ff", - "background": "#f1ad49ff", - "selection": "#f1ad493d" - }, - { - "cursor": "#85b304ff", - "background": "#85b304ff", - "selection": "#85b3043d" - } - ], - "syntax": { - "attribute": { - "color": "#3b9ee5ff", - "font_style": null, - "font_weight": null - }, - "boolean": { - "color": "#a37accff", - "font_style": null, - "font_weight": null - }, - "comment": { - "color": "#abb0b6ff", - "font_style": null, - "font_weight": null - }, - "comment.doc": { - "color": "#898d90ff", - "font_style": null, - "font_weight": null - }, - "constant": { - "color": "#a37accff", - "font_style": null, - "font_weight": null - }, - "constructor": { - "color": "#3b9ee5ff", - "font_style": null, - "font_weight": null - }, - "embedded": { - "color": "#5c6166ff", - "font_style": null, - "font_weight": null - }, - "emphasis": { - "color": "#3b9ee5ff", - "font_style": null, - "font_weight": null - }, - "emphasis.strong": { - "color": "#3b9ee5ff", - "font_style": null, - "font_weight": 700 - }, - "enum": { - "color": "#f98d3fff", - "font_style": null, - "font_weight": null - }, - "function": { - "color": "#f2ad48ff", - "font_style": null, - "font_weight": null - }, - "hint": { - "color": "#8ca7c2ff", - "font_style": null, - "font_weight": null - }, - "keyword": { - "color": "#fa8d3eff", - "font_style": null, - "font_weight": null - }, - "label": { - "color": "#3b9ee5ff", - "font_style": null, - "font_weight": null - }, - "link_text": { - "color": "#f98d3fff", - "font_style": "italic", - "font_weight": null - }, - "link_uri": { - "color": "#85b304ff", - "font_style": null, - "font_weight": null - }, - "namespace": { - "color": "#5c6166ff", - "font_style": null, - "font_weight": null - }, - "number": { - "color": "#a37accff", - "font_style": null, - "font_weight": null - }, - "operator": { - "color": "#ed9365ff", - "font_style": null, - "font_weight": null - }, - "predictive": { - "color": "#9eb9d3ff", - "font_style": "italic", - "font_weight": null - }, - "preproc": { - "color": "#fa8d3eff", - "font_style": null, - "font_weight": null - }, - "primary": { - "color": "#5c6166ff", - "font_style": null, - "font_weight": null - }, - "property": { - "color": "#3b9ee5ff", - "font_style": null, - "font_weight": null - }, - "punctuation": { - "color": "#73777bff", - "font_style": null, - "font_weight": null - }, - "punctuation.bracket": { - "color": "#73777bff", - "font_style": null, - "font_weight": null - }, - "punctuation.delimiter": { - "color": "#73777bff", - "font_style": null, - "font_weight": null - }, - "punctuation.list_marker": { - "color": "#73777bff", - "font_style": null, - "font_weight": null - }, - "punctuation.markup": { - "color": "#73777bff", - "font_style": null, - "font_weight": null - }, - "punctuation.special": { - "color": "#a37accff", - "font_style": null, - "font_weight": null - }, - "selector": { - "color": "#a37accff", - "font_style": null, - "font_weight": null - }, - "selector.pseudo": { - "color": "#3b9ee5ff", - "font_style": null, - "font_weight": null - }, - "string": { - "color": "#86b300ff", - "font_style": null, - "font_weight": null - }, - "string.escape": { - "color": "#898d90ff", - "font_style": null, - "font_weight": null - }, - "string.regex": { - "color": "#4bbf98ff", - "font_style": null, - "font_weight": null - }, - "string.special": { - "color": "#e6ba7eff", - "font_style": null, - "font_weight": null - }, - "string.special.symbol": { - "color": "#f98d3fff", - "font_style": null, - "font_weight": null - }, - "tag": { - "color": "#3b9ee5ff", - "font_style": null, - "font_weight": null - }, - "text.literal": { - "color": "#f98d3fff", - "font_style": null, - "font_weight": null - }, - "title": { - "color": "#5c6166ff", - "font_style": null, - "font_weight": 700 - }, - "type": { - "color": "#389ee6ff", - "font_style": null, - "font_weight": null - }, - "variable": { - "color": "#5c6166ff", - "font_style": null, - "font_weight": null - }, - "variable.parameter": { - "color": "#a37accff", - "font_style": null, - "font_weight": null - }, - "variant": { - "color": "#3b9ee5ff", - "font_style": null, - "font_weight": null - }, - "diff.plus": { - "color": "#6cbf43ff", - "font_style": null, - "font_weight": null - }, - "diff.minus": { - "color": "#ff6666ff", - "font_style": null, - "font_weight": null - } - } - } - }, - { - "name": "Ayu Mirage", - "appearance": "dark", - "style": { - "border": "#53565dff", - "border.variant": "#43464fff", - "border.focused": "#24556fff", - "border.selected": "#24556fff", - "border.transparent": "#00000000", - "border.disabled": "#4d5058ff", - "elevated_surface.background": "#353944ff", - "surface.background": "#353944ff", - "background": "#464a52ff", - "element.background": "#353944ff", - "element.hover": "#43464fff", - "element.active": "#53565dff", - "element.selected": "#53565dff", - "element.disabled": "#353944ff", - "drop_target.background": "#9a9a9880", - "ghost_element.background": "#00000000", - "ghost_element.hover": "#43464fff", - "ghost_element.active": "#53565dff", - "ghost_element.selected": "#53565dff", - "ghost_element.disabled": "#353944ff", - "text": "#cccac2ff", - "text.muted": "#9a9a98ff", - "text.placeholder": "#7b7d7fff", - "text.disabled": "#7b7d7fff", - "text.accent": "#72cffeff", - "icon": "#cccac2ff", - "icon.muted": "#9a9a98ff", - "icon.disabled": "#7b7d7fff", - "icon.placeholder": "#9a9a98ff", - "icon.accent": "#72cffeff", - "status_bar.background": "#464a52ff", - "title_bar.background": "#464a52ff", - "title_bar.inactive_background": "#353944ff", - "toolbar.background": "#242835ff", - "tab_bar.background": "#353944ff", - "tab.inactive_background": "#353944ff", - "tab.active_background": "#242835ff", - "search.match_background": "#73cffe66", - "search.active_match_background": "#fd722b66", - "panel.background": "#353944ff", - "panel.focused_border": null, - "pane.focused_border": null, - "scrollbar.thumb.background": "#cccac24c", - "scrollbar.thumb.hover_background": "#43464fff", - "scrollbar.thumb.border": "#43464fff", - "scrollbar.track.background": "#00000000", - "scrollbar.track.border": "#323641ff", - "editor.foreground": "#cccac2ff", - "editor.background": "#242835ff", - "editor.gutter.background": "#242835ff", - "editor.subheader.background": "#353944ff", - "editor.active_line.background": "#353944bf", - "editor.highlighted_line.background": "#353944ff", - "editor.line_number": "#575c6b", - "editor.active_line_number": "#e1e3ea", - "editor.hover_line_number": "#b2b6c8", - "editor.invisible": "#787a7cff", - "editor.wrap_guide": "#cccac20d", - "editor.active_wrap_guide": "#cccac21a", - "editor.document_highlight.read_background": "#72cffe1a", - "editor.document_highlight.write_background": "#787a7c66", - "terminal.background": "#242835ff", - "terminal.foreground": "#cccac2ff", - "terminal.bright_foreground": "#cccac2ff", - "terminal.dim_foreground": "#8e8d87ff", - "terminal.ansi.black": "#242835ff", - "terminal.ansi.bright_black": "#67696eff", - "terminal.ansi.dim_black": "#48494dff", - "terminal.ansi.red": "#f18779ff", - "terminal.ansi.bright_red": "#833f3cff", - "terminal.ansi.dim_red": "#a85e54ff", - "terminal.ansi.green": "#d5fe80ff", - "terminal.ansi.bright_green": "#75993cff", - "terminal.ansi.dim_green": "#95b159ff", - "terminal.ansi.yellow": "#fecf72ff", - "terminal.ansi.bright_yellow": "#937237ff", - "terminal.ansi.dim_yellow": "#b1904fff", - "terminal.ansi.blue": "#72cffeff", - "terminal.ansi.bright_blue": "#336d8dff", - "terminal.ansi.dim_blue": "#4f90b1ff", - "terminal.ansi.magenta": "#5bcde5ff", - "terminal.ansi.bright_magenta": "#2b6c7bff", - "terminal.ansi.dim_magenta": "#3f8fa0ff", - "terminal.ansi.cyan": "#95e5cbff", - "terminal.ansi.bright_cyan": "#4c806fff", - "terminal.ansi.dim_cyan": "#68a08eff", - "terminal.ansi.white": "#cccac2ff", - "terminal.ansi.bright_white": "#fafafaff", - "terminal.ansi.dim_white": "#8e8d87ff", - "link_text.hover": "#72cffeff", - "conflict": "#fecf72ff", - "conflict.background": "#574018ff", - "conflict.border": "#765a29ff", - "created": "#d5fe80ff", - "created.background": "#426117ff", - "created.border": "#5d7e2cff", - "deleted": "#f18779ff", - "deleted.background": "#481a1bff", - "deleted.border": "#662e2dff", - "error": "#f18779ff", - "error.background": "#481a1bff", - "error.border": "#662e2dff", - "hidden": "#7b7d7fff", - "hidden.background": "#464a52ff", - "hidden.border": "#4d5058ff", - "hint": "#7399a3ff", - "hint.background": "#123950ff", - "hint.border": "#24556fff", - "ignored": "#7b7d7fff", - "ignored.background": "#464a52ff", - "ignored.border": "#53565dff", - "info": "#72cffeff", - "info.background": "#123950ff", - "info.border": "#24556fff", - "modified": "#fecf72ff", - "modified.background": "#574018ff", - "modified.border": "#765a29ff", - "predictive": "#6d839bff", - "predictive.background": "#426117ff", - "predictive.border": "#5d7e2cff", - "renamed": "#72cffeff", - "renamed.background": "#123950ff", - "renamed.border": "#24556fff", - "success": "#d5fe80ff", - "success.background": "#426117ff", - "success.border": "#5d7e2cff", - "unreachable": "#9a9a98ff", - "unreachable.background": "#464a52ff", - "unreachable.border": "#53565dff", - "warning": "#fecf72ff", - "warning.background": "#574018ff", - "warning.border": "#765a29ff", - "players": [ - { - "cursor": "#72cffeff", - "background": "#72cffeff", - "selection": "#72cffe3d" - }, - { - "cursor": "#5bcde5ff", - "background": "#5bcde5ff", - "selection": "#5bcde53d" - }, - { - "cursor": "#fead66ff", - "background": "#fead66ff", - "selection": "#fead663d" - }, - { - "cursor": "#debffeff", - "background": "#debffeff", - "selection": "#debffe3d" - }, - { - "cursor": "#95e5cbff", - "background": "#95e5cbff", - "selection": "#95e5cb3d" - }, - { - "cursor": "#f18779ff", - "background": "#f18779ff", - "selection": "#f187793d" - }, - { - "cursor": "#fecf72ff", - "background": "#fecf72ff", - "selection": "#fecf723d" - }, - { - "cursor": "#d5fe80ff", - "background": "#d5fe80ff", - "selection": "#d5fe803d" - } - ], - "syntax": { - "attribute": { - "color": "#72cffeff", - "font_style": null, - "font_weight": null - }, - "boolean": { - "color": "#dfbfffff", - "font_style": null, - "font_weight": null - }, - "comment": { - "color": "#5c6773ff", - "font_style": null, - "font_weight": null - }, - "comment.doc": { - "color": "#9b9b99ff", - "font_style": null, - "font_weight": null - }, - "constant": { - "color": "#dfbfffff", - "font_style": null, - "font_weight": null - }, - "constructor": { - "color": "#72cffeff", - "font_style": null, - "font_weight": null - }, - "embedded": { - "color": "#cccac2ff", - "font_style": null, - "font_weight": null - }, - "emphasis": { - "color": "#72cffeff", - "font_style": null, - "font_weight": null - }, - "emphasis.strong": { - "color": "#72cffeff", - "font_style": null, - "font_weight": 700 - }, - "enum": { - "color": "#fead66ff", - "font_style": null, - "font_weight": null - }, - "function": { - "color": "#ffd173ff", - "font_style": null, - "font_weight": null - }, - "hint": { - "color": "#7399a3ff", - "font_style": null, - "font_weight": null - }, - "keyword": { - "color": "#ffad65ff", - "font_style": null, - "font_weight": null - }, - "label": { - "color": "#72cffeff", - "font_style": null, - "font_weight": null - }, - "link_text": { - "color": "#fead66ff", - "font_style": "italic", - "font_weight": null - }, - "link_uri": { - "color": "#d5fe80ff", - "font_style": null, - "font_weight": null - }, - "namespace": { - "color": "#cccac2ff", - "font_style": null, - "font_weight": null - }, - "number": { - "color": "#dfbfffff", - "font_style": null, - "font_weight": null - }, - "operator": { - "color": "#f29e74ff", - "font_style": null, - "font_weight": null - }, - "predictive": { - "color": "#6d839bff", - "font_style": "italic", - "font_weight": null - }, - "preproc": { - "color": "#ffad65ff", - "font_style": null, - "font_weight": null - }, - "primary": { - "color": "#cccac2ff", - "font_style": null, - "font_weight": null - }, - "property": { - "color": "#72cffeff", - "font_style": null, - "font_weight": null - }, - "punctuation": { - "color": "#b4b3aeff", - "font_style": null, - "font_weight": null - }, - "punctuation.bracket": { - "color": "#b4b3aeff", - "font_style": null, - "font_weight": null - }, - "punctuation.delimiter": { - "color": "#b4b3aeff", - "font_style": null, - "font_weight": null - }, - "punctuation.list_marker": { - "color": "#b4b3aeff", - "font_style": null, - "font_weight": null - }, - "punctuation.markup": { - "color": "#b4b3aeff", - "font_style": null, - "font_weight": null - }, - "punctuation.special": { - "color": "#dfbfffff", - "font_style": null, - "font_weight": null - }, - "selector": { - "color": "#dfbfffff", - "font_style": null, - "font_weight": null - }, - "selector.pseudo": { - "color": "#72cffeff", - "font_style": null, - "font_weight": null - }, - "string": { - "color": "#d4fe7fff", - "font_style": null, - "font_weight": null - }, - "string.escape": { - "color": "#9b9b99ff", - "font_style": null, - "font_weight": null - }, - "string.regex": { - "color": "#95e6cbff", - "font_style": null, - "font_weight": null - }, - "string.special": { - "color": "#ffdfb3ff", - "font_style": null, - "font_weight": null - }, - "string.special.symbol": { - "color": "#fead66ff", - "font_style": null, - "font_weight": null - }, - "tag": { - "color": "#72cffeff", - "font_style": null, - "font_weight": null - }, - "text.literal": { - "color": "#fead66ff", - "font_style": null, - "font_weight": null - }, - "title": { - "color": "#cccac2ff", - "font_style": null, - "font_weight": 700 - }, - "type": { - "color": "#73cfffff", - "font_style": null, - "font_weight": null - }, - "variable": { - "color": "#cccac2ff", - "font_style": null, - "font_weight": null - }, - "variable.parameter": { - "color": "#dfbfffff", - "font_style": null, - "font_weight": null - }, - "variant": { - "color": "#72cffeff", - "font_style": null, - "font_weight": null - }, - "diff.plus": { - "color": "#aad94cff", - "font_style": null, - "font_weight": null - }, - "diff.minus": { - "color": "#f07178ff", - "font_style": null, - "font_weight": null - } - } - } - } - ] -} diff --git a/vendor/themes/ayu_dark_helix.toml b/vendor/themes/base/ayu_dark_helix.toml index a2fbc316..a2fbc316 100644 --- a/vendor/themes/ayu_dark_helix.toml +++ b/vendor/themes/base/ayu_dark_helix.toml diff --git a/vendor/themes/hex_steel.toml b/vendor/themes/base/hex_steel.toml index 4270d24a..4270d24a 100644 --- a/vendor/themes/hex_steel.toml +++ b/vendor/themes/base/hex_steel.toml diff --git a/vendor/themes/nord_helix.toml b/vendor/themes/base/nord_helix.toml index db7b6190..db7b6190 100644 --- a/vendor/themes/nord_helix.toml +++ b/vendor/themes/base/nord_helix.toml diff --git a/vendor/themes/base16_default_light.toml b/vendor/themes/base16_default_light.toml deleted file mode 100644 index 16e38e74..00000000 --- a/vendor/themes/base16_default_light.toml +++ /dev/null @@ -1,79 +0,0 @@ -# Author: NNB <[email protected]> - -"ui.background" = { bg = "base00" } -"ui.menu" = { fg = "base05", bg = "base01" } -"ui.menu.selected" = { fg = "base01", bg = "base04" } -"ui.linenr" = { fg = "base03", bg = "base01" } -"ui.popup" = { bg = "base01" } -"ui.window" = { bg = "base01" } -"ui.linenr.selected" = { fg = "base04", bg = "base01", modifiers = ["bold"] } -"ui.selection" = { bg = "base02" } -"comment" = { fg = "base03", modifiers = ["italic"] } -"ui.statusline" = { fg = "base04", bg = "base01" } -"ui.cursor" = { fg = "base04", modifiers = ["reversed"] } -"ui.cursor.primary" = { fg = "base05", modifiers = ["reversed"] } -"ui.virtual.whitespace" = "base03" -"ui.virtual.jump-label" = { fg = "blue", modifiers = ["bold", "underlined"] } -"ui.virtual.ruler" = { bg = "base01" } -"ui.text" = "base05" -"operator" = "base05" -"ui.text.focus" = "base05" -"variable" = "base08" -"constant.numeric" = "base09" -"constant" = "base09" -"attribute" = "base09" -"type" = "base0A" -"ui.cursor.match" = { fg = "base0A", modifiers = ["underlined"] } -"string" = "base0B" -"variable.other.member" = "base0B" -"constant.character.escape" = "base0C" -"function" = "base0D" -"constructor" = "base0D" -"special" = "base0D" -"keyword" = "base0E" -"label" = "base0E" -"namespace" = "base0E" -"ui.help" = { fg = "base06", bg = "base01" } - -"markup.heading" = "base0D" -"markup.list" = "base08" -"markup.bold" = { fg = "base0A", modifiers = ["bold"] } -"markup.italic" = { fg = "base0E", modifiers = ["italic"] } -"markup.strikethrough" = { modifiers = ["crossed_out"] } -"markup.link.url" = { fg = "base09", modifiers = ["underlined"] } -"markup.link.text" = "base08" -"markup.quote" = "base0C" -"markup.raw" = "base0B" - -"diff.plus" = "base0B" -"diff.delta" = "base09" -"diff.minus" = "base08" - -"diagnostic" = { modifiers = ["underlined"] } -"ui.gutter" = { bg = "base01" } -"info" = "base0D" -"hint" = "base03" -"debug" = "base03" -"warning" = "base09" -"error" = "base08" - -"ui.bufferline" = { fg = "base04", bg = "base01" } -"ui.bufferline.active" = { fg = "base07", bg = "base00" } - -[palette] -base00 = "#f8f8f8" # Default Background -base01 = "#e8e8e8" # Lighter Background (Used for status bars, line number and folding marks) -base02 = "#d8d8d8" # Selection Background -base03 = "#b8b8b8" # Comments, Invisibles, Line Highlighting -base04 = "#585858" # Dark Foreground (Used for status bars) -base05 = "#383838" # Default Foreground, Caret, Delimiters, Operators -base06 = "#282828" # Light Foreground (Not often used) -base07 = "#181818" # Light Background (Not often used) -base08 = "#ab4642" # Variables, XML Tags, Markup Link Text, Markup Lists, Diff Deleted -base09 = "#dc9656" # Integers, Boolean, Constants, XML Attributes, Markup Link Url -base0A = "#f7ca88" # Classes, Markup Bold, Search Text Background -base0B = "#a1b56c" # Strings, Inherited Class, Markup Code, Diff Inserted -base0C = "#86c1b9" # Support, Regular Expressions, Escape Characters, Markup Quotes -base0D = "#7cafc2" # Functions, Methods, Attribute IDs, Headings -base0E = "#ba8baf" # Keywords, Storage, Selector, Markup Italic, Diff Changed -base0F = "#a16946" # Deprecated, Opening/Closing Embedded Language Tags, e.g. <?php ?> diff --git a/vendor/themes/base16_terminal.toml b/vendor/themes/base16_terminal.toml deleted file mode 100644 index c8530c79..00000000 --- a/vendor/themes/base16_terminal.toml +++ /dev/null @@ -1,55 +0,0 @@ -# Author: NNB <[email protected]> - -"ui.menu" = { fg = "light-gray", bg = "gray" } -"ui.menu.selected" = { modifiers = ["reversed"] } -"ui.linenr" = { fg = "light-gray", bg = "black" } -"ui.popup" = { bg = "black" } -"ui.window" = { bg = "black" } -"ui.linenr.selected" = { fg = "white", bg = "black", modifiers = ["bold"] } -"ui.selection" = { fg = "gray", modifiers = ["reversed"] } -"comment" = { fg = "light-gray", modifiers = ["italic"] } -"ui.statusline" = { fg = "white", bg = "black" } -"ui.statusline.inactive" = { fg = "gray", bg = "black" } -"ui.help" = { fg = "white", bg = "black" } -"ui.cursor" = { fg = "light-gray", modifiers = ["reversed"] } -"ui.cursor.primary" = { fg = "light-gray", modifiers = ["reversed"] } -"ui.virtual.whitespace" = "light-gray" -"ui.virtual.jump-label" = { fg = "blue", modifiers = ["bold", "underlined"] } -"ui.virtual.ruler" = { bg = "black" } -"variable" = "light-red" -"constant.numeric" = "yellow" -"constant" = "yellow" -"attribute" = "yellow" -"type" = "light-yellow" -"ui.cursor.match" = { fg = "light-yellow", modifiers = ["underlined"] } -"string" = "light-green" -"variable.other.member" = "light-green" -"constant.character.escape" = "light-cyan" -"function" = "light-blue" -"constructor" = "light-blue" -"special" = "light-blue" -"keyword" = "light-magenta" -"label" = "light-magenta" -"namespace" = "light-magenta" - -"markup.heading" = "light-blue" -"markup.list" = "light-red" -"markup.bold" = { fg = "light-yellow", modifiers = ["bold"] } -"markup.italic" = { fg = "light-magenta", modifiers = ["italic"] } -"markup.strikethrough" = { modifiers = ["crossed_out"] } -"markup.link.url" = { fg = "yellow", modifiers = ["underlined"] } -"markup.link.text" = "light-red" -"markup.quote" = "light-cyan" -"markup.raw" = "light-green" - -"diff.plus" = "light-green" -"diff.delta" = "yellow" -"diff.minus" = "light-red" - -"diagnostic" = { modifiers = ["underlined"] } -"ui.gutter" = { bg = "black" } -"info" = "light-blue" -"hint" = "gray" -"debug" = "gray" -"warning" = "yellow" -"error" = "light-red" diff --git a/vendor/themes/base16_transparent.toml b/vendor/themes/base16_transparent.toml deleted file mode 100644 index fc697b92..00000000 --- a/vendor/themes/base16_transparent.toml +++ /dev/null @@ -1,84 +0,0 @@ -# Author: GreasySlug <[email protected]> -# This theme is base on base16_theme(Author: NNB <[email protected]>) - -"ui.background" = { fg = "white"} -"ui.background.separator" = { fg = "gray" } -"ui.text" = { fg = "light-gray" } -"ui.text.focus" = { fg = "white" } -"ui.menu" = { fg = "white" } -"ui.menu.selected" = { modifiers = ["reversed"] } -"ui.menu.scroll" = { fg = "light-gray" } -"ui.linenr" = { modifiers = ["dim"] } -"ui.linenr.selected" = { fg = "white", modifiers = ["bold"] } -"ui.popup" = { fg = "white" } -"ui.window" = { fg = "gray" } -"ui.selection" = { bg = "gray" } -"comment" = "light-gray" -"ui.statusline" = { fg = "white" } -"ui.statusline.inactive" = { fg = "gray" } -"ui.statusline.normal" = { fg = "black", bg = "blue" } -"ui.statusline.insert" = { fg = "black", bg = "green" } -"ui.statusline.select" = { fg = "black", bg = "magenta" } -"ui.help" = { fg = "light-gray" } -"ui.cursor" = { modifiers = ["reversed"] } -"ui.cursor.match" = { fg = "light-yellow", underline = { color = "light-yellow", style = "line" } } -"ui.cursor.primary" = { modifiers = ["reversed", "slow_blink"] } -"ui.cursor.secondary" = { modifiers = ["reversed"] } -"ui.cursorline.primary" = { underline = { color = "light-gray", style = "line" } } -"ui.cursorline.secondary" = { underline = { color = "light-gray", style = "line" } } -"ui.cursorcolumn.primary" = { bg = "gray" } -"ui.cursorcolumn.secondary" = { bg = "gray" } -"ui.virtual.ruler" = { bg = "gray" } -"ui.virtual.whitespace" = "gray" -"ui.virtual.indent-guide" = "gray" -"ui.virtual.inlay-hint" = { fg = "white", bg = "gray" } -"ui.virtual.inlay-hint.parameter" = { fg = "white", bg = "gray"} -"ui.virtual.inlay-hint.type" = { fg = "white", bg = "gray"} -"ui.virtual.wrap" = "gray" -"ui.virtual.jump-label" = { fg = "blue", modifiers = ["bold", "underlined"] } - -"variable" = "light-red" -"constant.numeric" = "yellow" -"constant" = "yellow" -"attribute" = "yellow" -"type" = "light-yellow" -"string" = "light-green" -"variable.other.member" = "green" -"constant.character.escape" = "light-cyan" -"function" = "light-blue" -"constructor" = "light-blue" -"special" = "light-blue" -"keyword" = "light-magenta" -"label" = "light-magenta" -"namespace" = "light-magenta" - -"markup.heading" = "light-blue" -"markup.list" = "light-red" -"markup.bold" = { fg = "light-yellow", modifiers = ["bold"] } -"markup.italic" = { fg = "light-magenta", modifiers = ["italic"] } -"markup.strikethrough" = { modifiers = ["crossed_out"] } -"markup.link.url" = { fg = "yellow", underline = { color = "yellow", style = "line"} } -"markup.link.text" = "light-red" -"markup.quote" = "light-cyan" -"markup.raw" = "green" -"markup.normal" = { fg = "blue" } -"markup.insert" = { fg = "green" } -"markup.select" = { fg = "magenta" } - -"diff.plus" = "light-green" -"diff.delta" = "light-blue" -"diff.delta.moved" = "blue" -"diff.minus" = "light-red" - -"ui.gutter" = "gray" -"info" = "light-blue" -"hint" = "light-gray" -"debug" = "light-gray" -"warning" = "light-yellow" -"error" = "light-red" - -"diagnostic.info" = { underline = { color = "light-blue", style = "dotted" } } -"diagnostic.hint" = { underline = { color = "light-gray", style = "double_line" } } -"diagnostic.debug" = { underline ={ color ="light-gray", style = "dashed" } } -"diagnostic.warning" = { underline = { color = "light-yellow", style = "curl" } } -"diagnostic.error" = { underline = { color ="light-red", style = "curl" } } diff --git a/vendor/themes/bogster_light.toml b/vendor/themes/bogster_light.toml deleted file mode 100644 index 3259d677..00000000 --- a/vendor/themes/bogster_light.toml +++ /dev/null @@ -1,103 +0,0 @@ -# Author : Wojciech Kępka <[email protected]> - -"attribute" = "bogster-orange" -"keyword" = { fg = "bogster-yellow", modifiers = ["bold"] } -"keyword.directive" = "bogster-yellow" -"namespace" = "bogster-red" -"punctuation" = "bogster-orange" -"punctuation.delimiter" = "bogster-orange" -"operator" = { fg = "bogster-orange", modifiers = ["bold"] } -"special" = "bogster-lgreen" -"variable.other.member" = "bogster-fg0" -"variable" = "bogster-fg0" -"variable.parameter" = "bogster-fg0" -"type" = "bogster-lred" -"type.builtin" = { fg = "bogster-red", modifiers = ["bold"] } -"constructor" = "bogster-lred" -"function" = "bogster-lblue" -"function.macro" = { fg = "bogster-orange", modifiers = ["bold"] } -"function.builtin" = { fg = "bogster-lblue", modifiers = ["bold"] } -"comment" = "bogster-base5" -"variable.builtin" = "bogster-fg0" -"constant" = "bogster-teal" -"constant.builtin" = "bogster-teal" -"string" = "bogster-teal" -"constant.numeric" = "bogster-blue" -"constant.character.escape" = { fg = "bogster-lgreen", modifiers = ["bold"] } -"label" = "bogster-blue" -"module" = "bogster-red" - -"markup.heading" = "bogster-blue" -"markup.list" = "bogster-red" -"markup.bold" = { fg = "bogster-yellow", modifiers = ["bold"] } -"markup.italic" = { fg = "magenta", modifiers = ["italic"] } -"markup.strikethrough" = { modifiers = ["crossed_out"] } -"markup.link.url" = { fg = "bogster-yellow", modifiers = ["underlined"] } -"markup.link.text" = "bogster-red" -"markup.quote" = "bogster-lblue" -"markup.raw" = "bogster-teal" - -"diff.plus" = "bogster-teal" -"diff.delta" = "bogster-orange" -"diff.minus" = "bogster-lred" - -"ui.background" = { bg = "bogster-base0" } -"ui.linenr" = { fg = "bogster-base3" } -"ui.linenr.selected" = { fg = "bogster-fg1" } -"ui.cursorline" = { bg = "bogster-base00" } -"ui.statusline" = { fg = "bogster-fg1", bg = "bogster-base1" } -"ui.statusline.inactive" = { fg = "bogster-fg0", bg = "bogster-base1" } -"ui.popup" = { bg = "bogster-base1" } -"ui.window" = { bg = "bogster-base1" } -"ui.help" = { bg = "bogster-base1", fg = "bogster-fg1" } - -"ui.statusline.normal" = { fg = "bogster-base0", bg = "bogster-blue", modifiers = [ "bold" ]} -"ui.statusline.insert" = { fg = "bogster-base0", bg = "bogster-lgreen", modifiers = [ "bold" ]} -"ui.statusline.select" = { fg = "bogster-base0", bg = "bogster-red", modifiers = [ "bold" ] } - -"ui.text" = { fg = "bogster-fg1" } -"ui.text.focus" = { fg = "bogster-fg1", modifiers= ["bold"] } -"ui.virtual.whitespace" = "bogster-base5" -"ui.virtual.ruler" = { bg = "bogster-base00" } - -"ui.selection" = { bg = "bogster-base1" } -"ui.cursor.match" = { fg = "bogster-base2", bg = "bogster-orange" } -"ui.cursor" = { fg = "bogster-gray", modifiers = ["reversed"] } - -"ui.menu" = { fg = "bogster-fg1", bg = "bogster-base1" } -"ui.menu.selected" = { bg = "bogster-base2" } - -"warning" = "bogster-orange" -"error" = "bogster-lred" -"info" = "bogster-teal" -"hint" = "bogster-blue" - -# make diagnostic underlined, to distinguish with selection text. -"diagnostic.warning" = { underline = { color = "bogster-orange", style = "curl"} } -"diagnostic.error" = { underline = { color = "bogster-lred", style = "curl"} } -"diagnostic.info" = { underline = { color = "bogster-teal", style = "curl"} } -"diagnostic.hint" = { underline = { color = "bogster-blue", style = "curl"} } -"diagnostic.unnecessary" = { modifiers = ["dim"] } -"diagnostic.deprecated" = { modifiers = ["crossed_out"] } - -[palette] -bogster-orange = "#dc7759" -bogster-yellow = "#a58023" -bogster-red = "#d32c5d" -bogster-blue = "#59c0dc" -bogster-gray = "#abb2bf" -bogster-lgreen = "#7fdc59" -bogster-lred = "#dc597f" -bogster-lblue = "#289cbc" -bogster-teal = "#23a580" - -bogster-fg1 = "#161c23" -bogster-fg0 = "#232d38" - -bogster-base00 = "#d7dbbb" -bogster-base0 = "#f6fbd6" -bogster-base1 = "#c7c7ba" -bogster-base2 = "#aaaa97" -bogster-base3 = "#415367" -bogster-base5 = "#627d9d" - diff --git a/vendor/themes/cyan_light.toml b/vendor/themes/cyan_light.toml deleted file mode 100644 index eeb671e1..00000000 --- a/vendor/themes/cyan_light.toml +++ /dev/null @@ -1,5 +0,0 @@ -# Deprecation notice -# -# This theme has moved to jetbrains_cyan_light, make sure to update your configuration accordingly. - -inherits = "jetbrains_cyan_light" diff --git a/vendor/themes/eldritch_transparent.toml b/vendor/themes/eldritch_transparent.toml deleted file mode 100644 index 394f3ed4..00000000 --- a/vendor/themes/eldritch_transparent.toml +++ /dev/null @@ -1,7 +0,0 @@ -# Author : tangowithfoxtrot -# Eldritch theme with a transparent background - -inherits = "eldritch" - -"ui.background" = { } -"ui.popup" = { modifiers = ["italic"] } diff --git a/vendor/themes/gruvbox-material.toml b/vendor/themes/gruvbox-material.toml deleted file mode 100644 index c8448cf9..00000000 --- a/vendor/themes/gruvbox-material.toml +++ /dev/null @@ -1,6 +0,0 @@ -# Gruvbox Material for Helix -# Original Author: @sainnhe (https://github.com/sainnhe/gruvbox-material) -# Ported by: @satoqz -# License: MIT - -inherits = "gruvbox_material_dark_medium" diff --git a/vendor/themes/gruvbox.LICENSE b/vendor/themes/gruvbox.LICENSE deleted file mode 100644 index 0e18d6d7..00000000 --- a/vendor/themes/gruvbox.LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) <YEAR> <COPYRIGHT HOLDER> - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/vendor/themes/gruvbox.json b/vendor/themes/gruvbox.json deleted file mode 100644 index 75252f78..00000000 --- a/vendor/themes/gruvbox.json +++ /dev/null @@ -1,2539 +0,0 @@ -{ - "$schema": "https://zed.dev/schema/themes/v0.2.0.json", - "name": "Gruvbox", - "author": "Zed Industries", - "themes": [ - { - "name": "Gruvbox Dark", - "appearance": "dark", - "style": { - "accents": ["#cc241dff", "#98971aff", "#d79921ff", "#458588ff", "#b16286ff", "#689d6aff", "#d65d0eff"], - "border": "#5b534dff", - "border.variant": "#494340ff", - "border.focused": "#303a36ff", - "border.selected": "#303a36ff", - "border.transparent": "#00000000", - "border.disabled": "#544c48ff", - "elevated_surface.background": "#3a3735ff", - "surface.background": "#3a3735ff", - "background": "#4c4642ff", - "element.background": "#3a3735ff", - "element.hover": "#494340ff", - "element.active": "#5b524cff", - "element.selected": "#5b524cff", - "element.disabled": "#3a3735ff", - "drop_target.background": "#c5b59780", - "ghost_element.background": "#00000000", - "ghost_element.hover": "#494340ff", - "ghost_element.active": "#5b524cff", - "ghost_element.selected": "#5b524cff", - "ghost_element.disabled": "#3a3735ff", - "text": "#fbf1c7ff", - "text.muted": "#c5b597ff", - "text.placeholder": "#998b78ff", - "text.disabled": "#998b78ff", - "text.accent": "#83a598ff", - "icon": "#fbf1c7ff", - "icon.muted": "#c5b597ff", - "icon.disabled": "#998b78ff", - "icon.placeholder": "#c5b597ff", - "icon.accent": "#83a598ff", - "status_bar.background": "#4c4642ff", - "title_bar.background": "#4c4642ff", - "title_bar.inactive_background": "#3a3735ff", - "toolbar.background": "#282828ff", - "tab_bar.background": "#3a3735ff", - "tab.inactive_background": "#3a3735ff", - "tab.active_background": "#282828ff", - "search.match_background": "#83a59866", - "search.active_match_background": "#c09f3f66", - "panel.background": "#3a3735ff", - "panel.focused_border": "#83a598ff", - "pane.focused_border": null, - "scrollbar.thumb.active_background": "#83a598ac", - "scrollbar.thumb.hover_background": "#fbf1c74c", - "scrollbar.thumb.background": "#a899844c", - "scrollbar.thumb.border": "#494340ff", - "scrollbar.track.background": "#00000000", - "scrollbar.track.border": "#373432ff", - "editor.foreground": "#ebdbb2ff", - "editor.background": "#282828ff", - "editor.gutter.background": "#282828ff", - "editor.subheader.background": "#3a3735ff", - "editor.active_line.background": "#3a3735bf", - "editor.highlighted_line.background": "#3a3735ff", - "editor.line_number": "#6e6b5e", - "editor.active_line_number": "#dedcd3", - "editor.hover_line_number": "#c9c5b6", - "editor.invisible": "#928474ff", - "editor.wrap_guide": "#fbf1c70d", - "editor.active_wrap_guide": "#fbf1c71a", - "editor.document_highlight.read_background": "#83a5981a", - "editor.document_highlight.write_background": "#92847466", - "terminal.background": "#282828ff", - "terminal.foreground": "#ebdbb2ff", - "terminal.bright_foreground": "#fbf1c7ff", - "terminal.dim_foreground": "#766b5dff", - "terminal.ansi.black": "#282828ff", - "terminal.ansi.bright_black": "#928374ff", - "terminal.ansi.dim_black": "#fbf1c7ff", - "terminal.ansi.red": "#cc241dff", - "terminal.ansi.bright_red": "#fb4934ff", - "terminal.ansi.dim_red": "#8e1814ff", - "terminal.ansi.green": "#98971aff", - "terminal.ansi.bright_green": "#b8bb26ff", - "terminal.ansi.dim_green": "#6a6912ff", - "terminal.ansi.yellow": "#d79921ff", - "terminal.ansi.bright_yellow": "#fabd2fff", - "terminal.ansi.dim_yellow": "#966a17ff", - "terminal.ansi.blue": "#458588ff", - "terminal.ansi.bright_blue": "#83a598ff", - "terminal.ansi.dim_blue": "#305d5fff", - "terminal.ansi.magenta": "#b16286ff", - "terminal.ansi.bright_magenta": "#d3869bff", - "terminal.ansi.dim_magenta": "#7c455eff", - "terminal.ansi.cyan": "#689d6aff", - "terminal.ansi.bright_cyan": "#8ec07cff", - "terminal.ansi.dim_cyan": "#496e4aff", - "terminal.ansi.white": "#a89984ff", - "terminal.ansi.bright_white": "#fbf1c7ff", - "terminal.ansi.dim_white": "#766b5dff", - "link_text.hover": "#83a598ff", - "version_control.added": "#b7bb26ff", - "version_control.modified": "#f9bd2fff", - "version_control.deleted": "#fb4a35ff", - "conflict": "#f9bd2fff", - "conflict.background": "#572e10ff", - "conflict.border": "#754916ff", - "created": "#b7bb26ff", - "created.background": "#322b11ff", - "created.border": "#4a4516ff", - "deleted": "#fb4a35ff", - "deleted.background": "#590a0fff", - "deleted.border": "#771617ff", - "error": "#fb4a35ff", - "error.background": "#590a0fff", - "error.border": "#771617ff", - "hidden": "#998b78ff", - "hidden.background": "#4c4642ff", - "hidden.border": "#544c48ff", - "hint": "#8c957dff", - "hint.background": "#1e2321ff", - "hint.border": "#303a36ff", - "ignored": "#998b78ff", - "ignored.background": "#4c4642ff", - "ignored.border": "#5b534dff", - "info": "#83a598ff", - "info.background": "#1e2321ff", - "info.border": "#303a36ff", - "modified": "#f9bd2fff", - "modified.background": "#572e10ff", - "modified.border": "#754916ff", - "predictive": "#717363ff", - "predictive.background": "#322b11ff", - "predictive.border": "#4a4516ff", - "renamed": "#83a598ff", - "renamed.background": "#1e2321ff", - "renamed.border": "#303a36ff", - "success": "#b7bb26ff", - "success.background": "#322b11ff", - "success.border": "#4a4516ff", - "unreachable": "#c5b597ff", - "unreachable.background": "#4c4642ff", - "unreachable.border": "#5b534dff", - "warning": "#f9bd2fff", - "warning.background": "#572e10ff", - "warning.border": "#754916ff", - "players": [ - { - "cursor": "#83a598ff", - "background": "#83a598ff", - "selection": "#83a5983d" - }, - { - "cursor": "#a89984ff", - "background": "#a89984ff", - "selection": "#a899843d" - }, - { - "cursor": "#fd801bff", - "background": "#fd801bff", - "selection": "#fd801b3d" - }, - { - "cursor": "#d3869bff", - "background": "#d3869bff", - "selection": "#d3869b3d" - }, - { - "cursor": "#8ec07cff", - "background": "#8ec07cff", - "selection": "#8ec07c3d" - }, - { - "cursor": "#fb4a35ff", - "background": "#fb4a35ff", - "selection": "#fb4a353d" - }, - { - "cursor": "#f9bd2fff", - "background": "#f9bd2fff", - "selection": "#f9bd2f3d" - }, - { - "cursor": "#b7bb26ff", - "background": "#b7bb26ff", - "selection": "#b7bb263d" - } - ], - "syntax": { - "attribute": { - "color": "#83a598ff", - "font_style": null, - "font_weight": null - }, - "boolean": { - "color": "#d3869bff", - "font_style": null, - "font_weight": null - }, - "comment": { - "color": "#a89984ff", - "font_style": null, - "font_weight": null - }, - "comment.doc": { - "color": "#c6b697ff", - "font_style": null, - "font_weight": null - }, - "constant": { - "color": "#fabd2eff", - "font_style": null, - "font_weight": null - }, - "constructor": { - "color": "#83a598ff", - "font_style": null, - "font_weight": null - }, - "embedded": { - "color": "#8ec07cff", - "font_style": null, - "font_weight": null - }, - "emphasis": { - "color": "#83a598ff", - "font_style": null, - "font_weight": null - }, - "emphasis.strong": { - "color": "#83a598ff", - "font_style": null, - "font_weight": 700 - }, - "enum": { - "color": "#fe7f18ff", - "font_style": null, - "font_weight": null - }, - "function": { - "color": "#b8bb25ff", - "font_style": null, - "font_weight": null - }, - "function.builtin": { - "color": "#fb4833ff", - "font_style": null, - "font_weight": null - }, - "hint": { - "color": "#8c957dff", - "font_style": null, - "font_weight": null - }, - "keyword": { - "color": "#fb4833ff", - "font_style": null, - "font_weight": null - }, - "label": { - "color": "#83a598ff", - "font_style": null, - "font_weight": null - }, - "link_text": { - "color": "#8ec07cff", - "font_style": "italic", - "font_weight": null - }, - "link_uri": { - "color": "#d3869bff", - "font_style": null, - "font_weight": null - }, - "namespace": { - "color": "#83a598ff", - "font_style": null, - "font_weight": null - }, - "number": { - "color": "#d3869bff", - "font_style": null, - "font_weight": null - }, - "operator": { - "color": "#8ec07cff", - "font_style": null, - "font_weight": null - }, - "predictive": { - "color": "#717363ff", - "font_style": "italic", - "font_weight": null - }, - "preproc": { - "color": "#fb4833ff", - "font_style": null, - "font_weight": null - }, - "primary": { - "color": "#ebdbb2ff", - "font_style": null, - "font_weight": null - }, - "property": { - "color": "#ebdbb2ff", - "font_style": null, - "font_weight": null - }, - "punctuation": { - "color": "#d5c4a1ff", - "font_style": null, - "font_weight": null - }, - "punctuation.bracket": { - "color": "#a89984ff", - "font_style": null, - "font_weight": null - }, - "punctuation.delimiter": { - "color": "#e5d5adff", - "font_style": null, - "font_weight": null - }, - "punctuation.list_marker": { - "color": "#ebdbb2ff", - "font_style": null, - "font_weight": null - }, - "punctuation.markup": { - "color": "#83a598ff", - "font_style": null, - "font_weight": null - }, - "punctuation.special": { - "color": "#e5d5adff", - "font_style": null, - "font_weight": null - }, - "selector": { - "color": "#fabd2eff", - "font_style": null, - "font_weight": null - }, - "selector.pseudo": { - "color": "#83a598ff", - "font_style": null, - "font_weight": null - }, - "string": { - "color": "#b8bb25ff", - "font_style": null, - "font_weight": null - }, - "string.escape": { - "color": "#c6b697ff", - "font_style": null, - "font_weight": null - }, - "string.regex": { - "color": "#fe7f18ff", - "font_style": null, - "font_weight": null - }, - "string.special": { - "color": "#d3869bff", - "font_style": null, - "font_weight": null - }, - "string.special.symbol": { - "color": "#8ec07cff", - "font_style": null, - "font_weight": null - }, - "tag": { - "color": "#8ec07cff", - "font_style": null, - "font_weight": null - }, - "text.literal": { - "color": "#83a598ff", - "font_style": null, - "font_weight": null - }, - "title": { - "color": "#b8bb25ff", - "font_style": null, - "font_weight": 700 - }, - "type": { - "color": "#fabd2eff", - "font_style": null, - "font_weight": null - }, - "variable": { - "color": "#ebdbb2ff", - "font_style": null, - "font_weight": null - }, - "variable.parameter": { - "color": "#83a598ff", - "font_style": null, - "font_weight": null - }, - "variable.special": { - "color": "#83a598ff", - "font_style": null, - "font_weight": null - }, - "variant": { - "color": "#83a598ff", - "font_style": null, - "font_weight": null - }, - "diff.plus": { - "color": "#b8bb26ff", - "font_style": null, - "font_weight": null - }, - "diff.minus": { - "color": "#fb4934ff", - "font_style": null, - "font_weight": null - } - } - } - }, - { - "name": "Gruvbox Dark Hard", - "appearance": "dark", - "style": { - "accents": ["#cc241dff", "#98971aff", "#d79921ff", "#458588ff", "#b16286ff", "#689d6aff", "#d65d0eff"], - "border": "#5b534dff", - "border.variant": "#494340ff", - "border.focused": "#303a36ff", - "border.selected": "#303a36ff", - "border.transparent": "#00000000", - "border.disabled": "#544c48ff", - "elevated_surface.background": "#393634ff", - "surface.background": "#393634ff", - "background": "#4c4642ff", - "element.background": "#393634ff", - "element.hover": "#494340ff", - "element.active": "#5b524cff", - "element.selected": "#5b524cff", - "element.disabled": "#393634ff", - "drop_target.background": "#c5b59780", - "ghost_element.background": "#00000000", - "ghost_element.hover": "#494340ff", - "ghost_element.active": "#5b524cff", - "ghost_element.selected": "#5b524cff", - "ghost_element.disabled": "#393634ff", - "text": "#fbf1c7ff", - "text.muted": "#c5b597ff", - "text.placeholder": "#998b78ff", - "text.disabled": "#998b78ff", - "text.accent": "#83a598ff", - "icon": "#fbf1c7ff", - "icon.muted": "#c5b597ff", - "icon.disabled": "#998b78ff", - "icon.placeholder": "#c5b597ff", - "icon.accent": "#83a598ff", - "status_bar.background": "#4c4642ff", - "title_bar.background": "#4c4642ff", - "title_bar.inactive_background": "#393634ff", - "toolbar.background": "#1d2021ff", - "tab_bar.background": "#393634ff", - "tab.inactive_background": "#393634ff", - "tab.active_background": "#1d2021ff", - "search.match_background": "#83a59866", - "search.active_match_background": "#c9653666", - "panel.background": "#393634ff", - "panel.focused_border": "#83a598ff", - "pane.focused_border": null, - "scrollbar.thumb.active_background": "#83a598ac", - "scrollbar.thumb.hover_background": "#fbf1c74c", - "scrollbar.thumb.background": "#a899844c", - "scrollbar.thumb.border": "#494340ff", - "scrollbar.track.background": "#00000000", - "scrollbar.track.border": "#343130ff", - "editor.foreground": "#ebdbb2ff", - "editor.background": "#1d2021ff", - "editor.gutter.background": "#1d2021ff", - "editor.subheader.background": "#393634ff", - "editor.active_line.background": "#393634bf", - "editor.highlighted_line.background": "#393634ff", - "editor.line_number": "#6e6b5e", - "editor.active_line_number": "#dedcd3", - "editor.hover_line_number": "#c9c5b6", - "editor.invisible": "#928474ff", - "editor.wrap_guide": "#fbf1c70d", - "editor.active_wrap_guide": "#fbf1c71a", - "editor.document_highlight.read_background": "#83a5981a", - "editor.document_highlight.write_background": "#92847466", - "terminal.background": "#1d2021ff", - "terminal.foreground": "#ebdbb2ff", - "terminal.bright_foreground": "#fbf1c7ff", - "terminal.dim_foreground": "#766b5dff", - "terminal.ansi.black": "#282828ff", - "terminal.ansi.bright_black": "#928374ff", - "terminal.ansi.dim_black": "#fbf1c7ff", - "terminal.ansi.red": "#cc241dff", - "terminal.ansi.bright_red": "#fb4934ff", - "terminal.ansi.dim_red": "#8e1814ff", - "terminal.ansi.green": "#98971aff", - "terminal.ansi.bright_green": "#b8bb26ff", - "terminal.ansi.dim_green": "#6a6912ff", - "terminal.ansi.yellow": "#d79921ff", - "terminal.ansi.bright_yellow": "#fabd2fff", - "terminal.ansi.dim_yellow": "#966a17ff", - "terminal.ansi.blue": "#458588ff", - "terminal.ansi.bright_blue": "#83a598ff", - "terminal.ansi.dim_blue": "#305d5fff", - "terminal.ansi.magenta": "#b16286ff", - "terminal.ansi.bright_magenta": "#d3869bff", - "terminal.ansi.dim_magenta": "#7c455eff", - "terminal.ansi.cyan": "#689d6aff", - "terminal.ansi.bright_cyan": "#8ec07cff", - "terminal.ansi.dim_cyan": "#496e4aff", - "terminal.ansi.white": "#a89984ff", - "terminal.ansi.bright_white": "#fbf1c7ff", - "terminal.ansi.dim_white": "#766b5dff", - "link_text.hover": "#83a598ff", - "version_control.added": "#b7bb26ff", - "version_control.modified": "#f9bd2fff", - "version_control.deleted": "#fb4a35ff", - "conflict": "#f9bd2fff", - "conflict.background": "#572e10ff", - "conflict.border": "#754916ff", - "created": "#b7bb26ff", - "created.background": "#322b11ff", - "created.border": "#4a4516ff", - "deleted": "#fb4a35ff", - "deleted.background": "#590a0fff", - "deleted.border": "#771617ff", - "error": "#fb4a35ff", - "error.background": "#590a0fff", - "error.border": "#771617ff", - "hidden": "#998b78ff", - "hidden.background": "#4c4642ff", - "hidden.border": "#544c48ff", - "hint": "#6a695bff", - "hint.background": "#1e2321ff", - "hint.border": "#303a36ff", - "ignored": "#998b78ff", - "ignored.background": "#4c4642ff", - "ignored.border": "#5b534dff", - "info": "#83a598ff", - "info.background": "#1e2321ff", - "info.border": "#303a36ff", - "modified": "#f9bd2fff", - "modified.background": "#572e10ff", - "modified.border": "#754916ff", - "predictive": "#717363ff", - "predictive.background": "#322b11ff", - "predictive.border": "#4a4516ff", - "renamed": "#83a598ff", - "renamed.background": "#1e2321ff", - "renamed.border": "#303a36ff", - "success": "#b7bb26ff", - "success.background": "#322b11ff", - "success.border": "#4a4516ff", - "unreachable": "#c5b597ff", - "unreachable.background": "#4c4642ff", - "unreachable.border": "#5b534dff", - "warning": "#f9bd2fff", - "warning.background": "#572e10ff", - "warning.border": "#754916ff", - "players": [ - { - "cursor": "#83a598ff", - "background": "#83a598ff", - "selection": "#83a5983d" - }, - { - "cursor": "#a89984ff", - "background": "#a89984ff", - "selection": "#a899843d" - }, - { - "cursor": "#fd801bff", - "background": "#fd801bff", - "selection": "#fd801b3d" - }, - { - "cursor": "#d3869bff", - "background": "#d3869bff", - "selection": "#d3869b3d" - }, - { - "cursor": "#8ec07cff", - "background": "#8ec07cff", - "selection": "#8ec07c3d" - }, - { - "cursor": "#fb4a35ff", - "background": "#fb4a35ff", - "selection": "#fb4a353d" - }, - { - "cursor": "#f9bd2fff", - "background": "#f9bd2fff", - "selection": "#f9bd2f3d" - }, - { - "cursor": "#b7bb26ff", - "background": "#b7bb26ff", - "selection": "#b7bb263d" - } - ], - "syntax": { - "attribute": { - "color": "#83a598ff", - "font_style": null, - "font_weight": null - }, - "boolean": { - "color": "#d3869bff", - "font_style": null, - "font_weight": null - }, - "comment": { - "color": "#a89984ff", - "font_style": null, - "font_weight": null - }, - "comment.doc": { - "color": "#c6b697ff", - "font_style": null, - "font_weight": null - }, - "constant": { - "color": "#fabd2eff", - "font_style": null, - "font_weight": null - }, - "constructor": { - "color": "#83a598ff", - "font_style": null, - "font_weight": null - }, - "embedded": { - "color": "#8ec07cff", - "font_style": null, - "font_weight": null - }, - "emphasis": { - "color": "#83a598ff", - "font_style": null, - "font_weight": null - }, - "emphasis.strong": { - "color": "#83a598ff", - "font_style": null, - "font_weight": 700 - }, - "enum": { - "color": "#fe7f18ff", - "font_style": null, - "font_weight": null - }, - "function": { - "color": "#b8bb25ff", - "font_style": null, - "font_weight": null - }, - "function.builtin": { - "color": "#fb4833ff", - "font_style": null, - "font_weight": null - }, - "hint": { - "color": "#8c957dff", - "font_style": null, - "font_weight": null - }, - "keyword": { - "color": "#fb4833ff", - "font_style": null, - "font_weight": null - }, - "label": { - "color": "#83a598ff", - "font_style": null, - "font_weight": null - }, - "link_text": { - "color": "#8ec07cff", - "font_style": "italic", - "font_weight": null - }, - "link_uri": { - "color": "#d3869bff", - "font_style": null, - "font_weight": null - }, - "namespace": { - "color": "#83a598ff", - "font_style": null, - "font_weight": null - }, - "number": { - "color": "#d3869bff", - "font_style": null, - "font_weight": null - }, - "operator": { - "color": "#8ec07cff", - "font_style": null, - "font_weight": null - }, - "predictive": { - "color": "#717363ff", - "font_style": "italic", - "font_weight": null - }, - "preproc": { - "color": "#fb4833ff", - "font_style": null, - "font_weight": null - }, - "primary": { - "color": "#ebdbb2ff", - "font_style": null, - "font_weight": null - }, - "property": { - "color": "#ebdbb2ff", - "font_style": null, - "font_weight": null - }, - "punctuation": { - "color": "#d5c4a1ff", - "font_style": null, - "font_weight": null - }, - "punctuation.bracket": { - "color": "#a89984ff", - "font_style": null, - "font_weight": null - }, - "punctuation.delimiter": { - "color": "#e5d5adff", - "font_style": null, - "font_weight": null - }, - "punctuation.list_marker": { - "color": "#ebdbb2ff", - "font_style": null, - "font_weight": null - }, - "punctuation.markup": { - "color": "#83a598ff", - "font_style": null, - "font_weight": null - }, - "punctuation.special": { - "color": "#e5d5adff", - "font_style": null, - "font_weight": null - }, - "selector": { - "color": "#fabd2eff", - "font_style": null, - "font_weight": null - }, - "selector.pseudo": { - "color": "#83a598ff", - "font_style": null, - "font_weight": null - }, - "string": { - "color": "#b8bb25ff", - "font_style": null, - "font_weight": null - }, - "string.escape": { - "color": "#c6b697ff", - "font_style": null, - "font_weight": null - }, - "string.regex": { - "color": "#fe7f18ff", - "font_style": null, - "font_weight": null - }, - "string.special": { - "color": "#d3869bff", - "font_style": null, - "font_weight": null - }, - "string.special.symbol": { - "color": "#8ec07cff", - "font_style": null, - "font_weight": null - }, - "tag": { - "color": "#8ec07cff", - "font_style": null, - "font_weight": null - }, - "text.literal": { - "color": "#83a598ff", - "font_style": null, - "font_weight": null - }, - "title": { - "color": "#b8bb25ff", - "font_style": null, - "font_weight": 700 - }, - "type": { - "color": "#fabd2eff", - "font_style": null, - "font_weight": null - }, - "variable": { - "color": "#ebdbb2ff", - "font_style": null, - "font_weight": null - }, - "variable.parameter": { - "color": "#83a598ff", - "font_style": null, - "font_weight": null - }, - "variable.special": { - "color": "#83a598ff", - "font_style": null, - "font_weight": null - }, - "variant": { - "color": "#83a598ff", - "font_style": null, - "font_weight": null - }, - "diff.plus": { - "color": "#b8bb26ff", - "font_style": null, - "font_weight": null - }, - "diff.minus": { - "color": "#fb4934ff", - "font_style": null, - "font_weight": null - } - } - } - }, - { - "name": "Gruvbox Dark Soft", - "appearance": "dark", - "style": { - "accents": ["#cc241dff", "#98971aff", "#d79921ff", "#458588ff", "#b16286ff", "#689d6aff", "#d65d0eff"], - "border": "#5b534dff", - "border.variant": "#494340ff", - "border.focused": "#303a36ff", - "border.selected": "#303a36ff", - "border.transparent": "#00000000", - "border.disabled": "#544c48ff", - "elevated_surface.background": "#3b3735ff", - "surface.background": "#3b3735ff", - "background": "#4c4642ff", - "element.background": "#3b3735ff", - "element.hover": "#494340ff", - "element.active": "#5b524cff", - "element.selected": "#5b524cff", - "element.disabled": "#3b3735ff", - "drop_target.background": "#c5b59780", - "ghost_element.background": "#00000000", - "ghost_element.hover": "#494340ff", - "ghost_element.active": "#5b524cff", - "ghost_element.selected": "#5b524cff", - "ghost_element.disabled": "#3b3735ff", - "text": "#fbf1c7ff", - "text.muted": "#c5b597ff", - "text.placeholder": "#998b78ff", - "text.disabled": "#998b78ff", - "text.accent": "#83a598ff", - "icon": "#fbf1c7ff", - "icon.muted": "#c5b597ff", - "icon.disabled": "#998b78ff", - "icon.placeholder": "#c5b597ff", - "icon.accent": "#83a598ff", - "status_bar.background": "#4c4642ff", - "title_bar.background": "#4c4642ff", - "title_bar.inactive_background": "#3b3735ff", - "toolbar.background": "#32302fff", - "tab_bar.background": "#3b3735ff", - "tab.inactive_background": "#3b3735ff", - "tab.active_background": "#32302fff", - "search.match_background": "#83a59866", - "search.active_match_background": "#aea85166", - "panel.background": "#3b3735ff", - "panel.focused_border": null, - "pane.focused_border": null, - "scrollbar.thumb.active_background": "#83a598ac", - "scrollbar.thumb.hover_background": "#fbf1c74c", - "scrollbar.thumb.background": "#a899844c", - "scrollbar.thumb.border": "#494340ff", - "scrollbar.track.background": "#00000000", - "scrollbar.track.border": "#393634ff", - "editor.foreground": "#ebdbb2ff", - "editor.background": "#32302fff", - "editor.gutter.background": "#32302fff", - "editor.subheader.background": "#3b3735ff", - "editor.active_line.background": "#3b3735bf", - "editor.highlighted_line.background": "#3b3735ff", - "editor.line_number": "#6e6b5e", - "editor.active_line_number": "#dedcd3", - "editor.hover_line_number": "#c9c5b6", - "editor.invisible": "#928474ff", - "editor.wrap_guide": "#fbf1c70d", - "editor.active_wrap_guide": "#fbf1c71a", - "editor.document_highlight.read_background": "#83a5981a", - "editor.document_highlight.write_background": "#92847466", - "terminal.background": "#32302fff", - "terminal.foreground": "#ebdbb2ff", - "terminal.bright_foreground": "#fbf1c7ff", - "terminal.dim_foreground": "#766b5dff", - "terminal.ansi.black": "#282828ff", - "terminal.ansi.bright_black": "#928374ff", - "terminal.ansi.dim_black": "#fbf1c7ff", - "terminal.ansi.red": "#cc241dff", - "terminal.ansi.bright_red": "#fb4934ff", - "terminal.ansi.dim_red": "#8e1814ff", - "terminal.ansi.green": "#98971aff", - "terminal.ansi.bright_green": "#b8bb26ff", - "terminal.ansi.dim_green": "#6a6912ff", - "terminal.ansi.yellow": "#d79921ff", - "terminal.ansi.bright_yellow": "#fabd2fff", - "terminal.ansi.dim_yellow": "#966a17ff", - "terminal.ansi.blue": "#458588ff", - "terminal.ansi.bright_blue": "#83a598ff", - "terminal.ansi.dim_blue": "#305d5fff", - "terminal.ansi.magenta": "#b16286ff", - "terminal.ansi.bright_magenta": "#d3869bff", - "terminal.ansi.dim_magenta": "#7c455eff", - "terminal.ansi.cyan": "#689d6aff", - "terminal.ansi.bright_cyan": "#8ec07cff", - "terminal.ansi.dim_cyan": "#496e4aff", - "terminal.ansi.white": "#a89984ff", - "terminal.ansi.bright_white": "#fbf1c7ff", - "terminal.ansi.dim_white": "#766b5dff", - "link_text.hover": "#83a598ff", - "version_control.added": "#b7bb26ff", - "version_control.modified": "#f9bd2fff", - "version_control.deleted": "#fb4a35ff", - "conflict": "#f9bd2fff", - "conflict.background": "#572e10ff", - "conflict.border": "#754916ff", - "created": "#b7bb26ff", - "created.background": "#322b11ff", - "created.border": "#4a4516ff", - "deleted": "#fb4a35ff", - "deleted.background": "#590a0fff", - "deleted.border": "#771617ff", - "error": "#fb4a35ff", - "error.background": "#590a0fff", - "error.border": "#771617ff", - "hidden": "#998b78ff", - "hidden.background": "#4c4642ff", - "hidden.border": "#544c48ff", - "hint": "#8c957dff", - "hint.background": "#1e2321ff", - "hint.border": "#303a36ff", - "ignored": "#998b78ff", - "ignored.background": "#4c4642ff", - "ignored.border": "#5b534dff", - "info": "#83a598ff", - "info.background": "#1e2321ff", - "info.border": "#303a36ff", - "modified": "#f9bd2fff", - "modified.background": "#572e10ff", - "modified.border": "#754916ff", - "predictive": "#717363ff", - "predictive.background": "#322b11ff", - "predictive.border": "#4a4516ff", - "renamed": "#83a598ff", - "renamed.background": "#1e2321ff", - "renamed.border": "#303a36ff", - "success": "#b7bb26ff", - "success.background": "#322b11ff", - "success.border": "#4a4516ff", - "unreachable": "#c5b597ff", - "unreachable.background": "#4c4642ff", - "unreachable.border": "#5b534dff", - "warning": "#f9bd2fff", - "warning.background": "#572e10ff", - "warning.border": "#754916ff", - "players": [ - { - "cursor": "#83a598ff", - "background": "#83a598ff", - "selection": "#83a5983d" - }, - { - "cursor": "#a89984ff", - "background": "#a89984ff", - "selection": "#a899843d" - }, - { - "cursor": "#fd801bff", - "background": "#fd801bff", - "selection": "#fd801b3d" - }, - { - "cursor": "#d3869bff", - "background": "#d3869bff", - "selection": "#d3869b3d" - }, - { - "cursor": "#8ec07cff", - "background": "#8ec07cff", - "selection": "#8ec07c3d" - }, - { - "cursor": "#fb4a35ff", - "background": "#fb4a35ff", - "selection": "#fb4a353d" - }, - { - "cursor": "#f9bd2fff", - "background": "#f9bd2fff", - "selection": "#f9bd2f3d" - }, - { - "cursor": "#b7bb26ff", - "background": "#b7bb26ff", - "selection": "#b7bb263d" - } - ], - "syntax": { - "attribute": { - "color": "#83a598ff", - "font_style": null, - "font_weight": null - }, - "boolean": { - "color": "#d3869bff", - "font_style": null, - "font_weight": null - }, - "comment": { - "color": "#a89984ff", - "font_style": null, - "font_weight": null - }, - "comment.doc": { - "color": "#c6b697ff", - "font_style": null, - "font_weight": null - }, - "constant": { - "color": "#fabd2eff", - "font_style": null, - "font_weight": null - }, - "constructor": { - "color": "#83a598ff", - "font_style": null, - "font_weight": null - }, - "embedded": { - "color": "#8ec07cff", - "font_style": null, - "font_weight": null - }, - "emphasis": { - "color": "#83a598ff", - "font_style": null, - "font_weight": null - }, - "emphasis.strong": { - "color": "#83a598ff", - "font_style": null, - "font_weight": 700 - }, - "enum": { - "color": "#fe7f18ff", - "font_style": null, - "font_weight": null - }, - "function": { - "color": "#b8bb25ff", - "font_style": null, - "font_weight": null - }, - "function.builtin": { - "color": "#fb4833ff", - "font_style": null, - "font_weight": null - }, - "hint": { - "color": "#8c957dff", - "font_style": null, - "font_weight": null - }, - "keyword": { - "color": "#fb4833ff", - "font_style": null, - "font_weight": null - }, - "label": { - "color": "#83a598ff", - "font_style": null, - "font_weight": null - }, - "link_text": { - "color": "#8ec07cff", - "font_style": "italic", - "font_weight": null - }, - "link_uri": { - "color": "#d3869bff", - "font_style": null, - "font_weight": null - }, - "namespace": { - "color": "#83a598ff", - "font_style": null, - "font_weight": null - }, - "number": { - "color": "#d3869bff", - "font_style": null, - "font_weight": null - }, - "operator": { - "color": "#8ec07cff", - "font_style": null, - "font_weight": null - }, - "predictive": { - "color": "#717363ff", - "font_style": "italic", - "font_weight": null - }, - "preproc": { - "color": "#fb4833ff", - "font_style": null, - "font_weight": null - }, - "primary": { - "color": "#ebdbb2ff", - "font_style": null, - "font_weight": null - }, - "property": { - "color": "#ebdbb2ff", - "font_style": null, - "font_weight": null - }, - "punctuation": { - "color": "#d5c4a1ff", - "font_style": null, - "font_weight": null - }, - "punctuation.bracket": { - "color": "#a89984ff", - "font_style": null, - "font_weight": null - }, - "punctuation.delimiter": { - "color": "#e5d5adff", - "font_style": null, - "font_weight": null - }, - "punctuation.list_marker": { - "color": "#ebdbb2ff", - "font_style": null, - "font_weight": null - }, - "punctuation.markup": { - "color": "#83a598ff", - "font_style": null, - "font_weight": null - }, - "punctuation.special": { - "color": "#e5d5adff", - "font_style": null, - "font_weight": null - }, - "selector": { - "color": "#fabd2eff", - "font_style": null, - "font_weight": null - }, - "selector.pseudo": { - "color": "#83a598ff", - "font_style": null, - "font_weight": null - }, - "string": { - "color": "#b8bb25ff", - "font_style": null, - "font_weight": null - }, - "string.escape": { - "color": "#c6b697ff", - "font_style": null, - "font_weight": null - }, - "string.regex": { - "color": "#fe7f18ff", - "font_style": null, - "font_weight": null - }, - "string.special": { - "color": "#d3869bff", - "font_style": null, - "font_weight": null - }, - "string.special.symbol": { - "color": "#8ec07cff", - "font_style": null, - "font_weight": null - }, - "tag": { - "color": "#8ec07cff", - "font_style": null, - "font_weight": null - }, - "text.literal": { - "color": "#83a598ff", - "font_style": null, - "font_weight": null - }, - "title": { - "color": "#b8bb25ff", - "font_style": null, - "font_weight": 700 - }, - "type": { - "color": "#fabd2eff", - "font_style": null, - "font_weight": null - }, - "variable": { - "color": "#ebdbb2ff", - "font_style": null, - "font_weight": null - }, - "variable.parameter": { - "color": "#83a598ff", - "font_style": null, - "font_weight": null - }, - "variable.special": { - "color": "#83a598ff", - "font_style": null, - "font_weight": null - }, - "variant": { - "color": "#83a598ff", - "font_style": null, - "font_weight": null - }, - "diff.plus": { - "color": "#b8bb26ff", - "font_style": null, - "font_weight": null - }, - "diff.minus": { - "color": "#fb4934ff", - "font_style": null, - "font_weight": null - } - } - } - }, - { - "name": "Gruvbox Light", - "appearance": "light", - "style": { - "accents": ["#cc241dff", "#98971aff", "#d79921ff", "#458588ff", "#b16286ff", "#689d6aff", "#d65d0eff"], - "border": "#c8b899ff", - "border.variant": "#ddcca7ff", - "border.focused": "#adc5ccff", - "border.selected": "#adc5ccff", - "border.transparent": "#00000000", - "border.disabled": "#d0bf9dff", - "elevated_surface.background": "#ecddb4ff", - "surface.background": "#ecddb4ff", - "background": "#d9c8a4ff", - "element.background": "#ecddb4ff", - "element.hover": "#ddcca7ff", - "element.active": "#c8b899ff", - "element.selected": "#c8b899ff", - "element.disabled": "#ecddb4ff", - "drop_target.background": "#5f565080", - "ghost_element.background": "#00000000", - "ghost_element.hover": "#ddcca7ff", - "ghost_element.active": "#c8b899ff", - "ghost_element.selected": "#c8b899ff", - "ghost_element.disabled": "#ecddb4ff", - "text": "#282828ff", - "text.muted": "#5f5650ff", - "text.placeholder": "#897b6eff", - "text.disabled": "#897b6eff", - "text.accent": "#0b6678ff", - "icon": "#282828ff", - "icon.muted": "#5f5650ff", - "icon.disabled": "#897b6eff", - "icon.placeholder": "#5f5650ff", - "icon.accent": "#0b6678ff", - "status_bar.background": "#d9c8a4ff", - "title_bar.background": "#d9c8a4ff", - "title_bar.inactive_background": "#ecddb4ff", - "toolbar.background": "#fbf1c7ff", - "tab_bar.background": "#ecddb4ff", - "tab.inactive_background": "#ecddb4ff", - "tab.active_background": "#fbf1c7ff", - "search.match_background": "#0b667866", - "search.active_match_background": "#ba2d1166", - "panel.background": "#ecddb4ff", - "panel.focused_border": null, - "pane.focused_border": null, - "scrollbar.thumb.active_background": "#458588ac", - "scrollbar.thumb.hover_background": "#2828284c", - "scrollbar.thumb.background": "#7c6f644c", - "scrollbar.thumb.border": "#ddcca7ff", - "scrollbar.track.background": "#00000000", - "scrollbar.track.border": "#eee0b7ff", - "editor.foreground": "#282828ff", - "editor.background": "#fbf1c7ff", - "editor.gutter.background": "#fbf1c7ff", - "editor.subheader.background": "#ecddb4ff", - "editor.active_line.background": "#ecddb4bf", - "editor.highlighted_line.background": "#ecddb4ff", - "editor.line_number": "#a9a389", - "editor.active_line_number": "#3b382b", - "editor.hover_line_number": "#5e5a45", - "editor.invisible": "#928474ff", - "editor.wrap_guide": "#2828280d", - "editor.active_wrap_guide": "#2828281a", - "editor.document_highlight.read_background": "#0b66781a", - "editor.document_highlight.write_background": "#92847466", - "terminal.background": "#fbf1c7ff", - "terminal.foreground": "#282828ff", - "terminal.bright_foreground": "#282828ff", - "terminal.dim_foreground": "#fbf1c7ff", - "terminal.ansi.black": "#fbf1c7ff", - "terminal.ansi.bright_black": "#928374ff", - "terminal.ansi.dim_black": "#7c6f64ff", - "terminal.ansi.red": "#cc241dff", - "terminal.ansi.bright_red": "#9d0006ff", - "terminal.ansi.dim_red": "#c31c16ff", - "terminal.ansi.green": "#98971aff", - "terminal.ansi.bright_green": "#79740eff", - "terminal.ansi.dim_green": "#929015ff", - "terminal.ansi.yellow": "#d79921ff", - "terminal.ansi.bright_yellow": "#b57614ff", - "terminal.ansi.dim_yellow": "#cf8e1aff", - "terminal.ansi.blue": "#458588ff", - "terminal.ansi.bright_blue": "#076678ff", - "terminal.ansi.dim_blue": "#356f77ff", - "terminal.ansi.magenta": "#b16286ff", - "terminal.ansi.bright_magenta": "#8f3f71ff", - "terminal.ansi.dim_magenta": "#a85580ff", - "terminal.ansi.cyan": "#689d6aff", - "terminal.ansi.bright_cyan": "#427b58ff", - "terminal.ansi.dim_cyan": "#5f9166ff", - "terminal.ansi.white": "#7c6f64ff", - "terminal.ansi.bright_white": "#282828ff", - "terminal.ansi.dim_white": "#282828ff", - "link_text.hover": "#0b6678ff", - "version_control.added": "#797410ff", - "version_control.modified": "#b57615ff", - "version_control.deleted": "#9d0308ff", - "conflict": "#b57615ff", - "conflict.background": "#f5e2d0ff", - "conflict.border": "#ebccabff", - "created": "#797410ff", - "created.background": "#e4e0cdff", - "created.border": "#d1cba8ff", - "deleted": "#9d0308ff", - "deleted.background": "#f4d1c9ff", - "deleted.border": "#e8ac9eff", - "error": "#9d0308ff", - "error.background": "#f4d1c9ff", - "error.border": "#e8ac9eff", - "hidden": "#897b6eff", - "hidden.background": "#d9c8a4ff", - "hidden.border": "#d0bf9dff", - "hint": "#677562ff", - "hint.background": "#d2dee2ff", - "hint.border": "#adc5ccff", - "ignored": "#897b6eff", - "ignored.background": "#d9c8a4ff", - "ignored.border": "#c8b899ff", - "info": "#0b6678ff", - "info.background": "#d2dee2ff", - "info.border": "#adc5ccff", - "modified": "#b57615ff", - "modified.background": "#f5e2d0ff", - "modified.border": "#ebccabff", - "predictive": "#7c9780ff", - "predictive.background": "#e4e0cdff", - "predictive.border": "#d1cba8ff", - "renamed": "#0b6678ff", - "renamed.background": "#d2dee2ff", - "renamed.border": "#adc5ccff", - "success": "#797410ff", - "success.background": "#e4e0cdff", - "success.border": "#d1cba8ff", - "unreachable": "#5f5650ff", - "unreachable.background": "#d9c8a4ff", - "unreachable.border": "#c8b899ff", - "warning": "#b57615ff", - "warning.background": "#f5e2d0ff", - "warning.border": "#ebccabff", - "players": [ - { - "cursor": "#0b6678ff", - "background": "#0b6678ff", - "selection": "#0b66783d" - }, - { - "cursor": "#7c6f64ff", - "background": "#7c6f64ff", - "selection": "#7c6f643d" - }, - { - "cursor": "#af3a04ff", - "background": "#af3a04ff", - "selection": "#af3a043d" - }, - { - "cursor": "#8f3f70ff", - "background": "#8f3f70ff", - "selection": "#8f3f703d" - }, - { - "cursor": "#437b59ff", - "background": "#437b59ff", - "selection": "#437b593d" - }, - { - "cursor": "#9d0308ff", - "background": "#9d0308ff", - "selection": "#9d03083d" - }, - { - "cursor": "#b57615ff", - "background": "#b57615ff", - "selection": "#b576153d" - }, - { - "cursor": "#797410ff", - "background": "#797410ff", - "selection": "#7974103d" - } - ], - "syntax": { - "attribute": { - "color": "#0b6678ff", - "font_style": null, - "font_weight": null - }, - "boolean": { - "color": "#8f3e71ff", - "font_style": null, - "font_weight": null - }, - "comment": { - "color": "#7c6f64ff", - "font_style": null, - "font_weight": null - }, - "comment.doc": { - "color": "#5d544eff", - "font_style": null, - "font_weight": null - }, - "constant": { - "color": "#b57613ff", - "font_style": null, - "font_weight": null - }, - "constructor": { - "color": "#0b6678ff", - "font_style": null, - "font_weight": null - }, - "embedded": { - "color": "#427b58ff", - "font_style": null, - "font_weight": null - }, - "emphasis": { - "color": "#0b6678ff", - "font_style": null, - "font_weight": null - }, - "emphasis.strong": { - "color": "#0b6678ff", - "font_style": null, - "font_weight": 700 - }, - "enum": { - "color": "#af3a02ff", - "font_style": null, - "font_weight": null - }, - "function": { - "color": "#79740eff", - "font_style": null, - "font_weight": null - }, - "function.builtin": { - "color": "#9d0006ff", - "font_style": null, - "font_weight": null - }, - "hint": { - "color": "#677562ff", - "font_style": null, - "font_weight": null - }, - "keyword": { - "color": "#9d0006ff", - "font_style": null, - "font_weight": null - }, - "label": { - "color": "#0b6678ff", - "font_style": null, - "font_weight": null - }, - "link_text": { - "color": "#427b58ff", - "font_style": "italic", - "font_weight": null - }, - "link_uri": { - "color": "#8f3e71ff", - "font_style": null, - "font_weight": null - }, - "namespace": { - "color": "#066578ff", - "font_style": null, - "font_weight": null - }, - "number": { - "color": "#8f3e71ff", - "font_style": null, - "font_weight": null - }, - "operator": { - "color": "#427b58ff", - "font_style": null, - "font_weight": null - }, - "predictive": { - "color": "#7c9780ff", - "font_style": "italic", - "font_weight": null - }, - "preproc": { - "color": "#9d0006ff", - "font_style": null, - "font_weight": null - }, - "primary": { - "color": "#282828ff", - "font_style": null, - "font_weight": null - }, - "property": { - "color": "#282828ff", - "font_style": null, - "font_weight": null - }, - "punctuation": { - "color": "#3c3836ff", - "font_style": null, - "font_weight": null - }, - "punctuation.bracket": { - "color": "#665c54ff", - "font_style": null, - "font_weight": null - }, - "punctuation.delimiter": { - "color": "#413d3aff", - "font_style": null, - "font_weight": null - }, - "punctuation.list_marker": { - "color": "#282828ff", - "font_style": null, - "font_weight": null - }, - "punctuation.markup": { - "color": "#066578ff", - "font_style": null, - "font_weight": null - }, - "punctuation.special": { - "color": "#413d3aff", - "font_style": null, - "font_weight": null - }, - "selector": { - "color": "#b57613ff", - "font_style": null, - "font_weight": null - }, - "selector.pseudo": { - "color": "#0b6678ff", - "font_style": null, - "font_weight": null - }, - "string": { - "color": "#79740eff", - "font_style": null, - "font_weight": null - }, - "string.escape": { - "color": "#5d544eff", - "font_style": null, - "font_weight": null - }, - "string.regex": { - "color": "#af3a02ff", - "font_style": null, - "font_weight": null - }, - "string.special": { - "color": "#8f3e71ff", - "font_style": null, - "font_weight": null - }, - "string.special.symbol": { - "color": "#427b58ff", - "font_style": null, - "font_weight": null - }, - "tag": { - "color": "#427b58ff", - "font_style": null, - "font_weight": null - }, - "text.literal": { - "color": "#066578ff", - "font_style": null, - "font_weight": null - }, - "title": { - "color": "#79740eff", - "font_style": null, - "font_weight": 700 - }, - "type": { - "color": "#b57613ff", - "font_style": null, - "font_weight": null - }, - "variable": { - "color": "#282828ff", - "font_style": null, - "font_weight": null - }, - "variable.parameter": { - "color": "#076678ff", - "font_style": null, - "font_weight": null - }, - "variable.special": { - "color": "#066578ff", - "font_style": null, - "font_weight": null - }, - "variant": { - "color": "#0b6678ff", - "font_style": null, - "font_weight": null - }, - "diff.plus": { - "color": "#79740eff", - "font_style": null, - "font_weight": null - }, - "diff.minus": { - "color": "#9d0006ff", - "font_style": null, - "font_weight": null - } - } - } - }, - { - "name": "Gruvbox Light Hard", - "appearance": "light", - "style": { - "accents": ["#cc241dff", "#98971aff", "#d79921ff", "#458588ff", "#b16286ff", "#689d6aff", "#d65d0eff"], - "border": "#c8b899ff", - "border.variant": "#ddcca7ff", - "border.focused": "#adc5ccff", - "border.selected": "#adc5ccff", - "border.transparent": "#00000000", - "border.disabled": "#d0bf9dff", - "elevated_surface.background": "#ecddb5ff", - "surface.background": "#ecddb5ff", - "background": "#d9c8a4ff", - "element.background": "#ecddb5ff", - "element.hover": "#ddcca7ff", - "element.active": "#c8b899ff", - "element.selected": "#c8b899ff", - "element.disabled": "#ecddb5ff", - "drop_target.background": "#5f565080", - "ghost_element.background": "#00000000", - "ghost_element.hover": "#ddcca7ff", - "ghost_element.active": "#c8b899ff", - "ghost_element.selected": "#c8b899ff", - "ghost_element.disabled": "#ecddb5ff", - "text": "#282828ff", - "text.muted": "#5f5650ff", - "text.placeholder": "#897b6eff", - "text.disabled": "#897b6eff", - "text.accent": "#0b6678ff", - "icon": "#282828ff", - "icon.muted": "#5f5650ff", - "icon.disabled": "#897b6eff", - "icon.placeholder": "#5f5650ff", - "icon.accent": "#0b6678ff", - "status_bar.background": "#d9c8a4ff", - "title_bar.background": "#d9c8a4ff", - "title_bar.inactive_background": "#ecddb5ff", - "toolbar.background": "#f9f5d7ff", - "tab_bar.background": "#ecddb5ff", - "tab.inactive_background": "#ecddb5ff", - "tab.active_background": "#f9f5d7ff", - "search.match_background": "#0b667866", - "search.active_match_background": "#dc351466", - "panel.background": "#ecddb5ff", - "panel.focused_border": null, - "pane.focused_border": null, - "scrollbar.thumb.active_background": "#458588ac", - "scrollbar.thumb.hover_background": "#2828284c", - "scrollbar.thumb.background": "#7c6f644c", - "scrollbar.thumb.border": "#ddcca7ff", - "scrollbar.track.background": "#00000000", - "scrollbar.track.border": "#eee1bbff", - "editor.foreground": "#282828ff", - "editor.background": "#f9f5d7ff", - "editor.gutter.background": "#f9f5d7ff", - "editor.subheader.background": "#ecddb5ff", - "editor.active_line.background": "#ecddb5bf", - "editor.highlighted_line.background": "#ecddb5ff", - "editor.line_number": "#a9a389", - "editor.active_line_number": "#3b382b", - "editor.hover_line_number": "#5e5a45", - "editor.invisible": "#928474ff", - "editor.wrap_guide": "#2828280d", - "editor.active_wrap_guide": "#2828281a", - "editor.document_highlight.read_background": "#0b66781a", - "editor.document_highlight.write_background": "#92847466", - "terminal.background": "#f9f5d7ff", - "terminal.foreground": "#282828ff", - "terminal.bright_foreground": "#282828ff", - "terminal.dim_foreground": "#f9f5d7ff", - "terminal.ansi.black": "#fbf1c7ff", - "terminal.ansi.bright_black": "#928374ff", - "terminal.ansi.dim_black": "#7c6f64ff", - "terminal.ansi.red": "#cc241dff", - "terminal.ansi.bright_red": "#9d0006ff", - "terminal.ansi.dim_red": "#c31c16ff", - "terminal.ansi.green": "#98971aff", - "terminal.ansi.bright_green": "#79740eff", - "terminal.ansi.dim_green": "#929015ff", - "terminal.ansi.yellow": "#d79921ff", - "terminal.ansi.bright_yellow": "#b57614ff", - "terminal.ansi.dim_yellow": "#cf8e1aff", - "terminal.ansi.blue": "#458588ff", - "terminal.ansi.bright_blue": "#076678ff", - "terminal.ansi.dim_blue": "#356f77ff", - "terminal.ansi.magenta": "#b16286ff", - "terminal.ansi.bright_magenta": "#8f3f71ff", - "terminal.ansi.dim_magenta": "#a85580ff", - "terminal.ansi.cyan": "#689d6aff", - "terminal.ansi.bright_cyan": "#427b58ff", - "terminal.ansi.dim_cyan": "#5f9166ff", - "terminal.ansi.white": "#7c6f64ff", - "terminal.ansi.bright_white": "#282828ff", - "terminal.ansi.dim_white": "#282828ff", - "link_text.hover": "#0b6678ff", - "version_control.added": "#797410ff", - "version_control.modified": "#b57615ff", - "version_control.deleted": "#9d0308ff", - "conflict": "#b57615ff", - "conflict.background": "#f5e2d0ff", - "conflict.border": "#ebccabff", - "created": "#797410ff", - "created.background": "#e4e0cdff", - "created.border": "#d1cba8ff", - "deleted": "#9d0308ff", - "deleted.background": "#f4d1c9ff", - "deleted.border": "#e8ac9eff", - "error": "#9d0308ff", - "error.background": "#f4d1c9ff", - "error.border": "#e8ac9eff", - "hidden": "#897b6eff", - "hidden.background": "#d9c8a4ff", - "hidden.border": "#d0bf9dff", - "hint": "#677562ff", - "hint.background": "#d2dee2ff", - "hint.border": "#adc5ccff", - "ignored": "#897b6eff", - "ignored.background": "#d9c8a4ff", - "ignored.border": "#c8b899ff", - "info": "#0b6678ff", - "info.background": "#d2dee2ff", - "info.border": "#adc5ccff", - "modified": "#b57615ff", - "modified.background": "#f5e2d0ff", - "modified.border": "#ebccabff", - "predictive": "#7c9780ff", - "predictive.background": "#e4e0cdff", - "predictive.border": "#d1cba8ff", - "renamed": "#0b6678ff", - "renamed.background": "#d2dee2ff", - "renamed.border": "#adc5ccff", - "success": "#797410ff", - "success.background": "#e4e0cdff", - "success.border": "#d1cba8ff", - "unreachable": "#5f5650ff", - "unreachable.background": "#d9c8a4ff", - "unreachable.border": "#c8b899ff", - "warning": "#b57615ff", - "warning.background": "#f5e2d0ff", - "warning.border": "#ebccabff", - "players": [ - { - "cursor": "#0b6678ff", - "background": "#0b6678ff", - "selection": "#0b66783d" - }, - { - "cursor": "#7c6f64ff", - "background": "#7c6f64ff", - "selection": "#7c6f643d" - }, - { - "cursor": "#af3a04ff", - "background": "#af3a04ff", - "selection": "#af3a043d" - }, - { - "cursor": "#8f3f70ff", - "background": "#8f3f70ff", - "selection": "#8f3f703d" - }, - { - "cursor": "#437b59ff", - "background": "#437b59ff", - "selection": "#437b593d" - }, - { - "cursor": "#9d0308ff", - "background": "#9d0308ff", - "selection": "#9d03083d" - }, - { - "cursor": "#b57615ff", - "background": "#b57615ff", - "selection": "#b576153d" - }, - { - "cursor": "#797410ff", - "background": "#797410ff", - "selection": "#7974103d" - } - ], - "syntax": { - "attribute": { - "color": "#0b6678ff", - "font_style": null, - "font_weight": null - }, - "boolean": { - "color": "#8f3e71ff", - "font_style": null, - "font_weight": null - }, - "comment": { - "color": "#7c6f64ff", - "font_style": null, - "font_weight": null - }, - "comment.doc": { - "color": "#5d544eff", - "font_style": null, - "font_weight": null - }, - "constant": { - "color": "#b57613ff", - "font_style": null, - "font_weight": null - }, - "constructor": { - "color": "#0b6678ff", - "font_style": null, - "font_weight": null - }, - "embedded": { - "color": "#427b58ff", - "font_style": null, - "font_weight": null - }, - "emphasis": { - "color": "#0b6678ff", - "font_style": null, - "font_weight": null - }, - "emphasis.strong": { - "color": "#0b6678ff", - "font_style": null, - "font_weight": 700 - }, - "enum": { - "color": "#af3a02ff", - "font_style": null, - "font_weight": null - }, - "function": { - "color": "#79740eff", - "font_style": null, - "font_weight": null - }, - "function.builtin": { - "color": "#9d0006ff", - "font_style": null, - "font_weight": null - }, - "hint": { - "color": "#677562ff", - "font_style": null, - "font_weight": null - }, - "keyword": { - "color": "#9d0006ff", - "font_style": null, - "font_weight": null - }, - "label": { - "color": "#0b6678ff", - "font_style": null, - "font_weight": null - }, - "link_text": { - "color": "#427b58ff", - "font_style": "italic", - "font_weight": null - }, - "link_uri": { - "color": "#8f3e71ff", - "font_style": null, - "font_weight": null - }, - "namespace": { - "color": "#066578ff", - "font_style": null, - "font_weight": null - }, - "number": { - "color": "#8f3e71ff", - "font_style": null, - "font_weight": null - }, - "operator": { - "color": "#427b58ff", - "font_style": null, - "font_weight": null - }, - "predictive": { - "color": "#7c9780ff", - "font_style": "italic", - "font_weight": null - }, - "preproc": { - "color": "#9d0006ff", - "font_style": null, - "font_weight": null - }, - "primary": { - "color": "#282828ff", - "font_style": null, - "font_weight": null - }, - "property": { - "color": "#282828ff", - "font_style": null, - "font_weight": null - }, - "punctuation": { - "color": "#3c3836ff", - "font_style": null, - "font_weight": null - }, - "punctuation.bracket": { - "color": "#665c54ff", - "font_style": null, - "font_weight": null - }, - "punctuation.delimiter": { - "color": "#413d3aff", - "font_style": null, - "font_weight": null - }, - "punctuation.list_marker": { - "color": "#282828ff", - "font_style": null, - "font_weight": null - }, - "punctuation.markup": { - "color": "#066578ff", - "font_style": null, - "font_weight": null - }, - "punctuation.special": { - "color": "#413d3aff", - "font_style": null, - "font_weight": null - }, - "selector": { - "color": "#b57613ff", - "font_style": null, - "font_weight": null - }, - "selector.pseudo": { - "color": "#0b6678ff", - "font_style": null, - "font_weight": null - }, - "string": { - "color": "#79740eff", - "font_style": null, - "font_weight": null - }, - "string.escape": { - "color": "#5d544eff", - "font_style": null, - "font_weight": null - }, - "string.regex": { - "color": "#af3a02ff", - "font_style": null, - "font_weight": null - }, - "string.special": { - "color": "#8f3e71ff", - "font_style": null, - "font_weight": null - }, - "string.special.symbol": { - "color": "#427b58ff", - "font_style": null, - "font_weight": null - }, - "tag": { - "color": "#427b58ff", - "font_style": null, - "font_weight": null - }, - "text.literal": { - "color": "#066578ff", - "font_style": null, - "font_weight": null - }, - "title": { - "color": "#79740eff", - "font_style": null, - "font_weight": 700 - }, - "type": { - "color": "#b57613ff", - "font_style": null, - "font_weight": null - }, - "variable": { - "color": "#282828ff", - "font_style": null, - "font_weight": null - }, - "variable.parameter": { - "color": "#076678ff", - "font_style": null, - "font_weight": null - }, - "variable.special": { - "color": "#066578ff", - "font_style": null, - "font_weight": null - }, - "variant": { - "color": "#0b6678ff", - "font_style": null, - "font_weight": null - }, - "diff.plus": { - "color": "#79740eff", - "font_style": null, - "font_weight": null - }, - "diff.minus": { - "color": "#9d0006ff", - "font_style": null, - "font_weight": null - } - } - } - }, - { - "name": "Gruvbox Light Soft", - "appearance": "light", - "style": { - "accents": ["#cc241dff", "#98971aff", "#d79921ff", "#458588ff", "#b16286ff", "#689d6aff", "#d65d0eff"], - "border": "#c8b899ff", - "border.variant": "#ddcca7ff", - "border.focused": "#adc5ccff", - "border.selected": "#adc5ccff", - "border.transparent": "#00000000", - "border.disabled": "#d0bf9dff", - "elevated_surface.background": "#ecdcb3ff", - "surface.background": "#ecdcb3ff", - "background": "#d9c8a4ff", - "element.background": "#ecdcb3ff", - "element.hover": "#ddcca7ff", - "element.active": "#c8b899ff", - "element.selected": "#c8b899ff", - "element.disabled": "#ecdcb3ff", - "drop_target.background": "#5f565080", - "ghost_element.background": "#00000000", - "ghost_element.hover": "#ddcca7ff", - "ghost_element.active": "#c8b899ff", - "ghost_element.selected": "#c8b899ff", - "ghost_element.disabled": "#ecdcb3ff", - "text": "#282828ff", - "text.muted": "#5f5650ff", - "text.placeholder": "#897b6eff", - "text.disabled": "#897b6eff", - "text.accent": "#0b6678ff", - "icon": "#282828ff", - "icon.muted": "#5f5650ff", - "icon.disabled": "#897b6eff", - "icon.placeholder": "#5f5650ff", - "icon.accent": "#0b6678ff", - "status_bar.background": "#d9c8a4ff", - "title_bar.background": "#d9c8a4ff", - "title_bar.inactive_background": "#ecdcb3ff", - "toolbar.background": "#f2e5bcff", - "tab_bar.background": "#ecdcb3ff", - "tab.inactive_background": "#ecdcb3ff", - "tab.active_background": "#f2e5bcff", - "search.match_background": "#0b667866", - "search.active_match_background": "#d7331466", - "panel.background": "#ecdcb3ff", - "panel.focused_border": null, - "pane.focused_border": null, - "scrollbar.thumb.active_background": "#458588ac", - "scrollbar.thumb.hover_background": "#2828284c", - "scrollbar.thumb.background": "#7c6f644c", - "scrollbar.thumb.border": "#ddcca7ff", - "scrollbar.track.background": "#00000000", - "scrollbar.track.border": "#eddeb5ff", - "editor.foreground": "#282828ff", - "editor.background": "#f2e5bcff", - "editor.gutter.background": "#f2e5bcff", - "editor.subheader.background": "#ecdcb3ff", - "editor.active_line.background": "#ecdcb3bf", - "editor.highlighted_line.background": "#ecdcb3ff", - "editor.line_number": "#a9a389", - "editor.active_line_number": "#3b382b", - "editor.hover_line_number": "#5e5a45", - "editor.invisible": "#928474ff", - "editor.wrap_guide": "#2828280d", - "editor.active_wrap_guide": "#2828281a", - "editor.document_highlight.read_background": "#0b66781a", - "editor.document_highlight.write_background": "#92847466", - "terminal.background": "#f2e5bcff", - "terminal.foreground": "#282828ff", - "terminal.bright_foreground": "#282828ff", - "terminal.dim_foreground": "#f2e5bcff", - "terminal.ansi.black": "#fbf1c7ff", - "terminal.ansi.bright_black": "#928374ff", - "terminal.ansi.dim_black": "#7c6f64ff", - "terminal.ansi.red": "#cc241dff", - "terminal.ansi.bright_red": "#9d0006ff", - "terminal.ansi.dim_red": "#c31c16ff", - "terminal.ansi.green": "#98971aff", - "terminal.ansi.bright_green": "#79740eff", - "terminal.ansi.dim_green": "#929015ff", - "terminal.ansi.yellow": "#d79921ff", - "terminal.ansi.bright_yellow": "#b57614ff", - "terminal.ansi.dim_yellow": "#cf8e1aff", - "terminal.ansi.blue": "#458588ff", - "terminal.ansi.bright_blue": "#076678ff", - "terminal.ansi.dim_blue": "#356f77ff", - "terminal.ansi.magenta": "#b16286ff", - "terminal.ansi.bright_magenta": "#8f3f71ff", - "terminal.ansi.dim_magenta": "#a85580ff", - "terminal.ansi.cyan": "#689d6aff", - "terminal.ansi.bright_cyan": "#427b58ff", - "terminal.ansi.dim_cyan": "#5f9166ff", - "terminal.ansi.white": "#7c6f64ff", - "terminal.ansi.bright_white": "#282828ff", - "terminal.ansi.dim_white": "#282828ff", - "link_text.hover": "#0b6678ff", - "version_control.added": "#797410ff", - "version_control.modified": "#b57615ff", - "version_control.deleted": "#9d0308ff", - "conflict": "#b57615ff", - "conflict.background": "#f5e2d0ff", - "conflict.border": "#ebccabff", - "created": "#797410ff", - "created.background": "#e4e0cdff", - "created.border": "#d1cba8ff", - "deleted": "#9d0308ff", - "deleted.background": "#f4d1c9ff", - "deleted.border": "#e8ac9eff", - "error": "#9d0308ff", - "error.background": "#f4d1c9ff", - "error.border": "#e8ac9eff", - "hidden": "#897b6eff", - "hidden.background": "#d9c8a4ff", - "hidden.border": "#d0bf9dff", - "hint": "#677562ff", - "hint.background": "#d2dee2ff", - "hint.border": "#adc5ccff", - "ignored": "#897b6eff", - "ignored.background": "#d9c8a4ff", - "ignored.border": "#c8b899ff", - "info": "#0b6678ff", - "info.background": "#d2dee2ff", - "info.border": "#adc5ccff", - "modified": "#b57615ff", - "modified.background": "#f5e2d0ff", - "modified.border": "#ebccabff", - "predictive": "#7c9780ff", - "predictive.background": "#e4e0cdff", - "predictive.border": "#d1cba8ff", - "renamed": "#0b6678ff", - "renamed.background": "#d2dee2ff", - "renamed.border": "#adc5ccff", - "success": "#797410ff", - "success.background": "#e4e0cdff", - "success.border": "#d1cba8ff", - "unreachable": "#5f5650ff", - "unreachable.background": "#d9c8a4ff", - "unreachable.border": "#c8b899ff", - "warning": "#b57615ff", - "warning.background": "#f5e2d0ff", - "warning.border": "#ebccabff", - "players": [ - { - "cursor": "#0b6678ff", - "background": "#0b6678ff", - "selection": "#0b66783d" - }, - { - "cursor": "#7c6f64ff", - "background": "#7c6f64ff", - "selection": "#7c6f643d" - }, - { - "cursor": "#af3a04ff", - "background": "#af3a04ff", - "selection": "#af3a043d" - }, - { - "cursor": "#8f3f70ff", - "background": "#8f3f70ff", - "selection": "#8f3f703d" - }, - { - "cursor": "#437b59ff", - "background": "#437b59ff", - "selection": "#437b593d" - }, - { - "cursor": "#9d0308ff", - "background": "#9d0308ff", - "selection": "#9d03083d" - }, - { - "cursor": "#b57615ff", - "background": "#b57615ff", - "selection": "#b576153d" - }, - { - "cursor": "#797410ff", - "background": "#797410ff", - "selection": "#7974103d" - } - ], - "syntax": { - "attribute": { - "color": "#0b6678ff", - "font_style": null, - "font_weight": null - }, - "boolean": { - "color": "#8f3e71ff", - "font_style": null, - "font_weight": null - }, - "comment": { - "color": "#7c6f64ff", - "font_style": null, - "font_weight": null - }, - "comment.doc": { - "color": "#5d544eff", - "font_style": null, - "font_weight": null - }, - "constant": { - "color": "#b57613ff", - "font_style": null, - "font_weight": null - }, - "constructor": { - "color": "#0b6678ff", - "font_style": null, - "font_weight": null - }, - "embedded": { - "color": "#427b58ff", - "font_style": null, - "font_weight": null - }, - "emphasis": { - "color": "#0b6678ff", - "font_style": null, - "font_weight": null - }, - "emphasis.strong": { - "color": "#0b6678ff", - "font_style": null, - "font_weight": 700 - }, - "enum": { - "color": "#af3a02ff", - "font_style": null, - "font_weight": null - }, - "function": { - "color": "#79740eff", - "font_style": null, - "font_weight": null - }, - "function.builtin": { - "color": "#9d0006ff", - "font_style": null, - "font_weight": null - }, - "hint": { - "color": "#677562ff", - "font_style": null, - "font_weight": null - }, - "keyword": { - "color": "#9d0006ff", - "font_style": null, - "font_weight": null - }, - "label": { - "color": "#0b6678ff", - "font_style": null, - "font_weight": null - }, - "link_text": { - "color": "#427b58ff", - "font_style": "italic", - "font_weight": null - }, - "link_uri": { - "color": "#8f3e71ff", - "font_style": null, - "font_weight": null - }, - "namespace": { - "color": "#066578ff", - "font_style": null, - "font_weight": null - }, - "number": { - "color": "#8f3e71ff", - "font_style": null, - "font_weight": null - }, - "operator": { - "color": "#427b58ff", - "font_style": null, - "font_weight": null - }, - "predictive": { - "color": "#7c9780ff", - "font_style": "italic", - "font_weight": null - }, - "preproc": { - "color": "#9d0006ff", - "font_style": null, - "font_weight": null - }, - "primary": { - "color": "#282828ff", - "font_style": null, - "font_weight": null - }, - "property": { - "color": "#282828ff", - "font_style": null, - "font_weight": null - }, - "punctuation": { - "color": "#3c3836ff", - "font_style": null, - "font_weight": null - }, - "punctuation.bracket": { - "color": "#665c54ff", - "font_style": null, - "font_weight": null - }, - "punctuation.delimiter": { - "color": "#413d3aff", - "font_style": null, - "font_weight": null - }, - "punctuation.list_marker": { - "color": "#282828ff", - "font_style": null, - "font_weight": null - }, - "punctuation.markup": { - "color": "#066578ff", - "font_style": null, - "font_weight": null - }, - "punctuation.special": { - "color": "#413d3aff", - "font_style": null, - "font_weight": null - }, - "selector": { - "color": "#b57613ff", - "font_style": null, - "font_weight": null - }, - "selector.pseudo": { - "color": "#0b6678ff", - "font_style": null, - "font_weight": null - }, - "string": { - "color": "#79740eff", - "font_style": null, - "font_weight": null - }, - "string.escape": { - "color": "#5d544eff", - "font_style": null, - "font_weight": null - }, - "string.regex": { - "color": "#af3a02ff", - "font_style": null, - "font_weight": null - }, - "string.special": { - "color": "#8f3e71ff", - "font_style": null, - "font_weight": null - }, - "string.special.symbol": { - "color": "#427b58ff", - "font_style": null, - "font_weight": null - }, - "tag": { - "color": "#427b58ff", - "font_style": null, - "font_weight": null - }, - "text.literal": { - "color": "#066578ff", - "font_style": null, - "font_weight": null - }, - "title": { - "color": "#79740eff", - "font_style": null, - "font_weight": 700 - }, - "type": { - "color": "#b57613ff", - "font_style": null, - "font_weight": null - }, - "variable": { - "color": "#282828ff", - "font_style": null, - "font_weight": null - }, - "variable.parameter": { - "color": "#076678ff", - "font_style": null, - "font_weight": null - }, - "variable.special": { - "color": "#066578ff", - "font_style": null, - "font_weight": null - }, - "variant": { - "color": "#0b6678ff", - "font_style": null, - "font_weight": null - }, - "diff.plus": { - "color": "#79740eff", - "font_style": null, - "font_weight": null - }, - "diff.minus": { - "color": "#9d0006ff", - "font_style": null, - "font_weight": null - } - } - } - } - ] -} diff --git a/vendor/themes/hex_lavender.toml b/vendor/themes/hex_lavender.toml deleted file mode 100644 index b14f3caf..00000000 --- a/vendor/themes/hex_lavender.toml +++ /dev/null @@ -1,41 +0,0 @@ -# Author : portalsurfer <https://github.com/PORTALSURFER> - -inherits = "hex_steel" - -[palette] -t1 = "#0e0e0d" -t2 = "#181a17" -t3 = "#2b3444" -t4 = "#61586f" -t5 = "#686e73" -t6 = "#878480" -t7 = "#8e80de" -t8 = "#7b89a3" -t9 = "#bcb6ba" -t10 = "#9db2b8" -t11 = "#a0c7cf" - -highlight = "#ff2e5f" -highlight_two = "#0affa9" -highlight_three = "#29bbff" - -black = "#000000" - -selection = "#290019" -selection_fg = "#958e9a" - -comment = "#404768" -comment_doc = "#0affa9" - -error = "#ff0900" -warning = "#ffbf00" -display = "#57ff89" -info = "#dad7d5" - -hints = "#44273f" -ruler = "#1c1f1b" - -diff_minus = "#ff4000" -diff_delta = "#0078bd" -diff_plus = "#c9d400" -diff_delta_moved = "#0048bd"
\ No newline at end of file diff --git a/vendor/themes/hex_poison.toml b/vendor/themes/hex_poison.toml deleted file mode 100644 index 0d6e13ee..00000000 --- a/vendor/themes/hex_poison.toml +++ /dev/null @@ -1,41 +0,0 @@ -# Author : portalsurfer <https://github.com/PORTALSURFER> - -inherits = "hex_steel" - -[palette] -t1 = "#121211" -t2 = "#1e1f1b" -t3 = "#4c513a" -t4 = "#5a6052" -t5 = "#6f6d6f" -t8 = "#7e808a" -t7 = "#b1b354" -t10 = "#6fa197" -t9 = "#3f4a4e" -t6 = "#98acaa" -t11 = "#6fd7a8" - -highlight = "#ff2e5f" -highlight_two = "#0affa9" -highlight_three = "#d7ff52" - -black = "#000000" - -selection = "#290019" -selection_fg = "#c8e732" - -comment = "#396884" -comment_doc = "#234048" - -error = "#c73500" -warning = "#dcbb00" -display = "#57ff89" -info = "#dad7d5" - -hints = "#313d3c" -ruler = "#21221e" - -diff_minus = "#ff4000" -diff_delta = "#16a7c7" -diff_plus = "#c9d400" -diff_delta_moved = "#0048bd"
\ No newline at end of file diff --git a/vendor/themes/ingrid.toml b/vendor/themes/ingrid.toml deleted file mode 100644 index 975f7a73..00000000 --- a/vendor/themes/ingrid.toml +++ /dev/null @@ -1,77 +0,0 @@ -# Author : Ingrid Rebecca Abraham <[email protected]> - -"attribute" = "#839A53" -"keyword" = { fg = "#D74E50", modifiers = ["bold"] } -"keyword.directive" = "#6F873E" -"namespace" = "#839A53" -"punctuation" = "#C97270" -"punctuation.delimiter" = "#C97270" -"operator" = { fg = "#D74E50", modifiers = ["bold"] } -"special" = "#D68482" -"variable.other.member" = "#89BEB7" -"variable" = "#A6B6CE" -"variable.parameter" = "#89BEB7" -"type" = { fg = "#A6B6CE", modifiers = ["bold"] } -"type.builtin" = "#839A53" -"constructor" = { fg = "#839A53", modifiers = ["bold"] } -"function" = { fg = "#89BEB7", modifiers = ["bold"] } -"function.macro" = { fg = "#D4A520", modifiers = ["bold"] } -"function.builtin" = "#89BEB7" -"comment" = "#A6B6CE" -"variable.builtin" = "#D4A520" -"constant" = "#D4A520" -"constant.builtin" = "#D4A520" -"string" = "#D74E50" -"constant.numeric" = "#D74E50" -"constant.character.escape" = { fg = "#D74E50", modifiers = ["bold"] } -"label" = "#D68482" - -"module" = "#839A53" - -# TODO -"markup.heading" = "blue" -"markup.list" = "red" -"markup.bold" = { fg = "yellow", modifiers = ["bold"] } -"markup.italic" = { fg = "magenta", modifiers = ["italic"] } -"markup.strikethrough" = { modifiers = ["crossed_out"] } -"markup.link.url" = { fg = "yellow", modifiers = ["underlined"] } -"markup.link.text" = "red" -"markup.quote" = "cyan" -"markup.raw" = "green" - -"diff.plus" = "#839A53" -"diff.delta" = "#D4A520" -"diff.minus" = "#D74E50" - -"ui.background" = { bg = "#FFFCFD" } -"ui.linenr" = { fg = "#bbbbbb" } -"ui.linenr.selected" = { fg = "#ED5466", modifiers = ["bold"] } -"ui.cursorline" = { bg = "#F3EAE9" } -"ui.statusline" = { fg = "#250E07", bg = "#F3EAE9" } -"ui.statusline.inactive" = { fg = "#7b91b3", bg = "#F3EAE9" } -"ui.popup" = { fg = "#7B91b3", bg = "#F3E8E9" } -"ui.window" = { bg = "#D8B8B3" } -"ui.help" = { bg = "#D8B8B3", fg = "#250E07" } - -"ui.text" = { fg = "#7B91B3" } -"ui.text.focus" = { fg = "#250E07", modifiers= ["bold"] } -"ui.virtual.whitespace" = "#A6B6CE" -"ui.virtual.ruler" = { bg = "#F3EAE9" } - -"ui.selection" = { bg = "#F3EAE9" } -"ui.cursor.primary" = { bg = "#ED5466", fg = "#FFFCFD", modifiers = ["bold"] } -"ui.cursor.match" = { bg = "#F3EAE9", fg = "#ED5466", modifiers = ["bold"] } -"ui.menu" = { fg = "#7B91B3", bg = "#F3EAE9" } -"ui.menu.selected" = { fg = "#D74E50", bg = "#F3EAE9" } - -"warning" = "#D4A520" -"error" = "#D74E50" -"info" = "#839A53" -"hint" = "#A6B6CE" - -"diagnostic.warning" = { underline = { color = "#D4A520", style = "curl" } } -"diagnostic.error" = { underline = { color = "#D74E50", style = "curl" } } -"diagnostic.info" = { underline = { color = "#839A53", style = "curl" } } -"diagnostic.hint" = { underline = { color = "#A6B6CE", style = "curl" } } -"diagnostic.unnecessary" = { modifiers = ["dim"] } -"diagnostic.deprecated" = { modifiers = ["crossed_out"] } diff --git a/vendor/themes/iroaseta.toml b/vendor/themes/iroaseta.toml deleted file mode 100644 index 0683e790..00000000 --- a/vendor/themes/iroaseta.toml +++ /dev/null @@ -1,162 +0,0 @@ -# Theme: Iroaseta -# Author: YardQuit - -# SYNTAX HIGHLIGHTING -"attribute" = { fg = "yellow" } -"type" = { fg = "white" } -"type.builtin" = { fg = "white" } -"type.parameter" = { fg = "white" } -"type.enum" = { fg = "white" } -"type.enum.variant" = { fg = "white" } -"constructor" = { fg = "orange" } -"constant" = { fg = "blue" } -"constant.character.escape" = { fg = "yellow" } -"string" = { fg = "blue" } -"string.regexp" = { fg = "yellow" } -"comment" = { fg = "gray" } -"variable" = { fg = "orange" } -"variable.parameter" = { fg = "yellow" } -"variable.other" = { fg = "green" } -"variable.other.member" = { fg = "green" } -"label" = { fg = "blue" } -"punctuation" = { fg = "white" } -"punctuation.bracket" = { fg = "orange" } -"punctuation.special" = { fg = "yellow" } -"keyword" = { fg = "red" } -"keyword.operator" = { fg = "blue" } -"keyword.directive" = { fg = "white" } -"keyword.function" = { fg = "red" } -"keyword.storage" = { fg = "red" } -"keyword.storage.modifier" = { fg = "green" } -"operator" = { fg = "white" } -"function" = { fg = "purple" } -"function.method" = { fg = "green" } -"function.macro" = { fg = "green" } -"function.special" = { fg = "yellow" } -"tag" = { fg = "green" } -"namespace" = { fg = "white" } -"diff" = { fg = "white" } -"diff.minus" = { fg = "red" } -"diff.delta" = { fg = "brown" } - -# MARKUP, SYNTAX HIGHLIGHTING AND INTERFACE HYBRID -"markup.heading" = { fg = "blaze_orange" } -"markup.heading.1" = { fg = "crystal_blue", modifiers = ["bold"] } -"markup.heading.2" = { fg = "sky_blue", modifiers = ["bold"] } -"markup.heading.3" = { fg = "dreamy_blue", modifiers = ["bold"] } -"markup.heading.4" = { fg = "crystal_blue" } -"markup.heading.5" = { fg = "sky_blue" } -"markup.heading.6" = { fg = "dreamy_blue" } -"markup.list" = { fg = "blaze_orange" } -"markup.bold" = { fg = "crystal_blue", modifiers = ["bold"] } -"markup.italic" = { fg = "crystal_blue", modifiers = ["italic"] } -"markup.strikethrough" = { fg = "crystal_blue", modifiers = ["crossed_out"] } -"markup.link" = { fg = "crystal_blue", underline = { color = "light_purple", style = "line" } } -"markup.link.url" = { fg = "slate_purple", underline = { color = "slate_purple", style = "line" } } -"markup.link.label" = { fg = "crystal_blue" } -"markup.link.text" = { fg = "crystal_blue", modifiers = ["bold"] } -"markup.quote" = { fg = "misty_white", modifiers = ["italic"] } -"markup.raw" = { fg = "misty_white" } -"markup.raw.block" = { fg = "white" } - -# USER INTERFACE -"ui.background" = { bg = "amber_shadow"} # workspace background -"ui.background.separator" = { fg = "misty_white" } # picker separator below input line (space + j) -"ui.gutter" = { bg = "amber_shadow" } # gutter -"ui.gutter.selected" = { bg = "pitch_black" } # gutter for the line the cursor is on -"ui.linenr" = { fg = "slate_gray" } # line numbers -"ui.linenr.selected" = { fg = "blaze_orange", modifiers = ["bold"] } # line number for the line the cursor is on -"ui.statusline" = { fg = "misty_white", bg = "pitch_black" } # statusline, fucused -"ui.statusline.inactive" = { fg = "slate_gray", bg = "dark_steel" } # statusline, unfocused -"ui.statusline.normal" = { fg = "amber_shadow", bg = "leafy_green", modifiers = ["bold"] } # statusline normal mode (if editor.color-modes is enabled) -"ui.statusline.insert" = { fg = "amber_shadow", bg = "blaze_orange", modifiers = ["bold"] } # statusline insert mode (if editor.color-modes is enabled) -"ui.statusline.select" = { fg = "amber_shadow", bg = "sky_blue", modifiers = ["bold"] } # statusline select mode (if editor.color-modes is enabled) -"ui.statusline.separator" = { fg = "misty_white" } # separator character is statusline -"ui.bufferline" = { fg = "slate_gray", modifiers = ["bold"] } # bufferline inactive tab -"ui.bufferline.active" = { fg = "misty_white", bg = "rustic_red" } # bufferline active tab -"ui.bufferline.background" = { bg = "pitch_black" } # bufferline background -"ui.virtual.ruler" = { bg = "rustic_red" } # ruler columns -"ui.virtual.whitespace" = { fg = "brown" } # whitespace characters -"ui.virtual.indent-guide" = { fg = "brown" } # vertical indent width guides -"ui.virtual.inlay-hint" = { fg = "slate_gray" } # inlay hints of all kinds -"ui.virtual.inlay-hint.parameter" = { fg = "slate_gray" } # inlay hints of kind parameter (lsps are not required to set a kind) -"ui.virtual.inlay-hint.type" = { fg = "slate_gray" } # inlay hints of kind type (lsps are not required to set a kind) -"ui.virtual.wrap" = { fg = "slate_gray" } # soft-wrap indicator -"ui.virtual.jump-label" = { modifiers = ["reversed"] } # virtual jump labels (g + w) -"ui.selection" = { bg = "deep_purple" } # slave selections in the editing area -"ui.selection.primary" = { bg = "light_purple" } # primary selection in the editing area -"ui.cursor" = { modifiers = ["reversed"] } # only if "ui.cursor.primary.normal" isn't set -"ui.cursor.normal" = { modifiers = ["reversed"] } # slave cursor block in normal mode -"ui.cursor.insert" = { bg = "rustic_red" } # slave cursor block in insert mode -"ui.cursor.select" = { bg = "deep_purple" } # slave cursor block in select mode -"ui.cursor.match" = { fg = "amber_shadow", bg = "blaze_orange", modifiers = ["bold"] } # matching bracket etc -"ui.cursor.primary" = { modifiers = ["reversed"] } # cursor with primary selection (has no effect due to "ui.cursor.primary.normal" is set) -"ui.cursor.primary.normal" = { modifiers = ["reversed"] } # cursor block in normal mode -"ui.cursor.primary.insert" = { fg = "amber_shadow", bg = "ruby_glow" } # cursor block in insert mode -"ui.cursor.primary.select" = { fg = "misty_white", bg = "deep_purple" } # cursor block in select mode (not the selected color) -"ui.cursorline.primary" = { bg = "dark_steel" } # line of the primary cursor -"ui.cursorline.secondary" = { bg = "midnight_black"} # lines of secondary cursors -"ui.cursorcolumn.primary" = { bg = "dark_steel" } # column of the primary cursor -"ui.cursorcolumn.secondary" = { bg = "midnight_black" } # columns of secondary cursors - -# USER INTERFACE - MENUS AND POPUP -"ui.popup" = { fg = "misty_white", bg = "midnight_black" } # documentation popups (space + k) -"ui.popup.info" = { fg = "misty_white", bg = "midnight_black" } # prompt for multiple key options, menu border (space, g, z, m, etc) -"ui.window" = { fg = "pitch_black" } # borderlines separating splits -"ui.help" = { fg = "misty_white", bg = "midnight_black" } # description box for commands -"ui.text" = { fg = "white" } # default text style, command prompts, popup text, etc -"ui.text.focus" = { fg = "leafy_green" } # the currently selected line in the picker (space j, space f, space s, etc) -"ui.text.inactive" = { fg = "slate_gray" } # same as ui.text but when the text is inactive e.g. suggestions -"ui.text.info" = { fg = "misty_white", bg = "midnight_black" } # the key: command in ui.popup.info boxes (space, g, z, m, etc) -"ui.menu" = { fg = "ethereal_gray", bg = "pitch_black" } # code and command completion menus ":" -"ui.menu.selected" = { fg = "misty_white", bg = "dark_steel" } # selected autocomplete item -"ui.menu.scroll" = { fg = "slate_gray", bg = "midnight_black" } # scrollbar -"ui.highlight" = { underline = { color = "blaze_orange", style = "line" } } # highlighted lines in the picker preview - -# User Interface - Diagnostics -"warning" = { fg = "lemon_zest" } # diagnostics warning (gutter) -"error" = { fg = "ruby_glow" } # diagnostics error (gutter) -"info" = { fg = "sky_blue" } # diagnostics info (gutter) -"hint" = { fg = "walnut_brown" } # diagnostics hint (gutter) -"diagnostic" = { modifiers = ["reversed"] } # diagnostics fallback style (editing area) -"diagnostic.hint" = { fg = "amber_shadow", bg = "walnut_brown" } # diagnostics hint (editing area) -"diagnostic.info" = { fg = "misty_white", bg = "twilight_slate" } # diagnostics info (editing area) -"diagnostic.warning" = { fg = "misty_white", bg = "rustic_amber" } # diagnostics warning (editing area) -"diagnostic.error" = { fg = "misty_white", bg = "rustic_red" } # diagnostics error (editing area) - -# COLOR NAMES -[palette] -# PALETTE USER INTERFACE -amber_shadow = "#0d1117" -midnight_black = "#010409" -dark_steel = "#161b22" -pitch_black = "#000000" -misty_white = "#f2f0eb" -slate_gray = "#838a97" -ethereal_gray = "#91a3b0" -blaze_orange = "#ff9000" -lemon_zest = "#ffba00" -leafy_green = "#81be83" -dreamy_blue = "#6eb0ff" -crystal_blue = "#99c7ff" -twilight_slate = "#263c57" -sky_blue = "#45b1e8" -rustic_red = "#540b0c" -ruby_glow = "#fa7970" -walnut_brown = "#987654" -rustic_amber = "#9d5800" -slate_purple = "#d2a8ff" -light_purple = "#7533bd" -deep_purple = "#4c1785" - -# PALETTE SYNTAX HIGHLIGHTING -black = "#0d1117" -red = "#fa7970" -green = "#81be83" -yellow = "#ffba00" -orange = "#ff9000" -blue = "#45b1e8" -purple = "#d2a8ff" -brown = "#987654" -gray = "#838a97" -white = "#dadada" diff --git a/vendor/themes/nord_light.toml b/vendor/themes/nord_light.toml deleted file mode 100644 index 6c27c507..00000000 --- a/vendor/themes/nord_light.toml +++ /dev/null @@ -1,90 +0,0 @@ -# Author: Two-Six<[email protected]> - -"ui.background" = {bg="nord6"} -"ui.text" = "nord0" -"ui.selection" = {bg="nord7", fg="nord6"} -"ui.cursorline" = {bg="nord4"} -"ui.statusline" = {bg="nord4", fg="nord0"} -"ui.statusline.inactive" = {bg="nord5", fg="nord0"} -"ui.cursor.match" = {bg="nord8"} -"ui.cursor" = {bg="nord10", fg="nord6"} -"ui.cursorline.primary" = {bg="nord5"} -"ui.linenr" = {fg="nord7"} -"ui.linenr.selected" = {fg="nord0", bg="nord5"} -"ui.menu" = {bg="nord4",fg="nord0"} -"ui.menu.selected" = {bg="nord5"} -"ui.popup" = {bg="nord4"} -"ui.popup.info" = {bg="nord4",fg="nord0"} -"ui.help" = {bg="nord4",fg="nord0"} -"ui.window" = {bg="nord4"} - - -"ui.statusline.normal" = { fg = "nord0", bg = "nord8" } -"ui.statusline.insert" = { fg = "nord0", bg = "nord13" } -"ui.statusline.select" = { fg = "nord0", bg = "nord15" } - -# Virtual/invisible text -"ui.virtual" = "nord8" -"ui.virtual.ruler" = {bg="nord4"} -"ui.virtual.inlay-hint" = { fg = "nord3", modifiers = ["italic"] } -"ui.virtual.jump-label" = { fg = "nord11", modifiers = ["bold"] } - - - -"diagnostic.error" = { underline = { color = "nord11", style = "curl" } } -"diagnostic.warning" = { underline = { color = "nord13", style = "curl" } } -"diagnostic.info" = { underline = { color = "nord13", style = "curl" } } -"diagnostic.hint" = { underline = { color = "nord13", style = "curl" } } -"diagnostic.unnecessary" = { modifiers = ["dim"] } -"diagnostic.deprecated" = { modifiers = ["crossed_out"] } - -"constant.numeric" = {fg="nord15"} -"constant.builtin" = {fg="nord15"} - -"keyword" = {fg="nord2"} -"keyword.control" = {fg="nord2"} -"keyword.function" = {fg="nord2"} - -"function" = {fg="nord3"} -"function.macro" = {fg="nord10", modifiers=["bold"]} -"function.method" = {fg="nord0"} -"function.builtin" = {fg="nord10"} - -"variable.builtin" = {fg="nord3"} -"variable.other" = {fg="nord3"} -"variable" = {fg="nord0"} - -"string" = "nord14" -"comment" = "nord7" -"namespace" = {fg="nord10"} -"attribute" = {fg="nord10"} -"type" = {fg="nord10"} - -"markup.heading" = {fg="nord0", modifiers=["bold"]} -"markup.raw" = {fg="nord10"} -"markup.link.url" = {fg="nord3"} -"markup.link.text" = {fg="nord12"} -"markup.quote" = {fg="nord3", modifiers=["italic"]} - -"diff.plus" = {fg = "nord14"} -"diff.delta" = {fg = "nord13"} -"diff.minus" = {fg = "nord11"} - - -[palette] -nord0 = "#2E3440" -nord1 = "#3B4252" -nord2 = "#434C5E" -nord3 = "#4C566A" -nord4 = "#D8DEE9" -nord5 = "#E5E9F0" -nord6 = "#ECEFF4" -nord7 = "#8FBCBB" -nord8 = "#88C0D0" -nord9 = "#81A1C1" -nord10 = "#5E81AC" -nord11 = "#BF616A" -nord12 = "#D08770" -nord13 = "#EBCB8B" -nord14 = "#A3BE8C" -nord15 = "#B48EAD" diff --git a/vendor/themes/nyxvamp-transparent.toml b/vendor/themes/nyxvamp-transparent.toml deleted file mode 100644 index 74ac6821..00000000 --- a/vendor/themes/nyxvamp-transparent.toml +++ /dev/null @@ -1,54 +0,0 @@ -# nyxvamp: override variant (fully transparent) -# author: zoedsoupe <[email protected]> - -inherits = "nyxvamp-veil" - -# Override UI elements for transparency while maintaining readability -"ui.background" = {} -"ui.statusline" = { fg = "status_fg" } -"ui.statusline.inactive" = { fg = "status_inactive_fg" } -"ui.cursorline.primary" = {} -"ui.virtual.ruler" = {} - -# Keep menus fully transparent but improve text contrast -"ui.menu" = { fg = "bright_text" } -"ui.menu.selected" = { fg = "selected_bright", bg = "selection_subtle", modifiers = ["bold"] } -"ui.menu.scroll" = { fg = "menu_scroll_fg" } - -# Popups remain transparent with better text -"ui.popup" = { fg = "bright_text" } -"ui.popup.info" = { fg = "bright_text" } - -# Improve picker visibility while keeping transparency -"ui.picker.header" = { fg = "header_bright", modifiers = ["bold", "underlined"] } -"ui.picker.header.column" = { fg = "header_bright" } -"ui.picker.header.column.active" = { fg = "active_column_fg", bg = "active_column_bg", modifiers = ["bold", "underlined"] } - -# Focus and selection improvements -"ui.text.focus" = { fg = "selected_bright", bg = "selection_subtle", modifiers = ["bold"] } -"ui.text.inactive" = { fg = "text_inactive_fg" } -"ui.text.directory" = { fg = "directory_fg", modifiers = ["italic"] } - -# Improve other UI elements -"ui.match_paren" = { fg = "match_paren_fg", bg = "match_paren_highlight_bg", modifiers = ["bold"] } -"ui.selection" = { bg = "selection_transparent" } -"ui.selection.primary" = { bg = "selection_primary_transparent" } - -# Add palette for transparent-specific colors -[palette] -# Much brighter colors for transparent backgrounds - maximum readability -bright_text = "#FFFFFF" # Pure white for maximum contrast on any background -selected_bright = "#FF6B9D" # Bright pink that's still muted but very visible -header_bright = "#5DADE2" # Bright blue but not harsh -directory_fg = "#E8D5FF" # Very bright lavender for directories -text_inactive_fg = "#A0A0A0" # Bright gray for inactive text - -# Stronger selection backgrounds for transparent theme -selection_subtle = "#DDA0DD" # 31% muted plum selection -match_paren_highlight_bg = "#DDA0DD" # 25% muted plum highlight -selection_transparent = "#483D8B" # 25% dark slate blue selection -selection_primary_transparent = "#483D8B" # 31% dark slate blue primary - -# Active column highlighting for better visibility -active_column_fg = "#1E1E2E" # Dark text for contrast -active_column_bg = "#87CEEB" # 50% sky blue background - matches header color diff --git a/vendor/themes/peachpuff.toml b/vendor/themes/peachpuff.toml deleted file mode 100644 index 06f62da8..00000000 --- a/vendor/themes/peachpuff.toml +++ /dev/null @@ -1,66 +0,0 @@ -# Author : geonove <[email protected]> -# License : Vim License - -"ui.menu" = { fg = "light-gray", bg = "gray" } -"ui.menu.selected" = { modifiers = ["reversed"] } -"ui.linenr" = "yellow" -"ui.popup" = { bg = "black" } -"ui.window" = { bg = "black" } -"ui.linenr.selected" = "light-yellow" -"ui.selection" = { fg = "gray", modifiers = ["reversed"] } -"ui.text.focus" = { fg = "black", bg = "white" } -"comment" = "light-green" -"comment.line" = "light-green" -"comment.line.documentation" = "light-green" -"comment.block" = "red" -"comment.block.documentation" = "red" -"ui.statusline" = { fg = "black", bg = "light-cyan" } -"ui.statusline.inactive" = { fg = "gray", bg = "black" } -"ui.help" = { fg = "white", bg = "black" } -"ui.cursor" = { fg = "light-gray", modifiers = ["reversed"] } -"ui.cursor.primary" = { fg = "light-gray", modifiers = ["reversed"] } -"ui.virtual.whitespace" = "light-gray" -"ui.virtual.jump-label" = { fg = "blue", modifiers = ["bold", "underlined"] } -"ui.virtual.ruler" = { bg = "black" } -"variable" = "white" -"constant.numeric" = "red" -"constant" = "white" -"constant.builtin" = "red" -"attribute" = "yellow" -"type" = "green" -"type.builtin" = "cyan" -"ui.cursor.match" = { fg = "light-gray", modifiers = ["reversed"] } -"string" = "red" -"variable.other.member" = "white" -"constant.character.escape" = "light-cyan" -#"function.builtin" = "cyan" -#"function.method" = "cyan" -#"function.method.private" = "cyan" -"function" = "cyan" -"constructor" = "cyan" -"special" = "light-blue" -"keyword" = "yellow" -"keyword.control.import" = "magenta" -"label" = "white" -"namespace" = "white" - -"markup.heading" = "light-magenta" -"markup.list" = "light-red" -"markup.bold" = { fg = "light-yellow", modifiers = ["bold"] } -"markup.italic" = { fg = "light-magenta", modifiers = ["italic"] } -"markup.strikethrough" = { modifiers = ["crossed_out"] } -"markup.link.url" = { fg = "yellow", modifiers = ["underlined"] } -"markup.link.text" = "light-red" -"markup.quote" = "light-cyan" -"markup.raw" = "light-green" - -"diff.plus" = "light-green" -"diff.delta" = "yellow" -"diff.minus" = "light-red" - -"diagnostic" = { modifiers = ["underlined"] } -"info" = "light-blue" -"hint" = "gray" -"debug" = "gray" -"warning" = "yellow" -"error" = "light-red" diff --git a/vendor/themes/seoul256-dark-hard.toml b/vendor/themes/seoul256-dark-hard.toml deleted file mode 100644 index fa918d29..00000000 --- a/vendor/themes/seoul256-dark-hard.toml +++ /dev/null @@ -1,16 +0,0 @@ -# Seoul256 Dark Hard -# Author : EricHenry -# Original Creator: https://github.com/junegunn/seoul256.vim - -inherits = "seoul256-dark" - -"ui.background" = { bg = "gray1" } -"ui.gutter" = { bg = "gray2" } -"ui.cursorline.primary" = { bg = "gray" } -"ui.gutter.selected" = { bg = "gray" } -"ui.linenr.selected" = { bg = "gray", fg = "magenta", modifiers = ["bold"] } -"ui.virtual.inlay-hint" = { fg = "gray4", modifiers = ["bold"] } - -"ui.help" = { bg = "gray" } -"ui.popup" = { bg = "gray" } -"ui.menu" = { bg = "gray" } diff --git a/vendor/themes/seoul256-dark-soft.toml b/vendor/themes/seoul256-dark-soft.toml deleted file mode 100644 index 548d0c18..00000000 --- a/vendor/themes/seoul256-dark-soft.toml +++ /dev/null @@ -1,15 +0,0 @@ -# Seoul256 Dark Soft -# Author : EricHenry -# Original Creator: https://github.com/junegunn/seoul256.vim - -inherits = "seoul256-dark" - -"ui.background" = { bg = "gray8" } -"ui.gutter" = { bg = "gray6" } -"ui.cursorline.primary" = { bg = "gray5" } -"ui.gutter.selected" = { bg = "gray5" } -"ui.linenr.selected" = { bg = "gray5", fg = "magenta", modifiers = ["bold"] } - -"ui.help" = { bg = "gray5" } -"ui.popup" = { bg = "gray5" } -"ui.menu" = { bg = "gray5" } diff --git a/vendor/themes/seoul256-dark.toml b/vendor/themes/seoul256-dark.toml deleted file mode 100644 index df9d43df..00000000 --- a/vendor/themes/seoul256-dark.toml +++ /dev/null @@ -1,161 +0,0 @@ -# Seoul256 Dark -# Author : EricHenry -# Original Creator: https://github.com/junegunn/seoul256.vim - -# Syntax highlighting configuration -"attribute" = { fg = "yellow" } -"comment" = { fg = "green1" } -"constant" = { fg = "blue5" } -"constant.numeric" = { fg = "yellow1" } -"constant.builtin.boolean" = { fg = "purple" } -"constant.character.escape" = { fg = "salmon" } -"constructor" = { fg = "yellow" } -"function" = { fg = "yellow2" } -"function.builtin" = { fg = "blue1" } -"function.method" = { fg = "salmon" } -"function.macro" = { fg = "yellow2" } -"keyword" = { fg = "mauve" } -"label" = { fg = "magenta" } -"namespace" = { fg = "cyan" } -"operator" = { fg = "yellow3" } -"punctuation" = { fg = "brown" } -"special" = { fg = "yellow2" } -"string" = { fg = "blue" } -"type" = { fg = "yellow" } -"type.builtin" = { fg = "salmon" } -"variable" = { fg = "white" } -"variable.builtin" = { fg = "salmon" } -"variable.parameter" = { fg = "white" } -"variable.other.member" = { fg = "white" } - -"markup.heading" = { fg = "salmon2", modifiers = ["bold"] } -"markup.raw.inline" = { fg = "green" } -"markup.bold" = { fg = "yellow1", modifiers = ["bold"] } -"markup.italic" = { fg = "magenta1", modifiers = ["italic"] } -"markup.strikethrough" = { modifiers = ["crossed_out"] } -"markup.list" = { fg = "salmon" } -"markup.quote" = { fg = "yellow" } -"markup.link.url" = { fg = "cyan", modifiers = ["underlined"] } -"markup.link.text" = { fg = "salmon2" } - -"diff.plus" = { fg = "green3" } -"diff.delta" = { fg = "blue1" } -"diff.minus" = { fg = "magenta3" } - -"diagnostic.info".underline = { color = "cyan", style = "curl" } -"diagnostic.hint".underline = { color = "green1", style = "curl" } -"diagnostic.warning".underline = { color = "yellow1", style = "curl" } -"diagnostic.error".underline = { color = "red", style = "curl" } -"diagnostic.unnecessary" = { modifiers = ["dim"] } -"diagnostic.deprecated" = { modifiers = ["crossed_out"] } -"info" = { fg = "blue2", modifiers = ["bold"] } -"hint" = { fg = "blue3", modifiers = ["bold"] } -"warning" = { fg = "yellow", modifiers = ["bold"] } -"error" = { fg = "red", modifiers = ["bold"] } - -"ui.background" = { bg = "gray4" } -"ui.gutter" = { bg = "gray5" } -"ui.gutter.selected" = { bg = "gray3" } -"ui.virtual" = { fg = "gray6" } -"ui.virtual.indent-guide" = { fg = "gray6" } -"ui.virtual.whitespace" = { fg = "gray6" } -"ui.virtual.ruler" = { bg = "gray5" } -"ui.virtual.inlay-hint" = { fg = "gray9", modifiers = ["bold"] } -"ui.virtual.jump-label" = { fg = "red", modifiers = ["bold"] } - -"ui.cursor" = { fg = "white", modifiers = ["reversed"] } -"ui.cursor.primary" = { fg = "white", modifiers = ["reversed"] } -"ui.cursor.match" = { bg = "gray4", modifiers = ["underlined"] } -"ui.cursor.insert" = { fg = "blue1" } - -"ui.selection" = { bg = "magenta2" } -"ui.selection.primary" = { bg = "blue4" } -"ui.cursorline.primary" = { bg = "gray3" } - -"ui.highlight" = { bg = "gray5" } -"ui.highlight.frameline" = { bg = "red" } - -"ui.linenr" = { fg = "yellow4" } -"ui.linenr.selected" = { bg = "gray3", fg = "magenta", modifiers = ["bold"] } - -"ui.statusline" = { fg = "magenta2", bg = "yellow2" } -"ui.statusline.inactive" = { fg = "gray6", bg = "black" } -"ui.statusline.normal" = { fg = "black", bg = "blue2" } -"ui.statusline.insert" = { fg = "black", bg = "green2" } -"ui.statusline.select" = { fg = "black", bg = "magenta" } - -"ui.text" = { fg = "white" } -"ui.text.focus" = { fg = "white", bg = "magenta2", modifiers = ["bold"] } - -"ui.help" = { fg = "white", bg = "gray3" } -"ui.popup" = { fg = "white", bg = "gray3" } -"ui.window" = { fg = "white" } -"ui.menu" = { fg = "white", bg = "gray3" } -"ui.menu.selected" = { fg = "white", bg = "magenta2" } -"ui.menu.scroll" = { fg = "gray7", bg = "gray6" } - -"ui.debug" = { fg = "red" } - -# Colors (Seoul256) -[palette] -black = '#000000' # Black -black1 = '#14161B' -red = '#d70000' # Red -green = '#afd75f' # Greenish Yellow -green1 = '#5f875f' # Greenish Gray -green2 = '#5f8700' # Green -green3 = '#87af87' -green4 = '#5f5f00' -yellow = '#d8af5f' # Yellow -yellow1 = '#ffd787' # Bright Yellow -yellow2 = '#d7d7af' # Yellowish -yellow3 = '#d7d787' # Yellow Dim -yellow4 = '#87875f' # Olive -yellow5 = '#6B5300' -blue = '#87afaf' # Light Blue -blue1 = '#5f87d7' # Bright Blue -blue2 = '#5f5f87' # Blue -blue3 = '#a6dbff' # Lightest Blue -blue4 = '#005f5f' # Blue Green -blue5 = '#5fafaf' # Dark Blue -blue6 = '#008787' -magenta = '#af5f5f' # Magenta -magenta1 = '#af5f87' # Soft Magenta -magenta2 = '#875f5f' # Dark Magenta -magenta3 = '#d7005f' # Darker Magenta -cyan = '#87d7d7' # Bright Cyan -cyan1 = '#afd7d7' -white = '#d0d0d0' # White -white1 = '#dadada' # White -purple = '#8787af' # Purple -brown = '#af875f' # Brownish -brown1 = '#875f00' # Brownish -orange = '#ff5f00' # Orange -salmon = '#ffaf87' # Salmon -salmon1 = '#d78787' # Salmon Bright -salmon2 = '#d7afaf' # Salmon Light -salmon3 = '#d7875f' # Yellowish -mauve = '#d75f87' # Mauve - -gray = '#121212' # Very Dark Gray -gray1 = '#1c1c1c' # Darker Gray -gray2 = '#262626' # Dark Gray -gray3 = '#303030' # Dark Medium Gray -gray4 = '#3a3a3a' # Medium Gray -gray5 = '#444444' # Lighter Medium Gray -gray6 = '#585858' # Light Gray -gray7 = '#626262' # Lighter Gray -gray8 = '#4e4e4e' # Even Lighter Gray -gray9 = '#5f5f5f' -gray10 = '#c6c6c6' -gray11 = '#eeeeee' -gray12 = '#e4e4e4' -gray13 = '#bcbcbc' - -# 233 = '#121212' -# 234 = '#1c1c1c' -# 235 = '#262626' -# 236 = '#303030' -# 237 = '#3a3a3a' # Default -# 238 = '#444444' -# 239 = '#4e4e4e' diff --git a/vendor/themes/seoul256-light-hard.toml b/vendor/themes/seoul256-light-hard.toml deleted file mode 100644 index c1f92fac..00000000 --- a/vendor/themes/seoul256-light-hard.toml +++ /dev/null @@ -1,16 +0,0 @@ -# Seoul256 Light Hard -# Author : EricHenry -# Original Creator: https://github.com/junegunn/seoul256.vim - -inherits = "seoul256-light" - -"ui.background" = { bg = "gray11" } -"ui.cursor.match" = { bg = "gray10", modifiers = ["underlined"] } -"ui.gutter" = { bg = "white1" } -"ui.cursorline.primary" = { bg = "gray12" } -"ui.gutter.selected" = { bg = "gray12" } -"ui.linenr.selected" = { bg = "gray12", fg = "magenta", modifiers = ["bold"] } - -"ui.help" = { fg = "black1", bg = "gray12" } -"ui.popup" = { fg = "black1", bg = "gray12" } -"ui.menu" = { fg = "black1", bg = "gray12" } diff --git a/vendor/themes/seoul256-light-soft.toml b/vendor/themes/seoul256-light-soft.toml deleted file mode 100644 index 0a25bb69..00000000 --- a/vendor/themes/seoul256-light-soft.toml +++ /dev/null @@ -1,16 +0,0 @@ -# Seoul256 Light Soft -# Author : EricHenry -# Original Creator: https://github.com/junegunn/seoul256.vim - -inherits = "seoul256-light" - -"ui.background" = { bg = "white" } -"ui.cursor.match" = { bg = "gray13", modifiers = ["underlined"] } -"ui.gutter" = { bg = "gray13" } -"ui.cursorline.primary" = { bg = "gray10" } -"ui.gutter.selected" = { bg = "gray10" } -"ui.linenr.selected" = { bg = "gray10", fg = "magenta", modifiers = ["bold"] } - -"ui.help" = { fg = "black1", bg = "gray10" } -"ui.popup" = { fg = "black1", bg = "gray10" } -"ui.menu" = { fg = "black1", bg = "gray10" } diff --git a/vendor/themes/seoul256-light.toml b/vendor/themes/seoul256-light.toml deleted file mode 100644 index 4f45a9d0..00000000 --- a/vendor/themes/seoul256-light.toml +++ /dev/null @@ -1,51 +0,0 @@ -# Seoul256 Light -# Author : EricHenry -# Original Creator: https://github.com/junegunn/seoul256.vim - -inherits = "seoul256-dark" - -"constructor" = { fg = "brown1" } -"constant.numeric" = { fg = "magenta2" } -"constant.builtin.boolean" = { fg = "mauve" } -"constant.character.escape" = { fg = "salmon3" } -"function" = { fg = "green4" } -"function.builtin" = { fg = "blue1" } -"function.method" = { fg = "salmon" } -"function.macro" = { fg = "green4" } -"namespace" = { fg = "blue4" } -"operator" = { fg = "brown1" } -"punctuation" = { fg = "brown1" } -"special" = { fg = "green4" } -"string" = { fg = "blue6" } -"type" = { fg = "brown1" } -"type.builtin" = { fg = "salmon3" } -"variable" = { fg = "black1" } -"variable.builtin" = { fg = "salmon3" } -"variable.parameter" = { fg = "black1" } -"variable.other.member" = { fg = "black1" } - -"diagnostic.info".underline = { color = "green1", style = "curl" } -"info" = { fg = "green1", modifiers = ["bold"] } -"hint" = { fg = "blue", modifiers = ["bold"] } -"warning" = { fg = "yellow5", modifiers = ["bold"] } - -"ui.background" = { bg = "white1" } -"ui.cursor" = { fg = "gray4", modifiers = ["reversed"] } -"ui.cursor.primary" = { fg = "gray4", modifiers = ["reversed"] } -"ui.cursor.match" = { bg = "gray13", modifiers = ["underlined"] } -"ui.cursor.insert" = { fg = "blue1" } -"ui.cursorline.primary" = { bg = "white" } -"ui.gutter" = { bg = "gray10" } -"ui.gutter.selected" = { bg = "white" } -"ui.linenr.selected" = { bg = "white", fg = "magenta", modifiers = ["bold"] } -"ui.virtual.inlay-hint" = { fg = "gray6", modifiers = ["bold"] } - -"ui.selection" = { bg = "yellow2" } -"ui.selection.primary" = { bg = "cyan1" } - -"ui.text" = { fg = "black1" } - -"ui.help" = { fg = "black1", bg = "white" } -"ui.popup" = { fg = "black1", bg = "white" } -"ui.menu" = { fg = "black1", bg = "white" } - diff --git a/vendor/themes/term16_dark.toml b/vendor/themes/term16_dark.toml deleted file mode 100644 index b34a4b4e..00000000 --- a/vendor/themes/term16_dark.toml +++ /dev/null @@ -1,80 +0,0 @@ -# Author: dgkf - -"ui.background" = { } -"ui.background.separator" = { fg = "red" } -"ui.cursor" = { fg = "light-gray", modifiers = ["reversed"] } -"ui.cursor.match" = { fg = "light-yellow", modifiers = ["reversed"] } -"ui.cursor.primary" = { fg = "light-gray", modifiers = ["reversed"] } -"ui.cursor.secondary" = { fg = "gray", modifiers = ["reversed"] } -"ui.cursorline.primary" = { bg = "black" } -"ui.gutter" = { } -"ui.gutter.selected" = { bg = "black" } -"ui.help" = { fg = "white", bg = "black" } -"ui.linenr" = { fg = "gray", modifiers = ["bold"] } -"ui.linenr.selected" = { fg = "white", modifiers = ["bold"] } -"ui.menu" = { fg = "light-gray", bg = "gray" } -"ui.menu.selected" = { modifiers = ["reversed"] } -"ui.menu.scroll" = { fg = "light-blue" } -"ui.popup" = { bg = "black" } -"ui.selection" = { bg = "gray" } -"ui.statusline" = { fg = "light-gray", bg = "gray" } -"ui.statusline.inactive" = { bg = "black" } -"ui.virtual" = { bg = "black" } -"ui.virtual.indent-guide" = { fg = "gray" } -"ui.virtual.whitespace" = {} -"ui.virtual.wrap" = { fg = "gray" } -"ui.virtual.inlay-hint" = { fg = "light-gray", modifiers = ["dim", "italic"] } -"ui.virtual.inlay-hint.parameter" = { fg = "yellow", modifiers = ["dim", "italic"] } -"ui.virtual.inlay-hint.type" = { fg = "blue", modifiers = ["dim", "italic"] } -"ui.window" = { fg = "gray", modifiers = ["dim"] } - -"comment" = { fg = "light-gray", modifiers = ["italic", "dim"] } - -"attribute" = "light-yellow" -"constant" = { fg = "light-yellow", modifiers = ["bold", "dim"] } -"constant.numeric" = "light-yellow" -"constant.character.escape" = "light-cyan" -"constructor" = "light-blue" -"function" = "light-blue" -"function.macro" = "light-red" -"function.builtin" = { fg = "light-blue", modifiers = ["bold"] } -"tag" = { fg = "light-magenta", modifiers = ["dim"] } -"type" = "blue" -"type.builtin" = { fg = "blue", modifiers = ["bold"] } -"type.enum.variant" = { fg = "light-magenta", modifiers = ["dim"] } -"string" = "light-green" -"special" = "light-red" -"variable" = "white" -"variable.parameter" = { fg = "light-yellow", modifiers = ["italic"] } -"variable.other.member" = "light-green" -"keyword" = "light-magenta" -"keyword.control.exception" = "light-red" -"keyword.directive" = { fg = "light-yellow", modifiers = ["bold"] } -"keyword.operator" = { fg = "light-blue", modifiers = ["bold"] } -"label" = "light-green" -"namespace" = { fg = "blue", modifiers = ["dim"] } - -"markup.heading" = "light-blue" -"markup.list" = "light-red" -"markup.bold" = { fg = "light-cyan", modifiers = ["bold"] } -"markup.italic" = { fg = "light-blue", modifiers = ["italic"] } -"markup.strikethrough" = { modifiers = ["crossed_out"] } -"markup.link.url" = { fg = "magenta", modifiers = ["dim"] } -"markup.link.text" = "light-magenta" -"markup.quote" = "light-cyan" -"markup.raw" = "light-green" - -"diff.plus" = "light-green" -"diff.delta" = "light-yellow" -"diff.minus" = "light-red" - -"diagnostic.hint" = { underline = { color = "gray", style = "curl" } } -"diagnostic.info" = { underline = { color = "light-cyan", style = "curl" } } -"diagnostic.warning" = { underline = { color = "light-yellow", style = "curl" } } -"diagnostic.error" = { underline = { color = "light-red", style = "curl" } } - -"info" = "light-cyan" -"hint" = { fg = "light-gray", modifiers = ["dim"] } -"debug" = "white" -"warning" = "yellow" -"error" = "light-red" diff --git a/vendor/themes/term16_light.toml b/vendor/themes/term16_light.toml deleted file mode 100644 index a02784b2..00000000 --- a/vendor/themes/term16_light.toml +++ /dev/null @@ -1,85 +0,0 @@ -# Author: dgkf -# Modified from base16_terminal, Author: NNB <[email protected]> - -inherits = "term16_dark" - -"ui.background.separator" = "light-gray" -"ui.cursor" = { fg = "gray", modifiers = ["reversed"] } -"ui.cursor.match" = { fg = "yellow", modifiers = ["reversed"] } -"ui.cursor.primary" = { fg = "black", modifiers = ["reversed"] } -"ui.cursor.secondary" = { fg = "gray", modifiers = ["reversed"] } -"ui.cursorline.primary" = { bg = "white" } -"ui.cursorline.secondary" = { bg = "white" } -"ui.cursorcolumn.primary" = { bg = "white" } -"ui.cursorcolumn.secondary" = { bg = "white" } -"ui.gutter" = { } -"ui.gutter.selected" = { bg = "white" } -"ui.linenr" = { fg = "gray", modifiers = ["dim"] } -"ui.linenr.selected" = { fg = "black", modifiers = ["bold"] } -"ui.menu" = { bg = "light-gray" } -"ui.menu.selected" = { fg = "white", bg = "gray", modifiers = ["bold"] } -"ui.menu.scroll" = { fg = "light-blue" } -"ui.help" = { } -"ui.text" = { } -"ui.text.focus" = { } -"ui.popup" = { bg = "white" } -"ui.selection" = { bg = "light-gray" } -"ui.statusline" = { bg = "white" } -"ui.statusline.inactive" = { fg = "gray", modifiers = ["underlined"] } -"ui.statusline.insert" = { fg = "white", bg = "blue" } -"ui.statusline.select" = { fg = "white", bg = "magenta" } -"ui.virtual" = { fg = "light-gray" } -"ui.virtual.indent-guide" = { fg = "light-gray", modifiers = ["dim"] } -"ui.virtual.ruler" = { bg = "white" } -"ui.virtual.wrap" = { fg = "light-gray" } -"ui.window" = { fg = "gray", modifiers = ["dim"] } - -"comment" = { fg = "gray", modifiers = ["italic", "dim"] } - -"attribute" = "yellow" -"constant" = { fg = "yellow", modifiers = ["bold"] } -"constant.numeric" = { fg = "yellow", modifiers = ["bold"] } -"constant.character.escape" = "blue" -"constructor" = "blue" -"function" = "blue" -"function.builtin" = { fg = "blue", modifiers = ["bold"] } -"tag" = { fg = "magenta", modifiers = ["dim"] } -"type" = "blue" -"type.builtin" = { fg = "blue", modifiers = ["bold"] } -"type.enum.variant" = { fg = "magenta", modifiers = ["dim"] } -"string" = "green" -"special" = "red" -"variable" = { fg = "black", modifiers = ["dim"] } -"variable.parameter" = { fg = "red", modifiers = ["italic", "dim"] } -"variable.other.member" = "green" -"keyword" = "magenta" -"keyword.control.exception" = "red" -"keyword.directive" = { fg = "yellow", modifiers = ["bold"] } -"keyword.operator" = { fg = "blue", modifiers = ["bold"] } -"label" = "red" -"namespace" = { fg = "blue", modifiers = ["dim"] } - -"markup.heading" = { fg = "blue", modifiers = ["bold"] } -"markup.list" = "red" -"markup.bold" = { fg = "cyan", modifiers = ["bold"] } -"markup.italic" = { fg = "blue", modifiers = ["italic"] } -"markup.strikethrough" = { modifiers = ["crossed_out"] } -"markup.link.url" = { fg = "magenta", modifiers = ["dim"] } -"markup.link.text" = { fg = "magenta", modifiers = ["bold"] } -"markup.quote" = "cyan" -"markup.raw" = "blue" - -"diff.plus" = "green" -"diff.delta" = "yellow" -"diff.minus" = "red" - -"diagnostic.hint" = { underline = { color = "cyan", style = "curl" } } -"diagnostic.info" = { underline = { color = "blue", style = "curl" } } -"diagnostic.warning" = { underline = { color = "yellow", style = "curl" } } -"diagnostic.error" = { underline = { color = "red", style = "curl" } } - -"hint" = "cyan" -"info" = "blue" -"debug" = "light-yellow" -"warning" = "yellow" -"error" = "red" diff --git a/vendor/themes/tokyonight.toml b/vendor/themes/tokyonight.toml deleted file mode 100644 index 2d41764c..00000000 --- a/vendor/themes/tokyonight.toml +++ /dev/null @@ -1,136 +0,0 @@ -# Author: Paul Graydon <[email protected]> - -attribute = { fg = "cyan" } -comment = { fg = "comment", modifiers = ["italic"] } -"comment.block.documentation" = { fg = "yellow" } -"comment.line.documentation" = { fg = "yellow" } -constant = { fg = "orange" } -"constant.builtin" = { fg = "aqua" } -"constant.character" = { fg = "light-green" } -"constant.character.escape" = { fg = "magenta" } -constructor = { fg = "aqua" } -function = { fg = "blue", modifiers = ["italic"] } -"function.builtin" = { fg = "aqua" } -"function.macro" = { fg = "cyan" } -"function.special" = { fg = "cyan" } -keyword = { fg = "purple", modifiers = ["italic"] } -"keyword.control" = { fg = "magenta" } -"keyword.control.import" = { fg = "cyan" } -"keyword.control.return" = { fg = "purple", modifiers = ["italic"] } -"keyword.directive" = { fg = "cyan" } -"keyword.function" = { fg = "magenta" } -"keyword.operator" = { fg = "magenta" } -label = { fg = "blue" } -namespace = { fg = "cyan" } -operator = { fg = "turquoise" } -punctuation = { fg = "turquoise" } -special = { fg = "aqua" } -string = { fg = "light-green" } -"string.regexp" = { fg = "light-cyan" } -"string.special" = { fg = "aqua" } -tag = { fg = "magenta" } -type = { fg = "aqua" } -"type.builtin" = { fg = "aqua" } -"type.enum.variant" = { fg = "orange" } -variable = { fg = "fg" } -"variable.builtin" = { fg = "red" } -"variable.other.member" = { fg = "green" } -"variable.parameter" = { fg = "yellow", modifiers = ["italic"] } - -"markup.bold" = { modifiers = ["bold"] } -"markup.heading" = { fg = "blue", modifiers = ["bold"] } -"markup.heading.completion" = { bg = "bg-menu", fg = "fg" } -"markup.heading.hover" = { bg = "fg-selected" } -"markup.italic" = { modifiers = ["italic"] } -"markup.link" = { fg = "blue", underline = { style = "line" } } -"markup.link.label" = { fg = "teal" } -"markup.link.text" = { fg = "teal" } -"markup.link.url" = { underline = { style = "line" } } -"markup.list" = { fg = "orange", modifiers = ["bold"] } -"markup.normal.completion" = { fg = "comment" } -"markup.normal.hover" = { fg = "fg-dark" } -"markup.raw" = { fg = "teal" } -"markup.raw.inline" = { bg = "black", fg = "blue" } -"markup.strikethrough" = { modifiers = ["crossed_out"] } - -"diff.delta" = { fg = "change" } -"diff.delta.moved" = { fg = "blue" } -"diff.minus" = { fg = "delete" } -"diff.plus" = { fg = "add" } - -error = { fg = "error" } -warning = { fg = "yellow" } -info = { fg = "info" } -hint = { fg = "hint" } -"diagnostic.error" = { underline = { style = "curl", color = "error" } } -"diagnostic.warning" = { underline = { style = "curl", color = "yellow"} } -"diagnostic.info" = { underline = { style = "curl", color = "info"} } -"diagnostic.hint" = { underline = { style = "curl", color = "hint" } } -"diagnostic.unnecessary" = { modifiers = ["dim"] } -"diagnostic.deprecated" = { modifiers = ["crossed_out"] } - -"ui.background" = { bg = "bg", fg = "fg" } -"ui.cursor" = { modifiers = ["reversed"] } -"ui.cursor.match" = { fg = "orange", modifiers = ["bold"] } -"ui.cursorline.primary" = { bg = "bg-menu" } -"ui.help" = { bg = "bg-menu", fg = "fg" } -"ui.linenr" = { fg = "fg-gutter" } -"ui.linenr.selected" = { fg = "fg-linenr" } -"ui.menu" = { bg = "bg-menu", fg = "fg" } -"ui.menu.selected" = { bg = "fg-selected" } -"ui.popup" = { bg = "bg-menu", fg = "border-highlight" } -"ui.selection" = { bg = "bg-selection" } -"ui.selection.primary" = { bg = "bg-selection" } -"ui.statusline" = { bg = "bg-menu", fg = "fg-dark" } -"ui.statusline.inactive" = { bg = "bg-menu", fg = "fg-gutter" } -"ui.statusline.normal" = { bg = "blue", fg = "bg", modifiers = ["bold"] } -"ui.statusline.insert" = { bg = "light-green", fg = "bg", modifiers = ["bold"] } -"ui.statusline.select" = { bg = "magenta", fg = "bg", modifiers = ["bold"] } -"ui.text" = { fg = "fg" } -"ui.text.focus" = { bg = "bg-focus" } -"ui.text.inactive" = { fg = "comment", modifiers = ["italic"] } -"ui.text.info" = { bg = "bg-menu", fg = "fg" } -"ui.text.directory" = { fg = "cyan" } -"ui.virtual.ruler" = { bg = "fg-gutter" } -"ui.virtual.whitespace" = { fg = "fg-gutter" } -"ui.virtual.inlay-hint" = { bg = "bg-inlay", fg = "teal" } -"ui.virtual.jump-label" = { fg = "orange", modifiers = ["bold"] } -"ui.window" = { fg = "border", modifiers = ["bold"] } - -[palette] -red = "#f7768e" -orange = "#ff9e64" -yellow = "#e0af68" -light-green = "#9ece6a" -green = "#73daca" -aqua = "#2ac3de" -teal = "#1abc9c" -turquoise = "#89ddff" -light-cyan = "#b4f9f8" -cyan = "#7dcfff" -blue = "#7aa2f7" -purple = "#9d7cd8" -magenta = "#bb9af7" -comment = "#565f89" -black = "#414868" - -add = "#449dab" -change = "#6183bb" -delete = "#914c54" - -error = "#db4b4b" -info = "#0db9d7" -hint = "#1abc9c" - -fg = "#c0caf5" -fg-dark = "#a9b1d6" -fg-gutter = "#3b4261" -fg-linenr = "#737aa2" -fg-selected = "#343a55" -border = "#15161e" -border-highlight = "#27a1b9" -bg = "#1a1b26" -bg-inlay = "#1a2b32" -bg-selection = "#283457" -bg-menu = "#16161e" -bg-focus = "#292e42" diff --git a/vendor/themes/ttox.toml b/vendor/themes/ttox.toml deleted file mode 100644 index 0bc964b4..00000000 --- a/vendor/themes/ttox.toml +++ /dev/null @@ -1,33 +0,0 @@ -# Author : Tomas Ruud <[email protected]> - -"ui.selection" = { fg = "white", bg = "gray" } -"ui.cursor" = { fg = "black", bg = "light-gray" } -"ui.cursor.primary" = { fg = "black", bg = "light-gray" } -"ui.cursor.match" = { modifiers = ["underlined"] } -"ui.background.separator" = "gray" -"ui.linenr" = "gray" -"ui.linenr.selected" = { fg = "white", bg = "gray" } -"ui.statusline" = { bg = "black", fg = "white" } -"ui.menu" = { fg = "white", bg = "black" } -"ui.menu.selected" = { bg = "light-gray", fg = "black" } -"ui.popup" = { fg = "white", bg = "black" } -"ui.help" = { fg = "white", bg = "black" } -"ui.virtual.ruler" = { underline = { style = "line"} } - -"string" = { bg = "light-green", fg = "black" } -"constant" = { bg = "light-cyan", fg = "black" } -"comment" = { bg = "light-magenta", fg = "black" } - -"diff.plus" = "green" -"diff.minus" = "red" -"diff.delta" = "gray" - -"warning" = { fg = "black", bg = "light-yellow" } -"error" = { fg = "black", bg = "light-red" } -"hint" = { fg = "black", bg = "light-blue" } - -"diagnostic.warning" = { fg = "black", bg = "light-yellow" } -"diagnostic.error" = { fg = "black", bg = "light-red" } -"diagnostic.hint" = { fg = "black", bg = "light-blue" } -"diagnostic.unnecessary" = { modifiers = ["dim"] } -"diagnostic.deprecated" = { modifiers = ["crossed_out"] } diff --git a/vendor/themes/ttox_soft.toml b/vendor/themes/ttox_soft.toml deleted file mode 100644 index b4fe71cb..00000000 --- a/vendor/themes/ttox_soft.toml +++ /dev/null @@ -1,37 +0,0 @@ -# Author : Samuel Guyah <[email protected]> - -"ui.selection" = { fg = "white", bg = "gray" } -"ui.cursor" = { fg = "black", bg = "light-gray" } -"ui.cursor.primary" = { fg = "black", bg = "light-gray" } -"ui.cursor.match" = { modifiers = ["underlined"] } -"ui.background.separator" = "gray" -"ui.linenr" = "gray" -"ui.linenr.selected" = { fg = "white", bg = "gray" } -"ui.statusline" = { bg = "black", fg = "white" } -"ui.menu" = { fg = "white", bg = "black" } -"ui.menu.selected" = { bg = "light-gray", fg = "black" } -"ui.popup" = { fg = "white", bg = "black" } -"ui.help" = { fg = "white", bg = "black" } -"ui.virtual.ruler" = { underline = { style = "line" } } -"ui.bufferline" = { fg = "white", bg = "black" } -"ui.bufferline.active" = { fg = "black", bg = "white" } -"ui.bufferline.background" = { bg = "black" } - - -"string" = { fg = "light-green" } -"constant" = { fg = "light-cyan" } -"comment" = { fg = "light-magenta" } - -"diff.plus" = "green" -"diff.minus" = "red" -"diff.delta" = "gray" - -"warning" = { fg = "light-yellow" } -"error" = { fg = "light-red" } -"hint" = { fg = "light-blue" } - -"diagnostic.warning" = { fg = "light-yellow" } -"diagnostic.error" = { fg = "light-red" } -"diagnostic.hint" = { fg = "light-blue" } -"diagnostic.unnecessary" = { modifiers = ["dim"] } -"diagnostic.deprecated" = { modifiers = ["crossed_out"] } diff --git a/vendor/themes/vesper-transparent.toml b/vendor/themes/vesper-transparent.toml deleted file mode 100644 index c02a3c7d..00000000 --- a/vendor/themes/vesper-transparent.toml +++ /dev/null @@ -1,25 +0,0 @@ -# Author: IwantHappiness <[email protected]> - -inherits = "vesper" - -"markup.raw" = { bg = "white" } -"markup.normal" = { bg = "white" } -"markup.heading" = { bg = "white" } - -# UI -"ui.window" = { bg = "white" } -"ui.background" = { fg = "white" } - -[palette] -red = "#ff8080" -gray = "#A0A0A0" -white = "#ffffff" -beige = "#ffc799" -black = "#101010" -dim-gray = "#505050" -dark-gray = "#1C1C1C" -bright-green = "#99FFE4" - -cursor = "#aeafad" -comment = "#8b8b8b" -bg-selection = "#666666" diff --git a/vendor/themes/zed_onedark.toml b/vendor/themes/zed_onedark.toml deleted file mode 100644 index f3078de5..00000000 --- a/vendor/themes/zed_onedark.toml +++ /dev/null @@ -1,114 +0,0 @@ -# Zed OneDark -# Author : EricHenry - -"attribute" = { fg = "yellow" } -"comment" = { fg = "light-gray", modifiers = ["italic"] } -"constant" = { fg = "yellow" } -"constant.numeric" = { fg = "orange" } -"constant.builtin" = { fg = "yellow" } -"constant.builtin.boolean" = { fg = "yellow" } -"constant.character.escape" = { fg = "yellow" } -"constructor" = { fg = "blue" } -"function" = { fg = "blue" } -"function.builtin" = { fg = "blue" } -"function.method" = { fg = "blue" } -"function.macro" = { fg = "blue" } -"keyword" = { fg = "purple" } -"label" = { fg = "ui-text" } -"namespace" = { fg = "ui-text" } -"operator" = { fg = "ui-text" } -"puncuation" = { fg = "ui-text" } -"special" = { fg = "ui-text" } -"string" = { fg = "green" } -"type" = { fg = "cyan" } -"variable.builtin" = { fg = "orange" } -"variable.parameter" = { fg = "ui-text" } -"variable.other.member" = { fg = "red" } - -"markup.heading" = { fg = "red" } -"markup.raw.inline" = { fg = "green" } -"markup.bold" = { fg = "yellow", modifiers = ["bold"] } -"markup.italic" = { fg = "purple", modifiers = ["italic"] } -"markup.strikethrough" = { modifiers = ["crossed_out"] } -"markup.list" = { fg = "red" } -"markup.quote" = { fg = "yellow" } -"markup.link.url" = { fg = "cyan", modifiers = ["underlined"] } -"markup.link.text" = { fg = "purple" } - -"diff.plus" = "green" -"diff.delta" = "yellow" -"diff.minus" = "red" - -"diagnostic.info".underline = { color = "blue", style = "curl" } -"diagnostic.hint".underline = { color = "green", style = "curl" } -"diagnostic.warning".underline = { color = "yellow", style = "curl" } -"diagnostic.error".underline = { color = "red", style = "curl" } -"diagnostic.unnecessary" = { modifiers = ["dim"] } -"diagnostic.deprecated" = { modifiers = ["crossed_out"] } -"info" = { fg = "blue", modifiers = ["bold"] } -"hint" = { fg = "green", modifiers = ["bold"] } -"warning" = { fg = "yellow", modifiers = ["bold"] } -"error" = { fg = "red", modifiers = ["bold"] } - -"ui.background" = { bg = "ui-text-reversed" } -"ui.gutter" = { bg = "gray" } -"ui.virtual" = { fg = "faint-gray" } -"ui.virtual.indent-guide" = { fg = "faint-gray" } -"ui.virtual.whitespace" = { fg = "light-gray" } -"ui.virtual.ruler" = { bg = "gray" } -"ui.virtual.inlay-hint" = { fg = "blue-gray", modifiers = ["bold"] } -"ui.virtual.jump-label" = { fg = "purple", modifiers = ["bold", "italic"] } - -"ui.cursor" = { fg = "white", modifiers = ["reversed"] } -"ui.cursor.primary" = { fg = "white", modifiers = ["reversed"] } -"ui.cursor.match" = { fg = "blue", modifiers = ["underlined"] } -# Malformed ANSI: dark-blue. See 'https://github.com/helix-editor/helix/issues/5709' -# "ui.cursor.insert" = { fg = "dark-blue" } - -"ui.selection" = { bg = "faint-gray" } -"ui.selection.primary" = { bg = "#293b5b" } -"ui.cursorline.primary" = { bg = "gray" } - -"ui.highlight" = { bg = "gray" } -"ui.highlight.frameline" = { bg = "#97202a" } - -"ui.linenr" = { fg = "linenr" } -"ui.linenr.selected" = { fg = "ui-text" } - -"ui.statusline" = { fg = "white", bg = "gray" } -"ui.statusline.inactive" = { fg = "light-gray", bg = "black" } -"ui.statusline.normal" = { fg = "black", bg = "blue" } -"ui.statusline.insert" = { fg = "black", bg = "green" } -"ui.statusline.select" = { fg = "black", bg = "purple" } - -"ui.text" = { fg = "ui-text" } -"ui.text.focus" = { fg = "white", bg = "gray", modifiers = ["bold"] } - -"ui.help" = { fg = "white", bg = "gray" } -"ui.popup" = { bg = "gray" } -"ui.window" = { fg = "gray" } -"ui.menu" = { fg = "ui-text", bg = "gray" } -"ui.menu.selected" = { fg = "ui-text-reversed", bg = "blue" } -"ui.menu.scroll" = { fg = "ui-text", bg = "light-gray" } - -"ui.debug" = { fg = "red" } - -[palette] -yellow = "#dfc184" -orange = "#bf956a" -blue = "#73ade9" -blue-gray = "#5a6f89" -red = "#d07277" -purple = "#b477cf" -green = "#a1c181" -cyan = "#6eb4bf" -gray = "#2f343e" -light-gray = "#5d636f" -faint-gray = "#3B4048" -linenr = "#5d636f" - -white = "#c8ccd4" -black = "#282c33" -# black and white are used for a lot of the UI text -ui-text = "#c8ccd4" #white -ui-text-reversed = "#282c33" #black diff --git a/vendor/themes/zed_onelight.toml b/vendor/themes/zed_onelight.toml deleted file mode 100644 index 704b4db1..00000000 --- a/vendor/themes/zed_onelight.toml +++ /dev/null @@ -1,62 +0,0 @@ -# Zed OneLight -# Author : EricHenry - -inherits = "zed_onedark" - -"attribute" = { fg = "green" } -"constant" = { fg = "green" } -"constant.numeric" = { fg = "gold" } -"constant.builtin" = { fg = "gold" } -"constant.builtin.boolean" = { fg = "green" } -"variable.builtin" = { fg = "gold" } -"variable.other.member" = { fg = "orange" } - -"markup.heading" = { fg = "orange" } -"markup.list" = { fg = "orange" } -"markup.quote" = { fg = "green" } - -"ui.cursor" = { fg = "dark-blue", modifiers = ["reversed"] } -"ui.cursor.primary" = { fg = "dark-blue", modifiers = ["reversed"] } -"ui.cursor.insert" = { fg = "dark-blue" } - -"ui.selection.primary" = { bg = "blue-gray" } -"ui.cursorline.primary" = { bg = "faint-gray" } - -"ui.virtual.inlay-hint" = { fg = "violet", modifiers = ["bold"] } - -"ui.statusline" = { fg = "black", bg = "gray" } -"ui.statusline.inactive" = { fg = "white", bg = "light-black" } -"ui.statusline.normal" = { fg = "white", bg = "blue" } -"ui.statusline.insert" = { fg = "white", bg = "green" } -"ui.statusline.select" = { fg = "white", bg = "purple" } - -"ui.text.focus" = { fg = "ui-text", bg = "gray", modifiers = ["bold"] } - -"ui.help" = { fg = "black", bg = "dark-gray" } -"ui.popup" = { bg = "dark-gray" } -"ui.window" = { fg = "dark-gray" } - -[palette] -yellow = "#dabb7e" -red = "#d36151" -orange = "#d3604f" -blue = "#5b79e3" -dark-blue = "#4a62db" -purple = "#a449ab" -violet = "#9294be" -green = "#649f57" -gold = "#ad6e25" -cyan = "#3882b7" -light-black = "#2e323a" -# gray = "#dcdcdd" -gray = "#eaeaed" -dark-gray = "#ebebec" -light-gray = "#a2a3a7" -blue-gray = "#d9dcea" -faint-gray = "#efefef" -linenr = "#b0b1b3" - -black = "#383a41" -white = "#fafafa" -ui-text = "#383a41" -ui-text-reversed = "#fafafa" |
