This will serve as a universal base auto-completion and will be
override-able by text parsers in the future to allow custom
suggestions. It uses an approach similar to that of TextMate where the
collection of known words are the words in the current document. When
requesting to complete a partial word, a list of known words with a
matching prefix is returned, ranked using both frequency and distance
from the cursor.
Protip: Completion is bound to the ESC key by default in OS X.
Big thanks to @irskep for helping out with this.
--
Rasmus Andersson
> --
> You received this message because you are subscribed to the Google
> Groups "Kod.app" group. To unsubscribe from this group, send email to
> kod-app+u...@googlegroups.com (More info at http://groups.google.com/group/kod-app)
>
It does show suggestions in a pop-up list and IMHO the ESC key is one
of the easiest keys to hit -- it's at the top left of your keyboard.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Kod.app" group. To unsubscribe from this group, send email to
> kod-app+u...@googlegroups.com (More info at
> http://groups.google.com/group/kod-app)
>
--
Rasmus Andersson
Thanks, that was new to me -- I don't think I've ever used auto-completion in a non-coding context, and when I have used it, it's been with Control-. in Xcode. Control-, brings up a menu, which I keep forgetting I can do; usually Control-. gets me what I want just fine.
On Jan 2, 2011, at 6:34 AM, Agos wrote:
> Well Esc requires you to move a hand from the home position.
I discovered that Command-. also brings up the popup and I find it more comfortable to hit. It's even slightly more universal. In Mail, Command-. brings up the popup but ESC doesn't.
The reason I guessed Command-. is that historically on the Mac it's been a synonym for ESC as a way of saying "Cancel". Try it in an open panel, for example.
On Jan 2, 2011, at 7:01 AM, Adam wrote:
> What you can do is to change the "Caps Lock" key to escape. Using http://pqrs.org/macosx/keyremap4macbook/extra.html this is possible. However this is quite obviously a hack solution.
I wouldn't be able to do that, because I need Caps Lock to be Control. Emacs key bindings would drive me nuts otherwise.
--Andy
I've always thought that auto-popup is extremely obtrusive and a waste of resources. IDEs often do it, but editors don't./Hugo
But beware! Customizable is a big danger (see Linux, the past years), and not a value per se but rather an “extreme” measure, especially considering kod's minimal approach to... well, everything.
But beware! Customizable is a big danger (see Linux, the past years), and not a value per se but rather an “extreme” measure, especially considering kod's minimal approach to... well, everything.
--