summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-04-26 10:52:56 +0200
committerhut <hut@lavabit.com>2010-04-26 20:56:27 +0200
commit943f17ad92014f0fc9708fb3a3e66eeed9985734 (patch)
tree6d673e9f45d6677c113ed03f7decb192a3227a5d
parent26fbda26e39a4edc9705f71e5f16b5dd5ea96009 (diff)
downloadranger-943f17ad92014f0fc9708fb3a3e66eeed9985734.tar.gz
core.actions: implemented "move_parent", improve this later!
-rw-r--r--ranger/core/actions.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index 00e4782b..e1346612 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -142,6 +142,11 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware):
 					pagesize=self.ui.browser.hei)
 			cwd.move(to=newpos)
 
+	def move_parent(self, n):
+		self.enter_dir('..')
+		self.move(down=n)
+		self.move(right=0)
+
 	def history_go(self, relative):
 		"""Move back and forth in the history"""
 		self.env.history_go(relative)