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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/index.ts +3 -6
  3. 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 your input is empty (or cursor is on the first line)
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
- const cursor = editor.getCursor();
53
- if (cursor.line === 0) {
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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-atuin",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Atuin-style fuzzy history search for pi. Press ↑ for interactive history.",
5
5
  "license": "MIT",
6
6
  "author": "RealAlexandreAI",