zsh-users
 help / color / mirror / code / Atom feed
From: Sebastian Gniazdowski <sgniazdowski@gmail.com>
To: Mikael Magnusson <mikachu@gmail.com>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: Example Zle -T transformation function?
Date: Sun, 10 Sep 2023 09:26:51 +0200	[thread overview]
Message-ID: <CAKc7PVBVZdKSa1GCni3x1KXGNtvzJ0z_xyoF8=vTHDvEfA_V6w@mail.gmail.com> (raw)
In-Reply-To: <CAKc7PVD3RU_8-W-aEk9C2_9DC_g4F0GpZs=SxJ0gXPqLiArrqw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1252 bytes --]

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@gmail.com>
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@gmail.com> wrote:
>
>> On 9/9/23, Sebastian Gniazdowski <sgniazdowski@gmail.com> 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

[-- Attachment #2: Type: text/html, Size: 3001 bytes --]

  reply	other threads:[~2023-09-10  7:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-09 15:41 Sebastian Gniazdowski
2023-09-09 16:46 ` Mikael Magnusson
2023-09-10  7:16   ` Sebastian Gniazdowski
2023-09-10  7:26     ` Sebastian Gniazdowski [this message]
2023-09-10 12:20       ` Bart Schaefer

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='CAKc7PVBVZdKSa1GCni3x1KXGNtvzJ0z_xyoF8=vTHDvEfA_V6w@mail.gmail.com' \
    --to=sgniazdowski@gmail.com \
    --cc=mikachu@gmail.com \
    --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).