about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--doc/TODO2
-rw-r--r--ranger/core/actions.py4
2 files changed, 4 insertions, 2 deletions
diff --git a/doc/TODO b/doc/TODO
index 8365c86b..ce1fee6c 100644
--- a/doc/TODO
+++ b/doc/TODO
@@ -56,7 +56,7 @@ General
           won't do this
    (X) #81  10/04/15  system crash when previewing /proc/kcore with root permissions
    (X) #83  10/04/19  better ways to mark files. eg by regexp, filetype,..
-   ( ) #86  10/04/21  narg for move_parent
+   (X) #86  10/04/21  narg for move_parent
    ( ) #60  10/02/05  utf support improvable
    (X) #91  10/05/12  in keys.py, fm.move(right=N) should run with mode=N
    (X) #92  10/05/14  allow to enter the realpath of a directory
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index 59aac65c..4353aabf 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -226,7 +226,9 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware):
 						pagesize=self.ui.browser.hei)
 				cwd.move(to=newpos)
 
-	def move_parent(self, n):
+	def move_parent(self, n, narg=None):
+		if narg is not None:
+			n *= narg
 		parent = self.env.at_level(-1)
 		if parent.pointer + n < 0:
 			n = 0 - parent.pointer