diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-25 16:12:23 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-25 16:12:23 +0300 |
| commit | a1031b761ff0c5cd79f3f0906e5c3b33fa849f37 (patch) | |
| tree | 18e9401ecc83ebe0c1a35bf92152a81a195e24f2 /config.toml.example | |
| parent | c73a92022d39e73d41b00cf72d959bf0d26c8d6f (diff) | |
feat: configurable hexai-tmux-action menu via [[tmux_action.menu]]
When [[tmux_action.menu]] is defined in config it fully replaces the
built-in menu. Each entry takes a kind (built-in or "custom"), optional
title/hotkey overrides, and optional custom_id for embedding custom
actions directly in the main menu. Hotkey dispatch is now dynamic so
any single-character hotkey works without code changes.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'config.toml.example')
| -rw-r--r-- | config.toml.example | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/config.toml.example b/config.toml.example index 1bed067..80253fc 100644 --- a/config.toml.example +++ b/config.toml.example @@ -148,6 +148,39 @@ temperature = 0.2 [tmux] # custom_menu_hotkey = "a" # hotkey to open the custom actions submenu in hexai-tmux-action +# hexai-tmux-action menu configuration (optional). +# When [[tmux_action.menu]] is defined it completely replaces the built-in menu. +# Valid built-in kinds: rewrite, simplify, document, gotest, fix_typos, custom_prompt, skip. +# Use kind = "custom" with custom_id referencing a [[prompts.code_action.custom]] id +# to embed a custom action directly in the main menu instead of the submenu. +# title and hotkey are optional; built-in defaults are used when omitted. +# +# [[tmux_action.menu]] +# kind = "rewrite" +# hotkey = "r" +# +# [[tmux_action.menu]] +# kind = "simplify" +# hotkey = "i" +# +# [[tmux_action.menu]] +# kind = "fix_typos" +# hotkey = "f" +# +# [[tmux_action.menu]] +# kind = "custom" +# custom_id = "extract-function" # must match id in [[prompts.code_action.custom]] +# hotkey = "e" +# title = "Extract function" # optional override +# +# [[tmux_action.menu]] +# kind = "custom_prompt" +# hotkey = "p" +# +# [[tmux_action.menu]] +# kind = "skip" +# hotkey = "s" + [stats] # window_minutes = 60 # sliding window for global stats (Σ@window); min 1, max 1440 |
