Add qutebrowser formedit shortcut
Added qutebrowser shortcut to edit forms in vim (leader-e). Added gitlab and asciinema to javascript exceptions list. And removed some never-used shortcut mappings.
This commit is contained in:
parent
facb95f0b9
commit
4d748ebebd
1 changed files with 10 additions and 11 deletions
|
@ -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 = "<Space>"
|
||||
|
||||
# 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 <leader>bw
|
||||
|
|
Loading…
Reference in a new issue