Subject: | Completion plugin stops default ReadLine filename completion |
Devel::REPL uses a Term::ReadLine interface to handle
its reading and writing for IO. By default, both
Term::ReadLine::Perl and Term::ReadLine::Gnu support
filename TAB completion by default.
If I have a directory test with files a, ba, bb, bc,
and c in it, I can run re.pl there as follows:
bash$ PERL_RL=Perl re.pl
$ <TAB><TAB>
a ba bb bc c
$ b<TAB><TAB>
ba bb bc
$ bc
bash$ PERL_RL=Gnu re.pl
$ <TAB><TAB>
a ba bb bc c
$ b<TAB><TAB>
ba bb bc
$ bc
So you can see TAB completion for filenames works.
Now, I load the Completion plugin:
$ $_REPL->load_plugin('Completion')
1
$ <TAB><TAB>
and TABs do nothing now. The default hooks for
Completion also disable the command/filename
completion of ReadLine. This is broken since
the various readlines are designed to use this
as the fallback expansion and not a throw away
one once you implement another.
--Chris