From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22631 invoked by alias); 28 Oct 2011 23:33:08 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 16545 Received: (qmail 26272 invoked from network); 28 Oct 2011 23:32:56 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at daniel.shahaf.name does not designate permitted sender hosts) 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= X-Sasl-enc: pL34xE08D5kvbWT94eDyHxCSzwEgJFO8m7jpZpXT0o+nBW03EC1c0iwDvuWCmA 1319844331 Date: Sat, 29 Oct 2011 01:25:14 +0200 From: Daniel Shahaf To: Gabor Maghera Cc: zsh-users@zsh.org Subject: Re: Completing arguments containing the colon character Message-ID: <20111028232514.GA31749@daniel3.local> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Gabor Maghera wrote on Fri, Oct 28, 2011 at 16:12:05 -0700: > We use a naming standard for Perforce specs of the form > "::". 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 > 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 to suggest 'p4droid::PerforceTriggers' and 'p4doird::triggers'? I don't know how to do that, but it's definitely possible: % perldoc File:: 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