Org Web Capture v0.3.0
1 Org Web Capture Extension
═══════════════════════════
This is an extension for Firefox (tm) and eventually Chromium (tm)
which adds a "Capture" button, sending the site address, title, and
selected text (if any) to emacs via org-protocol.
In case it's a meetup.com event page I will perform an additional API
call to meetup.com and get the event details.
2 Detailed setup instructions
═════════════════════════════
2.1 Install the extension
─────────────────────────
Install from addons.mozilla.org website
2.2 Set up org-protocol
───────────────────────
The gist of it is to make your system recognize emacsclient as the
handler of `org-protocol://' links. In addition, one needs to set up
emacs to load org-protocol and to set up capture templates.
2.2.1 Register emacsclient as the ```org-protocol``` handler
╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌
◊ 2.2.1.1 Under Linux (non-KDE)
cat > "${HOME}/.local/share/applications/org-protocol.desktop" << EOF
[Desktop Entry]
Name=org-protocol
Exec=emacsclient %u
Type=Application
Terminal=false
Categories=System;
MimeType=x-scheme-handler/org-protocol;
EOF
And then
update-desktop-database ~/.local/share/applications/
2.2.2 Configure Emacs
╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌
◊ 2.2.2.1 Init file
(server-start)
(require 'org-protocol)
◊ 2.2.2.2 Capture templates
("p" "Web site" entry (file+headline (lambda () (concat org-directory "/webnotes.org")) "Inbox")
"* %a\nCaptured On: %U\nWebsite: %l\n\n%i\n%?")
("m" "meetup" entry (file "~/nextcloud/caldav.org") "* %?%:description \n%i\n%l")
3 License
═════════
3.1 This is a fork of [https://github.com/sprig/org-capture-extension]
──────────────────────────────────────────────────────────────────────
This repository is licensed as MIT license, see the LICENSE file for
details.