Hi All,
I packed up all my java snippets and commands and integrated them with the nice syntax and template stuff that already existed in the Java bundle.
Attached you will find a tarred and gziped Java.tmbundle. It adds a truckload of capabilities. Just slap it in one of the appropriate directories that TextMate looks in for bundles and tar xvfz Java.tmbundle.tar.gz, restart TextMate and fly!
Allan,
I would like to get this shipping with TextMate if you are interested. I think a lot of Java programmers would enjoy this stuff.
Lang Riley
Thanks Lang,
You should add it to the Bundles page on the wiki.
On Jan 2, 2005, at 20:23, Juan Anorga wrote:
You should add it to the Bundles page on the wiki.
Yes, that's currently the way to have bundles included with TextMate. I haven't done it yet, but I'll make a script to parse the bundle descriptions from that page and use it either to include bundles with TextMate or allow the user to 'browse' bundles from within TextMate (something like a bundle manager is likely to appear in a future release).
Currently Brian Lalor has a Java bundle on SVN [1] (not listed at the page) which has some additional stuff (I've so far only taken the syntax highlight portions of existing bundles for the releases). So if you do add your bundle, it'd be nice if you would also include his stuff (I see he already included some of yours, so maybe you have already spoken with him about it!?!).
[1] http://telly.bravo5.org/svn/repos/TextMate/trunk/Bundles
Yes, Brian asked to include my stuff, so I created a new bundle that has his stuff and mine. I didn't know who actually created the original or I would have given Brian credit. Good job Brian, I like the syntax highlighting! If Brian doesn't mind I will just let him host the bundle as I prefer not to with my current hosting situation. Thanks for your response.
On Jan 2, 2005, at 11:47 AM, Allan Odgaard wrote:
On Jan 2, 2005, at 20:23, Juan Anorga wrote:
You should add it to the Bundles page on the wiki.
Yes, that's currently the way to have bundles included with TextMate. I haven't done it yet, but I'll make a script to parse the bundle descriptions from that page and use it either to include bundles with TextMate or allow the user to 'browse' bundles from within TextMate (something like a bundle manager is likely to appear in a future release).
Currently Brian Lalor has a Java bundle on SVN [1] (not listed at the page) which has some additional stuff (I've so far only taken the syntax highlight portions of existing bundles for the releases). So if you do add your bundle, it'd be nice if you would also include his stuff (I see he already included some of yours, so maybe you have already spoken with him about it!?!).
[1] http://telly.bravo5.org/svn/repos/TextMate/trunk/Bundles
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On Jan 2, 2005, at 21:04, Lang Riley wrote:
[...] If Brian doesn't mind I will just let him host the bundle as I prefer not to with my current hosting situation.
I actually wanted to have added, that I thought Brian should get the chance of having his bundle be the official on the wiki :)
I assume that you (Brian) prefer to have the bundle on SVN rather than provide a tgz-archive -- the important thing for me is just to have an automated way to collect the bundles (it became to much work to maintain all the contributions I was emailed). The easiest thing is probably just that one of us writes a SVN -> tgz CGI script that the page can link to -- not sure about how to handle latest version. As of such the version + date could be removed and instead a link to an (external) release notes which has the date in the top or similar (which would probably also make it easier for the submitters, since they'd no longer need to update the wiki page when they make changes).
All this is really up to bundle submitters, I just need the thing to be automated, so if the current system can be changed to make it easier for submitters, I'll gladly change it.
On Jan 2, 2005, at 2:47 PM, Allan Odgaard wrote:
Done.
Currently Brian Lalor has a Java bundle on SVN [1] (not listed at the page) which has some additional stuff (I've so far only taken the syntax highlight portions of existing bundles for the releases). So if you do add your bundle, it'd be nice if you would also include his stuff (I see he already included some of yours, so maybe you have already spoken with him about it!?!).
Thanks, Allan. 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.
Excellent. Thanks Brian. Power to open source sharing! On Jan 2, 2005, at 5:38 PM, Brian Lalor wrote:
On Jan 2, 2005, at 2:47 PM, Allan Odgaard wrote:
Done.
Currently Brian Lalor has a Java bundle on SVN [1] (not listed at the page) which has some additional stuff (I've so far only taken the syntax highlight portions of existing bundles for the releases). So if you do add your bundle, it'd be nice if you would also include his stuff (I see he already included some of yours, so maybe you have already spoken with him about it!?!).
Thanks, Allan. 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.
-- __ ____ / / / __/ Brian Lalor / _ /__ \ blalor@bravo5.org /_.__/____/ http://bravo5.org/ ______________________________________________________________________ For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
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.
Thanks for your additions, Lang. I've integrated them into my original Java bundle; the latest version is always available here[1], and I've also implemented an RSS 2.0 feed[2] for my svn repository[3].
I'd already implemented some of those additions (snippets for public methods and getter/setter pairs, and a proper template for classes), and I've augmented the bundle with some of the commands and snippets that I thought were relevant for all users.
[1] http://telly.bravo5.org/~blalor/bundles/ [2] http://telly.bravo5.org/feeds/svnlog.xml [3] http://telly.bravo5.org/svn/repos