mirror of
https://github.com/org-roam/org-roam
synced 2025-09-26 16:40:56 -05:00
(docs): update roam-ref qutebrowser configuration (#780)
This commit is contained in:
@@ -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("<Ctrl-r>", "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
|
||||
|
@@ -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("<Ctrl-r>", "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
|
||||
|
Reference in New Issue
Block a user