pi-render-btw 0.6.5 → 0.6.6
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,20 @@ 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
|
+
});
|
|
89
105
|
});
|
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
|
}
|