From rgr, 2 Months ago, written in Plain Text.
  1. config.bind(
  2.     "<Ctrl-r>",
  3.     "open javascript:location.href='org-protocol://roam-ref?template=r&ref='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)+'&body='+encodeURIComponent(window.getSelection())",
  4. )
  5.