From e46f05e0af2358a1142642a92f044a1e30b0e1b8 Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Wed, 27 Nov 2013 08:35:57 -0600 Subject: [PATCH] * usr/share/byobu/keybindings/f-keys.screen, usr/share/byobu/keybindings/f-keys.screen.disable, usr/share/byobu/keybindings/f-keys.tmux, usr/share/byobu/keybindings/f-keys.tmux.disable, usr/share/doc/byobu/help.tmux.txt: - change the printscreen hotkey from Shift-F9 to Shift-F7 - Shift-F7 should be more memorable, in that F7 has long been used to enter scrollback mode --- debian/changelog | 9 ++++++++- usr/share/byobu/keybindings/f-keys.screen | 4 ++-- usr/share/byobu/keybindings/f-keys.screen.disable | 2 +- usr/share/byobu/keybindings/f-keys.tmux | 2 +- usr/share/byobu/keybindings/f-keys.tmux.disable | 2 +- usr/share/doc/byobu/help.tmux.txt | 2 +- 6 files changed, 14 insertions(+), 7 deletions(-) diff --git a/debian/changelog b/debian/changelog index 5dc89c54..f2b600ba 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,13 @@ byobu (5.66) unreleased; urgency=low - * UNRELEASED + * usr/share/byobu/keybindings/f-keys.screen, + usr/share/byobu/keybindings/f-keys.screen.disable, + usr/share/byobu/keybindings/f-keys.tmux, + usr/share/byobu/keybindings/f-keys.tmux.disable, + usr/share/doc/byobu/help.tmux.txt: + - change the printscreen hotkey from Shift-F9 to Shift-F7 + - Shift-F7 should be more memorable, in that F7 has long been + used to enter scrollback mode -- Dustin Kirkland Mon, 18 Nov 2013 12:31:12 -0600 diff --git a/usr/share/byobu/keybindings/f-keys.screen b/usr/share/byobu/keybindings/f-keys.screen index c15bf415..3294b803 100644 --- a/usr/share/byobu/keybindings/f-keys.screen +++ b/usr/share/byobu/keybindings/f-keys.screen @@ -71,8 +71,8 @@ bindkey -k k8 eval 'process x' 'process t' # F8 | Re-title a window # No ctrl-F8 (restore layout) in Screen # No ctrl-shift-F8 (save layout) in Screen bindkey -k k9 $BYOBU_BACKEND -t config 0 byobu-config # F9 | Configuration -register s "[g G$>^h" # Goes with Shift-F9 and F12 ~ definition -bindkey "^[[20;2~" eval 'process x' 'process s' 'exec $BYOBU_SED -i -e "/./,/^$/!d" $BYOBU_RUN_DIR/printscreen' '$BYOBU_BACKEND -t PRINTSCREEN view $BYOBU_RUN_DIR/printscreen' # Shift-F9 | write the buffer to file, open in a new window +register s "[g G$>^h" # Goes with Shift-F7 and F12 ~ definition +bindkey "^[[18;2~" eval 'process x' 'process s' 'exec $BYOBU_SED -i -e "/./,/^$/!d" $BYOBU_RUN_DIR/printscreen' '$BYOBU_BACKEND -t PRINTSCREEN view $BYOBU_RUN_DIR/printscreen' # Shift-F7 | write the buffer to file, open in a new window # F10 | 'toolbar' in gnome-terminal # F11 | 'Full Screen' in gnome-terminal # No alt-F11 (break pane) in Screen diff --git a/usr/share/byobu/keybindings/f-keys.screen.disable b/usr/share/byobu/keybindings/f-keys.screen.disable index 8b5e22ad..9f67985f 100644 --- a/usr/share/byobu/keybindings/f-keys.screen.disable +++ b/usr/share/byobu/keybindings/f-keys.screen.disable @@ -73,9 +73,9 @@ bindkey "^[[17;2~" bindkey "^[[32~" bindkey "^[[17;5~" bindkey -k k7 +bindkey "^[[18;2~" bindkey "^[[5;3~" bindkey "^[[6;3~" bindkey -k k8 bindkey -k k9 -bindkey "^[[20;2~" bindkey -k F2 diff --git a/usr/share/byobu/keybindings/f-keys.tmux b/usr/share/byobu/keybindings/f-keys.tmux index be23cd92..ae160bda 100644 --- a/usr/share/byobu/keybindings/f-keys.tmux +++ b/usr/share/byobu/keybindings/f-keys.tmux @@ -62,6 +62,7 @@ bind-key -n M-F6 run-shell '$BYOBU_PREFIX/lib/byobu/include/tmux-detach-all-but- bind-key -n S-F6 run-shell 'exec touch $BYOBU_RUN_DIR/no-logout' \; detach bind-key -n C-F6 kill-pane bind-key -n F7 copy-mode +bind-key -n S-F7 capture-pane -S -32768 \; save-buffer "$BYOBU_RUN_DIR/printscreen" \; delete-buffer \; new-window -n "PRINTSCREEN" "view $BYOBU_RUN_DIR/printscreen" 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 '%%'" @@ -69,7 +70,6 @@ bind-key -n S-F8 next-layout bind-key -n C-F8 new-window -k "byobu-layout restore; clear; $SHELL" bind-key -n C-S-F8 command-prompt -p "Save byobu layout as:" "run-shell \"byobu-layout save '%%'\"" bind-key -n F9 new-window -k -n config byobu-config -bind-key -n S-F9 capture-pane -S -32768 \; save-buffer "$BYOBU_RUN_DIR/printscreen" \; delete-buffer \; new-window -n "PRINTSCREEN" "view $BYOBU_RUN_DIR/printscreen" 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 diff --git a/usr/share/byobu/keybindings/f-keys.tmux.disable b/usr/share/byobu/keybindings/f-keys.tmux.disable index f71b0463..8d4faa91 100644 --- a/usr/share/byobu/keybindings/f-keys.tmux.disable +++ b/usr/share/byobu/keybindings/f-keys.tmux.disable @@ -63,6 +63,7 @@ unbind-key -n M-F6 unbind-key -n S-F6 unbind-key -n C-F6 unbind-key -n F7 +unbind-key -n S-F7 unbind-key -n M-NPage unbind-key -n M-PPage unbind-key -n F8 @@ -70,7 +71,6 @@ unbind-key -n C-F8 unbind-key -n C-S-F8 unbind-key -n S-F8 unbind-key -n F9 -unbind-key -n S-F9 unbind-key -n M-F11 unbind-key -n C-F11 unbind-key -n S-F11 diff --git a/usr/share/doc/byobu/help.tmux.txt b/usr/share/doc/byobu/help.tmux.txt index 483e1a38..8cc43ae3 100644 --- a/usr/share/doc/byobu/help.tmux.txt +++ b/usr/share/doc/byobu/help.tmux.txt @@ -27,12 +27,12 @@ and some convenient keybindings: Ctrl-F6 Kill split in focus F7 Enter scrollback history Alt-PageUp/PageDown Enter and move through scrollback + Shift-F7 Save history to $BYOBU_RUN_DIR/printscreen F8 Rename the current window Shift-F8 Toggle through split arrangements Ctrl-F8 Restore a split-pane layout Ctrl-Shift-F8 Save the current split-pane layout F9 Launch byobu-config window - Shift-F9 Save history to $BYOBU_RUN_DIR/printscreen F10 * Used by X11 * F11 * Used by X11 * Alt-F11 Expand split to a full window