add more keybindings - still wip
This commit is contained in:
parent
f30b74440f
commit
40a1f904a3
1 changed files with 64 additions and 40 deletions
|
@ -926,11 +926,11 @@ c.editor.command = ['em', '{file}']
|
||||||
|
|
||||||
## Enter insert mode if an editable element is clicked.
|
## Enter insert mode if an editable element is clicked.
|
||||||
## Type: Bool
|
## Type: Bool
|
||||||
c.input.insert_mode.auto_enter = False
|
# c.input.insert_mode.auto_enter = False
|
||||||
|
|
||||||
## Leave insert mode if a non-editable element is clicked.
|
## Leave insert mode if a non-editable element is clicked.
|
||||||
## Type: Bool
|
## Type: Bool
|
||||||
c.input.insert_mode.auto_leave = False
|
# c.input.insert_mode.auto_leave = False
|
||||||
|
|
||||||
## Automatically enter insert mode if an editable element is focused
|
## Automatically enter insert mode if an editable element is focused
|
||||||
## after loading the page.
|
## after loading the page.
|
||||||
|
@ -1411,21 +1411,29 @@ config.bind('<Alt-x>', 'set-cmd-text :')
|
||||||
# config.bind(';r', 'hint --rapid links tab-bg')
|
# config.bind(';r', 'hint --rapid links tab-bg')
|
||||||
# config.bind(';t', 'hint inputs')
|
# config.bind(';t', 'hint inputs')
|
||||||
# config.bind(';y', 'hint links yank')
|
# config.bind(';y', 'hint links yank')
|
||||||
# config.bind('<Alt-1>', 'tab-focus 1')xs
|
config.bind('<Alt-1>', 'tab-focus 1')
|
||||||
# config.bind('<Alt-2>', 'tab-focus 2')
|
config.bind('<Alt-2>', 'tab-focus 2')
|
||||||
# config.bind('<Alt-3>', 'tab-focus 3')
|
config.bind('<Alt-3>', 'tab-focus 3')
|
||||||
# config.bind('<Alt-4>', 'tab-focus 4')
|
config.bind('<Alt-4>', 'tab-focus 4')
|
||||||
# config.bind('<Alt-5>', 'tab-focus 5')
|
config.bind('<Alt-5>', 'tab-focus 5')
|
||||||
# config.bind('<Alt-6>', 'tab-focus 6')
|
config.bind('<Alt-6>', 'tab-focus 6')
|
||||||
# config.bind('<Alt-7>', 'tab-focus 7')
|
config.bind('<Alt-7>', 'tab-focus 7')
|
||||||
# config.bind('<Alt-8>', 'tab-focus 8')
|
config.bind('<Alt-8>', 'tab-focus 8')
|
||||||
# config.bind('<Alt-9>', 'tab-focus -1')
|
config.bind('<Alt-9>', 'tab-focus 9')
|
||||||
# config.bind('<Ctrl-A>', 'navigate increment')
|
# config.bind('<Ctrl-A>', 'navigate increment')
|
||||||
# config.bind('<Ctrl-Alt-p>', 'print')
|
# config.bind('<Ctrl-Alt-p>', 'print')
|
||||||
# config.bind('<Ctrl-B>', 'scroll-page 0 -1')
|
config.bind('<Alt-v>', 'scroll-page 0 -1')
|
||||||
|
config.bind('<PgUp>', 'scroll-page 0 -1')
|
||||||
|
config.bind('<Home>', 'scroll-to-perc 0')
|
||||||
|
# config.bind('<Alt-<>', 'scroll-to-perc 0')
|
||||||
|
# config.bind('<Alt-less>', 'scroll-to-perc 0')
|
||||||
# config.bind('<Ctrl-D>', 'scroll-page 0 0.5')
|
# config.bind('<Ctrl-D>', 'scroll-page 0 0.5')
|
||||||
# config.bind('<Ctrl-F5>', 'reload -f')
|
# config.bind('<Ctrl-F5>', 'reload -f')
|
||||||
# config.bind('<Ctrl-F>', 'scroll-page 0 1')
|
config.bind('<Ctrl-v>', 'scroll-page 0 1')
|
||||||
|
config.bind('<PgDown>', 'scroll-page 0 1')
|
||||||
|
config.bind('<End>', 'scroll-to-perc 100')
|
||||||
|
# config.bind('<Alt->>', 'scroll-to-perc 100')
|
||||||
|
# config.bind('<Alt-greater>', 'scroll-to-perc 100')
|
||||||
# config.bind('<Ctrl-N>', 'open -w')
|
# config.bind('<Ctrl-N>', 'open -w')
|
||||||
# config.bind('<Ctrl-PgDown>', 'tab-next')
|
# config.bind('<Ctrl-PgDown>', 'tab-next')
|
||||||
# config.bind('<Ctrl-PgUp>', 'tab-prev')
|
# config.bind('<Ctrl-PgUp>', 'tab-prev')
|
||||||
|
@ -1439,18 +1447,24 @@ config.bind('<Alt-x>', 'set-cmd-text :')
|
||||||
# config.bind('<Ctrl-U>', 'scroll-page 0 -0.5')
|
# config.bind('<Ctrl-U>', 'scroll-page 0 -0.5')
|
||||||
# config.bind('<Ctrl-V>', 'enter-mode passthrough')
|
# config.bind('<Ctrl-V>', 'enter-mode passthrough')
|
||||||
# config.bind('<Ctrl-W>', 'tab-close')
|
# config.bind('<Ctrl-W>', 'tab-close')
|
||||||
|
config.bind('<Ctrl-x>k', 'tab-close')
|
||||||
|
# config.bind('<Ctrl-x>k', 'set-cmd-text -s :tab-close')
|
||||||
# config.bind('<Ctrl-X>', 'navigate decrement')
|
# config.bind('<Ctrl-X>', 'navigate decrement')
|
||||||
# config.bind('<Ctrl-^>', 'tab-focus last')
|
# config.bind('<Ctrl-^>', 'tab-focus last')
|
||||||
# config.bind('<Ctrl-h>', 'home')
|
# config.bind('<Ctrl-h>', 'home')
|
||||||
# config.bind('<Ctrl-p>', 'tab-pin')
|
# config.bind('<Ctrl-p>', 'tab-pin')
|
||||||
# config.bind('<Ctrl-s>', 'stop')
|
# config.bind('<Ctrl-s>', 'stop')
|
||||||
config.bind('<Ctrl-g>', 'stop')
|
config.bind('<Ctrl-g>', 'stop')
|
||||||
# config.bind('<Escape>', 'clear-keychain ;; search ;; fullscreen --leave')
|
config.bind('<Escape>', 'clear-keychain ;; search ;; fullscreen --leave')
|
||||||
# config.bind('<F11>', 'fullscreen')
|
config.bind('<F11>', 'fullscreen')
|
||||||
# config.bind('<F5>', 'reload')
|
config.bind('<F5>', 'reload')
|
||||||
# config.bind('<Return>', 'follow-selected')
|
config.bind('r', 'reload')
|
||||||
# config.bind('<back>', 'back')
|
config.bind('<Return>', 'follow-selected')
|
||||||
# config.bind('<forward>', 'forward')
|
config.bind('<Back>', 'back')
|
||||||
|
config.bind('b', 'back')
|
||||||
|
config.bind('l', 'back')
|
||||||
|
config.bind('<Forward>', 'forward')
|
||||||
|
config.bind('f', 'forward')
|
||||||
# config.bind('=', 'zoom')
|
# config.bind('=', 'zoom')
|
||||||
# config.bind('?', 'set-cmd-text ?')
|
# config.bind('?', 'set-cmd-text ?')
|
||||||
# config.bind('@', 'run-macro')
|
# config.bind('@', 'run-macro')
|
||||||
|
@ -1473,6 +1487,7 @@ config.bind('<Ctrl-g>', 'stop')
|
||||||
# config.bind('Sq', 'open qute://bookmarks')
|
# config.bind('Sq', 'open qute://bookmarks')
|
||||||
# config.bind('Ss', 'open qute://settings')
|
# config.bind('Ss', 'open qute://settings')
|
||||||
# config.bind('T', 'tab-focus')
|
# config.bind('T', 'tab-focus')
|
||||||
|
config.bind('<Ctrl-x>b', 'set-cmd-text -s :tab-focus')
|
||||||
# config.bind('ZQ', 'quit')
|
# config.bind('ZQ', 'quit')
|
||||||
# config.bind('ZZ', 'quit --save')
|
# config.bind('ZZ', 'quit --save')
|
||||||
# config.bind('[[', 'navigate prev')
|
# config.bind('[[', 'navigate prev')
|
||||||
|
@ -1489,6 +1504,7 @@ config.bind('<Ctrl-g>', 'stop')
|
||||||
# config.bind('gB', 'set-cmd-text -s :bookmark-load -t')
|
# config.bind('gB', 'set-cmd-text -s :bookmark-load -t')
|
||||||
# config.bind('gC', 'tab-clone')
|
# config.bind('gC', 'tab-clone')
|
||||||
# config.bind('gO', 'set-cmd-text :open -t -r {url:pretty}')
|
# config.bind('gO', 'set-cmd-text :open -t -r {url:pretty}')
|
||||||
|
config.bind('<Ctrl-x><Ctrl-f>', 'set-cmd-text -s :open -t')
|
||||||
# config.bind('gU', 'navigate up -t')
|
# config.bind('gU', 'navigate up -t')
|
||||||
# config.bind('g^', 'tab-focus 1')
|
# config.bind('g^', 'tab-focus 1')
|
||||||
# config.bind('ga', 'open -t')
|
# config.bind('ga', 'open -t')
|
||||||
|
@ -1499,14 +1515,19 @@ config.bind('<Ctrl-g>', 'stop')
|
||||||
# config.bind('gl', 'tab-move -')
|
# config.bind('gl', 'tab-move -')
|
||||||
# config.bind('gm', 'tab-move')
|
# config.bind('gm', 'tab-move')
|
||||||
# config.bind('go', 'set-cmd-text :open {url:pretty}')
|
# config.bind('go', 'set-cmd-text :open {url:pretty}')
|
||||||
|
config.bind('g', 'set-cmd-text :open {url:pretty}')
|
||||||
# config.bind('gr', 'tab-move +')
|
# config.bind('gr', 'tab-move +')
|
||||||
# config.bind('gt', 'set-cmd-text -s :buffer')
|
# config.bind('gt', 'set-cmd-text -s :buffer')
|
||||||
# config.bind('gu', 'navigate up')
|
# config.bind('gu', 'navigate up')
|
||||||
# config.bind('h', 'scroll left')
|
# config.bind('h', 'scroll left')
|
||||||
|
config.bind('<Ctrl-b>', 'scroll left')
|
||||||
# config.bind('i', 'enter-mode insert')
|
# config.bind('i', 'enter-mode insert')
|
||||||
# config.bind('j', 'scroll down')
|
# config.bind('j', 'scroll down')
|
||||||
|
config.bind('<Ctrl-n>', 'scroll down')
|
||||||
# config.bind('k', 'scroll up')
|
# config.bind('k', 'scroll up')
|
||||||
|
config.bind('<Ctrl-p>', 'scroll up')
|
||||||
# config.bind('l', 'scroll right')
|
# config.bind('l', 'scroll right')
|
||||||
|
config.bind('<Ctrl-f>', 'scroll right')
|
||||||
# config.bind('m', 'quickmark-save')
|
# config.bind('m', 'quickmark-save')
|
||||||
# config.bind('n', 'search-next')
|
# config.bind('n', 'search-next')
|
||||||
# config.bind('o', 'set-cmd-text -s :open')
|
# config.bind('o', 'set-cmd-text -s :open')
|
||||||
|
@ -1533,6 +1554,7 @@ config.bind('<Ctrl-g>', 'stop')
|
||||||
# config.bind('tsh', 'config-cycle -p -t -u *://{url:host}/* content.javascript.enabled ;; reload')
|
# config.bind('tsh', 'config-cycle -p -t -u *://{url:host}/* content.javascript.enabled ;; reload')
|
||||||
# config.bind('tsu', 'config-cycle -p -t -u {url} content.javascript.enabled ;; reload')
|
# config.bind('tsu', 'config-cycle -p -t -u {url} content.javascript.enabled ;; reload')
|
||||||
# config.bind('u', 'undo')
|
# config.bind('u', 'undo')
|
||||||
|
config.bind('<Ctrl-/>', 'undo')
|
||||||
# config.bind('v', 'enter-mode caret')
|
# config.bind('v', 'enter-mode caret')
|
||||||
# config.bind('wB', 'set-cmd-text -s :bookmark-load -w')
|
# config.bind('wB', 'set-cmd-text -s :bookmark-load -w')
|
||||||
# config.bind('wO', 'set-cmd-text :open -w {url:pretty}')
|
# config.bind('wO', 'set-cmd-text :open -w {url:pretty}')
|
||||||
|
@ -1587,34 +1609,35 @@ config.bind('<Ctrl-g>', 'stop')
|
||||||
# config.bind('}', 'move-to-end-of-next-block', mode='caret')
|
# config.bind('}', 'move-to-end-of-next-block', mode='caret')
|
||||||
|
|
||||||
## Bindings for command mode
|
## Bindings for command mode
|
||||||
# config.bind('<Alt-B>', 'rl-backward-word', mode='command')
|
config.bind('<Alt-b>', 'rl-backward-word', mode='command')
|
||||||
# config.bind('<Alt-Backspace>', 'rl-backward-kill-word', mode='command')
|
config.bind('<Alt-Backspace>', 'rl-backward-kill-word', mode='command')
|
||||||
# config.bind('<Alt-D>', 'rl-kill-word', mode='command')
|
config.bind('<Alt-d>', 'rl-kill-word', mode='command')
|
||||||
# config.bind('<Alt-F>', 'rl-forward-word', mode='command')
|
config.bind('<Alt-f>', 'rl-forward-word', mode='command')
|
||||||
# config.bind('<Ctrl-?>', 'rl-delete-char', mode='command')
|
# config.bind('<Ctrl-?>', 'rl-delete-char', mode='command')
|
||||||
# config.bind('<Ctrl-A>', 'rl-beginning-of-line', mode='command')
|
config.bind('<Ctrl-a>', 'rl-beginning-of-line', mode='command')
|
||||||
# config.bind('<Ctrl-B>', 'rl-backward-char', mode='command')
|
config.bind('<Ctrl-b>', 'rl-backward-char', mode='command')
|
||||||
# config.bind('<Ctrl-C>', 'completion-item-yank', mode='command')
|
# config.bind('<Ctrl-C>', 'completion-item-yank', mode='command')
|
||||||
# config.bind('<Ctrl-D>', 'completion-item-del', mode='command')
|
# config.bind('<Ctrl-D>', 'completion-item-del', mode='command')
|
||||||
# config.bind('<Ctrl-E>', 'rl-end-of-line', mode='command')
|
config.bind('<Ctrl-e>', 'rl-end-of-line', mode='command')
|
||||||
# config.bind('<Ctrl-F>', 'rl-forward-char', mode='command')
|
config.bind('<Ctrl-f>', 'rl-forward-char', mode='command')
|
||||||
# config.bind('<Ctrl-H>', 'rl-backward-delete-char', mode='command')
|
# config.bind('<Ctrl-H>', 'rl-backward-delete-char', mode='command')
|
||||||
# config.bind('<Ctrl-K>', 'rl-kill-line', mode='command')
|
config.bind('<Ctrl-k>', 'rl-kill-line', mode='command')
|
||||||
# config.bind('<Ctrl-N>', 'command-history-next', mode='command')
|
config.bind('<Ctrl-n>', 'command-history-next', mode='command')
|
||||||
# config.bind('<Ctrl-P>', 'command-history-prev', mode='command')
|
config.bind('<Ctrl-p>', 'command-history-prev', mode='command')
|
||||||
# config.bind('<Ctrl-Return>', 'command-accept --rapid', mode='command')
|
# config.bind('<Ctrl-Return>', 'command-accept --rapid', mode='command')
|
||||||
# config.bind('<Ctrl-Shift-C>', 'completion-item-yank --sel', mode='command')
|
# config.bind('<Ctrl-Shift-C>', 'completion-item-yank --sel', mode='command')
|
||||||
# config.bind('<Ctrl-Shift-Tab>', 'completion-item-focus prev-category', mode='command')
|
# config.bind('<Ctrl-Shift-Tab>', 'completion-item-focus prev-category', mode='command')
|
||||||
# config.bind('<Ctrl-Tab>', 'completion-item-focus next-category', mode='command')
|
# config.bind('<Ctrl-Tab>', 'completion-item-focus next-category', mode='command')
|
||||||
# config.bind('<Ctrl-U>', 'rl-unix-line-discard', mode='command')
|
# config.bind('<Ctrl-U>', 'rl-unix-line-discard', mode='command')
|
||||||
# config.bind('<Ctrl-W>', 'rl-unix-word-rubout', mode='command')
|
# config.bind('<Ctrl-W>', 'rl-unix-word-rubout', mode='command')
|
||||||
# config.bind('<Ctrl-Y>', 'rl-yank', mode='command')
|
config.bind('<Ctrl-y>', 'rl-yank', mode='command')
|
||||||
# config.bind('<Down>', 'completion-item-focus --history next', mode='command')
|
# config.bind('<Down>', 'completion-item-focus --history next', mode='command')
|
||||||
# config.bind('<Escape>', 'leave-mode', mode='command')
|
config.bind('<Escape>', 'leave-mode', mode='command')
|
||||||
# config.bind('<Return>', 'command-accept', mode='command')
|
config.bind('<Ctrl-g>', 'leave-mode', mode='command')
|
||||||
|
config.bind('<Return>', 'command-accept', mode='command')
|
||||||
# config.bind('<Shift-Delete>', 'completion-item-del', mode='command')
|
# config.bind('<Shift-Delete>', 'completion-item-del', mode='command')
|
||||||
# config.bind('<Shift-Tab>', 'completion-item-focus prev', mode='command')
|
# config.bind('<Shift-Tab>', 'completion-item-focus prev', mode='command')
|
||||||
# config.bind('<Tab>', 'completion-item-focus next', mode='command')
|
config.bind('<Tab>', 'completion-item-focus next', mode='command')
|
||||||
# config.bind('<Up>', 'completion-item-focus --history prev', mode='command')
|
# config.bind('<Up>', 'completion-item-focus --history prev', mode='command')
|
||||||
|
|
||||||
## Bindings for hint mode
|
## Bindings for hint mode
|
||||||
|
@ -1651,8 +1674,9 @@ config.bind('<Ctrl-g>', 'stop')
|
||||||
# config.bind('<Ctrl-X>', 'prompt-open-download', mode='prompt')
|
# config.bind('<Ctrl-X>', 'prompt-open-download', mode='prompt')
|
||||||
# config.bind('<Ctrl-Y>', 'rl-yank', mode='prompt')
|
# config.bind('<Ctrl-Y>', 'rl-yank', mode='prompt')
|
||||||
# config.bind('<Down>', 'prompt-item-focus next', mode='prompt')
|
# config.bind('<Down>', 'prompt-item-focus next', mode='prompt')
|
||||||
# config.bind('<Escape>', 'leave-mode', mode='prompt')
|
config.bind('<Escape>', 'leave-mode', mode='prompt')
|
||||||
# config.bind('<Return>', 'prompt-accept', mode='prompt')
|
config.bind('<Ctrl-g>', 'leave-mode', mode='prompt')
|
||||||
|
config.bind('<Return>', 'prompt-accept', mode='prompt')
|
||||||
# config.bind('<Shift-Tab>', 'prompt-item-focus prev', mode='prompt')
|
# config.bind('<Shift-Tab>', 'prompt-item-focus prev', mode='prompt')
|
||||||
# config.bind('<Tab>', 'prompt-item-focus next', mode='prompt')
|
# config.bind('<Tab>', 'prompt-item-focus next', mode='prompt')
|
||||||
# config.bind('<Up>', 'prompt-item-focus prev', mode='prompt')
|
# config.bind('<Up>', 'prompt-item-focus prev', mode='prompt')
|
||||||
|
@ -1663,7 +1687,7 @@ config.bind('<Ctrl-g>', 'stop')
|
||||||
## Bindings for yesno mode
|
## Bindings for yesno mode
|
||||||
# config.bind('<Alt-Shift-Y>', 'prompt-yank --sel', mode='yesno')
|
# config.bind('<Alt-Shift-Y>', 'prompt-yank --sel', mode='yesno')
|
||||||
# config.bind('<Alt-Y>', 'prompt-yank', mode='yesno')
|
# config.bind('<Alt-Y>', 'prompt-yank', mode='yesno')
|
||||||
# config.bind('<Escape>', 'leave-mode', mode='yesno')
|
config.bind('<Escape>', 'leave-mode', mode='yesno')
|
||||||
# config.bind('<Return>', 'prompt-accept', mode='yesno')
|
config.bind('<Return>', 'prompt-accept', mode='yesno')
|
||||||
# config.bind('n', 'prompt-accept no', mode='yesno')
|
config.bind('n', 'prompt-accept no', mode='yesno')
|
||||||
# config.bind('y', 'prompt-accept yes', mode='yesno')
|
config.bind('y', 'prompt-accept yes', mode='yesno')
|
||||||
|
|
Loading…
Reference in a new issue