summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-05-07 10:15:49 +0200
committerhut <hut@lavabit.com>2010-05-10 21:03:40 +0200
commit2a4a9fd3ddab885de474e1cc9c87b38591443d72 (patch)
tree020f694842ad23efed89d62100bb5ce842c71030 /ranger
parent1dbc2fcedd9733c50d5a276201bd3d20b05f924e (diff)
downloadranger-2a4a9fd3ddab885de474e1cc9c87b38591443d72.tar.gz
defaults.commands: edit current file with ":edit"
Diffstat (limited to 'ranger')
-rw-r--r--ranger/defaults/commands.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/ranger/defaults/commands.py b/ranger/defaults/commands.py
index 278fb8d5..8728f9be 100644
--- a/ranger/defaults/commands.py
+++ b/ranger/defaults/commands.py
@@ -367,7 +367,10 @@ class edit(Command):
 
 	def execute(self):
 		line = parse(self.line)
-		self.fm.edit_file(line.rest(1))
+		if not line.chunk(1):
+			self.fm.edit_file(self.fm.env.cf.path)
+		else:
+			self.fm.edit_file(line.rest(1))
 
 	def tab(self):
 		return self._tab_directory_content()
9-12-27 03:26:45 +0100 committer hut <hut@lavabit.com> 2009-12-27 03:26:45 +0100 action.spawn/runcmd for terminals and du | less' href='/akspecs/ranger/commit/TODO?h=v1.4.2&id=b5493fe4b4c47c6ea7834421c67416358f28d3c1'>b5493fe4 ^
ef0ee843 ^
0b8a9d79 ^
a6791aee ^
23236d0c ^
08f21ae5 ^
63f22638 ^
4be8b401 ^



d955e3f0 ^
75013dc7 ^
67bb838c ^
6f43de0a ^




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