This will remove the sequence entered and then execute the bundle item.įor example the Text bundle has a snippet which inserts the current date conforming to ISO 8601 (YYYY-MM-DD). This is a sequence of text that you enter in the document and follow it by pressing the tab key (⇥).
If multiple items are given the same key equivalent then a menu will appear when that key equivalent is pressed, as shown below (all of the items in the Math bundle are bound to ⌃⇧C so a menu with each key equivalent option is displayed).Īs well as assigning a single key equivalent to a bundle item, it is possible to assign a tab trigger to the item. If you want to disassociate a key equivalent with an item, press the X shown while the key equivalent field is in recording mode. A key equivalent can be any key with optional modifiers and is configured by activating the key equivalent field and pressing the key to which the item should be bound. The easiest way to perform an action (from the keyboard) is in the form of a key equivalent. TextMate offers a few ways to do this and has a simple yet powerful system to understand the current context when evaluating which action the activation method should result in, called scope selectors, which is explained in a later chapter. Most items edited in the Bundle Editor represent actions you want to execute while editing text. which will be explained in more detail in the following sections. If you select Bundles → Bundle Editor → Show Bundle Editor you will see the command center for customizing TextMate.įrom this window you can create and edit things like snippets, commands, language grammars, etc. Normally you do not need to care about this, as you inspect (and edit) the bundles through the bundle editor (which can be reached through the Window menu). The default bundles are located in /path/to/TextMate.app/Contents/SharedSupport/Bundles. A lot of functionality in TextMate is provided through various bundles, many of which are language specific.