From ed33755f5c97ad284415a4b4180ffe60ca7e3667 Mon Sep 17 00:00:00 2001 From: Flinner Date: Mon, 26 Jul 2021 14:37:18 +0300 Subject: [PATCH] feat: qutebrowser add orgmode+orgroam bindings --- qutebrowser/.config/qutebrowser/config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qutebrowser/.config/qutebrowser/config.py b/qutebrowser/.config/qutebrowser/config.py index bc9bd65..599665a 100644 --- a/qutebrowser/.config/qutebrowser/config.py +++ b/qutebrowser/.config/qutebrowser/config.py @@ -15,7 +15,7 @@ config.load_autoconfig(True) # ORG MODE -config.bind("cec", "open javascript:location.href='org-protocol://roam-ref?template=r&ref='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)") +config.bind("ec", "open javascript:location.href='org-protocol://roam-ref?template=r&ref='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)") ## Aliases for commands. The keys of the given dictionary are the ## aliases, while the values are the commands they map to. @@ -2171,6 +2171,7 @@ c.url.searchengines = {'DEFAULT': 'https://duckduckgo.com/?q={}', # config.bind('gJ', 'tab-move +') # config.bind('gK', 'tab-move -') # config.bind('gO', 'set-cmd-text :open -t -r {url:pretty}') +# config.bind('gO', 'set-cmd-text :open -t -r {url:pretty}') # config.bind('gU', 'navigate up -t') # config.bind('g^', 'tab-focus 1') # config.bind('ga', 'open -t') @@ -2247,6 +2248,7 @@ c.url.searchengines = {'DEFAULT': 'https://duckduckgo.com/?q={}', # config.bind('xo', 'set-cmd-text -s :open -b') # config.bind('yD', 'yank domain -s') # config.bind('yM', 'yank inline [{title}]({url}) -s') +config.bind('ey', 'yank inline [[{url}][{title}]]') # config.bind('yP', 'yank pretty-url -s') # config.bind('yT', 'yank title -s') # config.bind('yY', 'yank -s')