diff --git a/qutebrowser/.config/qutebrowser/config.py b/qutebrowser/.config/qutebrowser/config.py index 53cdfa1..7f3d355 100644 --- a/qutebrowser/.config/qutebrowser/config.py +++ b/qutebrowser/.config/qutebrowser/config.py @@ -29,20 +29,22 @@ c.content.javascript.enabled = False js_whitelist = [ "*://*.youtube.com/*", "*://127.0.0.1/*", + "*://asciinema.org/*", "*://darksky.net/*" "*://deepl.com/*", "*://duckduckgo.com/*", "*://github.com/*", + "*://gitlab.com/*", "*://localhost/*", + "*://mail.google.com/*", + "*://maps.google.com/*", "*://news.ycombinator.com/*", "*://reddit.com/*", - "*://translate.google.com/*", - "*://maps.google.com/*", - "*://mail.google.com/*", "*://todoist.com/*", "*://toggl.com/*", - "file://*", + "*://translate.google.com/*", "chrome://*/*", + "file://*", "qute://*/*", ] for page in js_whitelist: @@ -88,31 +90,28 @@ c.session.lazy_restore = True leader = "" # toggles ('cycles') between tabs always showing, or only when switching between them -config.bind(leader + 'tt', 'config-cycle -t tabs.show always switching') +config.bind(leader + 'tt', 'config-cycle -t tabs.show switching always') config.bind(leader + 'th', 'set tabs.position bottom') config.bind(leader + 'tH', 'set tabs.position top') config.bind(leader + 'tv', 'set tabs.position right') config.bind(leader + 'tV', 'set tabs.position left') # [M]edia shortcuts - watch, queue, download media - # bind mpv to play the current page/links, using a single instance which queues the next link passed config.bind(leader + 'M', 'spawn umpv {url}') config.bind(leader + 'm', 'hint links spawn umpv {hint-url}') - # bind youtube-dl to download the current page/links config.bind(leader + 'dM', 'spawn youtube-dl -o ~/videos/%(title)s.%(ext)s {url}') config.bind(leader + 'dm', 'hint --rapid links spawn youtube-dl -o ~/videos/%(title)s.%(ext)s {url}') -# Let me close tabs more easily, and 'unclose' them with the same key -config.bind('x', 'tab-close', mode='normal') -config.bind('X', 'undo', mode='normal') - # Use q for quitting a tab (mimicks vim buffer) - qa is used for exiting c.aliases["q"] = "tab-close" # if we save sessions with w, load sessions with e (again, mimicks vim) c.aliases["e"] = "session-load" +# edit current form field in vim +config.bind(leader + 'e', 'open-editor') + # bookmarklet aliases: # currently the idea is to prefix bookmarklets with b (as in open "bookmarklet") # wallabag add current page, either with walla command, or bw