From 5e825543dc55a2c649e68dce6341844ad71fa217 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 8 Feb 2026 11:14:36 +0200 Subject: add hexai-tmux-edit: tmux popup editor for AI agent prompts New tool that opens $EDITOR in a tmux popup for composing longer prompts when working with AI CLI agents (Claude Code, Cursor, Amp, Aider, etc.). Captures existing prompt text from the target pane, pre-fills the editor, and sends edited text back via tmux send-keys. Config-driven agent detection via regex patterns in [tmux_edit] config section. Co-Authored-By: Claude Opus 4.6 --- config.toml.example | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'config.toml.example') diff --git a/config.toml.example b/config.toml.example index f732300..cc4471d 100644 --- a/config.toml.example +++ b/config.toml.example @@ -153,3 +153,35 @@ temperature = 0.2 # gitignore = true # respect .gitignore patterns (default: true) # extra_patterns = ["*.min.js", "vendor/**", "*.generated.go"] # lsp_notify_ignored = true # show "file ignored" in LSP completions (default: true) + +[tmux_edit] +# popup_width = "80%" # tmux popup width (default: 80%) +# popup_height = "80%" # tmux popup height (default: 80%) +# default_agent = "" # force agent name; skip auto-detect + +# Override or add agent definitions (merged with built-in defaults by name). +# Built-in agents: claude, cursor, amp, aider. +# Tmux keybinding (add to ~/.tmux.conf): +# bind e run-shell -b "hexai-tmux-edit --pane '#{pane_id}'" + +# [[tmux_edit.agents]] +# name = "claude" +# display_name = "Claude Code" +# detect_pattern = "(?i)(claude|anthropic)" +# prompt_pattern = '(?m)>\s*(.+)$' +# strip_patterns = [] +# clear_first = true +# clear_keys = "C-u" +# newline_keys = "S-Enter" +# submit_keys = "Enter" + +# [[tmux_edit.agents]] +# name = "cursor" +# display_name = "Cursor" +# detect_pattern = "(?i)cursor" +# prompt_pattern = '(?m)│\s*(.+)$' +# strip_patterns = ["INSERT", "Add a follow-up"] +# clear_first = true +# clear_keys = "C-u" +# newline_keys = "S-Enter" +# submit_keys = "Enter" -- cgit v1.2.3