summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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"