summaryrefslogtreecommitdiff
path: root/docs/tmux.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/tmux.md')
-rw-r--r--docs/tmux.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/tmux.md b/docs/tmux.md
index e7c99dd..b851296 100644
--- a/docs/tmux.md
+++ b/docs/tmux.md
@@ -84,7 +84,7 @@ The editor opens as a tmux popup overlay, pre-filled with any existing prompt te
Add this keybinding to `~/.tmux.conf`:
```
-bind e run-shell -b "hexai-tmux-edit --pane '#{pane_id}'"
+bind e run-shell -b "cd '#{pane_current_path}' && hexai-tmux-edit --pane '#{pane_id}'"
```
Then press `prefix + e` in any pane running an AI agent. Hexai auto-detects the agent, extracts any existing prompt text, and pre-fills the editor. After saving and closing, the edited text is sent back to the agent's pane.