Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: How can I debug lost keyboard input?



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