From 4994e9782d070ae3376cbeb7aadf3bc46ad1d991 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Fri, 25 Aug 2023 16:24:25 +0200 Subject: [PATCH] qutebrowser: Remove gemini shortcut from main link Main linking buttons (f/F) *can* be used for this but the resulting userscript has to account for many more different scenarios than opening a page. If it does not, we can not 'click' on text entry fields, dropdowns, sliders etc with the f-buttons anymore. This commit switches the qute-gemini script to be invoked via ,g or ,G thus with the local leader mapping instead. --- qutebrowser/.config/qutebrowser/maps.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/qutebrowser/.config/qutebrowser/maps.py b/qutebrowser/.config/qutebrowser/maps.py index 0ba4a0e..377c30f 100644 --- a/qutebrowser/.config/qutebrowser/maps.py +++ b/qutebrowser/.config/qutebrowser/maps.py @@ -6,9 +6,6 @@ lleader = "," ## CHANGED DEFAULTS -# the full power of qutebrowser at your fingertips for any gemini page! -config.bind("f", "hint links userscript qute-gemini") -config.bind("F", "hint links userscript qute-gemini-tab") # rebind moving tabs to free for download config.bind("gG", "tab-give") @@ -57,6 +54,11 @@ config.bind(lleader + "I", "spawn uoeia -v imv {url}") config.bind(lleader + "i", "hint links spawn uoeia -v imv {hint-url}") config.bind(lleader + "", "hint images spawn uoeia -v imv {hint-url}") +# [G]emini shortcuts +# the full power of qutebrowser at your fingertips for any gemini page! +config.bind(f"{lleader}g", "hint all userscript qute-gemini") +config.bind(f"{lleader}G", "hint all userscript qute-gemini-tab") + # bind youtube-dl to download the current page/links config.bind(lleader + "dM", "spawn vidl {url}") config.bind( @@ -78,7 +80,7 @@ config.bind(';s', "hint links userscript shaarli_add.sh") config.bind('"a', "send-to-archive", mode="normal") config.bind('"t', "translate-page-google", mode="normal") -config.bind('"T', "translate-selection-google", mode="normal") +config.bind('"t', "translate-selection-google", mode="caret") config.bind('"q', "show-qr")