mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 22:13:19 -07:00
* usr/share/byobu/keybindings/common, 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: LP: #945069 - unbind ctrl-left/right/up/down in byobu + previously was used to resize splits + some users unfortunately expect ctrl-left/right to move the cursor around words - resizing splits is something that happens relatively infrequently, so bind these to shift-alt-up/down/left/right - use alt-left/right to move between windows - use alt-up/down to move between sessions - source the disable bindings just before sourcing the byobu bindings, this enables a clean undo of bindings - document the changes in the help text
This commit is contained in:
commit
146960edb6
7 changed files with 93 additions and 60 deletions
19
debian/changelog
vendored
19
debian/changelog
vendored
|
@ -1,10 +1,29 @@
|
|||
byobu (5.22) unreleased; urgency=low
|
||||
|
||||
[ Dustin Kirkland ]
|
||||
* usr/bin/byobu-config, usr/bin/byobu-ctrl-a: LP: #1019743
|
||||
- fix escape sequence setting in config with tmux
|
||||
* debian/postinst, debian/postrm: LP: #1050249
|
||||
- clean up obsolete config file
|
||||
|
||||
[ Jake Biesinger and Dustin Kirkland ]
|
||||
* usr/share/byobu/keybindings/common, 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: LP: #945069
|
||||
- unbind ctrl-left/right/up/down in byobu
|
||||
+ previously was used to resize splits
|
||||
+ some users unfortunately expect ctrl-left/right to move the
|
||||
cursor around words
|
||||
- resizing splits is something that happens relatively infrequently,
|
||||
so bind these to shift-alt-up/down/left/right
|
||||
- use alt-left/right to move between windows
|
||||
- use alt-up/down to move between sessions
|
||||
- source the disable bindings just before sourcing the byobu bindings,
|
||||
this enables a clean undo of bindings
|
||||
- document the changes in the help text
|
||||
|
||||
-- Dustin Kirkland <kirkland@ubuntu.com> Wed, 11 Jul 2012 12:02:34 -0500
|
||||
|
||||
byobu (5.21-0ubuntu1) quantal; urgency=low
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
source $BYOBU_PREFIX/share/byobu/keybindings/f-keys.screen.disable
|
||||
source $BYOBU_PREFIX/share/byobu/keybindings/f-keys.screen
|
||||
|
|
|
@ -34,8 +34,8 @@ bindkey "^[O1;2Q" eval 'split' 'focus down' 'next' 'focus up' 'layout save byobu
|
|||
# No ctrl-shift-F2 (new session) in Screen
|
||||
bindkey -k k3 eval 'prev' 'fit' # F3 | Previous Window
|
||||
bindkey -k k4 eval 'next' 'fit' # F4 | Next Window
|
||||
bindkey "^[[1;6D" eval 'prev' 'fit' # ctrl-shift-left | Previous Window
|
||||
bindkey "^[[1;6C" eval 'next' 'fit' # ctrl-shift-right | Next Window
|
||||
bindkey "^[[1;3D" eval 'prev' 'fit' # alt-left | Previous Window
|
||||
bindkey "^[[1;3C" eval 'next' 'fit' # alt-right | Next Window
|
||||
# No alt-up (previous session) in Screen
|
||||
# No alt-down (next session) in Screen
|
||||
bindkey "^[O1;2R" focus up # shift-F3 | focus up
|
||||
|
@ -46,10 +46,10 @@ bindkey "^[[1;2D" focus up # shift-left | focus up
|
|||
bindkey "^[[1;2C" focus down # shift-right | focus down
|
||||
# No ctrl-shift-F3 (move pane) in Screen
|
||||
# No ctrl-shift-F4 (move pane) in Screen
|
||||
bindkey "^[[1;5A" resize +1 # ctrl-up | resize +1
|
||||
bindkey "^[[1;5B" resize -1 # ctrl-down | resize -1
|
||||
bindkey "^[[1;5D" resize -1 # ctrl-left | resize -1
|
||||
bindkey "^[[1;5C" resize +1 # ctrl-right | resize +1
|
||||
bindkey "^[[1;4A" resize +1 # shift-alt-up | resize +1
|
||||
bindkey "^[[1;4B" resize -1 # shift-alt-down | resize -1
|
||||
bindkey "^[[1;4D" resize -1 # shift-alt-left | resize -1
|
||||
bindkey "^[[1;4C" resize +1 # shift-alt-right | resize +1
|
||||
register r ":source $BYOBU_CONFIG_DIR/profile^M" # | Goes with F5 definition
|
||||
bindkey -k k5 eval 'process x' 'process r' # F5 | Reload profile
|
||||
bindkey "^[[15;5~" eval 'process x' 'process r' 'stuff ". $BYOBU_PREFIX/bin/byobu-reconnect-sockets^M"' # ctrl-F5 | reconnect gpg/ssh/x sockets
|
||||
|
|
|
@ -51,6 +51,8 @@ bindkey "^[O1;5Q"
|
|||
bindkey "^[O1;2Q"
|
||||
bindkey -k k3
|
||||
bindkey -k k4
|
||||
bindkey "^[[1;3D"
|
||||
bindkey "^[[1;3C"
|
||||
bindkey "^[[1;6D"
|
||||
bindkey "^[[1;6C"
|
||||
bindkey "^[O1;2R"
|
||||
|
@ -59,10 +61,10 @@ bindkey "^[[1;2A"
|
|||
bindkey "^[[1;2B"
|
||||
bindkey "^[[1;2D"
|
||||
bindkey "^[[1;2C"
|
||||
bindkey "^[[1;5A"
|
||||
bindkey "^[[1;5B"
|
||||
bindkey "^[[1;5D"
|
||||
bindkey "^[[1;5C"
|
||||
bindkey "^[[1;4A"
|
||||
bindkey "^[[1;4B"
|
||||
bindkey "^[[1;4D"
|
||||
bindkey "^[[1;4C"
|
||||
bindkey -k k5
|
||||
bindkey "^[[15;5~"
|
||||
bindkey "^[[15;6~"
|
||||
|
|
|
@ -21,6 +21,9 @@
|
|||
# Add F12 to the prefix list
|
||||
set -g prefix F12
|
||||
|
||||
# Clear the slate
|
||||
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
|
||||
|
@ -31,8 +34,8 @@ 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 C-S-Left previous-window
|
||||
bind-key -n C-S-Right 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 :.-
|
||||
|
@ -45,10 +48,10 @@ 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-S-F3 swap-window -t :-1
|
||||
bind-key -n C-S-F4 swap-window -t :+1
|
||||
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-S-Up resize-pane -U
|
||||
bind-key -n M-S-Down resize-pane -D
|
||||
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 S-F5 new-window -k "$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
|
||||
|
|
|
@ -27,10 +27,14 @@ unbind-key -n S-F2
|
|||
unbind-key -n C-S-F2
|
||||
unbind-key -n F3
|
||||
unbind-key -n F4
|
||||
unbind-key -n C-Up
|
||||
unbind-key -n C-Down
|
||||
unbind-key -n C-Left
|
||||
unbind-key -n C-Right
|
||||
unbind-key -n C-S-Left
|
||||
unbind-key -n C-S-Right
|
||||
unbind-key -n M-Up
|
||||
unbind-key -n M-Down
|
||||
unbind-key -n C-S-Up
|
||||
unbind-key -n C-S-Down
|
||||
unbind-key -n S-F3
|
||||
unbind-key -n S-F4
|
||||
unbind-key -n S-Up
|
||||
|
@ -41,10 +45,14 @@ unbind-key -n C-F3
|
|||
unbind-key -n C-F4
|
||||
unbind-key -n C-S-F3
|
||||
unbind-key -n C-S-F4
|
||||
unbind-key -n C-Up
|
||||
unbind-key -n C-Down
|
||||
unbind-key -n C-Left
|
||||
unbind-key -n C-Right
|
||||
unbind-key -n M-Up
|
||||
unbind-key -n M-Down
|
||||
unbind-key -n M-Left
|
||||
unbind-key -n M-Right
|
||||
unbind-key -n S-M-Up
|
||||
unbind-key -n S-M-Down
|
||||
unbind-key -n S-M-Left
|
||||
unbind-key -n S-M-Right
|
||||
unbind-key -n F5
|
||||
unbind-key -n S-F5
|
||||
unbind-key -n C-F5
|
||||
|
|
|
@ -9,13 +9,13 @@ and some convenient keybindings:
|
|||
Ctrl-F2 Create a vertical split
|
||||
Ctrl-Shift-F2 Create a new session
|
||||
F3/F4 Move focus among windows
|
||||
Alt-Left/Right Move focus among windows
|
||||
Alt-Up/Down Move focus among sessions
|
||||
Shift-Left/Right/Up/Down Move focus among splits
|
||||
Shift-F3/F4 Move focus among splits
|
||||
Ctrl-F3/F4 Move a split
|
||||
Ctrl-Shift-F3/F4 Move a window
|
||||
Alt-Up/Down Move focus among sessions
|
||||
Shift-Left/Right/Up/Down Move focus among splits
|
||||
Ctrl-Shift-Left/Right Move focus among windows
|
||||
Ctrl-Left/Right/Up/Down Resize a split
|
||||
Shift-Alt-Left/Right/Up/Down Resize a split
|
||||
F5 Reload profile, refresh status
|
||||
Shift-F5 Toggle through status lines
|
||||
Ctrl-F5 Reconnect ssh/gpg/dbus sockets
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue