pi-render-btw 0.6.5 → 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.
@@ -86,4 +86,37 @@ describe("BTW transcript message layout", () => {
86
86
  expect((component as any).peekState.active).toBe(false);
87
87
  expect(dismissed).toBe(0);
88
88
  });
89
+
90
+ it("shows the Ctrl+P Peek shortcut in the composer hints", () => {
91
+ const component = new BtwOverlayComponent(
92
+ tui,
93
+ theme,
94
+ keybindings,
95
+ () => [],
96
+ () => null,
97
+ () => "contextual",
98
+ () => {},
99
+ () => {},
100
+ () => {},
101
+ );
102
+
103
+ expect((component as any).hintsTextValue).toContain("Ctrl+P peek");
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
+ });
89
122
  });
package/extensions/btw.ts CHANGED
@@ -1456,7 +1456,7 @@ export class BtwOverlayComponent extends Container implements Focusable {
1456
1456
  const status = this.getStatus() ?? "Ready. Enter submits; Escape dismisses without clearing.";
1457
1457
  this.statusTextValue = status;
1458
1458
  this.statusText.setText(this.statusTextValue);
1459
- this.hintsTextValue = "Scroll wheel ↑↓ PgUp/PgDn · Enter · Alt+/ focus · Esc";
1459
+ this.hintsTextValue = "Scroll wheel ↑↓ PgUp/PgDn · Enter · Ctrl+P peek · Alt+/ focus · Esc";
1460
1460
  this.hintsText.setText(this.hintsTextValue);
1461
1461
  this.tui.requestRender();
1462
1462
  }
@@ -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.5",
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",