about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lepus.uberspace.de>2014-04-23 20:52:34 +0200
committerhut <hut@lepus.uberspace.de>2014-04-23 20:52:34 +0200
commite1a8a76112b7c2b45f4ee389986187fabcd45a2f (patch)
tree2df3956603bc111e456cbf8cb1a336a70a8a726a
parent3dbb14263c01eaa0d2bec700998c1f0c278c7fe0 (diff)
downloadranger-e1a8a76112b7c2b45f4ee389986187fabcd45a2f.tar.gz
core.actions: Enhanced :tab_move so you can type 5gt
-rw-r--r--ranger/core/actions.py4
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)