From 665499edab90bd3619504dac33b9e9813244e43b Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Wed, 9 Nov 2011 13:03:11 -0600 Subject: [PATCH] * usr/share/byobu/profiles/tmux: - rearrange to match help text; would be good to keep these coordinated --- debian/changelog | 3 +++ usr/share/byobu/profiles/tmux | 42 +++++++++++++++++------------------ 2 files changed, 24 insertions(+), 21 deletions(-) diff --git a/debian/changelog b/debian/changelog index a8d7c470..79e4605a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -14,6 +14,9 @@ byobu (4.47) unreleased; urgency=low - add a tmux keybinding help screen, bind to Shift-F1 * usr/share/byobu/profiles/tmux, usr/share/doc/byobu/help.tmux.txt: - add a keybinding Ctrl-Shift-F2 to create a new session + * usr/share/byobu/profiles/tmux: + - rearrange to match help text; would be good to keep these + coordinated -- Dustin Kirkland Tue, 08 Nov 2011 19:16:15 -0600 diff --git a/usr/share/byobu/profiles/tmux b/usr/share/byobu/profiles/tmux index a7c90a0c..74cbff6f 100644 --- a/usr/share/byobu/profiles/tmux +++ b/usr/share/byobu/profiles/tmux @@ -37,9 +37,30 @@ set -g prefix ^A,F12 bind-key -n F1 new-window -k -n config byobu-config bind-key -n S-F1 new-window -k -n help 'sensible-pager /usr/share/doc/byobu/help.tmux.txt' bind-key -n F2 new-window +bind-key -n C-F2 display-panes \; split-window -h +bind-key -n S-F2 display-panes \; split-window -v +bind-key -n C-S-F2 new-session bind-key -n F3 previous-window bind-key -n F4 next-window +bind-key -n M-Left previous-window +bind-key -n M-Right next-window +bind-key -n M-Up choose-session \; send-keys Up \; send-keys Enter +bind-key -n M-Down choose-session \; send-keys Down \; send-keys Enter +bind-key -n S-F3 display-panes \; select-pane -t :.- +bind-key -n S-F4 display-panes \; select-pane -t :.+ +bind-key -n S-Up display-panes \; select-pane -U +bind-key -n S-Down display-panes \; select-pane -D +bind-key -n S-Left display-panes \; select-pane -L +bind-key -n S-Right display-panes \; select-pane -R +bind-key -n C-F3 display-panes \; swap-pane -s :. -t :.- \; select-pane -t :.- +bind-key -n C-F4 display-panes \; swap-pane -s :. -t :.+ \; select-pane -t :.+ +bind-key -n C-Up resize-pane -U +bind-key -n C-Down resize-pane -D +bind-key -n C-Left resize-pane -L +bind-key -n C-Right resize-pane -R bind-key -n F5 source /usr/share/byobu/profiles/tmuxrc +bind-key -n S-F5 next-layout +bind-key -n C-F5 send-keys ". $BYOBU_PREFIX/bin/byobu-reconnect-sockets" \; send-keys Enter bind-key -n F6 detach bind-key -n S-F6 run-shell 'exec touch $BYOBU_RUN_DIR/no-logout' \; detach bind-key -n C-F6 kill-pane @@ -48,28 +69,7 @@ bind-key -n M-NPage copy-mode \; send-keys NPage bind-key -n M-PPage copy-mode \; send-keys PPage bind-key -n F8 command-prompt -p "(rename-window)" "rename-window %%" bind-key -n F9 new-window -k -n config byobu-config -bind-key -n C-F2 display-panes \; split-window -h -bind-key -n S-F2 display-panes \; split-window -v -bind-key -n S-F3 display-panes \; select-pane -t :.- -bind-key -n S-F4 display-panes \; select-pane -t :.+ -bind-key -n C-F3 display-panes \; swap-pane -s :. -t :.- \; select-pane -t :.- -bind-key -n C-F4 display-panes \; swap-pane -s :. -t :.+ \; select-pane -t :.+ -bind-key -n S-F5 next-layout -bind-key -n S-Up display-panes \; select-pane -U -bind-key -n S-Down display-panes \; select-pane -D -bind-key -n S-left display-panes \; select-pane -L -bind-key -n S-right display-panes \; select-pane -R -bind-key -n C-Up resize-pane -U -bind-key -n C-Down resize-pane -D -bind-key -n C-Left resize-pane -L -bind-key -n C-Right resize-pane -R -bind-key -n M-left previous-window -bind-key -n M-right next-window -bind-key -n M-Up choose-session \; send-keys Up \; send-keys Enter -bind-key -n M-Down choose-session \; send-keys Down \; send-keys Enter bind-key -n S-F11 break-pane -bind-key -n C-F5 send-keys ". $BYOBU_PREFIX/bin/byobu-reconnect-sockets" \; send-keys Enter -bind-key -n C-S-F2 new-session set-option -g set-titles on set-option -g set-titles-string '#(whoami)@#H - byobu (#S)'