
Org Web Capture by Titan-C
A helper for capturing web pages via org-protocol in emacs and supporting org-roam captures.
You'll need Firefox to use this extension
Extension Metadata
About this extension
1 Org Web Capture Extension
โโโโโโโโโโโโโโโโโโโโโโโโโโโ
This is an extension for Firefox (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 it 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 <https://addons.mozilla.org> website under the name [Org
Web Capture].
[Org Web Capture]
<https://addons.mozilla.org/en-US/firefox/addon/org-web-capture/>
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)
โโโโโ
โ mkdir -p "${HOME}/.local/share/applications/"
โ 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
โโโโโ
โ ("l" "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")
โโโโโ
โ 2.2.2.3 Org-roam `roam-ref' templates
`Org-roam' has special capture templates, and thus they are to be
configured differently. Read more org-roam [roam-ref protocol].
โโโโโ
โ (setq org-roam-capture-ref-templates '(("l" "web" plain "%i\n%?"
โ :target (file+head "%<%Y%m%d>-${slug}.org"
โ "#+title: ${title}")
โ :unnarrowed t)))
โโโโโ
[roam-ref protocol]
<https://www.orgroam.com/manual.html#The-roam_002dref-protocol>
2.2.3 Configure extension
โโโโโโโโโโโโโโโโโโโโโโโโโ
For some reason I need to configure the extension and save a change
before it works.
You can use the shortcut โCtrl+Shift+Lโ to trigger the page capture.
3 Development
โโโโโโโโโโโโโ
Have nodejs installed and install the tool `web-ext'
โโโโโ
โ npm install --save-dev web-ext
โโโโโ
To launch the dev instance an a clean browser use:
โโโโโ
โ npm run start:dev
โโโโโ
To produce the release build
โโโโโ
โ npm run build
โโโโโ
4 License
โโโโโโโโโ
4.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.
5 Changes
โโโโโโโโโ
5.1 v0.3.1
โโโโโโโโโโ
โข Some code cleanup. Ship CSS instead of pulling tachyons from unpkg
5.2 v0.3.0
โโโโโโโโโโ
โข Support capturing to org-roam roam-ref-templates. Just mark the
checkbox on the config and the standard web request will go to
`roam-ref' instead of capture.
5.3 v0.2.6
โโโโโโโโโโ
โข Include the how to find information in meetup template
โโโโโโโโโโโโโโโโโโโโโโโโโโโ
This is an extension for Firefox (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 it 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 <https://addons.mozilla.org> website under the name [Org
Web Capture].
[Org Web Capture]
<https://addons.mozilla.org/en-US/firefox/addon/org-web-capture/>
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)
โโโโโ
โ mkdir -p "${HOME}/.local/share/applications/"
โ 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
โโโโโ
โ ("l" "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")
โโโโโ
โ 2.2.2.3 Org-roam `roam-ref' templates
`Org-roam' has special capture templates, and thus they are to be
configured differently. Read more org-roam [roam-ref protocol].
โโโโโ
โ (setq org-roam-capture-ref-templates '(("l" "web" plain "%i\n%?"
โ :target (file+head "%<%Y%m%d>-${slug}.org"
โ "#+title: ${title}")
โ :unnarrowed t)))
โโโโโ
[roam-ref protocol]
<https://www.orgroam.com/manual.html#The-roam_002dref-protocol>
2.2.3 Configure extension
โโโโโโโโโโโโโโโโโโโโโโโโโ
For some reason I need to configure the extension and save a change
before it works.
You can use the shortcut โCtrl+Shift+Lโ to trigger the page capture.
3 Development
โโโโโโโโโโโโโ
Have nodejs installed and install the tool `web-ext'
โโโโโ
โ npm install --save-dev web-ext
โโโโโ
To launch the dev instance an a clean browser use:
โโโโโ
โ npm run start:dev
โโโโโ
To produce the release build
โโโโโ
โ npm run build
โโโโโ
4 License
โโโโโโโโโ
4.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.
5 Changes
โโโโโโโโโ
5.1 v0.3.1
โโโโโโโโโโ
โข Some code cleanup. Ship CSS instead of pulling tachyons from unpkg
5.2 v0.3.0
โโโโโโโโโโ
โข Support capturing to org-roam roam-ref-templates. Just mark the
checkbox on the config and the standard web request will go to
`roam-ref' instead of capture.
5.3 v0.2.6
โโโโโโโโโโ
โข Include the how to find information in meetup template
Rate your experience
PermissionsLearn more
This add-on needs to:
- Access your data for api.meetup.com
More information
- Add-on Links
- Version
- 0.3.3
- Size
- 20.91 KB
- Last updated
- 3 months ago (Jan 23, 2025)
- Related Categories
- License
- MIT License
- Version History
Add to collection
Release notes for 0.3.3
Bugfix avoid over escaping for non org-roam capture templates
More extensions by Titan-C
- There are no ratings yet
- There are no ratings yet
- There are no ratings yet
- There are no ratings yet
- There are no ratings yet
- There are no ratings yet