This guide helps you migrate from editprompt v0.8.1 (and earlier) to v1.0.0, which introduces a breaking change to the CLI interface.
v1.0.0 migrates from option-based modes to explicit subcommands for better CLI consistency and usability. This is a breaking change - old command syntax will no longer work.
The old syntax mixed different patterns (no options, --resume, -- "content"), making the CLI confusing and inconsistent. The new subcommand-based approach provides:
- Consistent interface: All modes use the same
editprompt <subcommand>pattern - Better discoverability:
editprompt --helpclearly shows available subcommands - Easier maintenance: Each subcommand has its own isolated definition and help
- Future extensibility: Adding new modes is simpler and clearer
| Old Command (v0.8.1) | New Command (v1.0.0) | Description |
|---|---|---|
editprompt |
editprompt open |
Open editor and send content |
editprompt --resume |
editprompt resume |
Resume existing editor pane |
editprompt -- "text" |
editprompt input -- "text" |
Send content directly |
editprompt --auto-send -- "text" |
editprompt input --auto-send -- "text" |
Send content with auto-submit |
editprompt --quote |
editprompt collect |
Collect quoted text |
editprompt --capture |
editprompt dump |
Output and clear collected quotes |
Old:
editprompt
editprompt --editor nvim
editprompt --always-copyNew:
editprompt open
editprompt open --editor nvim
editprompt open --always-copyOld:
editprompt --resume --target-pane %123New:
editprompt resume --target-pane %123Old:
editprompt -- "your content"
editprompt --auto-send -- "your content"
editprompt --auto-send --send-key "C-m" -- "your content"New:
editprompt input -- "your content"
editprompt input --auto-send -- "your content"
editprompt input --auto-send --send-key "C-m" -- "your content"Old:
editprompt --quote --target-pane %123New:
editprompt collect --target-pane %123Old:
editprompt --captureNew:
editprompt dumpRun editprompt --help to see all available subcommands:
$ editprompt --helpRun editprompt <subcommand> --help for detailed help on each subcommand:
$ editprompt open --help
$ editprompt resume --help
$ editprompt input --help
$ editprompt collect --help
$ editprompt dump --helpIf you see this error, you're using the old syntax. Follow the migration table above to update your command.
# ❌ Old (will fail)
$ editprompt
# ✅ New
$ editprompt openAfter updating your configuration files:
- tmux: Reload configuration with
tmux source-file ~/.tmux.confor restart tmux - WezTerm: Reload configuration with
Ctrl+Shift+Ror restart WezTerm - Neovim: restart Neovim
- Update all commands from option-based to subcommand-based syntax
- Update configuration files (
.tmux.conf,wezterm.lua, editor configs) - Reload configurations in your multiplexer and editor
- Use
--helpto explore new subcommand interface