zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@sunsite.dk
Subject: Re: Tab completion and '{'
Date: Sat, 12 Mar 2005 20:04:09 +0000	[thread overview]
Message-ID: <1050312200409.ZM11998@candle.brasslantern.com> (raw)
In-Reply-To: <20050312100023.GA988@s>

On Mar 12, 11:00am, Haakon Riiser wrote:
} Subject: Tab completion and '{'
}
} Is it possible to make the completion system treat '{' as a normal
} character?

The short answer is, no.

The long answer is that this seems to be a real bug in completion:

The expansion of brace expressions is handled in the builtin commands
that support compsys, e.g. "comptry".  And within "comptry", there is
no test of the IGNORE_BRACES setopt that I can see, so effectively the
brace handling behavior is hardwired in at a low level and cannot be
turned off.

It might be possible to rewrite _files to work around this, but I'm not
feeling like attempting it just now ... Oliver, perhaps?  The idea would
be to check for a possible literal match of the brace(s) and then insert
backslashes if necessary, before calling the builtins to parse the string.


  reply	other threads:[~2005-03-12 20:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-12 10:00 Haakon Riiser
2005-03-12 20:04 ` Bart Schaefer [this message]
2005-03-12 23:37   ` Haakon Riiser
2005-03-13  7:53     ` Bart Schaefer
  -- strict thread matches above, loose matches on Subject: below --
2005-03-11 15:51 Haakon Riiser

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=1050312200409.ZM11998@candle.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-users@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).