diff --git a/debian/changelog b/debian/changelog index fec4827a..bf2595da 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,15 @@ byobu (5.58) unreleased; urgency=low - * UNRELEASED + * usr/share/byobu/keybindings/f-keys.tmux, + usr/share/byobu/keybindings/f-keys.tmux.disable, + usr/share/byobu/keybindings/Makefile.am, + usr/share/byobu/keybindings/mouse.tmux.disable, + usr/share/byobu/keybindings/mouse.tmux.enable, + usr/share/doc/byobu/help.tmux.txt: + - add support for a new keybinding, Alt-F12, to toggle on/off + tmux mouse support + - display a message when toggling either on or off mouse or + F-keys support -- Dustin Kirkland Tue, 03 Sep 2013 14:40:09 -0500 diff --git a/usr/share/byobu/keybindings/Makefile.am b/usr/share/byobu/keybindings/Makefile.am index fcd65eee..3defbb66 100644 --- a/usr/share/byobu/keybindings/Makefile.am +++ b/usr/share/byobu/keybindings/Makefile.am @@ -1,2 +1,2 @@ keybindingsdir = $(datadir)/@PACKAGE@/keybindings -keybindings_DATA = common f-keys f-keys.screen f-keys.screen.disable f-keys.tmux f-keys.tmux.disable none tmux-screen-keys.conf +keybindings_DATA = common f-keys f-keys.screen f-keys.screen.disable f-keys.tmux f-keys.tmux.disable mouse.tmux.disable mouse.tmux.enable none tmux-screen-keys.conf diff --git a/usr/share/byobu/keybindings/f-keys.tmux b/usr/share/byobu/keybindings/f-keys.tmux index 516f9655..ab17b47d 100644 --- a/usr/share/byobu/keybindings/f-keys.tmux +++ b/usr/share/byobu/keybindings/f-keys.tmux @@ -72,8 +72,9 @@ bind-key -n F9 new-window -k -n config byobu-config bind-key -n M-F11 break-pane bind-key -n C-F11 join-pane -h -s :. -t :-1 bind-key -n S-F11 join-pane -v -s :. -t :-1 -bind-key -n S-F12 source $BYOBU_PREFIX/share/byobu/keybindings/f-keys.tmux.disable +bind-key -n S-F12 source $BYOBU_PREFIX/share/byobu/keybindings/f-keys.tmux.disable \; display-message "Byobu F-keys: DISABLED" bind-key -n C-S-F12 new-window $BYOBU_PREFIX/lib/byobu/include/mondrian +bind-key -n M-F12 source $BYOBU_PREFIX/share/byobu/keybindings/mouse.tmux.enable bind-key -n M-IC paste-buffer bind-key -n C-a new-window -n "ctrl-a" "byobu-ctrl-a" diff --git a/usr/share/byobu/keybindings/f-keys.tmux.disable b/usr/share/byobu/keybindings/f-keys.tmux.disable index 0d2e5713..ab5e180a 100644 --- a/usr/share/byobu/keybindings/f-keys.tmux.disable +++ b/usr/share/byobu/keybindings/f-keys.tmux.disable @@ -72,7 +72,8 @@ unbind-key -n F9 unbind-key -n M-F11 unbind-key -n C-F11 unbind-key -n S-F11 -bind-key -n S-F12 source $BYOBU_PREFIX/share/byobu/keybindings/f-keys.tmux +bind-key -n S-F12 source $BYOBU_PREFIX/share/byobu/keybindings/f-keys.tmux \; display-message "Byobu F-keys: ENABLED" +unbind-key -n M-F12 unbind-key -n C-S-F12 unbind-key -n M-IC unbind-key -n C-a diff --git a/usr/share/byobu/keybindings/mouse.tmux.disable b/usr/share/byobu/keybindings/mouse.tmux.disable new file mode 100644 index 00000000..01a506c4 --- /dev/null +++ b/usr/share/byobu/keybindings/mouse.tmux.disable @@ -0,0 +1,6 @@ +set -g mouse-resize-pane off +set -g mouse-select-pane off +set -g mouse-select-window off +set -g mode-mouse off +set -g mouse-utf8 off +bind-key -n M-F12 source $BYOBU_PREFIX/share/byobu/keybindings/mouse.tmux.enable \; display-message "Mouse: OFF" diff --git a/usr/share/byobu/keybindings/mouse.tmux.enable b/usr/share/byobu/keybindings/mouse.tmux.enable new file mode 100644 index 00000000..6658df8b --- /dev/null +++ b/usr/share/byobu/keybindings/mouse.tmux.enable @@ -0,0 +1,6 @@ +set -g mouse-resize-pane on +set -g mouse-select-pane on +set -g mouse-select-window on +set -g mode-mouse on +set -g mouse-utf8 off +bind-key -n M-F12 source $BYOBU_PREFIX/share/byobu/keybindings/mouse.tmux.disable \; display-message "Mouse: ON" diff --git a/usr/share/doc/byobu/help.tmux.txt b/usr/share/doc/byobu/help.tmux.txt index 90996698..8ec2f39c 100644 --- a/usr/share/doc/byobu/help.tmux.txt +++ b/usr/share/doc/byobu/help.tmux.txt @@ -38,4 +38,5 @@ and some convenient keybindings: Ctrl-F11 Join window into a vertical split F12 Escape sequence Shift-F12 Toggle on/off Byobu's keybindings + Alt-F12 Toggle on/off Byobu's mouse support Ctrl-Shift-F12 Mondrian squares