diff options
| author | Paul Buetow <paul@buetow.org> | 2025-09-07 14:42:00 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-09-07 14:42:00 +0300 |
| commit | 54aa859adc8c96e8bc6551c0c7d40446144c98ea (patch) | |
| tree | c1fcea2cec46671f0719b5f61b17f8648ba9bc53 /docs | |
| parent | 4c93677c79983560eea13c372a20ed78f02af4f9 (diff) | |
docs: document simplify action prompts; update examples and flags; add simplify entries to config.toml.example
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/configuration.md | 8 | ||||
| -rw-r--r-- | docs/usage.md | 1 |
2 files changed, 7 insertions, 2 deletions
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 |
