feat(tmux): add join-pane key bind

Add a key binding for re-joining another window into a pane within the
current window, which is the opposite of the `break-pane` command.

It prompts for the window to join from and then joins it into a vertical
pane within the current window.

This was taken from Chris Toomey's dotfiles. See
553c92a3a1/tmux/tmux.conf (L60)
This commit is contained in:
Oliver Davies 2023-08-22 16:55:43 +01:00
parent 7fecbc9343
commit dab8031935

View file

@ -434,6 +434,7 @@ in
# Break a pane into a new window.
bind-key b break-pane -d
bind-key J command-prompt -p "join pane from: " "join-pane -h -s '%%'"
bind-key C-j choose-tree