pi-render-btw 0.6.6 → 0.6.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -102,4 +102,21 @@ describe("BTW transcript message layout", () => {
102
102
 
103
103
  expect((component as any).hintsTextValue).toContain("Ctrl+P peek");
104
104
  });
105
+
106
+ it("labels q as the Peek exit shortcut", () => {
107
+ const component = new BtwOverlayComponent(
108
+ tui,
109
+ theme,
110
+ keybindings,
111
+ () => [],
112
+ () => null,
113
+ () => "contextual",
114
+ () => {},
115
+ () => {},
116
+ () => {},
117
+ );
118
+
119
+ component.handleInput("\x10"); // Ctrl+P
120
+ expect(component.render(80).join("\n")).toContain("q:exit");
121
+ });
105
122
  });
package/extensions/btw.ts CHANGED
@@ -1591,7 +1591,7 @@ export class BtwOverlayComponent extends Container implements Focusable {
1591
1591
  ? ` ${this.peekState.currentMatchIndex + 1}/${this.peekState.searchMatches.length}`
1592
1592
  : "";
1593
1593
  const toolsHint = this.peekState.showTools ? "t:hide" : "t:show";
1594
- const statusText = `j/k ↑↓ g/G /search${searchHint} ${toolsHint} M:copy o:nvim Esc`;
1594
+ const statusText = `j/k ↑↓ g/G /search${searchHint} ${toolsHint} M:copy o:nvim q:exit`;
1595
1595
  lines.push(this.ruleLine(innerWidth));
1596
1596
  lines.push(this.frameLine(this.theme.fg("dim", statusText), innerWidth));
1597
1597
  lines.push(this.borderLine(innerWidth, "bottom"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-render-btw",
3
- "version": "0.6.6",
3
+ "version": "0.6.7",
4
4
  "description": "A pi extension for parallel side conversations with /btw — with markdown rendering in the floating window",
5
5
  "type": "module",
6
6
  "license": "MIT",