From bfc19636ad77efb000d7f63f2bc60bf7b10754ad Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Thu, 2 Dec 2021 16:55:43 +0100 Subject: [PATCH] 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. --- qutebrowser/.config/qutebrowser/maps.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/qutebrowser/.config/qutebrowser/maps.py b/qutebrowser/.config/qutebrowser/maps.py index 68e935e..9aabbb1 100644 --- a/qutebrowser/.config/qutebrowser/maps.py +++ b/qutebrowser/.config/qutebrowser/maps.py @@ -13,6 +13,27 @@ config.bind("m", "mode-enter set_mark") config.bind("`", "quickmark-save") config.bind("~", "bookmark-add") +config.bind("", "command-history-next", mode="command") +config.bind("", "command-history-prev", mode="command") +config.bind("", "completion-item-focus prev", mode="command") +config.bind("", "completion-item-focus next", mode="command") +config.bind('', 'rl-backward-kill-word', mode='command') +config.bind('', 'rl-kill-word', mode='command') +config.bind('', 'rl-forward-word', mode='command') +config.bind('', 'rl-delete-char', mode='command') +config.bind('', 'rl-beginning-of-line', mode='command') +config.bind('', 'rl-backward-char', mode='command') +config.bind('', 'completion-item-yank', mode='command') +config.bind('', 'completion-item-del', mode='command') +config.bind('', 'rl-end-of-line', mode='command') +config.bind('', 'rl-forward-char', mode='command') +config.bind('', 'rl-backward-delete-char', mode='command') +config.bind('', 'completion-item-focus prev-category', mode='command') +config.bind('', 'completion-item-focus next-category', mode='command') +config.bind('', 'rl-unix-line-discard', mode='command') +config.bind('', 'rl-unix-word-rubout', mode='command') +config.bind('', 'rl-yank', mode='command') + ## ADDED # toggles ('cycles') between tabs always showing, or only when switching between them config.bind(