X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=shell%2F.config%2Ftmux%2Fconfig;h=b772566bddff4cc9e237947a02bbd775b9867960;hb=03456357bce935f8e8af9580a1f31a3ac8ea6cac;hp=f02f3a2cabe286bc9314263ece519d24a53e442a;hpb=4ec32116d32f8b4457fffc431b9c2828be54e19c;p=dotfiles.git diff --git a/shell/.config/tmux/config b/shell/.config/tmux/config index f02f3a2..b772566 100644 --- a/shell/.config/tmux/config +++ b/shell/.config/tmux/config @@ -11,6 +11,25 @@ bind l select-pane -R # i3 window splitting unbind % -unbind " -bind v split-window -v -bind h split-window -h +unbind '"' +bind V split-window -v +bind H split-window -h + +# Start not at index 0 but at one for windows +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 'Space' send -X halfpage-down +bind-key -T copy-mode-vi 'Bspace' send -X halfpage-up + +# urlview +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 '%%'"