From 14a60a3c02677ec0f97c43a92ad5fecd5a7bccbd Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Mon, 26 May 2025 08:16:57 -0500 Subject: adding bookmarklet code for future reference --- modules/org-capture-config.el | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules') diff --git a/modules/org-capture-config.el b/modules/org-capture-config.el index 6a2f9397..cc246be7 100644 --- a/modules/org-capture-config.el +++ b/modules/org-capture-config.el @@ -7,6 +7,12 @@ ;; To ensure the code below is only loaded after org-mode, all code is wrapped in an ;; eval-after-load function. +;; bookmarklet code: +;; text +;; javascript:location.href='org-protocol://capture?template=L&url=%27+encodeURIComponent(location.href)+%27&title=%27+encodeURIComponent(document.title)+%27&body=%27+encodeURIComponent(window.getSelection()) + +;; text + selection +;; javascript:location.href='org-protocol://capture?template=p&url=%27+encodeURIComponent(location.href)+%27&title=%27+encodeURIComponent(document.title)+%27&body=%27+encodeURIComponent(window.getSelection()) ;;; Code: -- cgit v1.2.3