> Talking about readline: something that has always bothered me is that the
> TAb key is bound to _file_ completion. This is of course only useful when
> I am typing in a command like :l or a shell escape.
>
> In other cases it would be really nice if it were _function_ completion,
> or toplevel identifier completion. I often forget how a certain function
> is spelled or so.
>
> Suggestions?
I believe GNU's readline lets you replace the default behaviour - all
it takes is someone with the energy to write it. Any volunteers?
If anyone feels like doing it, the code that implements the :names or
:info commands will show you how to read names out of the database.
On the other hand, you might want to allow type completion (since it's
valid to write type names in Haskell expressions such as "[] ::
[Int]") and keyword completion might also be good. In that case, you
could just search the "Text" table (which contains all identifiers and
keywords used in any module whatsoever). This is probably the
simplest approach.
--
Alastair Reid [EMAIL PROTECTED] http://www2.cs.utah.edu/~reid/