diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc index efe83cd4c..d0e412ced 100644 --- a/CHANGELOG.asciidoc +++ b/CHANGELOG.asciidoc @@ -147,6 +147,8 @@ Changed `prev`/`next`/`last-used` to remove ambiguity. - The `ui -> user-stylesheet` setting now only takes filenames, not CSS snippets - `ui -> window-title-format` now has a new `{backend} ` replacement +- `:hint` has a new `--add-history` argument to add the URL to the history for + yank/spawn targets. Deprecated ~~~~~~~~~~ diff --git a/README.asciidoc b/README.asciidoc index 28614d3ae..fea1101b6 100644 --- a/README.asciidoc +++ b/README.asciidoc @@ -188,6 +188,7 @@ Contributors, sorted by the number of commits in descending order: * Jonas Schürmann * error800 * Michael Hoang +* Maciej Wołczyk * Liam BEGUIN * Julie Engel * skinnay diff --git a/doc/help/commands.asciidoc b/doc/help/commands.asciidoc index 478e82258..4151eb892 100644 --- a/doc/help/commands.asciidoc +++ b/doc/help/commands.asciidoc @@ -341,7 +341,8 @@ Show help about a command or setting. [[hint]] === hint -Syntax: +:hint [*--rapid*] [*--mode* 'mode'] ['group'] ['target'] ['args' ['args' ...]]+ +Syntax: +:hint [*--rapid*] [*--mode* 'mode'] [*--add-history*] + ['group'] ['target'] ['args' ['args' ...]]+ Start hinting. @@ -406,6 +407,8 @@ Start hinting. +* +*-a*+, +*--add-history*+: Whether to add the spawned or yanked link to the browsing history. + ==== note * This command does not split arguments after the last argument and handles quotes literally. diff --git a/qutebrowser/browser/hints.py b/qutebrowser/browser/hints.py index 4355df12e..b895c7db1 100644 --- a/qutebrowser/browser/hints.py +++ b/qutebrowser/browser/hints.py @@ -610,8 +610,8 @@ class HintManager(QObject): rapid: Whether to do rapid hinting. This is only possible with targets `tab` (with background-tabs=true), `tab-bg`, `window`, `run`, `hover`, `userscript` and `spawn`. - add_history: Whether to add spawned or yanked link to the - browsing history. + add_history: Whether to add the spawned or yanked link to the + browsing history. group: The element types to hint. - `all`: All clickable elements. diff --git a/scripts/dev/src2asciidoc.py b/scripts/dev/src2asciidoc.py index 6a29c3410..2628ba282 100755 --- a/scripts/dev/src2asciidoc.py +++ b/scripts/dev/src2asciidoc.py @@ -432,6 +432,7 @@ def _get_authors(): 'Alexey Glushko': 'haitaka', 'Corentin Jule': 'Corentin Julé', 'Claire C.C': 'Claire Cavanaugh', + 'Rahid': 'Maciej Wołczyk', } commits = subprocess.check_output(['git', 'log', '--format=%aN']) authors = [corrections.get(author, author)