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

Re: Example Zle -T transformation function?



I wonder why on clean shell (-f) only one invocation occurs, for the second entered char?
    https://asciinema.org/a/1nq0mvGGlu62f1BxLWT2FeT2R

What use case can T-func have?


On Sun, 10 Sept 2023 at 09:16, Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx> wrote:
Thanks. It seems that a transformation function takes per char data and is allowed to return multiple char strings.


On Sat, 9 Sept 2023 at 18:46, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
On 9/9/23, Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx> wrote:
> In the manual, there are zle -T functions mentioned:
>
>               -T     This is used to add, list or remove internal
>  transforma‐
>                      tions on the processing performed by the line editor.
> It
>                      is typically used only for debugging or  testing  and
>  is
>                      therefore of little interest to the general user.
>
> Could someone provide an example of such transformation function?

https://www.zsh.org/mla/workers/2012/msg00013.html

--
Mikael Magnusson


--
Best regards,
Sebastian Gniazdowski



--
Best regards,
Sebastian Gniazdowski



Messages sorted by: Reverse Date, Date, Thread, Author