From: Eric Hodel Date: 2005-03-30T14:59:58+09:00 Subject: Re: Open letter to anyone developing a Ruby IDE On 29 Mar 2005, at 21:00, Eric Hodel wrote: > It would be far easier to just run etags over all the files you > require and use those for auto-completion purposes. > > vim has a workable solution for this (and I'm told emacs' solution is > nearly, if not actually, identical), it simply auto-completes words > that have the same beginning above your current location in the text > before switching to words from other buffers. (So if I typed > b--- here, I would get 'buffers' then 'before' then > 'beginning' as possible completions.) > > Extending this by reading files on require lines into etags would be > pretty easy, and you could use some weighted sorting to keep commonly > completed words only a few presses of tab away. > > While this won't get an accurate completion every time, you really > don't care. You'll find that 90% of the time the word you want is > less than 3 presses of tab away. Also, this[1] or something similar could probably get you those hints you need, and again be accurate 90% of the time. http://www.chadfowler.com/index.cgi/Computing/Programming/Ruby/ TypeWatching.rdoc,v -- Eric Hodel - drbrain@segment7.net - http://segment7.net FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04