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 ++++++++ vim/.vimrc | 2 +- zathura/.config/zathura/zathurarc | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) 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', +} diff --git a/vim/.vimrc b/vim/.vimrc index 55737ac..9f0dcdd 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -200,7 +200,7 @@ let g:UltiSnipsSnippetsDir="~/.vim/mySnippets" " let g:UltiSnipsUsePythonVersion=3 " Vimtex -let g:vimtex_fold_enabled=0 +let g:vimtex_fold_enabled=1 let g:vimtex_view_method='zathura' let g:vimtex_quickfix_mode=2 let g:vimtex_compiler_progname='nvr' diff --git a/zathura/.config/zathura/zathurarc b/zathura/.config/zathura/zathurarc index 543633d..e93c296 100644 --- a/zathura/.config/zathura/zathurarc +++ b/zathura/.config/zathura/zathurarc @@ -1,2 +1,3 @@ map scroll down map scroll up +set font "monospace normal 12" -- cgit v1.2.3