diff options
| author | Paul Buetow <paul@buetow.org> | 2026-02-10 09:17:40 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-02-10 09:17:40 +0200 |
| commit | 17220d71f2af54f875ba1a86f489e5af6d7ad189 (patch) | |
| tree | 64586d4415dab2a267d6c0667e2283a07665b79f /cmd/hexai-tmux-edit | |
| parent | 19247ef407fb46daf7a1521c3bfa177707c2acf4 (diff) | |
Fix hexai-tmux-edit to open in current working directoryv0.18.3
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 <noreply@anthropic.com>
Diffstat (limited to 'cmd/hexai-tmux-edit')
| -rw-r--r-- | cmd/hexai-tmux-edit/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/hexai-tmux-edit/main.go b/cmd/hexai-tmux-edit/main.go index 928a2cd..931d1c4 100644 --- a/cmd/hexai-tmux-edit/main.go +++ b/cmd/hexai-tmux-edit/main.go @@ -8,7 +8,7 @@ // // Tmux keybinding (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}'" package main import ( |
