From c39e320a7444cd0a6e7f39ee99cfa6b56991525c Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Fri, 27 Feb 2009 15:45:18 -0600 Subject: [PATCH] * keybindings/common, doc/help.txt: Change F5 from kill window to hot-reload profile (killing a window is easy enough, with 'exit' command) --- doc/help.txt | 2 +- keybindings/common | 7 ++----- select-screen-profile | 1 + 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/doc/help.txt b/doc/help.txt index 81c4ef98..6c4e2ec1 100644 --- a/doc/help.txt +++ b/doc/help.txt @@ -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 F3 Go to the prev window | F7 Enter scrollback mode 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 'screen -r' - reattach | 'man screen' - complete help | > Escape sequence diff --git a/keybindings/common b/keybindings/common index 8d8b98a4..c46840e5 100644 --- a/keybindings/common +++ b/keybindings/common @@ -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 k3 prev # F3 | Previous 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 k7 copy # F7 | Enter copy/scrollback mode 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 # F11 | 'fullscreen' in gnome-terminal bindkey -k F2 lockscreen # F12 | Lock this terminal - -# Hot-reload profile -register r "^a:source ~/.screen-profiles/profile" -bind ~ process r diff --git a/select-screen-profile b/select-screen-profile index 0c92373a..fd3972f0 100755 --- a/select-screen-profile +++ b/select-screen-profile @@ -123,6 +123,7 @@ setprofile() { found=1 echo if [ "$TERM" = "screen" ]; then + echo `gettext 'Hit to reload the current profile, or...'` echo `gettext 'Close the current screen by typing "exit", and restart "screen" to activate.'` else echo `gettext 'Run "screen" to activate'`