use Devel::REPL::Plugin;
use Scalar::Util 'weaken';
use PPI;
-use namespace::clean -except => [ 'meta' ];
+use namespace::sweep;
+use MooX::Types::MooseLike::Base qw(ArrayRef Int Bool);
has current_matches => (
is => 'rw',
- isa => 'ArrayRef',
+ isa => ArrayRef,
lazy => 1,
default => sub { [] },
);
has match_index => (
is => 'rw',
- isa => 'Int',
+ isa => Int,
lazy => 1,
default => sub { 0 },
);
has no_term_class_warning => (
- isa => "Bool",
+ isa => Bool,
is => "rw",
- default => 0,
+ default => sub { 0 },
);
has do_readline_filename_completion => ( # so default is no if Completion loaded
- isa => "Bool",
+ isa => Bool,
is => "rw",
lazy => 1,
default => sub { 0 },
Devel::REPL::Plugin::Completion - Extensible tab completion
+=head1 NOTE
+
+By default, the Completion plugin explicitly does I<not> use the Gnu readline
+or Term::ReadLine::Perl fallback filename completion.
+
+Set the attribute C<do_readline_filename_completion> to 1 to enable this feature.
+
=head1 AUTHOR
Shawn M Moore, C<< <sartak at gmail dot com> >>