diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc index 9fa8cca59..40a6b7b67 100644 --- a/CHANGELOG.asciidoc +++ b/CHANGELOG.asciidoc @@ -36,6 +36,8 @@ Changed loading it. - `:open` now also accepts quickmark names instead of URLs - `:tab-move` now optionally takes an index for absolute moving. +- Commands taking either an argument or a count (like `:zoom` or `:tab-focus`) + now prefer the count instead of showing an error message. v0.8.2 ------ diff --git a/README.asciidoc b/README.asciidoc index 71d464728..65d7ac4dc 100644 --- a/README.asciidoc +++ b/README.asciidoc @@ -150,9 +150,9 @@ Contributors, sorted by the number of commits in descending order: * Jakub Klinkovský * Martin Tournoij * Raphael Pierzina +* Marshall Lochbaum * Joel Torstensson * Jan Verbeek -* Marshall Lochbaum * Patric Schmitz * Tarcisio Fedrizzi * Claude diff --git a/doc/help/commands.asciidoc b/doc/help/commands.asciidoc index 8724feaee..ab4479446 100644 --- a/doc/help/commands.asciidoc +++ b/doc/help/commands.asciidoc @@ -755,11 +755,12 @@ Syntax: +:tab-focus ['index']+ Select the tab given as argument/[count]. -If neither count nor index are given, it behaves like tab-next. +If neither count nor index are given, it behaves like tab-next. If both are given, use count. ==== positional arguments -* +'index'+: The tab index to focus, starting with 1. The special value `last` focuses the last focused tab. Negative indexes - counts from the end, such that -1 is the last tab. +* +'index'+: The tab index to focus, starting with 1. The special value `last` focuses the last focused tab (regardless of count). + Negative indices count from the end, such that -1 is the + last tab. ==== count @@ -863,7 +864,7 @@ Syntax: +:zoom ['zoom']+ Set the zoom level for the current tab. -The zoom can be given as argument or as [count]. If neither of both is given, the zoom is set to the default zoom. +The zoom can be given as argument or as [count]. If neither is given, the zoom is set to the default zoom. If both are given, use [count]. ==== positional arguments * +'zoom'+: The zoom percentage to set.