X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=shell%2F.config%2Ftmux%2Fconfig;h=0245d4152549967ebcf4e37d93a60ebc58c9ca76;hb=HEAD;hp=35a9a8383e0480f3a64b8a39f175d996027a15bf;hpb=5f126fd46e1d5eadfe2d8290cd23713be3b5e9c2;p=dotfiles.git diff --git a/shell/.config/tmux/config b/shell/.config/tmux/config index 35a9a83..0245d41 100644 --- a/shell/.config/tmux/config +++ b/shell/.config/tmux/config @@ -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 '%%'"