소스 검색

screen: added resize mode

Fabian Peter Hammerle 9 년 전
부모
커밋
d58f43465c
1개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  1. 10 0
      screenrc

+ 10 - 0
screenrc

@@ -19,3 +19,13 @@ mousetrack on
 
 # layouts
 layout autosave on
+
+# F2 puts Screen into resize mode. Resize regions using hjkl keys.
+bindkey "^[OQ" eval "command -c rsz" # enter resize mode
+# use hjkl keys to resize regions
+bind -c rsz h eval "resize -h -5" "command -c rsz"
+bind -c rsz j eval "resize -v -3" "command -c rsz"
+bind -c rsz k eval "resize -v +3" "command -c rsz"
+bind -c rsz l eval "resize -h +5" "command -c rsz"
+
+# https://gist.github.com/joaopizani/2718397