* 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
This commit is contained in:
Dustin Kirkland 2013-09-11 14:55:49 -05:00
commit 9d1bbb875a
7 changed files with 28 additions and 4 deletions

11
debian/changelog vendored
View file

@ -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 <kirkland@ubuntu.com> Tue, 03 Sep 2013 14:40:09 -0500

View file

@ -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

View file

@ -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"

View file

@ -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

View file

@ -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"

View file

@ -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"

View file

@ -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