-
Notifications
You must be signed in to change notification settings - Fork 105
Description
I would really like it if the cmd-k shortcut for inserting a link could insert reference-style links instead of (or as well as) inline links. By reference style I mean where the link is on a separate line and a unique identifier associates the URL with the linked text:
This is [an example][id] reference-style link.
[id]: http://example.com/
Usually if a link is particularly long I will use the reference-style to avoid adding too much noise to a particular paragraph.
How I imagine the interface could work would be for me to select some text, press cmd-k, have the selected text be wrapped in a square brackets, the link added from the clipboard on the next line, and then keyboard focus be in (both?) the places where the reference needs to be inserted.
You could have a simple heuristic to guess an ID based on the domain name (like example
for example.com/whatever
).
Thanks!