diff --git a/.config/qutebrowser/config.py b/.config/qutebrowser/config.py index bfbc44c..e7fe8f7 100644 --- a/.config/qutebrowser/config.py +++ b/.config/qutebrowser/config.py @@ -3,10 +3,75 @@ from typing import Dict config.load_autoconfig() -config.bind("", "tab-prev") -config.bind("", "tab-next") -config.bind("", "tab-prev") -config.bind("", "tab-next") +c.bindings.default["normal"].clear() +c.bindings.commands["normal"] = { + # Navigation + "": "scroll-page 0 0.5", + "": "scroll-page 0 -0.5", + + # Commands + "": "set-cmd-text :", + "b": "set-cmd-text :buffer", + "k": "tab-close", + "": "quit", + + # Searching + "": "set-cmd-text /", + "": "set-cmd-text ?", + + # Hinting + "": "hint all", + + # History + "f": "forward", + "b": "backward", + + # Tabs + "": "tab-next", + "": "tab-prev", + + # Open + "": "set-cmd-text -s :open", + "": "set-cmd-text -s :open -t", + + # Editing + "": "fake-key ", + "": "fake-key ", + "": "fake-key ", + "": "fake-key ", + + # Numbers + "0": "fake-key 0", + "1": "fake-key 1", + "2": "fake-key 2", + "3": "fake-key 3", + "4": "fake-key 4", + "5": "fake-key 5", + "6": "fake-key 6", + "7": "fake-key 7", + "8": "fake-key 8", + "9": "fake-key 9", +} + +c.bindings.commands["command"] = { + # Searching + "": "search-next", + "": "search-prev", + + # Completion + "": "completion-item-focus prev", + "": "completion-item-focus next", + + "": "leave-mode", +} + +c.bindings.commands["hint"] = { + "": "leave-mode", +} + +c.bindings.commands["caret"] = { + "": "leave-mode", +} c.content.blocking.method = "both" c.content.blocking.adblock.lists = [