A year and a half ago I released
mdut, a small utility for generating Markdown URL tags, because I did most of my writing in terminal based editors like Vim and Kakoune. In recent months I found myself writing far more in Ulysses, meaning I’m not already in the terminal during the process, and opening one up to get this functionality isn’t quite as convenient.
When I initially shared
mdut with the world, Kirk said he wanted that functionality in the browser, and I briefly gave it a whirl, but gave up when I couldn’t get copying to clipboard to work. But then I also needed something similar for work recently, and found that just surfacing the text via
alert() for manual copying was helpful enough, so I decided to make bookmarklets for this as well.
I mostly use the reference style:
[TODO]: https://nkantar.com/about/ "About | Nik Kantar"
The code you’ll need for the bookmarklet is:
There’s also the inline style:
[TODO](https://nkantar.com/about/ "About | Nik Kantar")
And finally there’s the Slack style, which is just inline without the title tag:
Clicking on the bookmarklet will result in an alert window with text you can select to copy for pasting wherever you please. Here’s an example: