Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
perl -d: completion bug
- X-seq: zsh-workers 25841
- From: Phil Pennock <zsh-workers+phil.pennock@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: perl -d: completion bug
- Date: Fri, 10 Oct 2008 22:35:03 -0700
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=d200807; d=spodhuis.org; h=Received:Date:From:To:Subject:Message-ID:Mail-Followup-To:MIME-Version:Content-Type:Content-Disposition; b=CHzZ1ZE33he7M0tlJgUkfBwlycPWtAh/SrJuSkrsxKQV6TX9qAAhK4xxrNs+2YqTk/EqWambaisJouiSY/LM6iIRkbXOw4gpCuUR2fo3qnpQ5Sq6lNkpruJGO/UJduHUDtLy8mJxI9miPIyYHEpNRVrqwfZ3HL8lU1onVK4XwpQ=;
- Mail-followup-to: zsh-workers@xxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
My zsh completion-fu is weak, still. Is there a way in which a function
calling another function to do the work can interrupt a _wanted() to
filter the results, or do I need to re-factor the function currently
calling _wanted() into a helper function which does the work and a
wrapper with the current name which calls _wanted(), then use that new
function?
There's a bug in the Perl completion. perl -d:<tab> completes all Perl
modules. What it needs to complete is the sub-string of module names in
the Devel:: namespace, after the Devel::.
The current _perl_modules() uses the caching system to good effect and I
want to keep that, cache all the modules in the same way (might as well,
even for a -d:<tab> completion) and then just filter to a sub-set.
Eg, given the module Devel::Trace installed, you'd invoke Perl thusly:
zsh% perl -d:Trace -e $'print "foo\\n";\nprint "bar\\n";'
>> -e:1: print "foo\n";
foo
>> -e:2: print "bar\n";
bar
zsh%
(And if the answer is trivial, please don't wait on a patch from me!)
Thanks,
-Phil
Messages sorted by:
Reverse Date,
Date,
Thread,
Author