From 213e22fb7133f77032f16c297f2920f04e9e87a9 Mon Sep 17 00:00:00 2001 From: Jeffery To Date: Mon, 27 May 2019 03:10:22 +0800 Subject: [PATCH] * usr/share/byobu/keybindings/f-keys.tmux: - Remove -k for new-window. In older versions of tmux, -k without -t had no effect. In tmux 2.8, -k without -t will not trigger a new window; the given command is executed in the current window instead. --- debian/changelog | 5 +++++ usr/share/byobu/keybindings/f-keys.tmux | 10 +++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/debian/changelog b/debian/changelog index 3daff1c8..57c8ca65 100644 --- a/debian/changelog +++ b/debian/changelog @@ -26,6 +26,11 @@ byobu (5.128) unreleased; urgency=medium creating it) * usr/lib/byobu/logo: - Add logo for OpenWrt + * usr/share/byobu/keybindings/f-keys.tmux: + - Remove -k for new-window. In older versions of tmux, -k without + -t had no effect. In tmux 2.8, -k without -t will + not trigger a new window; the given command is executed in the + current window instead. -- Dustin Kirkland Sun, 12 Aug 2018 11:37:11 -0500 diff --git a/usr/share/byobu/keybindings/f-keys.tmux b/usr/share/byobu/keybindings/f-keys.tmux index 2e0eca04..2617e31c 100644 --- a/usr/share/byobu/keybindings/f-keys.tmux +++ b/usr/share/byobu/keybindings/f-keys.tmux @@ -26,8 +26,8 @@ source $BYOBU_PREFIX/share/byobu/keybindings/f-keys.tmux.disable # Byobu's Keybindings # Documented in: $BYOBU_PREFIX/share/doc/byobu/help.tmux.txt -bind-key -n F1 new-window -k -n config byobu-config -bind-key -n S-F1 new-window -k -n help "sh -c '$BYOBU_PAGER $BYOBU_PREFIX/share/doc/byobu/help.tmux.txt'" +bind-key -n F1 new-window -n config byobu-config +bind-key -n S-F1 new-window -n help "sh -c '$BYOBU_PAGER $BYOBU_PREFIX/share/doc/byobu/help.tmux.txt'" bind-key -n F2 new-window -c "#{pane_current_path}" \; rename-window "-" bind-key -n C-F2 display-panes \; split-window -h -c "#{pane_current_path}" bind-key -n S-F2 display-panes \; split-window -v -c "#{pane_current_path}" @@ -54,7 +54,7 @@ bind-key -n M-S-Left resize-pane -L bind-key -n M-S-Right resize-pane -R bind-key -n F5 source $BYOBU_PREFIX/share/byobu/profiles/tmuxrc bind-key -n M-F5 run-shell '$BYOBU_PREFIX/lib/byobu/include/toggle-utf8' \; source $BYOBU_PREFIX/share/byobu/profiles/tmuxrc -bind-key -n S-F5 new-window -k "$BYOBU_PREFIX/lib/byobu/include/cycle-status" \; source $BYOBU_PREFIX/share/byobu/profiles/tmuxrc +bind-key -n S-F5 new-window "$BYOBU_PREFIX/lib/byobu/include/cycle-status" \; source $BYOBU_PREFIX/share/byobu/profiles/tmuxrc bind-key -n C-F5 send-keys ". $BYOBU_PREFIX/bin/byobu-reconnect-sockets" \; send-keys Enter bind-key -n C-S-F5 new-window -d "byobu-select-profile -r" bind-key -n F6 detach @@ -68,9 +68,9 @@ bind-key -n M-PPage copy-mode \; send-keys PPage bind-key -n F8 command-prompt -p "(rename-window) " "rename-window '%%'" bind-key -n C-F8 command-prompt -p "(rename-session) " "rename-session '%%'" bind-key -n S-F8 next-layout -bind-key -n M-S-F8 new-window -k "byobu-layout restore; clear; $SHELL" +bind-key -n M-S-F8 new-window "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 F9 new-window -n config byobu-config bind-key -n S-F9 command-prompt -p "Send command to all panes:" "run-shell \"$BYOBU_PREFIX/lib/byobu/include/tmux-send-command-to-all-panes '%%'\"" bind-key -n C-F9 command-prompt -p "Send command to all windows:" "run-shell \"$BYOBU_PREFIX/lib/byobu/include/tmux-send-command-to-all-windows '%%'\"" bind-key -n M-F9 display-panes \; setw synchronize-panes