summary refs log tree commit diff stats
path: root/ranger
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 /ranger
parente0dd4b005b74817f1c1f9fe63c2f6eee72efee9c (diff)
downloadranger-6d6dd2fbd0425f64553a3aa8b427d9906471f3ce.tar.gz
actions: add narg to move_right, so Nl starts with mode N
Diffstat (limited to 'ranger')
-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"
 
t;hut@lavabit.com> 2010-03-12 19:19:42 +0100 make install: catch an exception' href='/akspecs/ranger/commit/Makefile?id=76f8d548b055fad7f9652d23035d30c910ec4ca0'>76f8d548 ^
94c5d83e ^


423ce88a ^

94c5d83e ^








e9e4b4ff ^

50a0cb1c ^
e9e4b4ff ^

26aa5c8e ^
e9e4b4ff ^
fde932f2 ^
75682d43 ^
e9e4b4ff ^

2c5ea01d ^
e9e4b4ff ^




e9e4b4ff ^

2c5ea01d ^
e9e4b4ff ^
0c2c782d ^

30ae2137 ^
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92