Add some default keybindings for toggling scripts
Those follow the following pattern: 1) "t" for 'toggle" 2) "s" for "scripts", upper-casing ("S") to make the toggle permanent 3) "h" for host, "H" for host with subdomains, "u" for the exact URL
This commit is contained in:
parent
cfeeb7460b
commit
5c4277aac8
@ -582,8 +582,14 @@ Default:
|
|||||||
* +pass:[sk]+: +pass:[set-cmd-text -s :bind]+
|
* +pass:[sk]+: +pass:[set-cmd-text -s :bind]+
|
||||||
* +pass:[sl]+: +pass:[set-cmd-text -s :set -t]+
|
* +pass:[sl]+: +pass:[set-cmd-text -s :set -t]+
|
||||||
* +pass:[ss]+: +pass:[set-cmd-text -s :set]+
|
* +pass:[ss]+: +pass:[set-cmd-text -s :set]+
|
||||||
|
* +pass:[tSH]+: +pass:[config-cycle -p -u *://*.{url:host}/* content.javascript.enabled ;; reload]+
|
||||||
|
* +pass:[tSh]+: +pass:[config-cycle -p -u *://{url:host}/* content.javascript.enabled ;; reload]+
|
||||||
|
* +pass:[tSu]+: +pass:[config-cycle -p -u {url} content.javascript.enabled ;; reload]+
|
||||||
* +pass:[th]+: +pass:[back -t]+
|
* +pass:[th]+: +pass:[back -t]+
|
||||||
* +pass:[tl]+: +pass:[forward -t]+
|
* +pass:[tl]+: +pass:[forward -t]+
|
||||||
|
* +pass:[tsH]+: +pass:[config-cycle -p -t -u *://*.{url:host}/* content.javascript.enabled ;; reload]+
|
||||||
|
* +pass:[tsh]+: +pass:[config-cycle -p -t -u *://{url:host}/* content.javascript.enabled ;; reload]+
|
||||||
|
* +pass:[tsu]+: +pass:[config-cycle -p -t -u {url} content.javascript.enabled ;; reload]+
|
||||||
* +pass:[u]+: +pass:[undo]+
|
* +pass:[u]+: +pass:[undo]+
|
||||||
* +pass:[v]+: +pass:[enter-mode caret]+
|
* +pass:[v]+: +pass:[enter-mode caret]+
|
||||||
* +pass:[wB]+: +pass:[set-cmd-text -s :bookmark-load -w]+
|
* +pass:[wB]+: +pass:[set-cmd-text -s :bookmark-load -w]+
|
||||||
|
@ -63,6 +63,7 @@ def replace_variables(win_id, arglist):
|
|||||||
QUrl.FullyEncoded | QUrl.RemovePassword),
|
QUrl.FullyEncoded | QUrl.RemovePassword),
|
||||||
'url:pretty': lambda: _current_url(tabbed_browser).toString(
|
'url:pretty': lambda: _current_url(tabbed_browser).toString(
|
||||||
QUrl.DecodeReserved | QUrl.RemovePassword),
|
QUrl.DecodeReserved | QUrl.RemovePassword),
|
||||||
|
'url:host': lambda: _current_url(tabbed_browser).host(),
|
||||||
'clipboard': utils.get_clipboard,
|
'clipboard': utils.get_clipboard,
|
||||||
'primary': lambda: utils.get_clipboard(selection=True),
|
'primary': lambda: utils.get_clipboard(selection=True),
|
||||||
}
|
}
|
||||||
|
@ -2329,6 +2329,12 @@ bindings.default:
|
|||||||
<Ctrl-p>: tab-pin
|
<Ctrl-p>: tab-pin
|
||||||
q: record-macro
|
q: record-macro
|
||||||
"@": run-macro
|
"@": run-macro
|
||||||
|
tsh: config-cycle -p -t -u *://{url:host}/* content.javascript.enabled ;; reload
|
||||||
|
tSh: config-cycle -p -u *://{url:host}/* content.javascript.enabled ;; reload
|
||||||
|
tsH: config-cycle -p -t -u *://*.{url:host}/* content.javascript.enabled ;; reload
|
||||||
|
tSH: config-cycle -p -u *://*.{url:host}/* content.javascript.enabled ;; reload
|
||||||
|
tsu: config-cycle -p -t -u {url} content.javascript.enabled ;; reload
|
||||||
|
tSu: config-cycle -p -u {url} content.javascript.enabled ;; reload
|
||||||
insert:
|
insert:
|
||||||
<Ctrl-E>: open-editor
|
<Ctrl-E>: open-editor
|
||||||
<Shift-Ins>: insert-text {primary}
|
<Shift-Ins>: insert-text {primary}
|
||||||
|
Loading…
Reference in New Issue
Block a user