editprompt 0.3.1 → 0.4.3
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/dist/index.js +3 -1
- package/package.json +1 -2
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { promisify } from "node:util";
|
|
|
8
8
|
import clipboardy from "clipboardy";
|
|
9
9
|
|
|
10
10
|
//#region package.json
|
|
11
|
-
var version = "0.3
|
|
11
|
+
var version = "0.4.3";
|
|
12
12
|
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region src/config/constants.ts
|
|
@@ -111,8 +111,10 @@ function isMuxType(value) {
|
|
|
111
111
|
return value === "tmux" || value === "wezterm";
|
|
112
112
|
}
|
|
113
113
|
async function sendToTmuxPane(paneId, content) {
|
|
114
|
+
await execAsync(`tmux if-shell -t '${paneId}' '[ "#{pane_in_mode}" = "1" ]' "copy-mode -q -t '${paneId}'"`);
|
|
114
115
|
await execAsync(`tmux send-keys -t '${paneId}' '${content.replace(/'/g, "'\\''")}'`);
|
|
115
116
|
console.log(`Content sent to tmux pane: ${paneId}`);
|
|
117
|
+
await execAsync(`tmux select-pane -t '${paneId}'`);
|
|
116
118
|
}
|
|
117
119
|
async function sendToWeztermPane(paneId, content) {
|
|
118
120
|
await execAsync(`wezterm cli send-text --no-paste --pane-id '${paneId}' '${content.replace(/'/g, "'\\''")}'`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "editprompt",
|
|
3
|
-
"version": "0.3
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"author": "eetann",
|
|
5
5
|
"description": "A CLI tool that lets you write prompts for CLI tools using your favorite text editor",
|
|
6
6
|
"license": "MIT",
|
|
@@ -54,7 +54,6 @@
|
|
|
54
54
|
"bumpp": "^10.2.0",
|
|
55
55
|
"tsdown": "latest"
|
|
56
56
|
},
|
|
57
|
-
"packageManager": "pnpm@10.8.1+sha512.c50088ba998c67b8ca8c99df8a5e02fd2ae2e2b29aaf238feaa9e124248d3f48f9fb6db2424949ff901cffbb5e0f0cc1ad6aedb602cd29450751d11c35023677",
|
|
58
57
|
"dependencies": {
|
|
59
58
|
"clipboardy": "^4.0.0",
|
|
60
59
|
"gunshi": "^0.26.3"
|