This is my template for managing browser bookmarks in org-mode.
- Manage browser bookmarks in org file
- 1-click capture from any browser
- automatic generation of HTML
- live search
- menu for top level categories
git clone https://github.com/p-kolacz/org-linkz
Change ~/org/
to your folder of choice.
(server-start) ;; starts emacs as server (if you didn't already)
(setq org-html-validation-link nil) ;; removes validation link from exported html file
(require 'org-protocol)
(setq org-capture-templates
'(
("o" "Link capture" entry
(file+headline "~/org/org-linkz/Linkz.org" "INBOX")
"* %a %U"
:immediate-finish t)
))
(setq org-protocol-default-template-key "o")
Add ~/.local/share/applications/org-protocol.desktop
file with following content:
[Desktop Entry] Name=org-protocol Exec=emacsclient -n %u Type=Application Terminal=false Categories=System; MimeType=x-scheme-handler/org-protocol;
Run
update-desktop-database ~/.local/share/applications/
https://orgmode.org/worg/org-contrib/org-protocol.html#orgf93bb1b
https://github.com/xuchunyang/setup-org-protocol-on-mac
Add bookmark for your favorite browser with following address:
javascript:location.href="org-protocol:///capture?url="+encodeURIComponent(location.href)+"&title="+encodeURIComponent(document.title||"[untitled page]")
Add ~/org/org-linkz/Linkz.html
to your browser bookmarks.