From 378e4f1bdd951b25b8233dfd4863538d46eac94f Mon Sep 17 00:00:00 2001 From: Lucas Hoffmann Date: Sat, 4 Feb 2017 22:29:45 +0100 Subject: [PATCH 1/3] docs: Clarify behaviour of `view-source` --- doc/help/commands.asciidoc | 2 +- qutebrowser/browser/commands.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/help/commands.asciidoc b/doc/help/commands.asciidoc index 3f656dc49..856b95a2b 100644 --- a/doc/help/commands.asciidoc +++ b/doc/help/commands.asciidoc @@ -84,7 +84,7 @@ It is possible to run or bind multiple commands by separating them with `;;`. |<>|Switch to the previous tab, or switch [count] tabs back. |<>|Unbind a keychain. |<>|Re-open a closed tab (optionally skipping [count] closed tabs). -|<>|Show the source of the current page. +|<>|Show the source of the current page in a new tab. |<>|Close all windows except for the current one. |<>|Save open pages and quit. |<>|Yank something to the clipboard or primary selection. diff --git a/qutebrowser/browser/commands.py b/qutebrowser/browser/commands.py index adcd2e9e2..38c186447 100644 --- a/qutebrowser/browser/commands.py +++ b/qutebrowser/browser/commands.py @@ -1349,7 +1349,7 @@ class CommandDispatcher: @cmdutils.register(instance='command-dispatcher', scope='window') def view_source(self): - """Show the source of the current page.""" + """Show the source of the current page in a new tab.""" # pylint: disable=no-member # WORKAROUND for https://bitbucket.org/logilab/pylint/issue/491/ tab = self._current_widget() From d874f684635ca8e2088b3fd9fa9b1433f345222c Mon Sep 17 00:00:00 2001 From: Lucas Hoffmann Date: Sat, 4 Feb 2017 22:31:25 +0100 Subject: [PATCH 2/3] docs: Clarify hints.mode = number --- qutebrowser/config/configdata.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qutebrowser/config/configdata.py b/qutebrowser/config/configdata.py index 91588468d..0c0868dfe 100644 --- a/qutebrowser/config/configdata.py +++ b/qutebrowser/config/configdata.py @@ -936,7 +936,9 @@ def data(readonly=False): ('mode', SettingValue(typ.String( valid_values=typ.ValidValues( - ('number', "Use numeric hints."), + ('number', "Use numeric hints. (In this mode you can " + "also type letters form the hinted element to filter " + "and reduce the number of elements that are hinted.)"), ('letter', "Use the chars in the hints -> " "chars setting."), ('word', "Use hints words based on the html " From 92198f668b66a44230c48717baac51d973f28bae Mon Sep 17 00:00:00 2001 From: Lucas Hoffmann Date: Sat, 4 Feb 2017 22:32:34 +0100 Subject: [PATCH 3/3] Update autogenerated files --- README.asciidoc | 1 + doc/help/commands.asciidoc | 2 +- doc/help/settings.asciidoc | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.asciidoc b/README.asciidoc index 50375ad1a..d0c85d5f6 100644 --- a/README.asciidoc +++ b/README.asciidoc @@ -234,6 +234,7 @@ Contributors, sorted by the number of commits in descending order: * Regina Hug * Mathias Fussenegger * Marcelo Santos +* Lucas Hoffmann * Joel Bradshaw * Jean-Louis Fuchs * Franz Fellner diff --git a/doc/help/commands.asciidoc b/doc/help/commands.asciidoc index 856b95a2b..0e993b723 100644 --- a/doc/help/commands.asciidoc +++ b/doc/help/commands.asciidoc @@ -898,7 +898,7 @@ Re-open a closed tab (optionally skipping [count] closed tabs). [[view-source]] === view-source -Show the source of the current page. +Show the source of the current page in a new tab. [[window-only]] === window-only diff --git a/doc/help/settings.asciidoc b/doc/help/settings.asciidoc index 62700ac6f..114a9c9d6 100644 --- a/doc/help/settings.asciidoc +++ b/doc/help/settings.asciidoc @@ -1666,7 +1666,7 @@ Mode to use for hints. Valid values: - * +number+: Use numeric hints. + * +number+: Use numeric hints. (In this mode you can also type letters form the hinted element to filter and reduce the number of elements that are hinted.) * +letter+: Use the chars in the hints -> chars setting. * +word+: Use hints words based on the html elements and the extra words.