summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-01-24 21:46:31 +0100
committerhut <hut@lavabit.com>2010-01-24 21:46:31 +0100
commit6d6dd2fbd0425f64553a3aa8b427d9906471f3ce (patch)
treea91833b48c528e22441e01bb7726a30e311e5229
parente0dd4b005b74817f1c1f9fe63c2f6eee72efee9c (diff)
downloadranger-6d6dd2fbd0425f64553a3aa8b427d9906471f3ce.tar.gz
actions: add narg to move_right, so Nl starts with mode N
-rw-r--r--ranger/actions.py4
-rw-r--r--ranger/help/starting.py2
2 files changed, 4 insertions, 2 deletions
diff --git a/ranger/actions.py b/ranger/actions.py
index 406faf64..25665f0b 100644
--- a/ranger/actions.py
+++ b/ranger/actions.py
@@ -155,11 +155,13 @@ class Actions(EnvironmentAware, SettingsAware):
 			return
 		self.env.enter_dir(directory)
 	
-	def move_right(self, mode=0):
+	def move_right(self, mode=0, narg=None):
 		"""Enter the current directory or execute the current file"""
 		cf = self.env.cf
 		sel = self.env.get_selection()
 
+		if isinstance(narg, int):
+			mode = narg
 		if not self.env.enter_dir(cf):
 			if sel:
 				if self.execute_file(sel, mode=mode) is False:
diff --git a/ranger/help/starting.py b/ranger/help/starting.py
index a95a4312..96e380ce 100644
--- a/ranger/help/starting.py
+++ b/ranger/help/starting.py
@@ -78,7 +78,7 @@ gives you 2 ways of opening a video (by default):
 	1	windowed
 
 By specifying a mode, you can select one of those.  The "l" key will
-start a file in mode 0.
+start a file in mode 0. "4l" will start the file in mode 4 etc.
 You can specify a mode in the "open with" console by simply adding
 the number.  Eg: "open with: mplayer 1" or "open with: 1"