update key bindings

This commit is contained in:
finga 2018-06-12 14:04:55 +02:00
parent 76f757e9e5
commit 3912b2310b

View file

@ -935,7 +935,7 @@ c.input.forward_unbound_keys = 'all'
## 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.
## Type: Bool ## Type: Bool
c.input.insert_mode.auto_load = True # c.input.insert_mode.auto_load = False
## Switch to insert mode when clicking flash and other plugins. ## Switch to insert mode when clicking flash and other plugins.
## Type: Bool ## Type: Bool
@ -1447,6 +1447,7 @@ config.bind('<End>', 'scroll-to-perc 100')
# config.bind('<Ctrl-Tab>', 'tab-focus last') # config.bind('<Ctrl-Tab>', 'tab-focus last')
# 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('e', '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', 'tab-close')
# config.bind('<Ctrl-x>k', 'set-cmd-text -s :tab-close') # config.bind('<Ctrl-x>k', 'set-cmd-text -s :tab-close')
@ -1633,6 +1634,7 @@ config.bind('<Ctrl-p>', 'command-history-prev', 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('<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')
@ -1642,6 +1644,7 @@ config.bind('<Return>', 'command-accept', 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')
config.bind('<Ctrl-/>', 'undo')
## Bindings for hint mode ## Bindings for hint mode
# config.bind('<Ctrl-B>', 'hint all tab-bg', mode='hint') # config.bind('<Ctrl-B>', 'hint all tab-bg', mode='hint')
@ -1653,14 +1656,24 @@ config.bind('<Ctrl-g>', 'leave-mode', mode='hint')
## Bindings for insert mode ## Bindings for insert mode
# config.bind('<Ctrl-E>', 'open-editor', mode='insert') # config.bind('<Ctrl-E>', 'open-editor', mode='insert')
config.bind('<Ctrl-n', 'fake-key <Down>', mode='insert') # config.bind('<Alt-b>', 'rl-backward-word', mode='insert')
config.bind('<Ctrl-p', 'fake-key <Up>', mode='insert') # config.bind('<Alt-Backspace>', 'rl-backward-kill-word', mode='insert')
# config.bind('<Alt-d>', 'rl-kill-word', mode='insert')
# config.bind('<Alt-f>', 'rl-forward-word', mode='insert')
# config.bind('<Ctrl-a>', 'rl-beginning-of-line', mode='insert')
# config.bind('<Ctrl-b>', 'rl-backward-char', mode='insert')
# config.bind('<Ctrl-e>', 'rl-end-of-line', mode='insert')
# config.bind('<Ctrl-f>', 'rl-forward-char', mode='insert')
# config.bind('<Ctrl-k>', 'rl-kill-line', mode='insert')
# config.bind('<Ctrl-y>', 'rl-yank', mode='insert')
config.bind('<Escape>', 'leave-mode', mode='insert') config.bind('<Escape>', 'leave-mode', mode='insert')
config.bind('<Ctrl-g>', 'leave-mode', mode='insert') config.bind('<Ctrl-g>', 'leave-mode', mode='insert')
# config.bind('<Shift-Ins>', 'insert-text {primary}', mode='insert') # config.bind('<Shift-Ins>', 'insert-text {primary}', mode='insert')
## Bindings for passthrough mode ## Bindings for passthrough mode
# config.bind('<Ctrl-V>', 'leave-mode', mode='passthrough') # config.bind('<Ctrl-V>', 'leave-mode', mode='passthrough')
config.bind('<Escape>', 'leave-mode', mode='passthrough')
config.bind('<Ctrl-g>', 'leave-mode', mode='passthrough')
## Bindings for prompt mode ## Bindings for prompt mode
# config.bind('<Alt-B>', 'rl-backward-word', mode='prompt') # config.bind('<Alt-B>', 'rl-backward-word', mode='prompt')