The biggest problem with having your own blog is that it’s pretty difficult to write and publish anything. You likely don’t have a fancy Medium-style interface if you want complete control over every little detail and you’re probably writing things from within a CMS or a code editor.
Right now I’m writing this blog post from within VS Code for example:
Even though I think that blogging is essential to becoming a better writer, the process around the writing can be super annoying and right now requires a ton of manual work for me. Over the past couple of weeks I’ve noticed how this process is actively hindering me from sharing links, quick ideas, or even embarassing relationship melodrama (oh, you’re very welcome).
Just look at this nightmare blogging process:
- Open up VS Code and the workspace
- Create the file name
- Go to another file and copy/paste the metadata to the top of this one.
- Add the title and the correct date.
- Write the dang blog post.
- Push that code to the master branch so Netlify can publish.
Steps 1 through 4 are just far too much effort as the goal of any good blogging system should be to publish things as easily and as quickly as possible; ideally I should be spending all of my time and attention on the writing instead.
So today I decided to tackle this problem once and for all. Right away I knew that I could experiment with Alfred’s Workflows; this lets you make little programs when you activate Alfred (so for me that’s
space). What I wanted was to open up Alfred and then create a new file depending on the keyword I gave it and then I wanted it to automatically boot VS Code up with that new file. That way I could skip all those annoying steps entirely!
After about ten minutes of tinkering with it all, I came up with the following workflow:
- The Alfred extension takes the keyword I pass it after typing
bstands for blog).
- It replaces each space in the keyword with a hypen.
- Then that output is set to a variable called
- Create a text file with an extension of
.mdand add the default meta data, including the current date to the top of the file.
- Open that file in VS Code.
- Alfred will then post a notification that everything is complete!
It’s pretty nifty that this only took me ten minutes to figure out. Since I’ll be using this command pretty much every day I also decided to pick up an icon from the Noun Project as the thumbnail for this new workflow, too. Oh and this is what it looks like to make a program in Alfred’s UI:
Anyway, now it takes all of three seconds to start blogging! And so I would highly recommend you invest a bit of time to make your own experience easier—whether that’s updating the back-end of your blog, or cleaning up the styles, or making a tiny tool like this to encourage you to write.
Because blogging is back, baby!Reply via email Random post