Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Cancel zle -M on a keypress, use cursor keys
- X-seq: zsh-users 21161
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Cancel zle -M on a keypress, use cursor keys
- Date: Mon, 18 Jan 2016 10:47:01 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=lvstT1212rKUSo09i1pIOSGR0xYZ1/ms0pbUYMgilac=; b=lMFJNbfrQLBd6d/cTxflcapdI85xyu+dvu4hlCFT3pgF00w/3TCt0IMnjVQGQTkwGM BZ896pNrj9Dsx5y1c5WaX6KvGb0cqZoscU1hoOswKKeXGkpPm8drM/PoHVcmdxLIDqqi P2uezVybGTwV/zesTh2prRl3N9sw/umTOpQSx7+K/rC8sKPB6fbQ5o9hBV4AePfRs2hp ZIedGZMaC79U+boyjIsM1LdA5oj4FmIX4bn6lDnpVU3edvH8J7unL9NkT07t8CacVsTI bjpFWL9ACXvlaTYI1Bnus236AQFp/rPLisIsUvrO2DvNgJk/cqrLwph1VwsuU0hTiEFe f2gg==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
Hello,
I've written a Zle completion widget that edits BUFFER and proposes
matches via zle -M. I want to cancel the zle -M message when user does
anything different than browsing completions (done with Alt-h and
Alt-H). How to accomplish this? I guess I could somehow detect
self-insert, but it's quite invasive approach, and I already have "zle
-N self-insert url-quote-magic" in .zshrc.
I would also want to catch cursor keys and use them for browsing the
matches. How to do this, should I somehow use bindkey locally in the
widget?
Best regards,
Sebastian Gniazdowski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author