Grasp is a browser extension for Chrome and Firefox, which adds a button/keybinding to capture current page title and url,
possibly selected text, additional comments or tags and adds it into your Org Mode file.
In the simplest setup, the server runs locally, and you can use 'localhost' version of the extension. If you have to work on a computer where you can't run python scripts,
or your target capture file is just not there, you can selfhost the server part elsewhere and use the 'any host' version. Don't forget to set the endpoint in extension settings!
Install server counterpart as systemd service (to autostart it): server/setup --path /path/to/your/capture.org [--port <custom port>] [--template <custom org-capture template>].
Or alternatively, just run it directly if you don't want to autostart it: server/grasp_server.py --path /path/to/your/capture.org [--port <custom_port>] [--template <custom org-capture template>].
Install chrome extension and configure hotkeys
That's it! If you're using custom port make sure it's the same as in the extension settings (default is 12212).
Configuration
Here you can find some references for the --template syntax.
If you are looking for more flexible formatting that's not supported by template syntax, see config.py.example.
You can modify it to your liking and pass as --config to grasp_server/setup scripts.
Motivation
Why use org-capture? Well, it's hard to explain, maybe some other time... However, if you do know you want to use it instead of/alongside your browser bookmarks, by default
you don't have much choice and have to copy everything manually. For an experienced enough org-mode user it's no less than a torture.
This tool:
+ shows a notification when capturing fails/succeeds, so you won't lose your notes
+ doesn't require always running Emacs, simply appends an org-mode text entry to a file
+ can capture things that org-protocol can't handle (e.g. extra comment or tags)
+ can potentially use any plaintext format as a storage.
E.g. you might be more of a Markdown or Todo.txt fan (let me know if you are interested in that!).
- doesn't talk to Emacs, so can't benefit from Emacs capture templates
E.g. currently you can't point at a specific header in an org file, it would just append at the end.
- requires running a small HTTP server
However, there are no dependencies apart from python3, so in many ways, it's even more portable than Emacs.
请发表评论