editprompt 1.8.1 → 2.0.0
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 +21 -4
- package/dist/index.js +1057 -978
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -22,7 +22,8 @@ A CLI tool that lets you write prompts for CLI tools using your favorite text ed
|
|
|
22
22
|
## ✨ Features
|
|
23
23
|
|
|
24
24
|
- 🖊️ **Editor Integration**: Use your preferred text editor to write prompts
|
|
25
|
-
- 🖥️ **Multiplexer Support**: Send prompts directly to tmux, WezTerm, Herdr, or Rex sessions
|
|
25
|
+
- 🖥️ **Multiplexer Support**: Send prompts directly to tmux, WezTerm, Herdr, niwaterm, or Rex sessions
|
|
26
|
+
- 🧩 **Custom Backends**: Add any other terminal with a CLI from your configuration file
|
|
26
27
|
- 🖥️ **Universal Terminal Support**: Works with any terminal via clipboard - no multiplexer required
|
|
27
28
|
- 📤 **Send Without Closing**: Iterate on prompts without closing your editor
|
|
28
29
|
- 📋 **Quote Buffering**: Collect text selections and send them as quoted replies
|
|
@@ -40,7 +41,7 @@ npx editprompt
|
|
|
40
41
|
|
|
41
42
|
### Neovim Plugin
|
|
42
43
|
|
|
43
|
-
For Neovim users, [editprompt.nvim](https://github.com/eetann/editprompt.nvim) provides easy integration.
|
|
44
|
+
For Neovim users, [editprompt.nvim](https://github.com/eetann/editprompt.nvim) provides easy integration.
|
|
44
45
|
|
|
45
46
|
## 🚀 Usage
|
|
46
47
|
|
|
@@ -273,6 +274,22 @@ Name the editor with `--editor`. A terminal Rex starts gets the login shell's en
|
|
|
273
274
|
|
|
274
275
|
Inside a Rex pane, editprompt automatically selects the Rex backend when `REX_BLOCK` is set. Running tmux inside a Rex pane sets both, and Rex wins, so pass `--mux tmux` or set `EDITPROMPT_MUX` for that case.
|
|
275
276
|
|
|
277
|
+
### Other Terminals (Custom Backends)
|
|
278
|
+
|
|
279
|
+
Any other terminal or multiplexer with a command-line interface can be added in `~/.config/editprompt/config.toml`, without waiting for editprompt to support it:
|
|
280
|
+
|
|
281
|
+
```toml
|
|
282
|
+
[backends.mytty]
|
|
283
|
+
detect = { env = "MYTTY_PANE_ID" }
|
|
284
|
+
currentPane = { env = "MYTTY_PANE_ID" }
|
|
285
|
+
paneExists = 'mytty pane exists "$EDITPROMPT_PANE"'
|
|
286
|
+
focus = 'mytty pane focus "$EDITPROMPT_PANE"'
|
|
287
|
+
sendText = 'mytty send-text --pane "$EDITPROMPT_PANE"'
|
|
288
|
+
sendKey = 'mytty send-key --pane "$EDITPROMPT_PANE" "$EDITPROMPT_KEY"'
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
Then select it with `--mux mytty`, `EDITPROMPT_MUX=mytty`, or let `detect` pick it. See [docs/backends.md](docs/backends.md) for every option, including the commands that enable `editprompt toggle`.
|
|
292
|
+
|
|
276
293
|
### Editor Integration (Send Without Closing)
|
|
277
294
|
|
|
278
295
|
While editprompt is running, you can send content to the target pane or clipboard without closing the editor. This allows you to iterate quickly on your prompts.
|
|
@@ -307,7 +324,7 @@ This sends the content to the target pane (or clipboard) while keeping your edit
|
|
|
307
324
|
|
|
308
325
|
#### Neovim Integration
|
|
309
326
|
|
|
310
|
-
For Neovim users, we recommend using [editprompt.nvim](https://github.com/eetann/editprompt.nvim) for easy setup.
|
|
327
|
+
For Neovim users, we recommend using [editprompt.nvim](https://github.com/eetann/editprompt.nvim) for easy setup.
|
|
311
328
|
|
|
312
329
|
### Key Sending (press)
|
|
313
330
|
|
|
@@ -509,7 +526,7 @@ editprompt respects the following editor priority:
|
|
|
509
526
|
|
|
510
527
|
#### EDITPROMPT Environment Variable
|
|
511
528
|
|
|
512
|
-
editprompt automatically sets `EDITPROMPT=1` when launching your editor. This allows you to detect when your editor is launched by editprompt and enable specific configurations or plugins.
|
|
529
|
+
editprompt automatically sets `EDITPROMPT=1` when launching your editor. This allows you to detect when your editor is launched by editprompt and enable specific configurations or plugins.
|
|
513
530
|
|
|
514
531
|
#### Custom Environment Variables
|
|
515
532
|
|