Create new Textmate bundle or snippet using Bundle Editor
The following doesn’t seem to be in Textmate’s manual, there are no UI buttons to press, and I’ve forgotten how to create or edit Textmate bundles often enough to write this down:
- Top menu → Bundles → Edit Bundles
- Cmd + N to create new item
- Name the item on right sidebar
- Cmd + S to save an item
- Cmd + Delete to delete a selected item
Examples
HTML <img> tag snippet, inserted by typing img
and pressing Tab, then pressing Tab again to jump between defined fields:
<img src="${1:URL}" alt="${2:ALT Description}" width="${3:Width. Usually 650.}" class="rounded">
Date and time in UTC/Zulu format for current locale snippet, inserted by typing dz
and pressing Tab:
`date +%Y-%m-%d\T%H:%M:%S%z`
· ˖ ✦ . ˳
Possibly Related:
- Select every other line of a text file on Textmate
- Reverse chronological numbers in a text document with Textmate
- ESAK
- How to turn off Fujifilm X100VI LCD screen with a button press
- Death by A.I.
˳ · ˖
Prior entry: Abject Audio Inputs
Next entry: Zelda Breath of the Wild controls