<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV><DIV>On Feb 16, 2007, at 2:44 PM, Greg Hauptmann wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; ">Hi all,<BR><BR>Does Textmate provide any auto-completion capabilities? (like RadRails is starting to). If not are there plans to?<BR><BR> I mean those features like:<BR>* type the first few characters of a local/instance variable name then hit hot key combination and suggestions for current variables that match this a presented to you, <SPAN class="Apple-converted-space"> </SPAN><BR>* type a variable name then "." and get suggestions of available methods (a bit more interesting I know for a language like ruby)<BR><BR>Thanks<BR>Greg</SPAN></BLOCKQUOTE></DIV><BR><DIV>Yes, and no.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>If you have the latest cutting-edge release of TextMate then you'll have access to what little codecompletion we have in there already.</DIV><DIV>But, personally, what we have at the moment is pitiful compared to most cocoa apps like CSSEdit and xCode.</DIV><DIV>When in a Ruby, HTML or CSS scope, hit option escape to complete the current word.</DIV><DIV>I wrote a ruby class for handling code completion. JEG2 added rcode tools to ruby for doing intelligent completions.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>The code completions in CSS & HTML are mostly just a static list. Depending on where your curser is in CSS determines what list it uses to complete. The main completion for CSS also parses your document and gives you a list of the IDs and classes you've already used, but that part is still kindof rather buggy.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>If you get the Experimental bundle there is also English Word completion and filename/path completion.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>All of them are bound to option-escape.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I just downloaded RadRails. It looks pretty hip (all expect the text editor part :P )</DIV><DIV><BR><DIV>thomas Aylott — <B>subtleGradient </B>— CrazyEgg — sixteenColors</DIV></DIV></BODY></HTML>