mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 14:03:18 -07:00
* usr/bin/byobu-select-session:
- fix select session, when there is only 1 session to attach to * usr/share/byobu/keybindings/f-keys: - use shift-F6 (in both ssh and tty) for detach, but don't logout - seems that ctrl-F6 doesn't work in tty right now
This commit is contained in:
parent
9dbbb00f10
commit
fc58b3cc04
3 changed files with 9 additions and 6 deletions
6
debian/changelog
vendored
6
debian/changelog
vendored
|
@ -1,6 +1,10 @@
|
||||||
byobu (4.6) unreleased; urgency=low
|
byobu (4.6) unreleased; urgency=low
|
||||||
|
|
||||||
* UNRELEASED
|
* usr/bin/byobu-select-session:
|
||||||
|
- fix select session, when there is only 1 session to attach to
|
||||||
|
* usr/share/byobu/keybindings/f-keys:
|
||||||
|
- use shift-F6 (in both ssh and tty) for detach, but don't logout
|
||||||
|
- seems that ctrl-F6 doesn't work in tty right now
|
||||||
|
|
||||||
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 26 May 2011 15:14:52 -0500
|
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 26 May 2011 15:14:52 -0500
|
||||||
|
|
||||||
|
|
|
@ -65,8 +65,8 @@ if i > 1:
|
||||||
tries += 1
|
tries += 1
|
||||||
choice = ""
|
choice = ""
|
||||||
sys.stderr.write("\nERROR: Invalid input\n");
|
sys.stderr.write("\nERROR: Invalid input\n");
|
||||||
else:
|
elif i == 1:
|
||||||
os.execvp("byobu", ["", "shell"])
|
os.execvp("byobu", ["", "-AOxRR"])
|
||||||
|
|
||||||
if choice:
|
if choice:
|
||||||
if choice == i-1:
|
if choice == i-1:
|
||||||
|
|
|
@ -52,7 +52,6 @@ bindkey "^[O1;5Q" eval 'split -v' 'focus down' 'next' 'focus up' 'layout save by
|
||||||
bindkey "^[O1;2R" focus up # shift-F3 | focus up
|
bindkey "^[O1;2R" focus up # shift-F3 | focus up
|
||||||
bindkey "^[O1;2S" focus down # shift-F4 | focus down
|
bindkey "^[O1;2S" focus down # shift-F4 | focus down
|
||||||
bindkey "^[[15;2~" only # shift-F5 | kill all splits
|
bindkey "^[[15;2~" only # shift-F5 | kill all splits
|
||||||
bindkey "^[[17;2~" remove # shift-F6 | kill this split
|
|
||||||
|
|
||||||
# Hotkeys for splits (tty)
|
# Hotkeys for splits (tty)
|
||||||
bindkey "^[[26~" eval 'split' 'focus down' 'next' 'focus up' # shift-F2 | horizontal split
|
bindkey "^[[26~" eval 'split' 'focus down' 'next' 'focus up' # shift-F2 | horizontal split
|
||||||
|
@ -60,7 +59,6 @@ bindkey "^[[26~" eval 'split' 'focus down' 'next' 'focus up' # shift-F2 | horiz
|
||||||
bindkey "^[[28~" focus up # shift-F3 | focus up
|
bindkey "^[[28~" focus up # shift-F3 | focus up
|
||||||
bindkey "^[[29~" focus down # shift-F4 | focus down
|
bindkey "^[[29~" focus down # shift-F4 | focus down
|
||||||
bindkey "^[[31~" only # shift-F5 | kill all splits
|
bindkey "^[[31~" only # shift-F5 | kill all splits
|
||||||
bindkey "^[[32~" remove # shift-F6 | kill this split
|
|
||||||
|
|
||||||
# Make it more logical how to enter scrollback
|
# Make it more logical how to enter scrollback
|
||||||
register p "^[[5~"
|
register p "^[[5~"
|
||||||
|
@ -72,7 +70,8 @@ bindkey "^[[6;3~" eval 'msgwait 0' 'msgminwait 0' 'copy' 'process n' # alt-page
|
||||||
bindkey "^[[15;5~" eval 'process x' 'process r' 'stuff ". $BYOBU_PREFIX/bin/byobu-reconnect-sockets^M"' # ctrl-F5 | reconnect gpg/ssh/x sockets
|
bindkey "^[[15;5~" eval 'process x' 'process r' 'stuff ". $BYOBU_PREFIX/bin/byobu-reconnect-sockets^M"' # ctrl-F5 | reconnect gpg/ssh/x sockets
|
||||||
|
|
||||||
# Detach from an auto-launched byobu, but don't log out of the shell
|
# Detach from an auto-launched byobu, but don't log out of the shell
|
||||||
bindkey "^[[17;2~" eval 'exec touch /var/run/screen/S-$USER/byobu.no-logout' 'detach' # ctrl-F6 | detach, but don't logout
|
bindkey "^[[17;2~" eval 'exec touch /var/run/screen/S-$USER/byobu.no-logout' 'detach' # shift-F6 | detach, but don't logout
|
||||||
|
bindkey "^[[32~" eval 'exec touch /var/run/screen/S-$USER/byobu.no-logout' 'detach' # shift-F6 | detach, but don't logout
|
||||||
|
|
||||||
# toggle f-key keybindings off
|
# toggle f-key keybindings off
|
||||||
register d ":source $BYOBU_PREFIX/share/byobu/keybindings/screen-escape-keys^M"
|
register d ":source $BYOBU_PREFIX/share/byobu/keybindings/screen-escape-keys^M"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue