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 871 invoked from network); 10 Sep 2023 07:16:43 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 10 Sep 2023 07:16:43 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1694330203; b=fMTabfx6PM7HYwccbdgqLmXWKV/7azF5R40Ja6C80PtXsp6YlTofMUNKVlQ5CRda0h3gAAhIj2 tT0+ya//AI9fX53p/GJY2uW7mBNprGgCJUnTEOdPeSgPudNwwxT0QLq7ui710HPMo8L56/LsHI be6SxfAfuXuGc+ETVnrtLqbiOaWRath9SqLcItTEDhLshM5DeEZ7WMHVlDjsRVmM//VzsmoA6c W9Wmb0m0wq5jZTQuM1MR/ME/BpopvqsgOkbnOyAD3wyBmetnGxjM+RTaDcwZPFHkKcy3cBqlWX EB76en6QR1RPbRoGVwJTf4QwFRAtJXnAdwyNDywfuceTyw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lj1-f171.google.com) smtp.remote-ip=209.85.208.171; 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=1694330203; bh=Sh8ZzYQizgvtKuzlXcBpH9vrFR3krDXnsdmVeXQ2YyE=; 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=XFNdg4IvXQfumC8KGYTZtKdVDc+OAIlK1xynaJXsMi3tUmN2KmhJR4LfUddumJowGiCCckI2h5 w/UmgCOObdIFVqz5uwJwsDtWUeWx9qmzcOmvSpiTsKyxoKJhhhLDl5pS1Ii8yRhJVVOhFOjFlf D8TQbT8Gy50kfeoAWUpLoTqdXr9TVsaHICnjXX3OUnGiuHUi0mzgT1317ilBaTf+znW6PTOZ09 qBTCNbJzviSTZir/0jCQS3R/1AUp9W+nEL6DnMXw9n519Nki1xyKKjt8sSpAjWYJmjR/f7q3Dl fNSFAVD4RiE10A4ckToJqjhtE9hsO3L82KAu+6IEN0G/lw==; 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=Su83Mb8XLmZtVH8IGiPgdWanKKfuEaeuRTcMo70GLa0=; b=gipdHda6j08A+CiAowDU8SES5Y aHRx03VIztRoj90ACNTwOYQu6+ZPFJqjtcv7pzylNQUOoDGjK12tTfjptd7IYTrhYzxPThULRsOuc pDKycirspSizhmMdR1FC31zJfakWPCbdABb68HNOTa1qPuo5Tg/neb1c+lYXoHBSHWQ3MfhCXe3LT 7jICoJ3wEXnQKdnDhYeiwl9MRK1oBM2qAK/qFIvSO9j9ckSmKWoscBUmfRCDtqzgIljBs5Uf9twvR 00Y5VcFu/Z82X48RFKTUjxBX4IaNbEIjQwlyRlv3u/9tpZYcxcX6BptaVyi7MaodHOp2SW1PBtfzo /eIx6Zzw==; Received: by zero.zsh.org with local id 1qfEgV-000OUF-6B; Sun, 10 Sep 2023 07:16:43 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lj1-f171.google.com) smtp.remote-ip=209.85.208.171; dkim=pass header.d=gmail.com header.s=20221208 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-lj1-f171.google.com ([209.85.208.171]:45564) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1qfEfI-000NoH-1S; Sun, 10 Sep 2023 07:15:31 +0000 Received: by mail-lj1-f171.google.com with SMTP id 38308e7fff4ca-2ba1e9b1fa9so57902431fa.3 for ; Sun, 10 Sep 2023 00:15:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694330127; x=1694934927; 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=Su83Mb8XLmZtVH8IGiPgdWanKKfuEaeuRTcMo70GLa0=; b=bYf5h38ll4w6vjLDRf7GUJM6UGWcn0LzSjDJCggP6nzyiGJtC54r7dgm+mKHrYPzXU qGlxJXu78OwK0Z+du9dyiix0ZC5UCf5IuoKQktGh1eAuyUgU9dt2CcRviIgQdWiXJkGg faffJ5U9kKv2AgUYhdRAUPI5hhnNTsPDp4UFjPVeKQYQkd/6NAUm3WeoB+bvJmghKQCG QFWjEmjeUe8ojOKItHJFzpXlA8qUxAiLM+F5gqeInV4CYmBUtTEcN8FdwGtoXbWcuhAN TnZudtkvgmOB58xyLx56YnC1t7ZFXhIc+ViyjXRAHLkOQhAKWX1vaukXwP1K2znnbs4l nzQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694330127; x=1694934927; 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=Su83Mb8XLmZtVH8IGiPgdWanKKfuEaeuRTcMo70GLa0=; b=sHRAff7uU0e3jmVSl0qG75bMIi4Rx9IgUaAXjy+oyNdOY6oINH+pwa5RPc9BFRaUHA oGV9AD67HaydwROV29eyUF00lRRJ2KAbwaDgzZ8MImdzZwxMsIqeg8gyHxJoGXpwrt5H rvskAjKh0E4KF+uPh+dmc6kNG5sCgAxPfCfaEJvLWfbSCGE57YOtAzC5RO4eSOmi4TeN 01OYQISWCouR3jTutfz58H5bdsuTcnzBkAyVpRyMMXHG6Zs94RcpS8CPb9l1nV1+77ps 5mGs403VbXBuzYDES9RcgLB7SAAa87zYxbU2XAJQs0vLGMMAZoZ+3E9kIF1zrYRfluFu wD5A== X-Gm-Message-State: AOJu0YxqYNhXxvyAkcvlD1RjauwEjaiSHoXKKvnWVT39+g+gd7QhG/pM qMys9K1eYz6uMtu+x/AMB4T5YL39jM2EzkCPke4= X-Google-Smtp-Source: AGHT+IHt/JUk8WMnBXcvuQcrEvWtvJvDvlDQ7xa2m06EOKfdGp/B5RJ+J+cpZUqjourJIlHIgirU8r3t1cPBNlKd1ls= X-Received: by 2002:ac2:488f:0:b0:502:9253:c56f with SMTP id x15-20020ac2488f000000b005029253c56fmr4366008lfc.44.1694330126911; Sun, 10 Sep 2023 00:15:26 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Sebastian Gniazdowski Date: Sun, 10 Sep 2023 09:16:37 +0200 Message-ID: Subject: Re: Example Zle -T transformation function? To: Mikael Magnusson Cc: Zsh Users Content-Type: multipart/alternative; boundary="00000000000058cd990604fbf9a2" X-Seq: 29225 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: --00000000000058cd990604fbf9a2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 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 > --=20 Best regards, Sebastian Gniazdowski --00000000000058cd990604fbf9a2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks. It seems that a transformation function takes per ch= ar 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:
>
>=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

--00000000000058cd990604fbf9a2--