zsh-workers
 help / color / mirror / code / Atom feed
From: "Mikael Magnusson" <mikachu@gmail.com>
To: zsh-workers@sunsite.dk
Subject: Re: Making built-in completion recognize : as word boundary
Date: Fri, 29 Feb 2008 22:23:38 +0100	[thread overview]
Message-ID: <237967ef0802291323o1bb68417v358deb406700c7da@mail.gmail.com> (raw)
In-Reply-To: <20080229221711.7729241b@buddha>

On 29/02/2008, Matthias B. <msbREMOVE-THIS@winterdrache.de> wrote:
> Something that's been bothering me for years now with zsh is that the
>  built-in completion can't complete
>
>  PATH=/usr/bin:/sb<TAB>
>
>  presumably because it doesn't consider the colon a word boundary. Could
>  someone please point me at the code responsible so that I can fix this.
>
>  MSB
>
>  p.s.: I know that the function-based completion system doesn't have this
>  problem, but I don't want to use it.

path=(/usr/bin /sb<tab>
should work fine i think.

You can also make more of these automagic paired variables with some
argument to typeset.
typeset -T MYVAR myvar
myvar=(do re mi)
echo $MYVAR
do:re:mi

I know that doesn't answer your actual question, but maybe it's useful
as a workaround.

-- 
Mikael Magnusson


  reply	other threads:[~2008-02-29 21:23 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-29 21:17 Matthias B.
2008-02-29 21:23 ` Mikael Magnusson [this message]
2008-02-29 21:40   ` Matthias B.
2008-03-01  0:37 ` Oliver Kiddle
2008-03-01  6:06   ` Andrey Borzenkov
2008-03-01 13:17   ` Matthias B.
2008-03-01 19:08     ` Bart Schaefer
2008-03-08 14:21       ` Matthias B.
2008-03-01 19:28     ` Clint Adams
2008-03-02 11:31     ` Oliver Kiddle

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=237967ef0802291323o1bb68417v358deb406700c7da@mail.gmail.com \
    --to=mikachu@gmail.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).