From 12ad5da5c57fb08048bde28444d9253d3f80b3c1 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Wed, 31 Jan 2018 10:29:50 +0100 Subject: Add qutebrowser alias ':wq' --- qutebrowser/.config/qutebrowser/config.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'qutebrowser/.config') diff --git a/qutebrowser/.config/qutebrowser/config.py b/qutebrowser/.config/qutebrowser/config.py index e3fa7b1..9c989ea 100644 --- a/qutebrowser/.config/qutebrowser/config.py +++ b/qutebrowser/.config/qutebrowser/config.py @@ -15,6 +15,7 @@ c.url.default_page = c.url.start_pages[0] # Bindings for normal mode config.bind(",b", 'spawn --userscript explorer -b') +config.bind("ch", 'history-all-clear') config.bind(",p", 'spawn --userscript explorer') config.bind(",t", 'spawn --userscript explorer -t') config.bind(",v", 'spawn -d mpv {url}') @@ -28,6 +29,7 @@ config.bind(",O", 'set-cmd-text -s :spawn --userscript url-from-surfraw -t') config.bind("f", 'hint all current') # Bindings for insert mode +# config.unbind("", mode='insert') config.bind("", 'fake-key ', mode='insert') config.bind("", 'fake-key ', mode='insert') config.bind("", 'fake-key ', mode='insert') @@ -56,3 +58,9 @@ c.url.searchengines = { 'tr': 'https://translate.google.com/#en/fr/{}', 'yt': 'https://www.youtube.com/results?search_query={}', } + +# Aliases +c.aliases = { + "history-all-clear": 'spawn rm /home/urbain/.local/share/qutebrowser/cmd-history ;; history-clear', + "wq": 'quit -s', +} -- cgit v1.2.3