Thanks Edward, I will put this in a bug report (in fact, the exact example does not work for me -- maybe a ubuntu thing).
I do think autocomplete is a crucial feature. Leo has such an enormous array of good code (and example code) that it is a shame to hide it. In fact, the ability to quickly get at what has been done in any project, all the way down to code that says x=1, is what allows a project to move forward. Object oriented programming probably owes much of its success to pure "consultability". Autocomplete is part of that paradigm. Bill Le lundi 28 octobre 2013 06:04:52 UTC-7, Edward K. Ream a écrit : > > On Sun, Oct 27, 2013 at 8:26 PM, wgw <[email protected] <javascript:>>wrote: > >> In the docs it says: >> >> When a single completion is shown, typing ‘?’ will show the docstring for >> a method. For example: >> >> c.atFileCommands.write? >> >> shows: >> >> Write a 4.x derived file. >> root is the position of an @<file> node >> >> >> >> Does this work for anyone? (Very useful!) >> > > It works for me, but only in special cases. > > The reason the *exact* example above works is that: > > a) c.atFileCommands.write is *already* a valid completion and > b) c.atFileCommands.write is *also* a prefix of other at.FileCommands > methods. > > In that case, > > auto_completer_state_handler is still active, and the '?' characters > works. > > Obviously, there are many other situations where you have typed a unique > method name, which causes auto_completer_state_handler to exit. In those > more common cases, the '?' character won't work. > > There is no quick fix for this. Probably a new command is needed. > > Please file a bug report. Thanks. > > Edward > -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/groups/opt_out.
