summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2021-03-23 14:26:54 +0100
committerFlorian Bruhin <me@the-compiler.org>2021-03-23 14:26:54 +0100
commit103017876e3ad3a74591fdd5053addb11a43f8f5 (patch)
treec63790736699b91c567e3443e1a47159243e778b
parent0bb6704122e5182589a338403bab874bc9ec1f08 (diff)
downloadqutebrowser-103017876e3ad3a74591fdd5053addb11a43f8f5.tar.gz
qutebrowser-103017876e3ad3a74591fdd5053addb11a43f8f5.zip
Update docs
-rw-r--r--doc/changelog.asciidoc5
-rw-r--r--doc/help/commands.asciidoc4
-rw-r--r--qutebrowser/browser/commands.py3
3 files changed, 10 insertions, 2 deletions
diff --git a/doc/changelog.asciidoc b/doc/changelog.asciidoc
index ca1e289c7..5555d6dd7 100644
--- a/doc/changelog.asciidoc
+++ b/doc/changelog.asciidoc
@@ -25,6 +25,8 @@ Deprecated
- Running qutebrowser with Qt 5.12.0 is now unsupported and logs a warning. It
should still work, however, a workaround for issues with the Nvidia graphic
driver was dropped. Newer Qt 5.12.x versions are still fully supported.
+- The `--force` argument for `:tab-only` is deprecated, use `--pinned close`
+ instead.
Added
~~~~~
@@ -35,6 +37,9 @@ Added
used to view and terminate/kill external processes spawned by qutebrowser.
- New `content.site_specific_quirks.skip` setting which can be used to disable
individual site-specific quirks.
+- New `--pinned` argument for `:tab-only`, which replaces `--force` (with
+ `--pinned close`), but also can take `--pinned keep` to keep pinned tabs
+ without prompting.
Changed
~~~~~~~
diff --git a/doc/help/commands.asciidoc b/doc/help/commands.asciidoc
index 3386386ef..8eca20caf 100644
--- a/doc/help/commands.asciidoc
+++ b/doc/help/commands.asciidoc
@@ -1452,13 +1452,15 @@ How many tabs to switch forward.
[[tab-only]]
=== tab-only
-Syntax: +:tab-only [*--prev*] [*--next*] [*--force*]+
+Syntax: +:tab-only [*--prev*] [*--next*] [*--pinned* 'behavior'] [*--force*]+
Close all tabs except for the current one.
==== optional arguments
* +*-p*+, +*--prev*+: Keep tabs before the current.
* +*-n*+, +*--next*+: Keep tabs after the current.
+* +*-P*+, +*--pinned*+: What to do with pinned tabs. Valid values: prompt, close, keep.
+
* +*-f*+, +*--force*+: Avoid confirmation for pinned tabs.
[[tab-pin]]
diff --git a/qutebrowser/browser/commands.py b/qutebrowser/browser/commands.py
index 7d6423498..87c8113f0 100644
--- a/qutebrowser/browser/commands.py
+++ b/qutebrowser/browser/commands.py
@@ -756,7 +756,8 @@ class CommandDispatcher:
maybe=True)
@cmdutils.register(instance='command-dispatcher', scope='window')
- @cmdutils.argument('pinned', choices=['prompt', 'close', 'keep'], flag='P')
+ @cmdutils.argument('pinned', choices=['prompt', 'close', 'keep'], flag='P',
+ metavar='behavior')
@cmdutils.argument('force', hide=True)
def tab_only(self, *, prev=False, next_=False, pinned='prompt', force=False):
"""Close all tabs except for the current one.