浏览代码

screen: focus change mappings changed

Fabian Peter Hammerle 9 年之前
父节点
当前提交
33808ac422
共有 1 个文件被更改,包括 9 次插入14 次删除
  1. 9 14
      screenrc

+ 9 - 14
screenrc

@@ -23,19 +23,14 @@ mousetrack on
 layout autosave on
 
 # 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
+bind -k kl focus left
+bind -k kd focus down
+bind -k ku focus up
+bind -k kr focus right
+bind h focus left
+bind j focus down
+bind k focus up
+bind l focus right
 
 # resizing regions
 bind -c resize h eval "resize -h -5" "command -c resize"
@@ -46,6 +41,6 @@ bind -c resize -k kl eval "resize -h -5" "command -c resize"
 bind -c resize -k kd eval "resize -v +3" "command -c resize"
 bind -c resize -k ku eval "resize -v -3" "command -c resize"
 bind -c resize -k kr eval "resize -h +5" "command -c resize"
-bind R command -c resize
+bind R eval "command -c resize" "echo resize"
 
 # https://gist.github.com/joaopizani/2718397