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

index 58692aa..9586834 100644 (file)
@@ -2,7 +2,9 @@ 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]
+   as well as 'accept-and-infer-next history' (ctrl-o) to complete
+   within directories and stay in menu completion.
+   [Closes: issue350]
 
  -- Michael Prokop <mika@grml.org>  Sat, 22 Dec 2007 00:11:31 +0100
 
index 95c910a..23d288b 100644 (file)
@@ -412,12 +412,17 @@ 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
+
+# use the vi navigation keys (hjkl) besides cursor keys in menu completion
   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
+
+# accept a completion and try to complete again by using menu
+# completion; very useful with completing directories
+# by using 'undo' one's got a simple file browser
+  bindkey -M menuselect '^o' accept-and-infer-next-history
 # }}}
 
 # power completion - abbreviation expansion {{{