Quick Notes with Sublime Text

January 01, 2014 by Gabe | [mmd] |

Here's one of my most used Alfred workflows. It's simple but extremely convenient.

Sublime Workflow

The workflow is triggered with sn and a title for the note. It then creates a new text file in my Notes directory and then immediately opens it in Sublime Text for editing.

The bash script is very simple:

Bash Script

touch ~/Dropbox/Notes/{query}.txt;open -a '/Applications/Sublime Text.app' ~/Dropbox/Notes/{query}.txt

I chose to use the open command rather than the Sublime command line because Alfred always seems to have issues the subl command. On OS X, the open command is accepted by many modern applications.

You can download the workflow here.