Paste Markdown Link

30 Oct 2021 02:15 - 17 Jun 2023 08:29
Open in Logseq
    • A Roam hack for MacOS that lets you conveniently paste a browser link into Roam, Logseq, or other Markdown-syntax editor.
    • It assumes Brave as the browser, but you can easily change it to Chrome or other Chromium-based browsers. If you want to use Firefox or other non-Chrome browser, you will have to do more editing and experimentation – the AppleScript APIs are not standardized.
    • To use:
      • Download the version for your preferred browser:
        • Firefox: sorry, you are out of luck, doesn't support AppleScript
      • Unzip, double-click, and install
      • Bind it to a key in
        • System Preferences > Keyboard > Shortcuts > Services
        • (I use command-option-control-y based on Emacs yank command)
      • Hitting the key within Logseq or another Markdown-based application will paste a formatted link using the the URL and title of the most current Brave tab.
    • Copy Preview Markdown Link
      • inserts a file:// link, which confuses Roam but I guess is something?
      • Todo: add a processor for static-roam that uploads and links them properly.
        • OK for papers, dicey for books. (For public graph)
    • Updates
      • Dec 4th, 2022 Stopped working, getting errors like this image.png fucking annoying. Can't figure out why – Logseq updated, but
      • Apr 1st, 2023
        • Well fuck, here I am in MacOS Ventura and I can't get this shit to work any more. Best I could do -- use FastScripts 3 , pay for the premium version, and I still can't get it to the paste, so you need two keystrokes (C-opt-cmd-Y, Cmd-v)