editprompt 0.0.5 → 0.0.6
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/dist/index.js +6 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -33,8 +33,8 @@ editprompt --editor nvim
|
|
|
33
33
|
editprompt -e nvim
|
|
34
34
|
|
|
35
35
|
# Target a different process (default: claude)
|
|
36
|
-
editprompt --process
|
|
37
|
-
editprompt -p
|
|
36
|
+
editprompt --process gemini
|
|
37
|
+
editprompt -p gemini
|
|
38
38
|
|
|
39
39
|
# Show help
|
|
40
40
|
editprompt --help
|
|
@@ -90,7 +90,7 @@ editprompt respects the following editor priority:
|
|
|
90
90
|
|
|
91
91
|
1. `--editor/-e` command line option
|
|
92
92
|
2. `$EDITOR` environment variable
|
|
93
|
-
3. Default: `
|
|
93
|
+
3. Default: `nvim`
|
|
94
94
|
|
|
95
95
|
### Environment Variables
|
|
96
96
|
|
package/dist/index.js
CHANGED
|
@@ -9,6 +9,10 @@ import clipboardy from "clipboardy";
|
|
|
9
9
|
import find from "find-process";
|
|
10
10
|
import inquirer from "inquirer";
|
|
11
11
|
|
|
12
|
+
//#region package.json
|
|
13
|
+
var version = "0.0.6";
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
12
16
|
//#region src/config/constants.ts
|
|
13
17
|
const TEMP_FILE_PREFIX = ".editprompt-";
|
|
14
18
|
const TEMP_FILE_EXTENSION = ".md";
|
|
@@ -143,7 +147,7 @@ async function getTmuxPanes() {
|
|
|
143
147
|
}
|
|
144
148
|
async function findTargetInTmux(processName = DEFAULT_PROCESS_NAME) {
|
|
145
149
|
const processes = await find("name", processName);
|
|
146
|
-
const targetProcesses = processes.filter((p) => p.
|
|
150
|
+
const targetProcesses = processes.filter((p) => p.cmd.match(processName));
|
|
147
151
|
if (targetProcesses.length === 0) return [];
|
|
148
152
|
const tmuxPanes = await getTmuxPanes();
|
|
149
153
|
if (tmuxPanes.length === 0) return [];
|
|
@@ -252,6 +256,6 @@ await cli(argv, {
|
|
|
252
256
|
process.exit(1);
|
|
253
257
|
}
|
|
254
258
|
}
|
|
255
|
-
}, { version
|
|
259
|
+
}, { version });
|
|
256
260
|
|
|
257
261
|
//#endregion
|