Since I’ve always wanted to add footnotes to my posts I decided to take it upon myself to hack something together in Keyboard Maestro. The goal was to create a macro that would allow me to easily and quickly create footnotes in my posts as well as provide the code to give the reverse link at the bottom of the page.
Before I post the screenshot of the macro, I should preface with a little explanation of how it works.
Position your cursor where you want the superscripted number to appear.
Trigger your hotkey and you will be prompted with an input box asking you for a number. This is obviously the number of the given footnote. If you have a lot of footnotes, that might be slightly problematic but as I’ll only be adding one or two, I figured it wouldn’t be a issue.
Entering the number will generate the code for the superscript containing the number entered with a link to a reference. This process also stores the reference to the reverse-link on your clipboard.
To finish up, go to the bottom of the page. If there isn’t already a horizontal rule, add one.
Paste the text the macro added to your clipboard. The macro will contain a markdown-formatted numbered list item followed by a link back to your reference in the post and some dummy text for you to replace with your actual footnote.
Here’s the macro itself:
It’s pretty easy, it turns out. ↩