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"
 
9632 ^
20fa9632 ^
3000916a ^
4eb0f14a ^

cce01f1d ^
4eb0f14a ^

8413020a ^
216493ef ^



5bccee93 ^
abc2f0de ^
cf80fdc3 ^
e58be44f ^
27adf031 ^

30b5f112 ^


446027b9 ^
f0f3a739 ^
93358d5e ^
fb7001cf ^
72c1c496 ^
bab75cae ^
d3cc5bd7 ^



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51