Next: open-source
protocol, Previous: store-link
protocol, Up: Protocols [Contents][Index]
capture
protocolActivating “capture” handler pops up a ‘Capture’ buffer and fills the capture template associated to the ‘X’ key with them.
emacsclient org-protocol://capture?template=X?url=URL?title=TITLE?body=BODY
To use this feature, add a bookmark with an arbitrary name, e.g., ‘Org: capture’, and enter this as ‘Location’:
javascript:location.href='org-protocol://capture?template=x'+ '&url='+encodeURIComponent(window.location.href)+ '&title='+encodeURIComponent(document.title)+ '&body='+encodeURIComponent(window.getSelection());
The result depends on the capture template used, which is set in the
bookmark itself, as in the example above, or in
org-protocol-default-template-key
.
The following template placeholders are available:
%:link The URL %:description The webpage title %:annotation Equivalent to [[%:link][%:description]] %i The selected text