zsh-users
 help / color / mirror / code / Atom feed
From: Mario Signorino <mario.signorino@gnufish.net>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: How to capture the tab completion result?
Date: Thu, 30 May 2013 23:15:15 +0200	[thread overview]
Message-ID: <CAM8HBcXwd_6j7-NMGeBJfpLywU6zkXccLuaFaOfyfa0=C4XnGA@mail.gmail.com> (raw)
In-Reply-To: <CAH+w=7b-+NLogsFM6bX77kCi6EgGJDPYi=8ea9kMO97B=94p8w@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 861 bytes --]

Again: that's exactly what I needed.
Tnx a lot.
Mario


On Tue, May 28, 2013 at 10:25 AM, Bart Schaefer
<schaefer@brasslantern.com>wrote:

> On Mon, May 27, 2013 at 9:45 AM, Mario Signorino
> <mario.signorino@gnufish.net> wrote:
> >
> > zstyle ":completion:*:descriptions" format
> "\033[H<DESCRIPTION>%d</DESCRIPTION>"
> >
> > Is it also possible to enable the interpretation of backslash escapes?
>
> Just use the $'...' notation to embed a literal escape in the style:
>
> zstyle ":completion:*:descriptions" format
> $'\033[H<DESCRIPTION>%d</DESCRIPTION>'
>
> It's sort of a matter of personal preference whether to write
> $'\033'"[H..." (concatenate two sets of quotes) or just wrap the whole
> thing in $'...' like I did.  Concatenating the double quotes makes it
> easier to reference variables, etc., but you can't use $'...' inside
> double quotes.
>

  reply	other threads:[~2013-05-30 21:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-25 23:27 Mario Signorino
2013-05-26 23:10 ` Bart Schaefer
2013-05-27 16:45   ` Mario Signorino
2013-05-28  8:25     ` Bart Schaefer
2013-05-30 21:15       ` Mario Signorino [this message]
2013-05-26 11:23 Marc Chantreux

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='CAM8HBcXwd_6j7-NMGeBJfpLywU6zkXccLuaFaOfyfa0=C4XnGA@mail.gmail.com' \
    --to=mario.signorino@gnufish.net \
    --cc=zsh-users@zsh.org \
    /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).