Hi,
I've just purchased TextMate, and I have a few questions:
1 - when editing LaTeX code, I'd love to get a similar autocompletion feature as Kile for Linux (when you type \be, you get a list of possiblities that follows your typing (\begin{abstract},...)). It's *very* convenient and clever: it gives you the latex commands as well as words already present in the document, and narrows the list according to your typing. I found some posts about a latex autocompletion bundle/macro for TM, but I can't have it to work (I'm not sure what it does exactly anyway!). I get a huge list, from which I can't seem to choose before it disappears and leaves me with a blank document !
2 - Is it possible to always have tab editing available, not only in projects? Or is there a way to open TextMate with an empty project by default (where you just drag and drop the files you want to use)?
3 - I run some Octave scripts from TextMate, using the Matlab mode, but I have to put something like #! /sw/bin/octave -f and run the script using the shell command with all the text selected. How can I add this compilation feature to the Matlab bundle (giving the path to Octave, and not having to select the text before running it)?
Thanks,
best regards,
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 8:12 AM, baptiste auguie wrote:
1 - when editing LaTeX code, I'd love to get a similar autocompletion feature as Kile for Linux (when you type \be, you get a list of possiblities that follows your typing (\begin{abstract},...)). It's *very* convenient and clever: it gives you the latex commands as well as words already present in the document, and narrows the list according to your typing. I found some posts about a latex autocompletion bundle/macro for TM, but I can't have it to work (I'm not sure what it does exactly anyway!). I get a huge list, from which I can't seem to choose before it disappears and leaves me with a blank document !
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
On 12. Nov 2006, at 14:12, baptiste auguie wrote:
2 - Is it possible to always have tab editing available, not only in projects? Or is there a way to open TextMate with an empty project by default (where you just drag and drop the files you want to use)?
No, presently you need to do New Project (⌃⌘N) first.
3 - I run some Octave scripts from TextMate, using the Matlab mode, but I have to put something like #! /sw/bin/octave -f and run the script using the shell command with all the text selected. How can I add this compilation feature to the Matlab bundle (giving the path to Octave, and not having to select the text before running it)?
Commands: http://macromates.com/textmate/manual/commands
Feel free to ask follow-up questions, I don’t know exactly what Octave produces, or which arguments it takes, but making the command be: ‘octave -f’ and input ‘Entire Document’ with output being… uhm… show tool tip, maybe? sounds like it should get you started.
As for path to Octave, see: http://macromates.com/textmate/manual/ shell_commands#search_path