Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How can I debug lost keyboard input?
- X-seq: zsh-users 23657
- From: Jérémie Roquet <jroquet@xxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: How can I debug lost keyboard input?
- Date: Wed, 19 Sep 2018 21:42:58 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-transfer-encoding; bh=8Sqyw2hdiOD+Ddt3sR29ofBSTwcQPwqkr1Tv2gaYs8Q=; b=pcK1tb4IJ2PpgVyzd9fRusxWKHxV8wFQPOq+6nQ0ea3eNUjveivTxS+A4pSk2URurI qJqLQ9haPkE7joHnjEmkrErAZn5yItitVUENKahTrreeat8uzAMQQiTzmIdHQ2pVOv4f 4Nqk+DxJ/5rKOt++A9A7LyOSo6umzh4H0zCIG9iU+z6h1YwD6JrKTDEI35Yoi+35p9D8 ZeYtbjIN0QcKvM6JHZopVgRyvtxUuTpsCgxW3dAw7bSuRtWJkVZXqzVwYMo1P16PcVih hdkqwBtK0UXMPMcn+kcgsijBWZPN391AbuB2wlQZd14p7dH4d1aB9zm9+TZCHXWhGROj 6EkA==
- In-reply-to: <20180919182732.6h4ytozjg4vt2bud@spiegl.de>
- 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: <20180912184227.yahwsdnwfddtqv3m@spiegl.de> <20180919182732.6h4ytozjg4vt2bud@spiegl.de>
- Sender: arkanosis@xxxxxxxxx
Hi Andy,
2018-09-19 20:27 GMT+02:00 Andy Spiegl <zsh.Andy@xxxxxxxxx>:
> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author