This extension snippet will copy and insert the current selection in a document or web page to Obsidian.
There are a few prerequisites.
- The Advanced Obsidian URI community plug-in for Obsidian must be installed. (Info on Obsidian community plugins)
- You must know the name of the destination “vault” in Obsidian. (A macOS folder that you have configured as a vault in Obsidian.) The vault name must be URL-encoded.
- This example puts the text in the “daily note” (configured in Obsidian settings), in a header section named “Clippings”. These are both configurable. (Note, the
%0A
string means add a new line before pasting.)
# Popclip
name: OBSClipper
icon: O
url: obsidian://advanced-uri?vault=<vault name URL encoded>&daily=true&heading=Clippings&data=%0A***&mode=append
This version of the snippet will append the selected text to the “daily note” within a heading section of that note named Clippings
. If you check the Advanced Obsidian URI documentation there is a very robust set of options for configuring the URL.
Question for @nick – I would like to append to the text the markdown-formated URL of the source webpage. Is it possible to grab both this and the selected text in the extension snippet? So I would paste <text> plus <markdown-formated source URL>