It does exactly what it says on the tin. It works like Copy Link but it copies a markdown link, with the name of the linked resource and a link to it. e.g.
You can then paste the link wherever you want.
The benefits of this command are:
- It saves you the trouble of manually creating markdown links. Once you get used to the command, you can issue it one or two seconds.
- It allows you to create Markdown links not only to web pages, but to files too. And unlike traditional file links, hook://file links generally work even if you move the file’s target!
- You can also link to all kinds of other objects (e.g., emails, tasks, and objects in many different apps).
- You can use them as the basis for the
Hook to Copied Linkcommand.
- If you want to paste a link containing both the name and URL (address) of an item in a plain text field, this command does the job! For instance, TaskPaper and BBEdit are plain text. If you paste a regular link into them you will just get the URL (some apps pick the wrong field and actually paste only the title–before 2020, Slack itself did that). But with
Copy Markdown Linkyou always get both the title and the URL.
To elaborate on the fourth point: Markdown links in the clipboard that have absolute paths are considered valid URLs for purposes of hook-linking items together. This means that if you have a Markdown link in the clipboard, whether it was created by Hook or some other app, you can then invoke Hook on just about any item and
Hook to Copied Link. This will link the current item to the item referenced by the Markdown link.