On 2005-05-25, David Tweed <[EMAIL PROTECTED]> wrote:
> logicalMovementModule.cc
> logicalMovementModule.hh
> logicalRoleModule.cc
> logicalRoleModule.hh
> probabilisticMovementModule.cc
> probabilisticMovementModule.hh
> probabilisticRoleModule.cc
> probabilisticRoleModule.hh

Seems quite suitable for "flattened submenus" given code that can break
these names into pieces.

> This sounds an interesting approach. Before I start
> too far down this road, a question for Tuomo: in an
> ion text-input the tab-complete can show possibilities
> every time the tab-key is used. Is this behaviour
> hardwired to respond to the tab key at a level
> inaccessible from Lua scripts, or would it be possible
> to write a lua command which displays a list of
> possibilties, with entries being removed as more
> letters are typed and they don't match any more (ie,
> without pressing tab to redisplay the current
> possibilities, just incrementally typing more of the
> string)?

In principle you could implement auto-show-completions or auto-completion
(auto-show-completions plus setting the input field to the completion with
the completed part selected) on the Lua side, but I recently started working
on C-side support for auto-show-completions. It's mostly working
(completions automatically shown as the text is modified, tab cycles through
completions), but the last few days I've been busy with looking for a flat
in another town (and will likely be for some time with that and related
matters) and haven't yet decided how directories and full command lines
should be handled. Currently options for file completion are:

 1. Require manual Control+Tab (for example) to show completions within a
    directory after a directory was selected from list of completions.
 2. Do not complete trailing slash for directories, and require it to be
    typed.

I also haven't decided how command line completion cycling should be
handled. (Everything I know that has auto-show-completions or
auto-completion only works on simple lists of possible completions.) Any
input on these is welcome. An experimental patch can be found at
<http://iki.fi/tuomov/auto-show-completions.darcs>. I do not like
auto-completion as defined above, btw.

-- 
Tuomo

Reply via email to