Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: In menu-select, how to make accept-line do not put a space
- X-seq: zsh-users 24043
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Mikael Magnusson <mikachu@xxxxxxxxx>
- Subject: Re: In menu-select, how to make accept-line do not put a space
- Date: Wed, 10 Jul 2019 20:43:07 +0200
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=A+x8CbAIxInAYR224j4wnX1jVgOyCpjmukiZtCww8ig=; b=SWdj7EdNDy63o1ZNlf8jP7cVLSYSz/Dblq1GE6+5om8s98qDWKzEsNtijecFoUoO3w VbDjeFhgOsmzWt9PEOCQVKoJVzNm/DoQtf2tSctn+ImwzqE+7mN6OFNWELgkvJXg9VcS kgap6m9DvfYw2nniJVZhw7qQMgYzHFeftNmKNE/5gQKjE+qwBgYpEX3Xt8vuPPAplKyQ 1PXpLhOdmdvZ4tIZSFbDshRLL/fB6Ne4e2BVqUnO0oacDh0geanrJUAMNXakwRTu8jyO R5OChoIaElZXoIrcWqYWkaeezOmFem37+bOB8noXMo9QN16Qd4bLej1f3opBuaCheiSY FFog==
- In-reply-to: <CAHYJk3TLF1Qh75LPh3zOBNFg43=+NGTCApE+_jvJhX6WCj5gqQ@mail.gmail.com>
- 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
- References: <CAKc7PVBewq9Z7ZN5kn6fVVinQpaUTBFODzZUysB31WN5t1orbA@mail.gmail.com> <CAHYJk3TLF1Qh75LPh3zOBNFg43=+NGTCApE+_jvJhX6WCj5gqQ@mail.gmail.com>
On Wed, 10 Jul 2019 at 18:30, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> This doesn't do what you think it does.
> ...
> "any other zle function not listed leaves menu selection and
> executes that function.
I'm trying to solve this with a function that deploys a code to be
evaluated in zle context (the zle-F boomerang trick):
https://gist.github.com/psprint/f2a0db07cc80351e19e30378c6eaa779
function double-accept { echo 1 >> /tmp/reply; deploy-code "BUFFER[-1]=''"; }
zle -N double-accept
bindkey -M menuselect ' ' double-accept
However, I don't even get the message in /tmp/reply. Anyone knows why?
--
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