diff options
author | hut <hut@lepus.uberspace.de> | 2014-04-23 20:52:34 +0200 |
---|---|---|
committer | hut <hut@lepus.uberspace.de> | 2014-04-23 20:52:34 +0200 |
commit | e1a8a76112b7c2b45f4ee389986187fabcd45a2f (patch) | |
tree | 2df3956603bc111e456cbf8cb1a336a70a8a726a /ranger | |
parent | 3dbb14263c01eaa0d2bec700998c1f0c278c7fe0 (diff) | |
download | ranger-e1a8a76112b7c2b45f4ee389986187fabcd45a2f.tar.gz |
core.actions: Enhanced :tab_move so you can type 5gt
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/core/actions.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py index e008eb5a..6d4c0474 100644 --- a/ranger/core/actions.py +++ b/ranger/core/actions.py @@ -987,7 +987,9 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware): new=self.thistab) break - def tab_move(self, offset): + def tab_move(self, offset, narg=None): + if narg: + return self.tab_open(narg) assert isinstance(offset, int) tablist = self._get_tab_list() current_index = tablist.index(self.current_tab) |