mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 06:23:19 -07:00
* keybindings/common, doc/help.txt: Change F5 from kill window to hot-reload
profile (killing a window is easy enough, with 'exit' command)
This commit is contained in:
parent
f01528ae6f
commit
c39e320a74
3 changed files with 4 additions and 6 deletions
|
@ -7,7 +7,7 @@ updates-available, system-load, cpu-info, memory-info, and date/time.
|
||||||
F2 Create a new window | F6 Detach from the session
|
F2 Create a new window | F6 Detach from the session
|
||||||
F3 Go to the prev window | F7 Enter scrollback mode
|
F3 Go to the prev window | F7 Enter scrollback mode
|
||||||
F4 Go to the next window | F8 View all keybindings
|
F4 Go to the next window | F8 View all keybindings
|
||||||
F5 Close current window | F9 Configure screen-profiles
|
F5 Hot-reload profile | F9 Configure screen-profiles
|
||||||
| F12 Lock this terminal
|
| F12 Lock this terminal
|
||||||
'screen -r' - reattach |
|
'screen -r' - reattach |
|
||||||
'man screen' - complete help | <ctrl-<esckey>> Escape sequence
|
'man screen' - complete help | <ctrl-<esckey>> Escape sequence
|
||||||
|
|
|
@ -36,7 +36,8 @@ register n "^a^c^aA" # Goes with the F2 definition
|
||||||
bindkey -k k2 process n # F2 | Create new window (and name it)
|
bindkey -k k2 process n # F2 | Create new window (and name it)
|
||||||
bindkey -k k3 prev # F3 | Previous Window
|
bindkey -k k3 prev # F3 | Previous Window
|
||||||
bindkey -k k4 next # F4 | Next Window
|
bindkey -k k4 next # F4 | Next Window
|
||||||
bindkey -k k5 kill # F5 | Close window
|
register r "^a:source ~/.screen-profiles/profile" # Goes with F5 definition
|
||||||
|
bindkey -k k5 process r # F5 | Reload profile
|
||||||
bindkey -k k6 detach # F6 | Detach from this session
|
bindkey -k k6 detach # F6 | Detach from this session
|
||||||
bindkey -k k7 copy # F7 | Enter copy/scrollback mode
|
bindkey -k k7 copy # F7 | Enter copy/scrollback mode
|
||||||
bindkey -k k8 help # F8 | Advanced help/keybindings
|
bindkey -k k8 help # F8 | Advanced help/keybindings
|
||||||
|
@ -44,7 +45,3 @@ bindkey -k k9 screen -t help 0 screen-profiles # F9 | Configuration
|
||||||
# F10 | 'toolbar' in gnome-terminal
|
# F10 | 'toolbar' in gnome-terminal
|
||||||
# F11 | 'fullscreen' in gnome-terminal
|
# F11 | 'fullscreen' in gnome-terminal
|
||||||
bindkey -k F2 lockscreen # F12 | Lock this terminal
|
bindkey -k F2 lockscreen # F12 | Lock this terminal
|
||||||
|
|
||||||
# Hot-reload profile
|
|
||||||
register r "^a:source ~/.screen-profiles/profile"
|
|
||||||
bind ~ process r
|
|
||||||
|
|
|
@ -123,6 +123,7 @@ setprofile() {
|
||||||
found=1
|
found=1
|
||||||
echo
|
echo
|
||||||
if [ "$TERM" = "screen" ]; then
|
if [ "$TERM" = "screen" ]; then
|
||||||
|
echo `gettext 'Hit <F5><enter> to reload the current profile, or...'`
|
||||||
echo `gettext 'Close the current screen by typing "exit", and restart "screen" to activate.'`
|
echo `gettext 'Close the current screen by typing "exit", and restart "screen" to activate.'`
|
||||||
else
|
else
|
||||||
echo `gettext 'Run "screen" to activate'`
|
echo `gettext 'Run "screen" to activate'`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue