summaryrefslogtreecommitdiff
path: root/lib/tmux
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2020-06-25 13:13:49 -0700
committerBen Sima <ben@bsima.me>2020-06-25 13:13:49 -0700
commite59cc19522a53171fd677532eb099e9f84ba0f97 (patch)
treeb321cf8e37fb0056033e650545e6c77736195ca2 /lib/tmux
parentecfdcbed9fdd49a32c65db7c07c1cacac87ab225 (diff)
tmux: send/join panes
Diffstat (limited to 'lib/tmux')
-rw-r--r--lib/tmux4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/tmux b/lib/tmux
index 01b1440..f0701e5 100644
--- a/lib/tmux
+++ b/lib/tmux
@@ -17,6 +17,10 @@ setw -g monitor-activity on
bind-key | split-window -h
bind-key - split-window -v
+# Send/join panes
+bind-key j command-prompt -p "join pane from:" "join-pane -s '%%'"
+bind-key s command-prompt -p "send pane to:" "join-pane -t '%%'"
+
# Use Alt-vim keys without prefix key to switch panes
bind -n M-h select-pane -L
bind -n M-j select-pane -D