From 2fb69d78a96f46b7dc7879ddea947bcb5cb42ac1 Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Fri, 8 Mar 2024 19:53:06 +0100 Subject: [PATCH] tmux: nvim edit helper selects first pane in first window --- bin/tmux-edit-helper | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/tmux-edit-helper b/bin/tmux-edit-helper index da98fa3..95b1e65 100755 --- a/bin/tmux-edit-helper +++ b/bin/tmux-edit-helper @@ -18,7 +18,7 @@ fi _nvim_socket="$XDG_RUNTIME_DIR/nvim-persistent.sock" -tmux select-window -t nvim 2>/dev/null && exec nvim --server "$_nvim_socket" --remote "$_file" +(tmux select-window -t nvim 2>/dev/null && tmux select-pane -t 0) && exec nvim --server "$_nvim_socket" --remote "$_file" # nvim is not running/listening on remote socket, so start it. tmux new-window -S -n nvim \