From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: zsh-workers <zsh-workers@sunsite.dk>
Subject: Re: %F doesn't work in format style
Date: Thu, 15 May 2008 22:08:00 +0100 [thread overview]
Message-ID: <20080515220800.6a91e574@pws-pc> (raw)
In-Reply-To: <237967ef0805151229r4955bacep64af7bb018bc16b@mail.gmail.com>
On Thu, 15 May 2008 21:29:25 +0200
"Mikael Magnusson" <mikachu@gmail.com> wrote:
> zstyle ':completion:*:corrections' format '%B---- %d (errors: %e)%b'
> works fine
> zstyle ':completion:*:corrections' format '%F{red}---- %f%d (errors: %e)%b'
> produces
> {red}---- corrections (errors: 2)
> (unformatted)
>
> The manpage claims
> This string may also contain the sequences
> to specify output attributes, such as `%B', `%S' and `%{...%}'
>
> Is %F such as %B? :) It's listed in the same section anyway.
This is all handled completely separately in zle_tricky.c for standard
completion formatting and yet again in complist.c when zsh/complist is
loaded. Sven never reused code if there was any hope of creating
something at least marginally incompatible in another file. Colours
should definitely be added to completion. Ideally, in fact,
highlighting should be subtracted and done via the code I've moved into
the main shell, but as completion formatting doesn't handle full prompt
escapes that's not so easy.
--
Peter Stephenson <p.w.stephenson@ntlworld.com>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/
next prev parent reply other threads:[~2008-05-15 21:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-15 19:29 Mikael Magnusson
2008-05-15 21:08 ` Peter Stephenson [this message]
2008-05-16 9:33 ` Peter Stephenson
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=20080515220800.6a91e574@pws-pc \
--to=p.w.stephenson@ntlworld.com \
--cc=zsh-workers@sunsite.dk \
/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).