You should have a look at the Help file within the LaTeX bundle, there's a number of different autocompletion commands in the LaTeX bundle. For the particular case you quoted, i.e. creating new environments, you would create it by first typing abstract and then pressing cmd-{ (cmd-shift-[ in US keyboards). (This is the command named "Insert Environment based on current word". You can also try to press cmd-{ before typing anything and see the options you get. If you want to autocomplete plain commands, then typing \ and the first couple of letters, and then pressing esc should do exactly what you want.
Finally, you might want to have a look at the screencasts if you haven't seen them yet:
http://skiadas.dcostanet.net/afterthought/list-of-my-textmate-pages/
Haris
Thanks, I had a closer look at these, and they probably are efficient ways to provide autocompletion. I sort of prefer a list that follows my typing than a keyword though (I think it's a bad habit to type "document" and then let TM wrap it in a \begin{}\end{} environment. If you ever have to switch to another editor for some reason, it's gonna be a pain.) Have you had a chance to try Kile? I found its autocompletion a dream.
I quite like the "ESC" way, though this key is quite far on my keyboard. Is there a way to change the mapping for the "TAB" which i never use for instance?
thanks again,
baptiste
___________________________________________________________________________ Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses http://fr.answers.yahoo.com
On Nov 12, 2006, at 1:27 PM, baptiste auguie wrote:
Thanks, I had a closer look at these, and they probably are efficient ways to provide autocompletion. I sort of prefer a list that follows my typing than a keyword though
Unfortunately not present at the moment.
(I think it's a bad habit to type "document" and then let TM wrap it in a \begin{}\end{}
you actually only have type doc and then press cmd-{. There is a long list of shortcuts like that, which you can see and customize by using the "Edit Configuration File" command.
These commands is what makes TextMate different in my opinion. For instance we can create custom completions for labels and bibliography, where you only want to be seeing labels and citekeys respectively. Just one generic completion is not appropriate in my view.
environment. If you ever have to switch to another editor for some reason, it's gonna be a pain.)
Sure, but I don't think an editor should not use its special abilities simply because someone might have difficulties when moving to another editor.
Have you had a chance to try Kile? I found its autocompletion a dream.
I quite like the "ESC" way, though this key is quite far on my keyboard. Is there a way to change the mapping for the "TAB" which i never use for instance?
Problem is that "tab" is used for tab triggers (try typing "sec" followed by pressing tab for instance), so can't really be used for completion.
thanks again,
baptiste
Haris