Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save oblinger/742c5b1b3b99ad020f0c301abdc62811 to your computer and use it in GitHub Desktop.
Save oblinger/742c5b1b3b99ad020f0c301abdc62811 to your computer and use it in GitHub Desktop.
Obsidian URL link capture from Browser (using MacOS and Keyboard Maestro)
@oblinger
Copy link
Author

Grabbing multiple URLs from my web browser into markdown involved tedious back and forth flipping between two apps. This sucks since I often like to use markdown to record some info exploration, since I can easily include commentary with the links.

I called this "hyper optimized" since one could save 10 web tabs with 20 key strokes, and ten text selections in order to pick the ten titles for the links. I don't know of any other method as streamlined.

Here are the detailed mechanics:

SETUP: The macro assumes the obsidian's cursor is at a good place for the next URL like to be added (though the window need not be in focus). It assumes the web browser it open to the URL to be captured.

TRIGGER: The user hits control-opt-command L to capture.

TITLE: If there is an active selection then it is copied and used as the title of the markdown link (often there is good text on the page to use as a title). Otherwise the user is prompted for a title, and some optional notes to append after the link.

FLIP-FLIP: The macro then focus onto Obsidian, posts the link and notes, pauses for a moment so you can see what you just did to your Obsidian document, then it flips back to the browser. There you can close that tab, and you are ready to capture your next link whenever you find it.

It is a super simple macro, but it is an ABSOLUTE JOY to use if you like to capture notes on your web explorations... getting rid of a tedious bit of hoo-haa. Included here is the macro, you can upload if you like it. I also included screen shots if you prefer to just manually create the macro... since it is pretty short. If you use Chrome instead of safari, then just replace %SafariURL% with %ChromeURL%

Cheers,
Dan

Here is the macro shown visually if you want to just manually add it:

Screen Shot 2022-03-19 at 3 55 30 PM
Screen Shot 2022-03-19 at 3 57 01 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment