prepare for new laptop
[dotfiles.git] / shell / .config / tmux / config
index 35a9a83..0245d41 100644 (file)
@@ -20,9 +20,16 @@ set -g base-index 1
 
 # vi copy and pasting
 bind-key -T copy-mode-vi 'v' send -X begin-selection
-bind-key -T copy-mode-vi 'y' send -X copy-selection
+bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
 bind-key -T copy-mode-vi 'Space' send -X halfpage-down
 bind-key -T copy-mode-vi 'Bspace' send -X halfpage-up
 
 # urlview
-bind-key u capture-pane \; save-buffer /tmp/tmux-buffer \; run-shell "st -e urlview /tmp/tmux-buffer"
+bind-key u capture-pane \; \
+       run-shell "st -e sh -c 'tmux save-buffer - | urlview'"
+
+# interactive panel to other windows
+bind-key M choose-tree -Zw "join-pane -t '%%'"
+
+# interactive panel to other session
+bind-key C-m choose-tree -Zs "join-pane -t '%%'"