@d3ara1n/pi-command-palette 0.4.1 → 0.4.2
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 +3 -3
- package/package.json +1 -1
- package/src/config.ts +2 -2
- package/src/index.ts +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# pi-command-palette
|
|
2
2
|
|
|
3
|
-
Global command palette for [Pi Coding Agent](https://pi.dev) — press **Ctrl+
|
|
3
|
+
Global command palette for [Pi Coding Agent](https://pi.dev) — press **Ctrl+Shift+P** to search and run commands from anywhere.
|
|
4
4
|
|
|
5
5
|
## Why?
|
|
6
6
|
|
|
@@ -30,7 +30,7 @@ Or add to `~/.pi/agent/settings.json`:
|
|
|
30
30
|
|
|
31
31
|
| Shortcut | Action |
|
|
32
32
|
|----------|--------|
|
|
33
|
-
| `Ctrl+
|
|
33
|
+
| `Ctrl+Shift+P` _(default, configurable)_ | Open command palette |
|
|
34
34
|
|
|
35
35
|
The palette lists:
|
|
36
36
|
|
|
@@ -50,7 +50,7 @@ The "Model: Switch Model" action opens a secondary overlay listing all models wi
|
|
|
50
50
|
|
|
51
51
|
## Configuration
|
|
52
52
|
|
|
53
|
-
The default shortcut is `Ctrl+
|
|
53
|
+
The default shortcut is `Ctrl+Shift+P`, matching VS Code's Command Palette for familiar muscle memory. If it conflicts with your terminal or other shortcuts, override it via either of the following (evaluated in order, first match wins).
|
|
54
54
|
|
|
55
55
|
### 1. Environment variable
|
|
56
56
|
|
package/package.json
CHANGED
package/src/config.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* `Ctrl+Shift+P` before it reaches the session (e.g. Termius on Windows/WSL2).
|
|
7
7
|
* 2. `settings.json` `commandPalette.shortcut` (a present project
|
|
8
8
|
* `commandPalette` block replaces the global block)
|
|
9
|
-
* 3. default `"ctrl+
|
|
9
|
+
* 3. default `"ctrl+shift+p"`
|
|
10
10
|
*
|
|
11
11
|
* Why not a CLI flag? Flags are applied to the extension runtime AFTER extensions
|
|
12
12
|
* load, so `pi.getFlag()` only returns the registered default at `registerShortcut()`
|
|
@@ -19,7 +19,7 @@ import * as os from "node:os";
|
|
|
19
19
|
import * as path from "node:path";
|
|
20
20
|
import type { KeyId } from "@earendil-works/pi-tui";
|
|
21
21
|
|
|
22
|
-
export const DEFAULT_SHORTCUT = "ctrl+
|
|
22
|
+
export const DEFAULT_SHORTCUT = "ctrl+shift+p";
|
|
23
23
|
|
|
24
24
|
function getAgentDir(): string {
|
|
25
25
|
const envDir = process.env.PI_AGENT_DIR;
|
package/src/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* pi-command-palette — Global command palette for pi.
|
|
3
3
|
*
|
|
4
|
-
* Press Ctrl+
|
|
4
|
+
* Press Ctrl+Shift+P to open a searchable command palette overlay,
|
|
5
5
|
* regardless of whether the editor has content.
|
|
6
6
|
*
|
|
7
7
|
* Features:
|