diff --git a/doc/org-roam.org b/doc/org-roam.org index 6abc84a..410a457 100644 --- a/doc/org-roam.org +++ b/doc/org-roam.org @@ -770,14 +770,11 @@ javascript:location.href = + encodeURIComponent(document.title) #+END_SRC -or as a keybinding in ~qutebrowser~, adding the following to the ~autoconfig.yml~ file: +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 yaml -settings: - bindings.commands: - global: - normal: - gc: open javascript:void(location.href='org-protocol://roam-ref?template=r&ref='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)) +#+BEGIN_SRC python +config.bind("", "spawn bash -c 'emacsclient \"org-protocol://roam-ref?template=r&ref={url:pretty}&title={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 017a312..2bf8d9a 100644 --- a/doc/org-roam.texi +++ b/doc/org-roam.texi @@ -1060,14 +1060,11 @@ javascript:location.href = + encodeURIComponent(document.title) @end example -or as a keybinding in @code{qutebrowser}, adding the following to the @code{autoconfig.yml} file: +or as a keybinding in @code{qutebrowser} in , using the @code{config.py} file (see +@uref{https://github.com/qutebrowser/qutebrowser/blob/master/doc/help/configuring.asciidoc, Configuring qutebrowser}): @example -settings: - bindings.commands: - global: - normal: - gc: open javascript:void(location.href='org-protocol://roam-ref?template=r&ref='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)) +config.bind("", "spawn bash -c 'emacsclient \"org-protocol://roam-ref?template=r&ref=@{url:pretty@}&title=@{title@}\" '") @end example where @code{template} is the template key for a template in