zshrc: also support "+" and <INSERT> as keybindings for accept-and-menu-complete.
authorBernhard Tittelbach <bernhard@tittelbach.org>
Wed, 20 Jul 2011 17:17:33 +0000 (19:17 +0200)
committerMichael Prokop <mika@grml.org>
Thu, 21 Jul 2011 09:12:41 +0000 (11:12 +0200)
etc/zsh/zshrc

index 42b5671..0977409 100644 (file)
@@ -893,6 +893,9 @@ fi
 if is4 && [[ -n ${(k)modules[zsh/complist]} ]] ; then
     #k# menu selection: pick item but stay in the menu
     bindkey -M menuselect '\e^M' accept-and-menu-complete
+    # also use + and INSERT since it's easier to press repeatedly
+    bindkey -M menuselect "+" accept-and-menu-complete
+    bindkey -M menuselect "^[[2~" accept-and-menu-complete
 
     # accept a completion and try to complete again by using menu
     # completion; very useful with completing directories