@firstpick/pi-extension-bang-command-autocomplete 0.1.0 → 0.1.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.
- package/README.md +17 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
# pi-extension-bang-command-autocomplete
|
|
2
2
|
|
|
3
|
-
Autocomplete for
|
|
3
|
+
Autocomplete for `!<command>` in Pi.
|
|
4
|
+
|
|
5
|
+
## Goal
|
|
6
|
+
|
|
7
|
+
Make shell-style `!` execution faster and less error-prone by suggesting command names while typing.
|
|
8
|
+
|
|
9
|
+
## Why it works this way
|
|
10
|
+
|
|
11
|
+
- Ships with a curated common-command list, so suggestions work immediately.
|
|
12
|
+
- Can optionally include your shell history for personalized suggestions.
|
|
13
|
+
- Keeps scope intentionally small: command-name completion only (no argument prediction), which makes behavior predictable and lightweight.
|
|
4
14
|
|
|
5
15
|
## Install
|
|
6
16
|
|
|
@@ -8,7 +18,7 @@ Autocomplete for !<command> in Pi, with optional shell-history indexing.
|
|
|
8
18
|
pi install npm:@firstpick/pi-extension-bang-command-autocomplete
|
|
9
19
|
```
|
|
10
20
|
|
|
11
|
-
|
|
21
|
+
Local testing:
|
|
12
22
|
|
|
13
23
|
```bash
|
|
14
24
|
pi install /absolute/path/to/pi-extension-bang-command-autocomplete
|
|
@@ -17,26 +27,24 @@ pi install /absolute/path/to/pi-extension-bang-command-autocomplete
|
|
|
17
27
|
## Configuration
|
|
18
28
|
|
|
19
29
|
- `PI_BANG_AUTOCOMPLETE_INCLUDE_HISTORY`
|
|
30
|
+
- `1|true|yes|on`: include commands from `~/.bash_history` and fish history.
|
|
31
|
+
- unset/other: use built-in common commands only (default).
|
|
20
32
|
|
|
21
33
|
## Commands
|
|
22
34
|
|
|
23
|
-
- `/bang-refresh`
|
|
24
|
-
- `/bang-status`
|
|
35
|
+
- `/bang-refresh` — rebuilds the autocomplete index (use after changing history/config).
|
|
36
|
+
- `/bang-status` — shows how many commands are indexed and whether history is enabled.
|
|
25
37
|
|
|
26
38
|
## Tools
|
|
27
39
|
|
|
28
|
-
|
|
40
|
+
None.
|
|
29
41
|
|
|
30
42
|
## Publish
|
|
31
43
|
|
|
32
|
-
Preferred (Bun):
|
|
33
|
-
|
|
34
44
|
```bash
|
|
35
45
|
bun publish --access public
|
|
36
46
|
```
|
|
37
47
|
|
|
38
|
-
Alternative (npm):
|
|
39
|
-
|
|
40
48
|
```bash
|
|
41
49
|
npm publish --access public
|
|
42
50
|
```
|