From: "Jérémie Roquet" <jroquet@arkanosis.net>
To: Zsh Users <zsh-users@zsh.org>
Subject: Re: How can I debug lost keyboard input?
Date: Wed, 19 Sep 2018 21:42:58 +0200 [thread overview]
Message-ID: <CAFOazAOaX0f3_PG9=_5FfxQdm4NDkT0vvg__x6TM9R3p4S=nvA@mail.gmail.com> (raw)
In-Reply-To: <20180919182732.6h4ytozjg4vt2bud@spiegl.de>
Hi Andy,
2018-09-19 20:27 GMT+02:00 Andy Spiegl <zsh.Andy@spiegl.de>:
> finer-forward-word() {
> local WORDCHARS=$WORDCHARS_FINER
> zle forward-word
> }
> zle finer-forward-word
>
> is that the "correct" way to do it or just a dumb workaround?
I'm not sure what the “correct” way is, but I've always done as follow:
my-widget() {
// …
}
zle -N my-widget
Best regards,
PS: thanks a lot for the “finer WORDCHARS” idea; I'm going to use this too!
--
Jérémie
next prev parent reply other threads:[~2018-09-19 19:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-12 18:42 Andy Spiegl
2018-09-19 18:27 ` Andy Spiegl
2018-09-19 19:42 ` Jérémie Roquet [this message]
2018-09-20 9:47 ` Andy Spiegl
2018-09-20 10:10 ` Mikael Magnusson
2018-09-20 10:19 ` Andy Spiegl
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAFOazAOaX0f3_PG9=_5FfxQdm4NDkT0vvg__x6TM9R3p4S=nvA@mail.gmail.com' \
--to=jroquet@arkanosis.net \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).