about summary refs log tree commit diff stats
path: root/ranger/commands.py
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-12-27 00:53:38 +0100
committerhut <hut@lavabit.com>2009-12-27 00:53:38 +0100
commit2efce5400bed218ca603444d179bee503fa6d9f5 (patch)
treed4b01504b90620582676894b77ef49dca92c62ce /ranger/commands.py
parent0da7b3961de437415753383a5c2b7efaafcc4586 (diff)
downloadranger-2efce5400bed218ca603444d179bee503fa6d9f5.tar.gz
added rename command
Diffstat (limited to 'ranger/commands.py')
-rw-r--r--ranger/commands.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/ranger/commands.py b/ranger/commands.py
index a3cc131e..68b9c574 100644
--- a/ranger/commands.py
+++ b/ranger/commands.py
@@ -161,6 +161,12 @@ class mkdir(Command):
 			pass
 
 
+class rename(Command):
+	def execute(self):
+		line = parse(self.line)
+		self.fm.rename(self.fm.env.cf, line.rest(1))
+	
+
 # -------------------------------- rest
 
 by_name = {}
e='author James Booth <boothj5@gmail.com> 2014-05-26 01:05:19 +0100 committer James Booth <boothj5@gmail.com> 2014-05-26 01:05:19 +0100 Fixed tests to work with cmocka 0.4.1' href='/danisanti/profani-tty/commit/tests/otr/mock_otr.c?id=52f66fde105eb48f114d6c92ff71da78ec458466'>52f66fde ^
a21ab6d4 ^

82ad0cd3 ^

a21ab6d4 ^
52f66fde ^
a21ab6d4 ^

037ca818 ^



52f66fde ^
037ca818 ^

18e0884f ^





c0037608 ^


52f66fde ^
c0037608 ^

a21ab6d4 ^


4eac5c0d ^
a21ab6d4 ^





82ad0cd3 ^
a21ab6d4 ^

82ad0cd3 ^






037ca818 ^







18e0884f ^






c0037608 ^






e10ea1be ^
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