Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

In TextMate 2, how can I create a new Bundle?

I´m using a programming language which so far doesn't have a bundle (so no syntax highlighting, snippets and so on). TextMate 1 used to have a Bundle Editor, but where do I get started in TextMate 2?

share|improve this question

2 Answers 2

up vote 11 down vote accepted

As of this writing, the beginning steps are:

  1. Go to Bundles (menu) > Edit Bundles…
  2. Press ⌘N to create a new bundle.
  3. The bundle gets saved in ~/Library/Application\ Support/Avian/Bundles; you may wish to right-click on the saved bundle and choose Show Package Contents to see what's inside your bundle.

Further info can be found e.g. here and here.

share|improve this answer

The easiest way to do it is to copy an existing bundle, rename it, and edit it.

Here’s the official manual on that: TextMate Manual → Bundles.

5.2 Editing Default Bundles / Items

Some of the default items may not be to your exact liking, for example the coding style in snippets may differ from yours, so you may want other tab triggers, key equivalents, or similar modifications.

If you edit a default item the difference will be stored in ~/Library/Application Support/TextMate/Bundles. These are then merged with the default version so your changes will be effective even after upgrading TextMate. All new items you create also end up in this location.

Bundles or bundle items which you install by dragging them to TextMate or double clicking will be installed in ~/Library/Application Support/TextMate/Pristine Copy/Bundles. Editing these will also result in only the differences being stored in ~/Library/Application Support/TextMate/Bundles, meaning that if you later get a new version of this third party bundle, you can safely install this one on top of the old one (by dragging it to TextMate) and again your changes will be preserved.

If you want to discard local changes then currently the only option is to delete these from ~/Library/Application Support/TextMate/Bundles.


Alternatively, here’s a more visual guide (lots of screenshots): How to create a TextMate bundle.

share|improve this answer
    
I believe this pertains to Textmate 1. –  hced Aug 19 '12 at 20:32

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.