From 7c39600508004c5cb0bbde84f973209e61fec6f9 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 15 Sep 2017 13:36:01 +0200 Subject: [PATCH] Change default bindings for Up/Down in command mode Those now look at the history again. Looking at the behavior in different applications: - vim: History - spacemacs: Completion if open, else history - luakit: Completion if open, else history - dwb: Always completion (has no history?) - vimb: Nothing if completion open, else history - vimperator: Always history So this is consistent with at least some of them - the much more important factor is that is probably intuitively easy to discover if up/down doesn't do what's expected, but / are not. --- doc/help/settings.asciidoc | 4 ++-- qutebrowser/config/configdata.yml | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/doc/help/settings.asciidoc b/doc/help/settings.asciidoc index f64c82f6d..3bb3fd1b7 100644 --- a/doc/help/settings.asciidoc +++ b/doc/help/settings.asciidoc @@ -400,13 +400,13 @@ Default: * +pass:[<Ctrl-U>]+: +pass:[rl-unix-line-discard]+ * +pass:[<Ctrl-W>]+: +pass:[rl-unix-word-rubout]+ * +pass:[<Ctrl-Y>]+: +pass:[rl-yank]+ -* +pass:[<Down>]+: +pass:[completion-item-focus next]+ +* +pass:[<Down>]+: +pass:[command-history-next]+ * +pass:[<Escape>]+: +pass:[leave-mode]+ * +pass:[<Return>]+: +pass:[command-accept]+ * +pass:[<Shift-Delete>]+: +pass:[completion-item-del]+ * +pass:[<Shift-Tab>]+: +pass:[completion-item-focus prev]+ * +pass:[<Tab>]+: +pass:[completion-item-focus next]+ -* +pass:[<Up>]+: +pass:[completion-item-focus prev]+ +* +pass:[<Up>]+: +pass:[command-history-prev]+ - +pass:[hint]+: * +pass:[<Ctrl-B>]+: +pass:[hint all tab-bg]+ diff --git a/qutebrowser/config/configdata.yml b/qutebrowser/config/configdata.yml index ac7a59fde..4e22f3b15 100644 --- a/qutebrowser/config/configdata.yml +++ b/qutebrowser/config/configdata.yml @@ -2026,13 +2026,12 @@ bindings.default: passthrough: : leave-mode command: - # FIXME:conf what to do about up/down? : command-history-prev : command-history-next + : command-history-prev + : command-history-next : completion-item-focus prev - : completion-item-focus prev : completion-item-focus next - : completion-item-focus next : completion-item-focus next-category : completion-item-focus prev-category : completion-item-del