zsh-users
 help / color / mirror / code / Atom feed
* Cancel zle -M on a keypress, use cursor keys
@ 2016-01-18  9:47 Sebastian Gniazdowski
  2016-01-18 17:34 ` Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: Sebastian Gniazdowski @ 2016-01-18  9:47 UTC (permalink / raw)
  To: Zsh Users

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-01-20 10:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-18  9:47 Cancel zle -M on a keypress, use cursor keys Sebastian Gniazdowski
2016-01-18 17:34 ` Bart Schaefer
2016-01-20 10:27   ` Sebastian Gniazdowski

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).