diff --git a/doc/org-roam.org b/doc/org-roam.org index 8e2bcc5..48cd450 100644 --- a/doc/org-roam.org +++ b/doc/org-roam.org @@ -821,7 +821,7 @@ or as a keybinding in ~qutebrowser~ in , using the ~config.py~ file (see [[https://github.com/qutebrowser/qutebrowser/blob/master/doc/help/configuring.asciidoc][Configuring qutebrowser]]): #+BEGIN_SRC python -config.bind("", "spawn bash -c 'emacsclient \"org-protocol://roam-ref?template=r&ref={url:pretty}&title={title}\" '") + config.bind("", "open javascript:location.href='org-protocol://roam-ref?template=r&ref='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)") #+END_SRC where ~template~ is the template key for a template in diff --git a/doc/org-roam.texi b/doc/org-roam.texi index c56c751..ec1691d 100644 --- a/doc/org-roam.texi +++ b/doc/org-roam.texi @@ -1120,7 +1120,7 @@ or as a keybinding in @code{qutebrowser} in , using the @code{config.py} file (s @uref{https://github.com/qutebrowser/qutebrowser/blob/master/doc/help/configuring.asciidoc, Configuring qutebrowser}): @example -config.bind("", "spawn bash -c 'emacsclient \"org-protocol://roam-ref?template=r&ref=@{url:pretty@}&title=@{title@}\" '") +config.bind("", "open javascript:location.href='org-protocol://roam-ref?template=r&ref='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)") @end example where @code{template} is the template key for a template in