zsh-users
 help / color / mirror / code / Atom feed
* rake completion with colons in their names
@ 2012-04-21 12:55 Benoit Daloze
  2012-04-21 20:55 ` Peter Stephenson
  0 siblings, 1 reply; 3+ messages in thread
From: Benoit Daloze @ 2012-04-21 12:55 UTC (permalink / raw)
  To: zsh-users

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-04-22 18:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-21 12:55 rake completion with colons in their names Benoit Daloze
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

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).