diff options
author | harish3124 <harishhari3112004@gmail.com> | 2021-11-11 15:27:05 +0530 |
---|---|---|
committer | harish3124 <harishhari3112004@gmail.com> | 2021-11-11 15:27:05 +0530 |
commit | b2bddd9f3928db49ba8a2cc20d799047c9696086 (patch) | |
tree | 0cbd0cd02fc0a5398705ca42ca9ab4872314dd69 | |
parent | aba0ee5c2e1849fda00888b5c32986051d5fe440 (diff) | |
download | qutebrowser-b2bddd9f3928db49ba8a2cc20d799047c9696086.tar.gz qutebrowser-b2bddd9f3928db49ba8a2cc20d799047c9696086.zip |
Added Tests and Docs 📰
-rw-r--r-- | qutebrowser/browser/commands.py | 1 | ||||
-rw-r--r-- | tests/end2end/features/tabs.feature | 21 |
2 files changed, 22 insertions, 0 deletions
diff --git a/qutebrowser/browser/commands.py b/qutebrowser/browser/commands.py index eccb64b9e..03953ba7e 100644 --- a/qutebrowser/browser/commands.py +++ b/qutebrowser/browser/commands.py @@ -1016,6 +1016,7 @@ class CommandDispatcher: 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. + `start` and `end` to move to the start and the end count: If moving relatively: Offset. If moving absolutely: New position (default: 0). This overrides the index argument, if given. diff --git a/tests/end2end/features/tabs.feature b/tests/end2end/features/tabs.feature index c9d983755..91e516c67 100644 --- a/tests/end2end/features/tabs.feature +++ b/tests/end2end/features/tabs.feature @@ -633,6 +633,27 @@ Feature: Tab management - data/numbers/1.txt (active) - data/numbers/3.txt + Scenario: :tab-move with absolute position + When I open data/numbers/1.txt + And I open data/numbers/2.txt in a new tab + And I open data/numbers/3.txt in a new tab + And I run :tab-focus 1 + And I run :tab-move with index end + Then the following tabs should be open: + - data/numbers/2.txt + - data/numbers/3.txt + - data/numbers/1.txt (active) + + Scenario: :tab-move with absolute position + When I open data/numbers/1.txt + And I open data/numbers/2.txt in a new tab + And I open data/numbers/3.txt in a new tab + And I run :tab-move with index start + Then the following tabs should be open: + - data/numbers/3.txt (active) + - data/numbers/1.txt + - data/numbers/2.txt + Scenario: Make sure :tab-move retains metadata When I open data/title.html And I open data/hello.txt in a new tab |