org-capture-extension
org-capture-extension copied to clipboard
A web-extension for capturing links, quotes, media, pages, etc. with org-protocol.
#+TITLE:Org Capture (WebExt)
This is a web-extension for capturing links, quotes, media, pages, etc. with [[https://orgmode.org/worg/org-contrib/org-protocol.html][org-protocol]].
- Features
- [[https://support.mozilla.org/en-US/kb/manage-extension-shortcuts-firefox][Hotkeys]]. One for storing links, one for capturing the page (or selected text, if the selection is active).
- Context menu items for capturing:
- A link to the current page, along with a description pulled from the page's metadata.
- Selected text. Optionally, selections can be captured as HTML. You'll want to use this with something like [[https://github.com/alphapapa/org-protocol-capture-html][org-protocol-capture-html]] to translate the HTML to org mode.
- Media (images, video, etc.). Media can be (optionally) downloaded (through your browser's download manager) before capturing.
- A browser action button to perform some default action on click (can either store a link to the current page, or initiate a capture).
- Optionally, capturing a selection will capture the HTML itself. You'll want to use this with something like [[https://github.com/alphapapa/org-protocol-capture-html][org-protocol-capture-html]] to translate the HTML to org mode.
- Contributing & Bug Reports
This is a /forks welcome/ project. I'm open to feedback and fixes, but I built it because I needed it and don't intend on putting any real effort/time into it. This means:
- Forks are VERY MUCH welcome, even encouraged. I don't want to maintain this addon, I just built it because I didn't like the existing ones.
- If a patch/issue would require any amount of work/maintenance on my part to land, I'll likely just close it. Please don't take this as commentary on your code and feel free to fork.
- Do file bug reports, but please keep your expecations low.
- You can file feature requests; I'm always interested in new ideas. But don't disappointed if I close them without much discussion beyond a quick "no thanks"/"not interested".
- Supported Browsers
At the moment, only the latest version of Firefox is supported. I'm happy to accept patches for other browsers, but I likely won't do much testing.
- Installing
Either build it locally or install the latest [[https://github.com/Stebalien/org-capture-extension/releases/][release]]. This addon isn't listed on the Mozilla store and doesn't auto-update. For now, you'll have to install/update manually.
- Building
To build, run ~make build~. You'll need the ~zip~ command.
Before installing, you'll need to either sign the extension, install a version of Firefox that doesn't mandate addon signature validation, or [[https://github.com/Stebalien/firefox-tweak][hack your Firefox install]]. Personally, I'd recommend the second option ([[https://librewolf.net/][LibreWolf]] works great!) then disable ~xpinstall.signatures.required~ in [[about:config]].
- Signing & Distribution
For addon distribution, use ~make build-webext~ and ~make sign-webext~. However, these require API keys and we're at the mercy of our Mozilla overlords on when addons actually get signed.
- History
Heavily inspired by both [[https://github.com/sprig/org-capture-extension][Org Capture Extension]] and [[https://github.com/vifon/org-protocol-for-firefox][Org Protocol for Firefox]]. However, the former [[https://github.com/sprig/org-capture-extension/issues/80][required permission]] for every new page captured and the latter wasn't very customizable and required manual clicks to complete a capture.