mirror of
https://github.com/org-roam/org-roam
synced 2025-09-28 16:50:58 -05:00
(docs): update roam-ref qutebrowser configuration (#780)
This commit is contained in:
@@ -770,14 +770,11 @@ javascript:location.href =
|
|||||||
+ encodeURIComponent(document.title)
|
+ encodeURIComponent(document.title)
|
||||||
#+END_SRC
|
#+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
|
#+BEGIN_SRC python
|
||||||
settings:
|
config.bind("<Ctrl-r>", "spawn bash -c 'emacsclient \"org-protocol://roam-ref?template=r&ref={url:pretty}&title={title}\" '")
|
||||||
bindings.commands:
|
|
||||||
global:
|
|
||||||
normal:
|
|
||||||
gc: open javascript:void(location.href='org-protocol://roam-ref?template=r&ref='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title))
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
where ~template~ is the template key for a template in
|
where ~template~ is the template key for a template in
|
||||||
|
@@ -1060,14 +1060,11 @@ javascript:location.href =
|
|||||||
+ encodeURIComponent(document.title)
|
+ encodeURIComponent(document.title)
|
||||||
@end example
|
@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
|
@example
|
||||||
settings:
|
config.bind("<Ctrl-r>", "spawn bash -c 'emacsclient \"org-protocol://roam-ref?template=r&ref=@{url:pretty@}&title=@{title@}\" '")
|
||||||
bindings.commands:
|
|
||||||
global:
|
|
||||||
normal:
|
|
||||||
gc: open javascript:void(location.href='org-protocol://roam-ref?template=r&ref='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title))
|
|
||||||
@end example
|
@end example
|
||||||
|
|
||||||
where @code{template} is the template key for a template in
|
where @code{template} is the template key for a template in
|
||||||
|
Reference in New Issue
Block a user