@mjakl/pi-interlude 0.9.0 → 0.9.1

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 +5 -5
  2. package/index.ts +1 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # pi-interlude
2
2
 
3
- Ever had a nice prompt prepared and the agent comes back with a question, or you need to check something before continuing? Deleting the draft is wasted effort, copy/pasting to make space for the interlude prompt is cumbersome. `zsh` has this fantastic stash command - `Esc-q` - that allows you to temporarily remove the current command and it will restore it after your interlude command is finished. `pi-interlude` brings this to pi. Install it, reload, enter something, press `Ctrl-i`, enter something else, send it, and watch with awe as your previous prompt reappears 🎉.
3
+ Ever had a nice prompt prepared and the agent comes back with a question, or you need to check something before continuing? Deleting the draft is wasted effort, copy/pasting to make space for the interlude prompt is cumbersome. `zsh` has this fantastic stash command - `Esc-q` - that allows you to temporarily remove the current command and it will restore it after your interlude command is finished. `pi-interlude` brings this to pi. Install it, reload, enter something, press `Ctrl-s`, enter something else, send it, and watch with awe as your previous prompt reappears 🎉.
4
4
 
5
5
  A pi extension that lets you stash the current draft, send a one-off interlude message, and then restore the original draft.
6
6
 
@@ -38,10 +38,10 @@ Note: the extension currently stashes editor text only. If your draft includes a
38
38
  ## Default shortcuts
39
39
 
40
40
  - `f6`
41
- - `ctrl+i` (`i` for "interlude")
41
+ - `ctrl+s` (`s` for "stash")
42
42
 
43
43
  `f6` is the robust default.
44
- `ctrl+i` is a mnemonic secondary shortcut, but in many terminals it is indistinguishable from `tab`, so it may conflict with autocomplete.
44
+ `ctrl+s` is a mnemonic secondary shortcut for stash, but some terminals intercept it for software flow control, so you may need to rebind it if it does not reach pi.
45
45
 
46
46
  ## Configuration
47
47
 
@@ -53,7 +53,7 @@ Example:
53
53
 
54
54
  ```json
55
55
  {
56
- "interlude": ["f6", "ctrl+i"]
56
+ "interlude": ["f6", "ctrl+s"]
57
57
  }
58
58
  ```
59
59
 
@@ -65,7 +65,7 @@ Single shortcut example:
65
65
  }
66
66
  ```
67
67
 
68
- If `interlude` is not set, the extension defaults to `f6` and `ctrl+i`.
68
+ If `interlude` is not set, the extension defaults to `f6` and `ctrl+s`.
69
69
 
70
70
  After changing `keybindings.json`, run `/reload` in pi.
71
71
 
package/index.ts CHANGED
@@ -3,7 +3,7 @@ import os from "node:os";
3
3
  import path from "node:path";
4
4
  import type { ExtensionAPI, ExtensionContext } from "@mariozechner/pi-coding-agent";
5
5
 
6
- const DEFAULT_SHORTCUTS = ["f6", "ctrl+i"] as const;
6
+ const DEFAULT_SHORTCUTS = ["f6", "ctrl+s"] as const;
7
7
  const STATUS_KEY = "interlude";
8
8
  const KEYBINDINGS_PATH = path.join(os.homedir(), ".pi", "agent", "keybindings.json");
9
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjakl/pi-interlude",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "Pi extension for stashing the current draft, sending an interlude message, and restoring the draft.",
5
5
  "type": "module",
6
6
  "main": "index.ts",