Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

In menu-select, how to make accept-line do not put a space



Hello,I'm using the following setup:

zstyle ':completion:*:*:*:default' menu yes select search
function double-accept { accept-line; accept-line; }
zle -N double-accept
bindkey -M menuselect ' ' double-accept

It works fine, but it puts a space after pressing the space to accept
an entry. I would like it to not do it. How to accomplish this?

-- 
Sebastian Gniazdowski
News: https://twitter.com/ZdharmaI
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
Blog: http://zdharma.org



Messages sorted by: Reverse Date, Date, Thread, Author