grep names each file once with its lines under it, the changes header keeps its position whole, and the bash teardown tests stop flaking on macOS

- grep groups its lines under each file, the layout of rg --heading, rather than repeating the
  path on every line: 9–28% fewer bytes than rg -n on the searches measured. scopes: true labels
  each run of matches with the function or type around it.
- The changes pane's header shortens the path rather than cut its position, and keeps a gap
  before the FILE / DIFF switch.
- The bash teardown tests count a loop still running as a survivor, not one write already under
  way when the kill landed.
This commit is contained in:
Evan Whittaker
2026-10-18 09:18:05 -05:00
parent 7b460ab9c7
commit 933c1195b4
23 changed files with 673 additions and 163 deletions

View File

@@ -5,14 +5,14 @@
<rect x="100" y="0" width="10" height="22" fill="#aa9467"/>
<rect x="110" y="0" width="10" height="22" fill="#786849"/>
<rect x="120" y="0" width="10" height="22" fill="#453c2c"/>
<rect x="860" y="0" width="70" height="22" fill="#2f2d2a"/>
<rect x="930" y="0" width="10" height="22" fill="#282623"/>
<rect x="940" y="0" width="10" height="22" fill="#211f1c"/>
<rect x="950" y="0" width="10" height="22" fill="#191715"/>
<rect x="970" y="0" width="70" height="22" fill="#8c7a55"/>
<rect x="1040" y="0" width="10" height="22" fill="#6e6043"/>
<rect x="1050" y="0" width="10" height="22" fill="#4f4532"/>
<rect x="1060" y="0" width="10" height="22" fill="#312b20"/>
<rect x="840" y="0" width="70" height="22" fill="#2f2d2a"/>
<rect x="910" y="0" width="10" height="22" fill="#282623"/>
<rect x="920" y="0" width="10" height="22" fill="#211f1c"/>
<rect x="930" y="0" width="10" height="22" fill="#191715"/>
<rect x="950" y="0" width="70" height="22" fill="#8c7a55"/>
<rect x="1020" y="0" width="10" height="22" fill="#6e6043"/>
<rect x="1030" y="0" width="10" height="22" fill="#4f4532"/>
<rect x="1040" y="0" width="10" height="22" fill="#312b20"/>
<rect x="0" y="88" width="70" height="22" fill="#8c7a55"/>
<rect x="70" y="88" width="10" height="22" fill="#6e6043"/>
<rect x="80" y="88" width="10" height="22" fill="#4f4532"/>
@@ -552,7 +552,7 @@
<path fill="none" stroke="#ddc084" stroke-width="1.25" d="M1705.00 1089.00L1710.00 1089.00M1705.00 1089.00L1700.00 1089.00"/>
<path fill="none" stroke="#ddc084" stroke-width="1.25" d="M1715.00 1078.00Q1715.00 1089.00 1710.00 1089.00"/>
</g>
<text x="0" y="17.0" textLength="1720" lengthAdjust="spacingAndGlyphs" xml:space="preserve"><tspan> </tspan><tspan fill="#12100e" font-weight="700">PROJECT</tspan><tspan> </tspan><tspan> </tspan><tspan> </tspan><tspan> </tspan><tspan fill="#faaa51">M </tspan><tspan fill="#e4dfd6" font-weight="700">crates/luxe-tui/src/view/dock.rs</tspan><tspan fill="#81caa0"> +48</tspan><tspan fill="#e68485"> −9</tspan><tspan> </tspan><tspan fill="#97938c">FILE</tspan><tspan> </tspan><tspan fill="#e4dfd6" font-weight="700">DIFF</tspan><tspan> </tspan><tspan fill="#97938c">8 of </tspan><tspan> </tspan><tspan> </tspan><tspan> </tspan></text>
<text x="0" y="17.0" textLength="1720" lengthAdjust="spacingAndGlyphs" xml:space="preserve"><tspan> </tspan><tspan fill="#12100e" font-weight="700">PROJECT</tspan><tspan> </tspan><tspan> </tspan><tspan> </tspan><tspan> </tspan><tspan fill="#faaa51">M </tspan><tspan fill="#e4dfd6" font-weight="700">…s/luxe-tui/src/view/dock.rs</tspan><tspan fill="#81caa0"> +48</tspan><tspan fill="#e68485"> −9</tspan><tspan> </tspan><tspan fill="#97938c">FILE</tspan><tspan> </tspan><tspan fill="#e4dfd6" font-weight="700">DIFF</tspan><tspan> </tspan><tspan fill="#97938c">8 of 14</tspan><tspan> </tspan><tspan> </tspan><tspan> </tspan></text>
<text x="0" y="39.0" textLength="1720" lengthAdjust="spacingAndGlyphs" xml:space="preserve"><tspan fill="#e4dfd6">󰉋 luxe </tspan><tspan> </tspan><tspan> </tspan><tspan> </tspan><tspan> </tspan><tspan> </tspan><tspan> </tspan><tspan> </tspan></text>
<text x="0" y="61.0" textLength="1720" lengthAdjust="spacingAndGlyphs" xml:space="preserve"><tspan fill="#97938c">󰘬 feature/context-dock *</tspan><tspan> </tspan><tspan> </tspan><tspan> </tspan><tspan> </tspan><tspan fill="#ddc084">@@ -140,6 +140,8 @@ fn change_lines</tspan><tspan> </tspan><tspan> </tspan><tspan> </tspan></text>
<text x="0" y="83.0" textLength="1720" lengthAdjust="spacingAndGlyphs" xml:space="preserve"><tspan> </tspan><tspan> </tspan><tspan> </tspan><tspan> </tspan><tspan fill="#97938c">140 140 </tspan><tspan> </tspan><tspan fill="#d2a5cd">let</tspan><tspan fill="#e4dfd6"> seen </tspan><tspan fill="#97938c">=</tspan><tspan fill="#e4dfd6"> app.review.seen.</tspan><tspan fill="#ddc084">as_ref</tspan><tspan fill="#97938c">();</tspan><tspan> </tspan><tspan> </tspan><tspan> </tspan></text>

Before

Width:  |  Height:  |  Size: 89 KiB

After

Width:  |  Height:  |  Size: 89 KiB

View File

@@ -31,8 +31,8 @@
},
"shellBytes": 4384,
"shellLines": 56,
"toolBytes": 4383,
"toolLines": 56,
"toolBytes": 3989,
"toolLines": 100,
"forwarded": {
"pi": 4383,
"opencode": 4383,

View File

@@ -65,7 +65,7 @@ const groups: Group[] = [
name: "grep",
instead: "`grep -rn`, `rg`",
bench: "grep",
text: "Capped per file and overall, with long lines trimmed. It can return just the files that match or just the counts, and says so when there's more.",
text: "Names each file once with its lines under it, where `rg` repeats the path on every line. Asked to, it says which function or type each match sits in. Skips what read policy denies, caps per file and overall, and says when there's more.",
},
{
name: "ast_grep",
@@ -249,7 +249,8 @@ const terminal = ["git", "module_report", "glob"].flatMap((id) => rows.get(id) ?
const times = (shell: number, tool: number) => {
const ratio = shell / tool;
if (ratio < 1.1) return "the same";
// Under a tenth less, a multiple reads as "1.0×", so a real saving is given as a share
if (ratio < 1.1) return tool <= shell * 0.95 ? `${Math.round((1 - tool / shell) * 100)}% less` : "the same";
return ratio < 10 ? `${ratio.toFixed(1)}× less` : `${Math.round(ratio).toLocaleString("en-US")}× less`;
};
/** Luxe against the tightest cut another agent makes, said both ways round. */