Apply patch from issue350
authorMichael Prokop <mika@grml.org>
Fri, 21 Dec 2007 23:12:12 +0000 (00:12 +0100)
committerMichael Prokop <mika@grml.org>
Fri, 21 Dec 2007 23:12:12 +0000 (00:12 +0100)
debian/changelog
etc/zsh/zshrc

index fcc5f64..58692aa 100644 (file)
@@ -1,3 +1,11 @@
+grml-etc-core (0.3.45) unstable; urgency=low
+
+  [ Alexander Steinböck ]
+  * /etc/zsh/zshrc: added bindkeys for navigating by vi keys (hjkl)
+    in menu selection [Closes: issue350]
+
+ -- Michael Prokop <mika@grml.org>  Sat, 22 Dec 2007 00:11:31 +0100
+
 grml-etc-core (0.3.44) unstable; urgency=low
 
   [ Frank Terbeck ]
index d7f98e3..95c910a 100644 (file)
@@ -412,6 +412,12 @@ bindkey '^Xi' insert-unicode-char
 #  bindkey . rationalise-dot
 
 #  bindkey '\eq' push-line-or-edit
+  
+# use the vi navigation keys (hjkl) besides cursor keys in menu selection
+  bindkey -M menuselect 'h' vi-backward-char                # left
+  bindkey -M menuselect 'k' vi-up-line-or-history           # up
+  bindkey -M menuselect 'l' vi-forward-char                 # right
+  bindkey -M menuselect 'j' vi-down-line-or-history         # bottom
 # }}}
 
 # power completion - abbreviation expansion {{{