X-Git-Url: http://git.iain.cx/?p=profile.git;a=blobdiff_plain;f=.tmux.conf;h=2ac48a85204537e90350bcd7cff820564fc90842;hp=5dc79dcbc03e6e9ea383eed9b377ed19993b5f3e;hb=6aa821a9fbf33646c1f3f77e9f97f64d7f36f31c;hpb=3e3bd26c874890ecfb30106eaf4523c7bab02a65 diff --git a/.tmux.conf b/.tmux.conf index 5dc79dc..2ac48a8 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -141,7 +141,10 @@ bind { copy-mode -u bind '"' list-buffers \; command-prompt -p "Choose buffer to show:" 'show-buffer -b %1' bind "'" new-window -n "[buffer]" "cat > /dev/null" \; paste-buffer # Toggle mouse mode as it is useful despite the flaws listed above. -bind C-m set -g mouse-resize-pane \; set -g mouse-select-pane \; set -g mouse-select-window \; set -g mode-mouse +# As of tmux 1.7 mode-mouse has three possible values so we can no +# longer use an implied toggle. +bind C-m set -g mouse-resize-pane on \; set -g mouse-select-pane on \; set -g mouse-select-window on \; set -g mode-mouse copy-mode +bind M-m set -g mouse-resize-pane off \; set -g mouse-select-pane off \; set -g mouse-select-window off \; set -g mode-mouse off ################################################################################ # Fix missing binds in Vi modes.