Zsh Mailing List Archive
Messages sorted by:
rake completion with colons in their names
- X-seq: zsh-users 17022
- From: Benoit Daloze <eregontp@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: rake completion with colons in their names
- Date: Sat, 21 Apr 2012 14:55:49 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=eijIL9F1Twje++JRdqwkeRJp3DW84h9/ZeZFI4Qmj6M=; b=ORswwslAOVJovAxyTlFwGzej7W0xX8/U0YrA+7AAvOIrhxN9fYH6jYKCtZlQCJUDDC p0wVTlL0lf5XvZQwxdF20NRMsxr2GEivD0UkYXHXVMCGZLrtjLXBCdY3SzFQkKBjkRl1 kPPZOO/oYAfiMFbqz9SbERl5c9pUzfRlWMqFMQgbniv1aGbmzhPpHN/yqPd2m82vGW7J o1Kec99N7HjzcasymGjhoJzEG/CoePcywZJgSBepDDf93L6/RmdbXQB2YEOzoSUJnGVj ZvNO1icb98NZGGtZH6bli8guKvfXEdSfny1izWUDREuPOMaUAlCMD7aUNLzX9jtCDOGD H1Sw==
- List-help: <mailto:firstname.lastname@example.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:email@example.com>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
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)?
Messages sorted by: