From c3a5544da9c43996f6ed334e6e667d2b79f29a2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Acc=C3=A1cio=20Nogueira?= Date: Sun, 26 Apr 2020 11:23:11 +0200 Subject: [PATCH] (docs): add docs for qutebrowser keybindings (#512) --- doc/roam_protocol.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/roam_protocol.md b/doc/roam_protocol.md index d22dc59..288124c 100644 --- a/doc/roam_protocol.md +++ b/doc/roam_protocol.md @@ -25,6 +25,14 @@ javascript:location.href = + '&title=' + encodeURIComponent(document.title) ``` +or as a keybinding in qutebrowser, adding the following to the autoconfig.yml file: +```yml +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)) +``` where `template` is the template key for a template in `org-roam-capture-ref-templates`. More documentation on the templating