diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc index 74646d4a7..c75b373b8 100644 --- a/CHANGELOG.asciidoc +++ b/CHANGELOG.asciidoc @@ -35,6 +35,7 @@ Changed - `:bookmark-load` now has a `--delete` flag which deletes the bookmark after loading it. - `:open` now also accepts quickmark names instead of URLs +- `:tab-move` now optionally takes an index for absolute moving. Fixed ----- diff --git a/doc/help/commands.asciidoc b/doc/help/commands.asciidoc index 5f4e9da03..8724feaee 100644 --- a/doc/help/commands.asciidoc +++ b/doc/help/commands.asciidoc @@ -58,7 +58,7 @@ |<>|Close the current/[count]th tab. |<>|Detach the current tab to its own window. |<>|Select the tab given as argument/[count]. -|<>|Move the current tab. +|<>|Move the current tab according to the argument and [count]. |<>|Switch to the next tab, or switch [count] tabs forward. |<>|Close all tabs except for the current one. |<>|Switch to the previous tab, or switch [count] tabs back. @@ -767,16 +767,20 @@ The tab index to focus, starting with 1. [[tab-move]] === tab-move -Syntax: +:tab-move ['direction']+ +Syntax: +:tab-move ['index']+ -Move the current tab. +Move the current tab according to the argument and [count]. + +If neither is given, move it to the first position. ==== positional arguments -* +'direction'+: `+` or `-` for relative moving, not given for absolute moving. +* +'index'+: `+` or `-` to move relative to the current tab by count, or a default of 1 space. + A tab index to move to that index. ==== count -If moving absolutely: New position (default: 0) If moving relatively: Offset. +If moving relatively: Offset. If moving absolutely: New position (default: 0). This + overrides the index argument, if given. [[tab-next]]