From 17220d71f2af54f875ba1a86f489e5af6d7ad189 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 10 Feb 2026 09:17:40 +0200 Subject: Fix hexai-tmux-edit to open in current working directory hexai-tmux-edit was opening in the wrong directory because the tmux popup wasn't being told which directory to use. This fix: - Updates bind-key example to cd into pane's current path - Passes working directory to popup via -d flag using os.Getwd() - Updates all documentation with corrected bind-key examples Co-Authored-By: Claude Sonnet 4.5 --- docs/usage.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/usage.md') diff --git a/docs/usage.md b/docs/usage.md index 387ad34..4d1b50b 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -183,7 +183,7 @@ Additional agents can be added via `[tmux_edit.agents]` in config.toml without c Add 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}'" ``` The `#{pane_id}` is expanded by tmux to the active pane at keypress time, so the popup editor always knows which pane to send text back to. -- cgit v1.2.3