From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 04490101 for ; Fri, 3 Jan 2020 02:31:14 +0000 (UTC) Received: (qmail 28299 invoked by alias); 3 Jan 2020 02:31:08 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 45203 Received: (qmail 9128 invoked by uid 1010); 3 Jan 2020 02:31:08 -0000 X-Qmail-Scanner-Diagnostics: from mail-lj1-f173.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.1/25677. spamassassin: 3.4.2. Clear:RC:0(209.85.208.173):SA:0(-1.9/5.0):. Processed in 3.680257 secs); 03 Jan 2020 02:31:08 -0000 X-Envelope-From: schaefer@brasslantern.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.208.173 as permitted sender) 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; bh=+HstDfaLUsD82Z1EPbfA0cq5NuGuWS8wOKev3I5uQt4=; b=uk/c5b+O1Uzwl1vyl5P0wssEyJhXOC+18FAYZ2k7/zCWYcTftT48THud4HQhtP5iaZ 0EPg/qp4damY+wgu60EMrMSLASdRU1n+fSU1SwHQf84L5rikr3redKjGyak3J1BFVSRn ZNMXi4/HS9xWtUck5rzL6PYNRvewYVF5KDLqNomcwj4wdiqCv3PXco2XEW1uC0WeXcd/ mn4moas0OXbfHjSsVrImGmax95EGFHvLzej/XbeQupNDi7ANaV/Vj0Mabllnfp1LqWjG 9BtjQRPRjs6rgIP23W4kTE21fh5mg21iAeGR6t5Qsvz9rItiehX6s8AVHeArywTByL4a 7Bxg== X-Gm-Message-State: APjAAAV2au7wb0d4b6y/KX8ZS9JmPExkHfUcuz5rEOqX1TSsktruplTL uQEj45Vkfz5oCQC90lVilwrm5b75A2G6BRX7+QN9SA== X-Google-Smtp-Source: APXvYqy4VtP+mk8uSPiijlKj6buMa0oUQszfvRP0RnjemsF2M/dam/F0BGzgmL+aM9vpgWOCNo6qI266a8/9FHREpi4= X-Received: by 2002:a2e:96c6:: with SMTP id d6mr20563281ljj.4.1578018628766; Thu, 02 Jan 2020 18:30:28 -0800 (PST) MIME-Version: 1.0 References: <40813-1577992732.270919@2Jfy.SNk-.4lUU> In-Reply-To: From: Bart Schaefer Date: Thu, 2 Jan 2020 18:30:17 -0800 Message-ID: Subject: Re: Feature request: italic style in region_highlight To: Roman Perepelitsa Cc: Oliver Kiddle , Zsh hackers list Content-Type: text/plain; charset="UTF-8" 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. There's definitely no 'a' in putpromptchar. So we still have %A/%a if we think of something else they're needed for.) > > > I like the idea of %A{...} but would favour symbolic names over numbers > > Another benefit of symbolic names is that zsh will know how to flip > the attribute on and off. I think Oliver meant symbolic names inside the braces, like %A{oblique}, but no matter. > 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}.