[Bast-commits] r4401 -
trunk/Devel-REPL/lib/Devel/REPL/Plugin/CompletionDriver
Sartak at dev.catalyst.perl.org
Sartak at dev.catalyst.perl.org
Sun May 25 18:54:20 BST 2008
Author: Sartak
Date: 2008-05-25 18:54:20 +0100 (Sun, 25 May 2008)
New Revision: 4401
Modified:
trunk/Devel-REPL/lib/Devel/REPL/Plugin/CompletionDriver/INC.pm
Log:
Comment on what each piece of the INC driver is doing
Modified: trunk/Devel-REPL/lib/Devel/REPL/Plugin/CompletionDriver/INC.pm
===================================================================
--- trunk/Devel-REPL/lib/Devel/REPL/Plugin/CompletionDriver/INC.pm 2008-05-25 17:49:05 UTC (rev 4400)
+++ trunk/Devel-REPL/lib/Devel/REPL/Plugin/CompletionDriver/INC.pm 2008-05-25 17:54:20 UTC (rev 4401)
@@ -57,6 +57,9 @@
my @found;
+ # most VCSes don't litter every single fucking directory with garbage. if you
+ # know of any other, just stick them in here. noone wants to complete
+ # Devel::REPL::Plugin::.svn
my %ignored =
(
'.' => 1,
@@ -64,6 +67,7 @@
'.svn' => 1,
);
+ # this will take a directory and add to @found all of the possible matches
my $add_recursively;
$add_recursively = sub {
my ($path, $iteration, @more) = @_;
@@ -90,9 +94,13 @@
}
};
+ # look through all of
INC: for (@INC)
{
my $path = $_;
+
+ # match all of the fragments they have, so "use Moose::Meta::At<tab>"
+ # will only begin looking in ../Moose/Meta/
for my $subdir (@directories)
{
$path = File::Spec->catdir($path, $subdir);
More information about the Bast-commits
mailing list