Merge branch 't-wissmann-gt'
This commit is contained in:
commit
4d7949cc3e
@ -158,6 +158,7 @@ Contributors, sorted by the number of commits in descending order:
|
|||||||
* sbinix
|
* sbinix
|
||||||
* Tobias Patzl
|
* Tobias Patzl
|
||||||
* Johannes Altmanninger
|
* Johannes Altmanninger
|
||||||
|
* Thorsten Wißmann
|
||||||
* Samir Benmendil
|
* Samir Benmendil
|
||||||
* Regina Hug
|
* Regina Hug
|
||||||
* Mathias Fussenegger
|
* Mathias Fussenegger
|
||||||
@ -167,7 +168,6 @@ Contributors, sorted by the number of commits in descending order:
|
|||||||
* zwarag
|
* zwarag
|
||||||
* error800
|
* error800
|
||||||
* Tim Harder
|
* Tim Harder
|
||||||
* Thorsten Wißmann
|
|
||||||
* Thiago Barroso Perrotta
|
* Thiago Barroso Perrotta
|
||||||
* Matthias Lisin
|
* Matthias Lisin
|
||||||
* Helen Sherwood-Taylor
|
* Helen Sherwood-Taylor
|
||||||
|
@ -630,6 +630,8 @@ Syntax: +:tab-focus ['index']+
|
|||||||
|
|
||||||
Select the tab given as argument/[count].
|
Select the tab given as argument/[count].
|
||||||
|
|
||||||
|
If neither count nor index are given, it behaves like tab-next.
|
||||||
|
|
||||||
==== positional arguments
|
==== positional arguments
|
||||||
* +'index'+: The tab index to focus, starting with 1. The special value `last` focuses the last focused tab.
|
* +'index'+: The tab index to focus, starting with 1. The special value `last` focuses the last focused tab.
|
||||||
|
|
||||||
|
@ -878,6 +878,8 @@ class CommandDispatcher:
|
|||||||
def tab_focus(self, index: {'type': (int, 'last')}=None, count=None):
|
def tab_focus(self, index: {'type': (int, 'last')}=None, count=None):
|
||||||
"""Select the tab given as argument/[count].
|
"""Select the tab given as argument/[count].
|
||||||
|
|
||||||
|
If neither count nor index are given, it behaves like tab-next.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
index: The tab index to focus, starting with 1. The special value
|
index: The tab index to focus, starting with 1. The special value
|
||||||
`last` focuses the last focused tab.
|
`last` focuses the last focused tab.
|
||||||
@ -886,6 +888,9 @@ class CommandDispatcher:
|
|||||||
if index == 'last':
|
if index == 'last':
|
||||||
self._tab_focus_last()
|
self._tab_focus_last()
|
||||||
return
|
return
|
||||||
|
if index is None and count is None:
|
||||||
|
self.tab_next()
|
||||||
|
return
|
||||||
try:
|
try:
|
||||||
idx = cmdutils.arg_or_count(index, count, default=1,
|
idx = cmdutils.arg_or_count(index, count, default=1,
|
||||||
countzero=self._count())
|
countzero=self._count())
|
||||||
|
@ -1236,7 +1236,7 @@ KEY_DATA = collections.OrderedDict([
|
|||||||
('tab-move', ['gm']),
|
('tab-move', ['gm']),
|
||||||
('tab-move -', ['gl']),
|
('tab-move -', ['gl']),
|
||||||
('tab-move +', ['gr']),
|
('tab-move +', ['gr']),
|
||||||
('tab-next', ['J', 'gt']),
|
('tab-focus', ['J', 'gt']),
|
||||||
('tab-prev', ['K', 'gT']),
|
('tab-prev', ['K', 'gT']),
|
||||||
('tab-clone', ['gC']),
|
('tab-clone', ['gC']),
|
||||||
('reload', ['r']),
|
('reload', ['r']),
|
||||||
|
Loading…
Reference in New Issue
Block a user