Explorar o código

screen: navigation mappings

Fabian Peter Hammerle %!s(int64=9) %!d(string=hai) anos
pai
achega
4019947fcf
Modificáronse 1 ficheiros con 16 adicións e 7 borrados
  1. 16 7
      screenrc

+ 16 - 7
screenrc

@@ -22,13 +22,22 @@ mousetrack on
 # layouts
 layout autosave on
 
-# navigating regions with Ctrl-arrows
-bindkey "^[[1;5D" focus left
-bindkey "^[[1;5C" focus right
-bindkey "^[[1;5A" focus up
-bindkey "^[[1;5B" focus down
-
-# region resize
+# navigating regions
+bind -k kl eval "focus left"
+bind -k kd eval "focus down"
+bind -k ku eval "focus up"
+bind -k kr eval "focus right"
+bind -c focus h eval "focus left" "command -c focus"
+bind -c focus j eval "focus down" "command -c focus"
+bind -c focus k eval "focus up" "command -c focus"
+bind -c focus l eval "focus right" "command -c focus"
+bind -c focus -k kl eval "focus left" "command -c focus"
+bind -c focus -k kd eval "focus down" "command -c focus"
+bind -c focus -k ku eval "focus up" "command -c focus"
+bind -c focus -k kr eval "focus right" "command -c focus"
+bind y command -c focus
+
+# resizing regions
 bind -c resize h eval "resize -h -5" "command -c resize"
 bind -c resize j eval "resize -v +3" "command -c resize"
 bind -c resize k eval "resize -v -3" "command -c resize"