@edxeth/pi-fff 0.7.2-edxeth.0 → 0.7.3-nightly.697b1f9
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 +13 -10
- package/package.json +5 -3
- package/src/index.ts +481 -266
- package/src/query.ts +214 -11
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# @
|
|
1
|
+
# @edxeth/pi-fff
|
|
2
2
|
|
|
3
|
-
A [pi](https://github.com/badlogic/pi-mono) extension that replaces the built-in `find` and `grep` tools with [FFF](https://github.com/
|
|
3
|
+
A [pi](https://github.com/badlogic/pi-mono) extension that replaces the built-in `find` and `grep` tools with [FFF](https://github.com/edxeth/fff) — a Rust-native, SIMD-accelerated file finder with built-in memory.
|
|
4
4
|
|
|
5
5
|
## What it does
|
|
6
6
|
|
|
@@ -32,32 +32,32 @@ Requirements:
|
|
|
32
32
|
**Via npm (recommended):**
|
|
33
33
|
|
|
34
34
|
```bash
|
|
35
|
-
pi install npm:@
|
|
35
|
+
pi install npm:@edxeth/pi-fff
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
Project-local install:
|
|
39
39
|
|
|
40
40
|
```bash
|
|
41
|
-
pi install -l npm:@
|
|
41
|
+
pi install -l npm:@edxeth/pi-fff
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
**Via git:**
|
|
45
45
|
|
|
46
46
|
```bash
|
|
47
|
-
pi install git:github.com/
|
|
47
|
+
pi install git:github.com/edxeth/fff
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
Pin to a release:
|
|
51
51
|
|
|
52
52
|
```bash
|
|
53
|
-
pi install git:github.com/
|
|
53
|
+
pi install git:github.com/edxeth/fff@v0.3.0
|
|
54
54
|
```
|
|
55
55
|
|
|
56
56
|
### Local development / manual install
|
|
57
57
|
|
|
58
58
|
```bash
|
|
59
|
-
git clone https://github.com/
|
|
60
|
-
cd fff
|
|
59
|
+
git clone https://github.com/edxeth/fff.git
|
|
60
|
+
cd fff/packages/pi-fff
|
|
61
61
|
npm install
|
|
62
62
|
```
|
|
63
63
|
|
|
@@ -65,14 +65,14 @@ Then add to your pi `settings.json`:
|
|
|
65
65
|
|
|
66
66
|
```json
|
|
67
67
|
{
|
|
68
|
-
"extensions": ["/path/to/fff
|
|
68
|
+
"extensions": ["/path/to/fff/packages/pi-fff/src/index.ts"]
|
|
69
69
|
}
|
|
70
70
|
```
|
|
71
71
|
|
|
72
72
|
Or test directly:
|
|
73
73
|
|
|
74
74
|
```bash
|
|
75
|
-
pi -e /path/to/fff
|
|
75
|
+
pi -e /path/to/fff/packages/pi-fff/src/index.ts
|
|
76
76
|
```
|
|
77
77
|
|
|
78
78
|
This extension registers FFF-powered tools (`fffind`, `ffgrep`, `fff-multi-grep`) alongside pi's built-in tools.
|
|
@@ -86,6 +86,7 @@ Search file contents. Smart case, plain text by default, regex optional.
|
|
|
86
86
|
Parameters:
|
|
87
87
|
- `pattern` — search text or regex
|
|
88
88
|
- `path` — directory/file constraint (e.g. `src/`, `*.ts`)
|
|
89
|
+
- `includeIgnored` — include files matched by `.gitignore`, `.ignore`, git excludes, or global gitignore when intentionally inspecting ignored paths
|
|
89
90
|
- `ignoreCase` — force case-insensitive
|
|
90
91
|
- `literal` — treat as literal string (default: true)
|
|
91
92
|
- `context` — context lines around matches
|
|
@@ -99,6 +100,7 @@ Fuzzy file name search. Frecency-ranked.
|
|
|
99
100
|
Parameters:
|
|
100
101
|
- `pattern` — fuzzy query (e.g. `main.ts`, `src/ config`)
|
|
101
102
|
- `path` — directory constraint
|
|
103
|
+
- `includeIgnored` — include files matched by `.gitignore`, `.ignore`, git excludes, or global gitignore when intentionally inspecting ignored paths
|
|
102
104
|
- `limit` — max results (default: 200)
|
|
103
105
|
|
|
104
106
|
### `fff-multi-grep`
|
|
@@ -134,6 +136,7 @@ Mode precedence:
|
|
|
134
136
|
- `--fff-mode <mode>` — set mode (see above)
|
|
135
137
|
- `--fff-frecency-db <path>` — path to frecency database (also: `FFF_FRECENCY_DB` env)
|
|
136
138
|
- `--fff-history-db <path>` — path to query history database (also: `FFF_HISTORY_DB` env)
|
|
139
|
+
- `PI_FFF_MULTIGREP=0` — disable `fff-multi-grep` (enabled by default)
|
|
137
140
|
|
|
138
141
|
## Data
|
|
139
142
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edxeth/pi-fff",
|
|
3
3
|
"public": true,
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.3-nightly.697b1f9",
|
|
5
5
|
"description": "pi extension: FFF-powered fuzzy file and content search",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "MIT",
|
|
@@ -43,11 +43,13 @@
|
|
|
43
43
|
"@edxeth/fff-node": "0.7.2-edxeth.0"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@
|
|
47
|
-
"@
|
|
46
|
+
"@earendil-works/pi-coding-agent": "*",
|
|
47
|
+
"@earendil-works/pi-tui": "*",
|
|
48
48
|
"@sinclair/typebox": "*"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
+
"@earendil-works/pi-coding-agent": "^0.74.0",
|
|
52
|
+
"@earendil-works/pi-tui": "^0.74.0",
|
|
51
53
|
"@types/node": "^22.0.0",
|
|
52
54
|
"typescript": "^5.0.0"
|
|
53
55
|
}
|