This is the official manual for the latest Org-mode release.

Table of Contents

Next: , Previous: <code>store-link</code> protocol, Up: Protocols


9.4.2 capture protocol

Activating capture handler pops up a ‘Capture’ buffer and fills the capture template associated to the ‘X’ key with them. The template refers to the data through %:url and %:title placeholders. Moreover, any selected text in the browser is appended to the body of the entry.

     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://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.