Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Count only visible characters?
- X-seq: zsh-users 14997
- From: Seth House <seth@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Count only visible characters?
- Date: Fri, 9 Apr 2010 19:22:04 +0000 (UTC)
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <loom.20100409T002951-342@xxxxxxxxxxxxxx> <201004091102.55291.joke@xxxxxxxxx> <87d3y90z07.fsf@xxxxxxxxxxxxxxxxxxxxxx> <201004091149.20747.joke@xxxxxxxxx>
Joke de Buhr <joke <at> seiken.de> writes:
> If you want to do character counting as suggested earlier you need to escape
> the %F{...} sequences
I used to use %{%} before I found the %F short-form and now I've switched back.
:) Doing a search-and-replace for those delimiters seems so obvious in
retrospect. Works like a charm, thanks a lot! That made my day (and made my
prompt code about half as long).
Messages sorted by:
Reverse Date,
Date,
Thread,
Author