Org-roam Firefox bookmark

May 30, 2020
emacs, orgmode, roam, firefox

tags Org-mode Emacs Org-roam Org-roam has roam-protocol, which we can call throughout the system just like Org-mode Firefox bookmarks. Org-roam protocol supports specifying the roam template to use. Template is the template key for a template in org-roam-capture-ref-templates. More documentation on the templating system can be found here. These templates should contain a #+ROAM_KEY: ${ref} in it. Roam-ref protocol # Find and creates from with a specific ROAM_KEY ...

Org-mode Firefox bookmarks

May 30, 2020
emacs, orgmode, firefox

tags Org-mode Emacs Add the following scripts to call org-capture from Firefox Call capture template # The following calls capture template key n javascript:location.href='org-protocol://capture?template=n'+'&url='+encodeURIComponent(window.location.href)+'&title='+encodeURIComponent(document.title)+'&body='+encodeURIComponent(window.getSelection()); Without a capture template # If unspecified, the template key is set in the variable org-protocol-default-template-key. The following template placeholders are available: %:link The URL %:description The webpage title %:annotation Equivalent to [[%:link][%:description]] %i The selected text See: