Next: , Up: Protocols   [Contents][Index]


9.4.1 store-link protocol

Using store-link handler, you can copy links, insertable through M-x org-insert-link or yanking thereafter. More precisely, the command

emacsclient org-protocol://store-link?url=URL&title=TITLE

stores the following link:

[[URL][TITLE]]

In addition, URL is pushed on the kill-ring for yanking. You need to encode URL and TITLE if they contain slashes, and probably quote those for the shell.

To use this feature from a browser, add a bookmark with an arbitrary name, e.g., ‘Org: store-link’ and enter this as Location:

javascript:location.href='org-protocol://store-link?url='+
      encodeURIComponent(location.href);