pi-atuin 0.1.6 → 0.1.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.
- package/README.md +1 -1
- package/index.ts +3 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -68,7 +68,7 @@ No setup needed. Pi prompts are stored in `~/.pi/agent/pi-history.jsonl`.
|
|
|
68
68
|
|
|
69
69
|
### History search
|
|
70
70
|
|
|
71
|
-
1. Press **↑** when
|
|
71
|
+
1. Press **↑** when the input is empty
|
|
72
72
|
2. Type to fuzzy-filter
|
|
73
73
|
3. **↑↓** to navigate, **Enter** to select, **Esc** to cancel
|
|
74
74
|
|
package/index.ts
CHANGED
|
@@ -48,12 +48,9 @@ export default function piAtuin(pi: ExtensionAPI) {
|
|
|
48
48
|
const editor = new CustomEditor(tui, theme, keybindings);
|
|
49
49
|
|
|
50
50
|
editor.onExtensionShortcut = (data: string) => {
|
|
51
|
-
if (matchesKey(data, Key.up)) {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
openSearch(ctx, editor);
|
|
55
|
-
return true;
|
|
56
|
-
}
|
|
51
|
+
if (matchesKey(data, Key.up) && editor.getText().length === 0) {
|
|
52
|
+
openSearch(ctx, editor);
|
|
53
|
+
return true;
|
|
57
54
|
}
|
|
58
55
|
return false;
|
|
59
56
|
};
|