mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 14:03:18 -07:00
usr/bin/byobu-status, usr/lib/byobu/menu,
usr/share/byobu/keybindings/f-keys, usr/share/byobu/keybindings/screen-escape-keys: show a visual queue when toggling on/off the f-key keybindings; Menu:<F9> vs. Menu:<^a-@>, LP: #589016
This commit is contained in:
parent
3c1afac78c
commit
fd7cd588ea
5 changed files with 11 additions and 6 deletions
8
debian/changelog
vendored
8
debian/changelog
vendored
|
@ -1,6 +1,10 @@
|
|||
byobu (2.78) unreleased; urgency=low
|
||||
byobu (2.78) UNRELEASED; urgency=low
|
||||
|
||||
* UNRELEASED
|
||||
* usr/bin/byobu-status, usr/lib/byobu/menu,
|
||||
usr/share/byobu/keybindings/f-keys,
|
||||
usr/share/byobu/keybindings/screen-escape-keys: show a visual queue
|
||||
when toggling on/off the f-key keybindings; Menu:<F9> vs. Menu:<^a-@>,
|
||||
LP: #589016
|
||||
|
||||
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 01 Jun 2010 10:53:54 -0500
|
||||
|
||||
|
|
|
@ -85,5 +85,6 @@ case "$P" in
|
|||
*)
|
||||
eval x="\$$P" || exit 1
|
||||
[ "$x" = "1" ] || exit 0
|
||||
. $(find_script "$P")
|
||||
shift
|
||||
. $(find_script "$P") "$@"
|
||||
esac
|
||||
|
|
|
@ -23,7 +23,7 @@ color 2>/dev/null || color() { true; }
|
|||
|
||||
[ -r "$HOME/.$PKG/keybindings" ] && bindings="$HOME/.$PKG/keybindings" || bindings="$HOME/.screenrc"
|
||||
|
||||
if grep -qs "^source.*screen-escape-keys$" $bindings 2>/dev/null; then
|
||||
if grep -qs "^source.*screen-escape-keys$" $bindings 2>/dev/null || [ "$1" = "--disable-f-keys" ]; then
|
||||
esc=`grep "^escape" $bindings | sed "s/^.*\(.\)$/\1/"`
|
||||
[ -n "$esc" ] && key="^$esc-@" || key="^a-@"
|
||||
elif grep -qs "^source.*none$" $bindings 2>/dev/null; then
|
||||
|
|
|
@ -42,4 +42,4 @@ bind ~ eval 'process s' 'exec sed -i "/./,/^$/!d" /var/run/screen/S-$USER/byobu-
|
|||
|
||||
# toggle f-key keybindings off
|
||||
register d "^a:source /usr/share/byobu/keybindings/screen-escape-keys^M"
|
||||
bind ! process d
|
||||
bind ! eval 'process d' 'backtick 111 9999999 9999999 byobu-status menu --disable-f-keys'
|
||||
|
|
|
@ -49,4 +49,4 @@ bind @ screen -t config 0 byobu-config
|
|||
bind $ screen -t status 0 byobu-status-detail
|
||||
# ctrl-a-! Toggle f-key keybindings on
|
||||
register e "^a:source /usr/share/byobu/keybindings/f-keys^M"
|
||||
bind ! process e
|
||||
bind ! eval 'process e' 'backtick 111 9999999 9999999 byobu-status menu'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue