From dbdeb6a9c7483d9b11ae4ee8be2b8b2222fce25e Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sun, 2 Sep 2018 10:25:28 +0200 Subject: [PATCH] Rename history.exclude to completion.web_history.exclude If the blacklist is only valid for the completion, the setting should also be under completion. This also un-renames history.gap_interval and renames completion.web_history_max_items. --- doc/changelog.asciidoc | 7 ++-- doc/help/configuring.asciidoc | 2 +- doc/help/settings.asciidoc | 36 +++++++++--------- qutebrowser/browser/history.py | 6 +-- qutebrowser/browser/qutescheme.py | 2 +- qutebrowser/completion/models/histcategory.py | 2 +- qutebrowser/completion/models/urlmodel.py | 2 +- qutebrowser/config/configdata.yml | 38 +++++++++---------- tests/unit/browser/test_history.py | 13 +++++-- tests/unit/browser/test_qutescheme.py | 4 +- tests/unit/completion/test_histcategory.py | 4 +- tests/unit/completion/test_models.py | 4 +- 12 files changed, 63 insertions(+), 57 deletions(-) diff --git a/doc/changelog.asciidoc b/doc/changelog.asciidoc index 4ede06086..13a8ba39e 100644 --- a/doc/changelog.asciidoc +++ b/doc/changelog.asciidoc @@ -25,8 +25,8 @@ Added - When `:spawn --userscript` is called with a count, that count is now passed to userscripts as `$QUTE_COUNT`. - New `content.mouse_lock` setting to handle HTML5 pointer locking. -- New `history.exclude` setting which hides a list of URL patterns from the - completion and `qute://history`. +- New `completion.web_history.exclude` setting which hides a list of URL + patterns from the completion. Changed ~~~~~~~ @@ -39,7 +39,8 @@ Changed - The `app_id` is now set to `qutebrowser` for Wayland. - `Command` or `Cmd` can now be used (instead of `Meta`) to map the Command key on macOS. -- The `history_gap_interval` setting got renamed to `history.gap_interval`. +- The `completion.web_history_max_items` setting got renamed to + `completion.web_history.max_items`. v1.4.2 (unreleased) ------------------- diff --git a/doc/help/configuring.asciidoc b/doc/help/configuring.asciidoc index 362f1682e..e59a565bc 100644 --- a/doc/help/configuring.asciidoc +++ b/doc/help/configuring.asciidoc @@ -453,7 +453,7 @@ or always navigate through command history with :bind -m command command-history-next ---- -- The default for `completion.web_history_max_items` is now set to `-1`, showing +- The default for `completion.web_history.max_items` is now set to `-1`, showing an unlimited number of items in the completion for `:open` as the new sqlite-based completion is much faster. If the `:open` completion is too slow on your machine, set an appropriate limit again. diff --git a/doc/help/settings.asciidoc b/doc/help/settings.asciidoc index 34b55b5df..ae7ac903a 100644 --- a/doc/help/settings.asciidoc +++ b/doc/help/settings.asciidoc @@ -107,7 +107,8 @@ |<>|Shrink the completion to be smaller than the configured size if there are no scrollbars. |<>|Format of timestamps (e.g. for the history completion). |<>|Execute the best-matching command on a partial match. -|<>|Number of URLs to show in the web history. +|<>|A list of patterns which should not be shown in the history. +|<>|Number of URLs to show in the web history. |<>|Require a confirmation before quitting the application. |<>|Automatically start playing `