summaryrefslogtreecommitdiff
path: root/config.toml.example
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-08 11:14:36 +0200
committerPaul Buetow <paul@buetow.org>2026-02-08 11:14:36 +0200
commit5e825543dc55a2c649e68dce6341844ad71fa217 (patch)
treef7aae1c1d130f08c383f95a23413bdde7843dc0f /config.toml.example
parent023ed82e612451caa38ec46106ed9d148ab9a595 (diff)
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 <noreply@anthropic.com>
Diffstat (limited to 'config.toml.example')
-rw-r--r--config.toml.example32
1 files changed, 32 insertions, 0 deletions
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"