qutebrowser: Add maps for command mode navigation
Added ways of navigating the command mode similar to unix readline or fzf lists. ^N / ^P will get you up and down the history / completion options ^J / ^K will get you up the last typed commands ^U / ^A / ^E / ^F / ^B / ^H manipulate the caret on the commandline.
This commit is contained in:
parent
58e962d761
commit
bfc19636ad
1 changed files with 21 additions and 0 deletions
|
@ -13,6 +13,27 @@ config.bind("m", "mode-enter set_mark")
|
||||||
config.bind("`", "quickmark-save")
|
config.bind("`", "quickmark-save")
|
||||||
config.bind("~", "bookmark-add")
|
config.bind("~", "bookmark-add")
|
||||||
|
|
||||||
|
config.bind("<Ctrl-J>", "command-history-next", mode="command")
|
||||||
|
config.bind("<Ctrl-K>", "command-history-prev", mode="command")
|
||||||
|
config.bind("<Ctrl-P>", "completion-item-focus prev", mode="command")
|
||||||
|
config.bind("<Ctrl-N>", "completion-item-focus next", mode="command")
|
||||||
|
config.bind('<Alt-Backspace>', 'rl-backward-kill-word', mode='command')
|
||||||
|
config.bind('<Alt-D>', 'rl-kill-word', mode='command')
|
||||||
|
config.bind('<Alt-F>', 'rl-forward-word', mode='command')
|
||||||
|
config.bind('<Ctrl-?>', 'rl-delete-char', mode='command')
|
||||||
|
config.bind('<Ctrl-A>', 'rl-beginning-of-line', mode='command')
|
||||||
|
config.bind('<Ctrl-B>', 'rl-backward-char', mode='command')
|
||||||
|
config.bind('<Ctrl-C>', 'completion-item-yank', mode='command')
|
||||||
|
config.bind('<Ctrl-D>', 'completion-item-del', mode='command')
|
||||||
|
config.bind('<Ctrl-E>', 'rl-end-of-line', mode='command')
|
||||||
|
config.bind('<Ctrl-F>', 'rl-forward-char', mode='command')
|
||||||
|
config.bind('<Ctrl-H>', 'rl-backward-delete-char', 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-U>', 'rl-unix-line-discard', mode='command')
|
||||||
|
config.bind('<Ctrl-W>', 'rl-unix-word-rubout', mode='command')
|
||||||
|
config.bind('<Ctrl-Y>', 'rl-yank', mode='command')
|
||||||
|
|
||||||
## ADDED
|
## ADDED
|
||||||
# toggles ('cycles') between tabs always showing, or only when switching between them
|
# toggles ('cycles') between tabs always showing, or only when switching between them
|
||||||
config.bind(
|
config.bind(
|
||||||
|
|
Loading…
Reference in a new issue