From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 1244 invoked from network); 10 Sep 2023 07:26:45 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 10 Sep 2023 07:26:45 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1694330805; b=ECBbbFbSOM2fDLv1+RxxdyPkOvxfTVags3+7QTR4aDJLD0jtJW1UqnbQcbSjAEjHH4FHUFWcTT BdsTqk1bJqekib9EeUygpKevmULpQtX0wvVr33IwYbTB4jUZTjEfajHrdTzpU28qXdyjl2y2zf LL73JUS3WaTfhXrMx+MywZADPcPKeHHDtudij4894/lh4H6wBWity55EkFAa++5X06I30BXMyy G0wMrY2axPLaFwcbRsTG3SqoIY1tqkuiy960cpxuCGrudnWJ7qmFrENlX0KB5hWVgCjhtlEIey 9bF5X+BhwDC54WXb2sDsTvD3Bjhppl45C1WfpKs/BUqWYg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lf1-f45.google.com) smtp.remote-ip=209.85.167.45; dkim=pass header.d=gmail.com header.s=20221208 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1694330805; bh=CRH9gdNvX5KZtcnd8giOIr8woDOXI1OmwE7NztUBfCQ=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=VT1tWqiQeorHznaNBSR4xBqPvdPzjDNTwjKaq/DdgsKKQHRf4wkSsmMW956iQesg9VjfSedeY9 uPBmewPTGu6iqyEWTfT0ZHA1roG6bwl8ClGcvO7JEu2eW704BL9MrJ5vxCZODCxcfJfK1m2y+A 6Xj22eMhDyia/l7o7sq2kY6B3eZj5YQp8PmyCM3TKkKCAEa3caxCi0faMQV5t7lhcLVffQeNaq apCmBiqZez61/pYMMxLwg/jY6CMVzjgGarESaWAqm09E8JABXWnc+RMyWzmtpAuJFNmELeiA3u LFDMXgDSXrMf1lIlt3Oh44P8Lak4ldpN+EVuZ4mEjguy4w==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=urv2yMe93E5vS0Q5UVINgcGR42tlnqME61a8kWBX21M=; b=EWWt8HwKVInSSKrAUtJ35X27gG jGKNQXTDg3eY/xWjbGQ3rYCA6VB7wyk3WlYIcklWreUNJxjFQ3cP/S9JPK12cNZ5LTjCsP4cLizg3 +sK0rSomCDQGRppo0oT8fp3BQFTjCaTtIB0w8JbXvN9NwaGlzSVwQmwB61+QdNOvQGx9JYLesSKuA eUlx/pN5WmZL3DJVJRmrYFHpa0RtbdhtEq7ihPjlsu0KAqArUdaSmGU/rMjzU5mWqsPdO87ilZ48T i0/DDEgr+26lami+2Ff5p2jPnF0/39fuG3vulB5mdWO+4cTPqMxe+AGwKTAbZ4yS2vF4vo+hPHcwT AW6ioRMw==; Received: by zero.zsh.org with local id 1qfEqD-000PpX-Nj; Sun, 10 Sep 2023 07:26:45 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lf1-f45.google.com) smtp.remote-ip=209.85.167.45; dkim=pass header.d=gmail.com header.s=20221208 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-lf1-f45.google.com ([209.85.167.45]:51264) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1qfEpB-000P6Q-3Y; Sun, 10 Sep 2023 07:25:41 +0000 Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-5008d16cc36so5718217e87.2 for ; Sun, 10 Sep 2023 00:25:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694330740; x=1694935540; darn=zsh.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=urv2yMe93E5vS0Q5UVINgcGR42tlnqME61a8kWBX21M=; b=o4bRL6PA0s9EXnUGRx4FVnEsjNXs91y/15hTUvWc2AVof0vs3jMeqF7BtOeTmGo0lB 8o+8UQo2n01tkiPeJHT4kv/qY44p+UW7/TZMcjSIZ6ixQru0MiXw3zweB9cuNdvxjt/1 zZU5LPo8qDHqNd3//bKVY2bNQ/GJ3YGDFsOEXVju7Xk4shnYjvqM2RY6CpGaA4kAH9SU tCBxoZoOisLmcNuu/GKQib5TGPkM6N9Kudy43fUpdfbllLMlvxSaJJAooaOkI9qzI8XP 0mw+nHgx+sQAQF66eyuYsEprM2GU3IVjDQXG59MVVGzH3W75Gnnm2sgwCpfphPx4Ondr /Emw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694330740; x=1694935540; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=urv2yMe93E5vS0Q5UVINgcGR42tlnqME61a8kWBX21M=; b=GjW3rsDbDm42bisCnik/tgap079U5EUULNM++zeSjXGgv54QYcFNSClbxdMpQrQqGi PcruDXacdBKUz1N6CdmN1Tzxb10/D38L5q7bAXwm6dkJ7+ofsiBZjMNy3yhFk6Sb8JXj k2p1AllCsnV2rUmeKuI18LX3jqbJW+I9VhUZtsPmibM5JkYS1qbc9HTiO5LlLWg3dop4 3MvafufEEWtaYtj2b6BNvVxP7PrZhli1QEDDQI42mZk8Z8HSVxyidl6f0Xm+7xheqNKp TufmjBi9sbtzYd222c7xPiePmSTq47VA6WrD0PbFYVcf4OaWcvGWPQpBi/acu1XjfYDG kLAQ== X-Gm-Message-State: AOJu0Yyiq5nbhq1SdBKCUxe8yoNNkb5IJOUdnPRsgH6jwyEymz7cMoMg XeWU4ifTNe2SjWcTJmIgLr2EknA8qbkUH8EJTpx6jMnfLH4= X-Google-Smtp-Source: AGHT+IGPnAsJJC2NjZSwknmW8xmFUceRbcdbVV3vRHJSVcdOra8CPLltSKbo4kERLtGnOEEWbr6/+a5fXg/Wm94ZuqE= X-Received: by 2002:ac2:5f06:0:b0:500:9d4a:8a02 with SMTP id 6-20020ac25f06000000b005009d4a8a02mr4485983lfq.62.1694330739955; Sun, 10 Sep 2023 00:25:39 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Sebastian Gniazdowski Date: Sun, 10 Sep 2023 09:26:51 +0200 Message-ID: Subject: Re: Example Zle -T transformation function? To: Mikael Magnusson Cc: Zsh Users Content-Type: multipart/alternative; boundary="000000000000e31c250604fc1d8c" X-Seq: 29226 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: --000000000000e31c250604fc1d8c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 wrote: > Thanks. It seems that a transformation function takes per char data and i= s > allowed to return multiple char strings. > > > On Sat, 9 Sept 2023 at 18:46, Mikael Magnusson wrote: > >> On 9/9/23, Sebastian Gniazdowski wrote: >> > In the manual, there are zle -T functions mentioned: >> > >> > -T This is used to add, list or remove internal >> > transforma=E2=80=90 >> > 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 > > --=20 Best regards, Sebastian Gniazdowski --000000000000e31c250604fc1d8c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I wonder why on clean shell (-f) only one invocation occurs,= for the second entered char?

What use case can T-func have?


On= Sun, 10 Sept 2023 at 09:16, Sebastian Gniazdowski <sgniazdowski@gmail.com> wrote:
Than= ks. It seems that a transformation function takes per char data and is allo= wed to return multiple char strings.


On Sat, 9 Sep= t 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:
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0-T=C2=A0 =C2=A0 = =C2=A0This is used to add, list or remove internal
>=C2=A0 transforma=E2=80=90
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 tions on the processing performed by the line editor.
> It
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 is typically used only for debugging or=C2=A0 testing=C2=A0 and
>=C2=A0 is
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 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

--000000000000e31c250604fc1d8c--