Extending the Calendar Events bundle for TextMate
January 8, 2010 at 4:21 PM by Dr. Drang
I’ve added a new command to my Calendar Events bundle for TextMate (described in this post and available in this GitHub repository). The new command saves the generated iCalendar document to a temporary file and opens that file in iCal (or, presumably, BusyCal, if that’s your default calendar program). When an iCalendar file is opened in iCal, it asks you which calendar you want to put the new events into:
Clicking the popup menu will let you choose any of your existing calendars and will also let you create a new one.
The new command is called “Add to calendar,” and it’s bound to the ⌃⌥⌘A keyboard shortcut.
So the process of adding events to your calendar is now:
- Open a new document in TextMate and press ⌃⌥⇧E to make it an Events document.
- Use the “ev” and/or “ad” snippets to add timed events or all-day events to the document in a simple pipe-separated format.
- Press ⌃⌥⌘C to create an iCalendar document with those events.
- Assuming the iCalendar document is correct, press ⌃⌥⌘A to add those events to an iCal calendar chosen via the window shown above.