[TxMt] new Java bundle
Allan Odgaard
allan at macromates.com
Mon Jan 3 14:35:03 UTC 2005
On Jan 3, 2005, at 2:38, Brian Lalor wrote:
> [...] I've also modified all of the snippets and commands to use the
> restrainToMode property, which, as I recall, may have been a
> reservation you had about including the whole shebang.
Sort of yes, the menu clutter and clutter in the editors that would
result from including all bundles was the reason.
I still need to fix the editors, but I'll do this very soon.
The restrainToMode property is however not necessary to have things
separated in the menus. You only need to use it if you have some
snippet/macro/command that really only makes sense in a particular mode
_and_ is likely to clash when not in that mode.
E.g. if you have a 'tbl' trigger for a HTML snippet and LaTeX snippet,
it will always use the HTML snippet in the HTML mode (or HTML.PHP etc.)
and the LaTeX snippet in the LaTeX mode.
In all other modes, it'll show a menu with the two snippets. If
however, we set the restrainToMode = 1; for the LaTeX snippet, then in
all non-HTML and non-LaTeX modes, it'll just use the HTML snippet,
since the LaTeX snippet is only 'visible' in the LaTeX mode.
More information about the textmate
mailing list