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
- X-seq: zsh-users 24039
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: In menu-select, how to make accept-line do not put a space
- Date: Wed, 10 Jul 2019 17:52:27 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=BGEzphdiSL3tFl7tlLklw7+d3y1rwccASJYew8eBM0E=; b=vCrtoMh8/9RRkh/5aGlAvruIBVyw+59Xlmy7JuY9A6eyfLMk/jEqmHGtek2i9/vnto VyXUe4K/NDxcp5RRvLxw5/wD7UjPSwfSfQjDTAzLxWAn+M+XywIGq4LYi13gBEbs5hvW 1zcFWoYFGZDNX2pEMnFizvp9fJcwhuTlJMpT/umWzgfMR9mHyXfW9lgNVlq+pJkCbv6J bcL28BCvd4ErS35wWvF+02fctgKti8Q/8uxorp0UkvBomy09N5oLUjAE1iIAG0GyNaze MEqLKWfTn+OsynOqzkOB/RMAhi6gucAYbdJM9VaOublxIY74SEsBnhOoGcAWKzLiJkz/ 3Fzw==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
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