Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Completing arguments containing the colon character
- X-seq: zsh-users 16545
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Gabor Maghera <gmaghera@xxxxxxxxx>
- Subject: Re: Completing arguments containing the colon character
- Date: Sat, 29 Oct 2011 01:25:14 +0200
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:to:cc:subject:message-id :references:mime-version:content-type:in-reply-to; s=mesmtp; bh= p1MGhsnxbU2XBCQT4km7GVulWFk=; b=ilqHnqBMnDK8Uv7cEg7h39fpn7OQExaZ t9a5iGdaiWI0NpCVOdTUWdHC/RcIsa186PeuK5AYBAf71tHgctH/QGP+EWFCoPe+ M8qO3OARPWSiL1QImDSpoDIxyMDrcPP7LsBZe2vrIGHAnNB1P6qv7MSsGORX6obZ J9xwKjjQ3wU=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=date:from:to:cc:subject:message-id :references:mime-version:content-type:in-reply-to; s=smtpout; bh=p1MGhsnxbU2XBCQT4km7GVulWFk=; b=cEFXTko7P9T5eDDO5wKcAOuCql6P zk3nUQ1Vq0wOWYZEeQika0zbIs5WtfTeW9FCxZ7uQTzaczWORDl7U9wSdG0bGwL3 /5fzPnuOgzlm0Up+CzIerXnhnuejHmkpeIkq5nOmLe7IWT2xtFhBzp1MHWt6WG/R JX2m8qbM2wlfRjo=
- In-reply-to: <CAOzw3LawhuE4JVV7EJrkcoaqbwiJjwGGprM2s=-Sg0qka6=npg@mail.gmail.com>
- 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: <CAOzw3LawhuE4JVV7EJrkcoaqbwiJjwGGprM2s=-Sg0qka6=npg@mail.gmail.com>
Gabor Maghera wrote on Fri, Oct 28, 2011 at 16:12:05 -0700:
> We use a naming standard for Perforce specs of the form
> "<username>::<arbitrary>". Zsh autocompletion cannot process these entries,
> due to the colon character being used as a list separator by its mechanism
> (as I understand).
>
> Is there a way to make it work? I've been perusing the man page for
> zcompsys, as well as the _perforce completion module, but I'm not sure it's
> possible.
>
> Here is an example of what the erroneous completions look like:
> % p4 client -o p4droid<tab><tab>
> p4droid --
> :PerforceTriggers:2009/12/29 root /opt/local/perforce/trigger_scripts
> 'Created by p4droid. '
> p4droid -- :triggers:2009/12/18
> root /Workspace/trigger_test 'Created by gabor.maghera. '
>
> The full entry names are p4droid::PerforceTriggers and p4doird::triggers.
>
So I assumed you'd like
% p4 client -o p4droid<tab>
to suggest 'p4droid::PerforceTriggers' and 'p4doird::triggers'?
I don't know how to do that, but it's definitely possible:
% perldoc File::<tab>
File::Basename File::DosGlob File::Listing File::Spec::Functions File::Spec::Win32
File::CheckTree File::Fetch File::Path File::Spec::Mac File::stat
File::Compare File::Find File::Spec File::Spec::OS2 File::Temp
File::Copy File::Glob File::Spec::Cygwin File::Spec::Unix
File::Copy::Recursive File::GlobMapper File::Spec::Epoc File::Spec::VMS
> Thanks in advance,
> Gabor
HTH,
Daniel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author