summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2011-09-29 03:30:36 +0200
committerhut <hut@lavabit.com>2011-09-29 03:31:20 +0200
commitef5fe778f88d43b8bee931cc3763ed0a63dba33b (patch)
tree31d40c117863c045d607500e6aa8e2a2f981ec20 /ranger
parent2a67562aa12d65a5918babb2d02801eb1687ef9d (diff)
downloadranger-ef5fe778f88d43b8bee931cc3763ed0a63dba33b.tar.gz
core.actions: added narg to move_parent
Diffstat (limited to 'ranger')
-rw-r--r--ranger/core/actions.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index 59aac65c..4353aabf 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -226,7 +226,9 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware):
 						pagesize=self.ui.browser.hei)
 				cwd.move(to=newpos)
 
-	def move_parent(self, n):
+	def move_parent(self, n, narg=None):
+		if narg is not None:
+			n *= narg
 		parent = self.env.at_level(-1)
 		if parent.pointer + n < 0:
 			n = 0 - parent.pointer
ile?h=v1.8.1&id=fff320285cfd4844547afac4056b788b2db3a2ee'>^
1295513f ^
94c5d83e ^
e9e4b4ff ^







94c5d83e ^







76f8d548 ^



94c5d83e ^


423ce88a ^

94c5d83e ^








e9e4b4ff ^

50a0cb1c ^
e9e4b4ff ^

606df33e ^
e9e4b4ff ^
fde932f2 ^
75682d43 ^
e9e4b4ff ^

2c5ea01d ^
e9e4b4ff ^




e9e4b4ff ^

2c5ea01d ^
e9e4b4ff ^
0c2c782d ^

6ac4be61 ^
ea775b1c ^








6ac4be61 ^
ea775b1c ^

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
93
94
95
96
97
98
99
100
101
102
103
104