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,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 16208 invoked from network); 20 May 2021 13:34:56 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 20 May 2021 13:34:56 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1621517696; b=ST5KCuYnOhh7xPwEjMKaim1jgO7Ytm3Pg6LzBkWCIcyxzxPBYEbLtMx4mf3LfSwpK0g2A3WH6U iEM2zQvNHFeBVJdr1wTPgJpEjhi94IfXHzsmXOsl4XcTmkDuGtA60t97yIXr3z9kMENeX4tG96 c7f9IF5iXO2zlI8NJKv/imMW86jzC1WwrWPy+vjBf26CFYsMG0GbtS9VmPsP2oa+xcqkW4rUus emdKF/JqJWvwhHitVT2qtvr4Fviz9gbkVq+YPUuGyXuyF5LyYFrTKlQC4jwC5juGMggoxU9e99 Yt813ITPPz7qHptD8FFm/Jyj95BxWVFmNG8Lnu5NJD2rnA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lf1-f54.google.com) smtp.remote-ip=209.85.167.54; dkim=pass header.d=gmail.com header.s=20161025 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-20200801; t=1621517696; bh=GI8V6ocMZeb3dM+JdVSqZcWlNRogvC9UKrmM3Jm5py8=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Cc:To:Subject: Message-ID:Date:From:In-Reply-To:References:MIME-Version:DKIM-Signature: DKIM-Signature; b=KnQ215a49GuM0KV8MP+CdfmbUrPCZDZsPT/uUukDMmrdmPrLb2ek/OlnRDNLcY0JdjG0ES7Kyw /Dvt85YL7mesMx9yssOYHQ9ow7Pb0N84syeBpBUNy1s71cyh7U1fZz667l+f+wIoJ1LMf+tln9 +oa38upSsWvNxwECgliHQCLj7XryRfiNtGJ16PLK2gM21Xkcz+TUSTd19mVj6HBoiudhRdDQ6a sXyZ3s5awFqzZaJ7CyFImNcSLWbcm/0YrirHE+KoSrfdjJ38uB4q21MBN+SlyaJGOd1Nh3dmHo E2CY88JPPTDw4UG8a3Wehxe7A80DhcIoMmfj0rg4oAwNkw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=Zzb9ZNugJPwuRwYZ0uzDdc9u1kQNFid5V0X7pTfNwxk=; b=nDBaor8CD9ri8hFBlzP5ljBugE k4dN2tf65abkzmgF5YZ5J1TuHNiezk6+lzv6uK/sfZhcvnUEm6UoaDBmzabAl+yXAqylow53OEVoX SAoJ9gdwUYKoL2HNUJYN4BXZpSUTN8yRj0nw5CqzWlubGrJkklDrKs3pM3gbIS3+c0GUEd98umGKc gFBnISy0t35OTgbUKM0sZTIqgDGpLwbWDzMQzyp7QwuHNIYzsTzoIUaYlPzGh5CBJAEgHcXNJ6kmS aP44KkCN5DBM4MGmQL7Xt+IDC4JZLKpDVyw/Jvi7S2HfnWX0MYFyRbIGN91oB6baPmBt12AT3xK/r 9Zpi1qYw==; Received: from authenticated user by zero.zsh.org with local id 1ljipD-000NeR-2W; Thu, 20 May 2021 13:34:55 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lf1-f54.google.com) smtp.remote-ip=209.85.167.54; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-lf1-f54.google.com ([209.85.167.54]:39822) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1ljiot-000NNi-5y; Thu, 20 May 2021 13:34:35 +0000 Received: by mail-lf1-f54.google.com with SMTP id q7so23206557lfr.6 for ; Thu, 20 May 2021 06:34:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Zzb9ZNugJPwuRwYZ0uzDdc9u1kQNFid5V0X7pTfNwxk=; b=JCh7bXiDOkH6sjKtInLzkjQbywnYCxQXQmmFfey5+aaUAiXJof4bDdTeXSI288IuXP WBFE0kUXevT1fpqEiYWWgakpMBHQ99mk5/yK5pLd5hjgaG+nOo9Tr3wdZ9XoUdfylo92 q5E/aXf8PZLdAzjh9wEnGq5hFWodc3D4+DZ/aVE9ro8PJPSOuhzZYG1eGtlxLv4reZvX eYfXPfYhacIQ7JBVYwvwOwQvvxC9ivh3284QKpKVIKZ/9oqdPkK7rQbwWr/v0yLH5ANJ S3IsRhhx51m6yrG56q00FEFiwpIoA/DZsOYzxiPWxmheUsy2EYX8geDQFzumxNLSZXT5 lhZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=Zzb9ZNugJPwuRwYZ0uzDdc9u1kQNFid5V0X7pTfNwxk=; b=N/QboUBhJOJnnENLDEG6EN75/w4jn5vFPqMLlVZ+QlPqUn6piuJujkoiw8PQFmWeVc halaZ5BEUSme0joqUETiqnn6+SaCLdF9ImB/x5k7MjETCirGHzfSsnixnV8fDOoIYKxz 0Zp/lC0FZvr6XQG5g8GQpMPi6iFxGWfoOsDjFmX0a7VHHhocBf1y0VxogzrVduDAfoAt ANFoOx70b0yCjIGF2JQS1oHdEBoDEgRFlfntbTzkH8nRKcR9f1ZMSoRM2aXzG3cFU9pt wynxvTAvOXgicWs6iTT4B8zWXDbffR0cIX95YVvJBUQK5o62FbhDXtuekzHtTCSYMPKe N6Og== X-Gm-Message-State: AOAM531oumiayYGvfQBd0VaVVQtPaKF5EpvLx06skbHX9gmTbltW5dts a7+KIdKiAqEg5P6Cw7NPvfKih/BNcFrdWcNwOrHYOkVtHTqFNA== X-Google-Smtp-Source: ABdhPJxWDN3KaDNsZpHNEEZRR0CijG24X2pYVFkWrWtj5LzVmjmf2fUprNALbfxT6hmt/h0mWNhes6KVDxGRlA8Q5Q8= X-Received: by 2002:a05:6512:1150:: with SMTP id m16mr3442187lfg.486.1621517673949; Thu, 20 May 2021 06:34:33 -0700 (PDT) MIME-Version: 1.0 References: <40813-1577992732.270919@2Jfy.SNk-.4lUU> <20200103202807.cxocci634aksqwot@tarpaulin.shahaf.local2> In-Reply-To: <20200103202807.cxocci634aksqwot@tarpaulin.shahaf.local2> From: Marlon Richert Date: Thu, 20 May 2021 16:33:57 +0300 Message-ID: Subject: Re: Feature request: italic style in region_highlight To: Daniel Shahaf Cc: Zsh hackers list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 48889 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Did this discussion and the one in workers/47491 ever result in anything? Is it still on the table? On Fri, Jan 3, 2020 at 10:28 PM Daniel Shahaf wrot= e: > > Bart Schaefer wrote on Thu, Jan 02, 2020 at 18:30:17 -0800: > > On Thu, Jan 2, 2020 at 1:06 PM Roman Perepelitsa > > wrote: > > > > > > > %O/%o (for "oblique") would be available. I realise that an oblique= font > > > > is not strictly the same as italic. > > > > > > Perfect timing. I wanted to ask which alternative letter to use as %a > > > is taken by something (watch, perhaps?). %O/%o sounds good. > > > > Agree. (However, the only use of %a I could find is in the zstyle > > formats for VCS, which didn't seem to conflict. > > In vcs_info one can always double the percent sign if needed. Well, %a f= or one > is used in both patch-format and actionformats, so it's possible it'd hav= e to be > doubled twice if someone wanted to use %a in its prompt meaning in patch-= format. > > > > With %A{...} we would have to > > > explain how it interacts with the other sequences. E.g., does %u > > > cancel %A{4}? > > > > I think if we created %A{4} (which BTW I would recommend requiring at > > least two digits, e.g. %A{04}) then we would have to document the > > existing escapes as being shorthands for the corresponding %A forms, > > so yes, %u would cancel %A{04}. > > Why would we create either %A{4} or %A{04}? The API to script writers sh= ould > use symbolic names; the API between us and the terminal should use termin= fo > rather than hardcoded escape sequences. If anything, something like =C2= =AB%X{foo}=C2=BB > that does the equivalent of =C2=AB%{`tput foo`%}=C2=BB might be worthwhil= e? We could > still add an %Y/%y pair of escapes for italics but they'd be syntactic su= gar > for %X{sitm} and %X{ritm} respectively. > > (X, Y, and y are metasyntactic variables for the actual letters we'd use.= )