Update qutebrowser bangs handling

This commit is contained in:
Tobias Reisinger 2025-03-25 18:24:42 +01:00
parent 92ec8cf500
commit 1213f06bfc
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
3 changed files with 23 additions and 16 deletions

View file

@ -2,19 +2,10 @@ import keybindings
import common
import linkwarden
bangs = {}
try:
with (config.configdir / 'bangs.txt').open() as f:
for line in f:
key, value = line.strip().split(' ', maxsplit=1)
bangs[key] = value
except:
pass
config.load_autoconfig()
keybindings.init(config)
common.init(c, bangs)
common.init(c)
try:
linkwarden.init()
except: