proper-base 0.8.5 → 0.8.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.
- package/CHANGELOG.md +8 -0
- package/README.md +1 -1
- package/package.json +2 -3
- package/src/editor-navigation.ts +6 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.8.6]
|
|
4
|
+
|
|
5
|
+
Pi 1.8.0 compatibility release. Reverse history search accepts shifted characters in more terminals. The package is tested against Pi 1.8.0.
|
|
6
|
+
|
|
7
|
+
### Fixes
|
|
8
|
+
|
|
9
|
+
- **Capitals in Ctrl+R search under tmux and similar terminals** - A shifted character typed during reverse history search is added to the query instead of ending the search. This affects terminals that report the key as an xterm `modifyOtherKeys` sequence, such as tmux, VS Code, GNOME Terminal, and Apple Terminal, and requires Pi 1.8.0.
|
|
10
|
+
|
|
3
11
|
## [0.8.5]
|
|
4
12
|
|
|
5
13
|
Pi 1.7.0 compatibility release. `/tokens max` covers the GPT-6.2 models, automatic restart works for launches that use `--agent-dir`, and two features Pi now provides itself are removed. The package is tested against Pi 1.7.0.
|
package/README.md
CHANGED
|
@@ -383,7 +383,7 @@ highlight. Custom replacement footers are not changed.
|
|
|
383
383
|
|
|
384
384
|
## Install
|
|
385
385
|
|
|
386
|
-
Node 22.19 or newer is required. The package is tested against Pi 1.
|
|
386
|
+
Node 22.19 or newer is required. The package is tested against Pi 1.8.0.
|
|
387
387
|
|
|
388
388
|
From npm:
|
|
389
389
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "proper-base",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.6",
|
|
4
4
|
"description": "Baseline Pi behavior for session naming, history, prompt editing, fullscreen navigation, and footer styling",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package",
|
|
@@ -61,8 +61,7 @@
|
|
|
61
61
|
"typescript": "6.0.2"
|
|
62
62
|
},
|
|
63
63
|
"overrides": {
|
|
64
|
-
"
|
|
65
|
-
"minimatch@11.0.3": "11.0.9"
|
|
64
|
+
"minimatch@11.0.9": "11.0.10"
|
|
66
65
|
},
|
|
67
66
|
"pi": {
|
|
68
67
|
"extensions": [
|
package/src/editor-navigation.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as piTui from "@earendil-works/pi-tui";
|
|
1
2
|
import {
|
|
2
3
|
type Component,
|
|
3
4
|
decodeKittyPrintable,
|
|
@@ -7,6 +8,10 @@ import {
|
|
|
7
8
|
visibleWidth,
|
|
8
9
|
} from "@earendil-works/pi-tui";
|
|
9
10
|
|
|
11
|
+
// Pi 1.8.0 adds decodePrintableKey, which also reads xterm modifyOtherKeys
|
|
12
|
+
// keys such as Shift+G in tmux; older Pi exports only the Kitty decoder.
|
|
13
|
+
const decodePrintable = piTui.decodePrintableKey ?? decodeKittyPrintable;
|
|
14
|
+
|
|
10
15
|
const INSTALLED = Symbol.for("pi-proper-base.editor-navigation");
|
|
11
16
|
const REVERSE_SEARCH_INSTALLED = Symbol.for(
|
|
12
17
|
"pi-proper-base.reverse-history-search",
|
|
@@ -575,8 +580,7 @@ export function installReverseHistorySearch(
|
|
|
575
580
|
}
|
|
576
581
|
|
|
577
582
|
const printable =
|
|
578
|
-
|
|
579
|
-
(/^[^\p{Cc}]+$/u.test(data) ? data : undefined);
|
|
583
|
+
decodePrintable(data) ?? (/^[^\p{Cc}]+$/u.test(data) ? data : undefined);
|
|
580
584
|
if (printable !== undefined) {
|
|
581
585
|
search.query += printable;
|
|
582
586
|
findMatch(search.index < 0 ? entries.length : search.index + 1);
|