[SVN] r2384 (Latex)

Charilaos Skiadas cskiadas at uchicago.edu
Sat Dec 3 21:46:43 UTC 2005

Split the "Insert environment/command" command in two commands:
1) The "Insert Command" command creates commands based on current word, using the TM_LATEX_SHORTCUTS dictionary for word expansion, and the TM_LATEX_COMMAND_NOBRACES regexp to decide whether to put braces or not, defaulting on putting braces. Has shortcut cmd-} as per Jeroen's suggestion.
2) The "Insert Environment" command creates a begin-end environment based on current word. It uses the TM_LATEX_SHORTCUTS dictionary for word expansion, currently the TM_LATEX_INSERT_LABEL to decide whether to always put labels or not (to be removed shortly in favor of:) and the TM_LATEX_FIRSTLINE dictionary to decide whether to insert any extra text between the begin and the end, e.g. a label, an \item etc. It can contain snippet placeholders like $1, $2 and so on, with $10 reserved for the place below the extra first line, where the user would insert the text that goes in the environment. 
Changed its shortcut to cmd-{ as per Jeroen's suggestion.

Looking for feedback from testers.

A   trunk/Bundles/Latex.tmbundle/Commands/Insert Command Based on Current Word.plist
U   trunk/Bundles/Latex.tmbundle/Commands/Insert LaTeX Command Based on Current Word.plist

More information about the textmate-dev mailing list