Snippets

LaunchBar’s Snippets feature is a fast and easy way to work with often–used pieces of small text. Instead of typing the same text again and again, you just select a snippet in LaunchBar and hit Return. Optional placeholders allow you to include things like clipboard contents or the current date in your snippets.

Snippets

Creating new Snippets

To create a new snippet, do one of the following:

Creating a new snippet using the “Add Snippet” action

Creating a new snippet using the “Add Snippet” action

Creating a new snippet vis “Send-to” or “Instant Send”

Creating a new snippet vis “Send-to” or “Instant Send”

Info Internally, snippets are simply plain text files (.txt) that are stored in the following folder:

~/Library/Application Support/LaunchBar/Snippets

Any plain text file you place in this folder will be picked up by LaunchBar and can then be used as a snippet.

Renaming Snippets

LaunchBar automatically suggests a name for the newly created snippet, based on the snippet text. If you want access the snippet under a different name, just press ⇧⌘R to trigger the Rename action.

Renaming a snippet

Accessing Snippets

Snippets can be accessed like any other item in LaunchBar’s index. Just type a few letters from their name or type a previously–assigned custom abbreviation.

The complete list of all snippets can be quickly accessed via a system wide keyboard shortcut. By default this shortcut is configured to Control-Option-Command-Space, but it can be customized in the Shortcuts pane of LaunchBar Preferences.

Alternatively you can select the “Snippets” indexing rule and press Right Arrow to get the same list of all snippets.

Once the desired Snippet is selected in LaunchBar, press Return to insert it into the text that you are currently editing in the frontmost application.

Keyboard Shortcuts

Accessing a snippet’s contents
Insert the snippet into the currently edited text
Copy the snippet’s contents to the clipboard (with placeholders expanded) ⌘C
Preview the snippet with Quick Look Space or ⌘Y
Navigate into the snippet (line by line, word by word)
Editing a snippet
Rename the snippet ⇧⌘R
Assign an abbreviation ⌥⌘A
Edit the snippet in your default text editor ⇧↩
Edit the snippet with some other text editor
Move the snippet to the Trash ⌘⌫
Show the snippet text file in Finder ⌘↩

Placeholders

Placeholders can be used to include things like clipboard contents or the current date in your snippets. They are expanded to their corresponding value when the snippet is inserted or copied. The following placeholders are available:

Example Expands To
<date short>
<date medium>
<date long>
<date full>
The current date in the specified region format.

The short, medium, long and full specifiers correspond to the respective date formats in System Preferences > Language & Text > Region > Dates > Customize…

<time short>
<time medium>
<time long>
<time full>
The current time in the specified region format.

The short, medium, long and full specifiers correspond to the respective time formats in System Preferences > Language & Text > Region > Times > Customize…

<date yyyy-MM-dd>
<date MMM dd, yyyy>
<date MM/dd/yy>
<time HH:mm>
<time HH:mm:ss>
<time h:mm a>
The current date and/or time in the specified format, according to Unicode standard’s date format patterns.
<first name>
<last name>
<full name>
Your first name, last name or full name, according to “My Card” in Contacts.app.
<clipboard> The current clipboard contents.
<clipboard 1>
<clipboard 2>
<clipboard 3>
The first, second, third, etc. item from the Clipboard History.
<|> After inserting the snippet, the text cursor is moved to the location marked by this placeholder.
<|insert text here> Same as above, but also inserts and selects the specified placeholder text.