tabby-command-editor
v1.0.8
Published
Rich command editor with Monaco for Tabby - edit terminal commands with syntax highlighting, multi-cursor, and find/replace
Readme
tabby-command-editor
A Tabby plugin that provides a rich command editor powered by Monaco (VS Code's editor).
Press Ctrl+E to open your current command in a full-featured editor.
Features
- 🖱️ Click anywhere to position cursor
- ✂️ Multi-cursor editing (Ctrl+D to select next occurrence)
- 🔍 Find and replace (Ctrl+F)
- 🎨 Shell syntax highlighting
- 📝 Multi-line command support (heredocs, line continuations)
- 🌐 Works with SSH sessions - no remote configuration needed
- ⚡ Zero shell configuration - no zshrc/bashrc changes required
Installation
From Plugin Manager (Recommended)
- Open Tabby
- Go to Settings → Plugins
- Search for
tabby-command-editor - Click Install
- Restart Tabby
Manual Installation
# Navigate to Tabby's plugins directory
# macOS: ~/Library/Application Support/tabby/plugins/
# Linux: ~/.config/tabby/plugins/
# Windows: %APPDATA%/tabby/plugins/
npm install tabby-command-editorUsage
- Type a command in your terminal (don't press Enter)
- Press Ctrl+E (or your configured hotkey)
- Edit your command in the Monaco editor
- Press Ctrl+Enter to apply, or Esc to cancel
The edited command will replace your current prompt content. Press Enter when ready to execute.
Configuration
The default hotkey is Ctrl+E. You can change this in Settings → Hotkeys → Open command editor.
Compatibility
- ✅ Bash, Zsh, Fish, PowerShell
- ✅ SSH sessions (works without remote configuration)
- ✅ Custom prompts (Starship, Powerlevel10k, Oh-My-Zsh)
- ✅ Multi-line commands
Troubleshooting
Debugging
If command extraction isn't working correctly, open Tabby's DevTools (Ctrl+Shift+I) and check the Console for [CommandExtraction] logs. This shows:
- Current cursor position
- Detected command boundaries (via Ctrl+A/E probing)
- Extracted command text
How it works
This plugin uses shell readline shortcuts (Ctrl+A and Ctrl+E) to detect command boundaries. This means it works with any prompt style without configuration - it simply asks the shell where the command starts and ends.
Development
git clone https://github.com/Czyhandsome/tabby-command-editor.git
cd tabby-command-editor
yarn install
yarn buildLicense
MIT
