Streamlined support for reference links

Hello,

Rather than using and then having to hide inline links, I would like to use reference-style links. My current flow using an AppleScript with BBEdit (video attached) shows this. The video shows the following:

  1. Highlight text
  2. Invoke a Keyboard Maestro macro that uses one AppleScript to help me retrieve the url from an open browser tab.
  3. The Keyboard Maestro then uses another AppleScript to…
    1. format the selected text with the reference link markup…
    2. moves the insertion point to the of the document (there is an option to the insertion point to the end the selected text’s paragraph instead)
    3. adds the reference url markup
    4. moves the insertion back to immediately after the newly formatted selected text.

I wouldn’t expect Lettera to query my browser tabs so step two could be replaced with “paste url”.

  1. Highlight text
  2. Paste url
  3. Lettera formats the selected text with reference syntax and puts the reference link at the bottom of the document, with maybe an option to place at the bottom of the current paragraph instead.

My script defaults to using implicit link names where the linked text itself is used as the id and will append incrementing counter for repeats.

Thanks for working on a nice app.

2 Likes