zsh-users
 help / color / mirror / code / Atom feed
From: Benoit Daloze <eregontp@gmail.com>
To: zsh-users@zsh.org
Subject: rake completion with colons in their names
Date: Sat, 21 Apr 2012 14:55:49 +0200	[thread overview]
Message-ID: <CANLTa0CaYpPWAVqx4Wddvwzt2vPQGdurK4xBvahFYhw6iAyRXQ@mail.gmail.com> (raw)

Hello,

I've observed rake completion does not work fully with nested rake
tasks (having a namespace and being in the form "namespace:task").

This has already been reported in
zsh-workers 22600: http://www.zsh.org/mla/workers/2006/msg00475.html
and Debian #379942: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=379942

The generation part was fixed, but not the matching part.

Nikolai Weibull says "Adding 'r:|[:]=*' to ones matcher-list makes it
work, but should this really be necessary?".

Indeed, adding that to the matcher-list works for me, but I guess it's
not ideal to modify that global list.

I found a workaround in the zshcompsys manual at tag-order:
"Another use of patterns is to try multiple match specifications one
after another.  The matcher-list style offers something similar, but
it is tested very early in the completion system and hence can't be
set for single commands nor for more specific contexts."

  zstyle ':completion:*:*:rake:*' tag-order '*' '*:-colon'
  zstyle ':completion:*-colon' matcher 'r:|[:]=*'

Could someone confirm this is appropriate?

And if so, could it be added to zsh (or be documented)?

Cheers,
Benoit Daloze


             reply	other threads:[~2012-04-21 12:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-21 12:55 Benoit Daloze [this message]
2012-04-21 20:55 ` Peter Stephenson
     [not found]   ` <CANLTa0A+HBzmPJ5Bzhc3d9sH=x0bXE1zax8Qy-HsFq_Kp+Fzgw@mail.gmail.com>
2012-04-22 18:05     ` Peter Stephenson

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=CANLTa0CaYpPWAVqx4Wddvwzt2vPQGdurK4xBvahFYhw6iAyRXQ@mail.gmail.com \
    --to=eregontp@gmail.com \
    --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).