From 54aa859adc8c96e8bc6551c0c7d40446144c98ea Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 7 Sep 2025 14:42:00 +0300 Subject: docs: document simplify action prompts; update examples and flags; add simplify entries to config.toml.example --- docs/configuration.md | 8 ++++++-- docs/usage.md | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/configuration.md b/docs/configuration.md index 09ff519..11f23c1 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -51,9 +51,13 @@ This is mostly useful when Helix runs in a [tmux](https://tmux.github.io/) sessi - Flags: - `--infile` Read input from the given file instead of stdin. - `--outfile` Write output to the given file instead of stdout (truncates/creates). - - `--tmux` force tmux-pane mode. - - `--no-tmux` disable tmux mode even if available. - `--tmux-target` tmux target pane/window (advanced). - `--tmux-split v|h` split orientation (default: `v`). - `--tmux-percent N` split size percentage (default: `33`). - `--ui-child` internal; used by the parent process when spawning inside tmux. + +Code action prompts + +- All prompts can be customized under `[prompts.code_action]` in `config.toml`. In addition to `rewrite_*`, `diagnostics_*`, `document_*`, and `go_test_*`, the following templates control the “Simplify and improve” action: + - `simplify_system` + - `simplify_user` (uses `{{selection}}`) diff --git a/docs/usage.md b/docs/usage.md index fb65596..925ac26 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -108,6 +108,7 @@ hexai 'install ripgrep on macOS and explain' `hexai-tmux-action` runs code actions over a selection or diagnostics+selection piped from stdin, or read from a file. - Choose an action with arrow keys, `j/k`, `g/G`, Enter, or hotkeys `[s] [r] [c] [t]`. + - Includes: Rewrite selection, Simplify and improve, Document code, Generate Go unit test(s), Skip. - Output is written to stdout by default, or to a file via `--outfile`. Input formats -- cgit v1.2.3