From 1e8bb202e95d9c9f7cc53f87ac33c261fd6a8e6b Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 5 Oct 2018 17:31:00 +0200 Subject: [PATCH] Make :q only close the active window Closes #4061 Fixes #1089 --- doc/changelog.asciidoc | 4 ++++ doc/help/settings.asciidoc | 4 +++- qutebrowser/config/configdata.yml | 4 +++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/doc/changelog.asciidoc b/doc/changelog.asciidoc index 27359df94..771bb8d66 100644 --- a/doc/changelog.asciidoc +++ b/doc/changelog.asciidoc @@ -27,6 +27,10 @@ Added Changed ~~~~~~~ +- `:q` now closes current window instead of quitting qutebrowser completely + (`:close`), while `:qa` quits (`:quit`). The behavior of `:wq` remains + unchanged (`:quit --save`), as closing a window while saving the session + doesn't make sense. - Completion highlighting is now done differently (using QSyntaxHighlither), which should fix some highlighting corner-cases. - The `QtColor` config type now also understands colors like `rgb(...)`. diff --git a/doc/help/settings.asciidoc b/doc/help/settings.asciidoc index 79f2b44f2..f70bdd9af 100644 --- a/doc/help/settings.asciidoc +++ b/doc/help/settings.asciidoc @@ -294,9 +294,11 @@ Type: <> Default: -- +pass:[q]+: +pass:[quit]+ +- +pass:[q]+: +pass:[close]+ +- +pass:[qa]+: +pass:[quit]+ - +pass:[w]+: +pass:[session-save]+ - +pass:[wq]+: +pass:[quit --save]+ +- +pass:[wqa]+: +pass:[quit --save]+ [[auto_save.interval]] === auto_save.interval diff --git a/qutebrowser/config/configdata.yml b/qutebrowser/config/configdata.yml index d1aff5128..3c7ed09af 100644 --- a/qutebrowser/config/configdata.yml +++ b/qutebrowser/config/configdata.yml @@ -3,8 +3,10 @@ aliases: default: w: session-save - q: quit + q: close + qa: quit wq: quit --save + wqa: quit --save type: name: Dict keytype: