summaryrefslogtreecommitdiff
path: root/qutebrowser
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2018-01-31 10:29:50 +0100
committerUrbain Vaes <urbain@vaes.uk>2018-01-31 10:29:50 +0100
commit12ad5da5c57fb08048bde28444d9253d3f80b3c1 (patch)
treeea78cd3de6e3f59c0d16cbda3f354e26a4f49984 /qutebrowser
parent6ce5f4c2381074c5b3f3560efeefc69504444a31 (diff)
Add qutebrowser alias ':wq'
Diffstat (limited to 'qutebrowser')
-rw-r--r--qutebrowser/.config/qutebrowser/config.py8
1 files changed, 8 insertions, 0 deletions
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("<Ctrl-A>", mode='insert')
config.bind("<Ctrl-A>", 'fake-key <Home>', mode='insert')
config.bind("<Ctrl-E>", 'fake-key <End>', mode='insert')
config.bind("<Ctrl-H>", 'fake-key <Backspace>', 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',
+}