From: Morton Goldberg Date: 2007-03-13T03:00:59+09:00 Subject: Re: I need to learn... On Mar 12, 2007, at 8:32 AM, James Edward Gray II wrote: > On Mar 12, 2007, at 5:28 AM, 7stud 7stud wrote: > >> Morton Goldberg wrote: >>> the tab key is the key used to >>> complete code snippets. >>> ...if you highlight the two lines >>> >>> foo = bar >>> zot ||= [] >>> >>> and hit cntrl-shift-W, inserts the code snippet >> >> I don't get the digit gymnastics that most text editors require >> you to >> perform to use auto completion. Is there no way to bind the auto >> completion to the space bar in TextMate? If you've never coded with >> space-bar auto-completion, you haven't lived! The type of auto >> completion I'm talking about seems like such a simple feature to >> implement: you have a flat text file with a list of character >> sequences >> and the corresponding code(phrase, name, whatever), and then the >> typing >> the characters plus hitting the space bar produce the code. > > Morton was showing an unusual TextMate example above. Typically in > TM you type a sequence and push tab. For example, try these in TM: > > ea-tab > inj-tab > ase-tab Actually, the point I wanted to get across was that, for code snippets, the user can change from tab-invoked completion to shortcut- key invocation (or vice-versa) at will. As usual, I didn't express myself very clearly. Regards, Morton