summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2012-08-06 23:35:21 +0200
committerhut <hut@lavabit.com>2012-08-06 23:38:50 +0200
commit49665d249cd6ccb83bfd1ff11160d58c025d8cb7 (patch)
treebe204daeb813c22dd578db985d409108018a958d /ranger
parentb14835a80c53a199ea54cc031ceea39b087b7e40 (diff)
downloadranger-49665d249cd6ccb83bfd1ff11160d58c025d8cb7.tar.gz
ext.rifle: notify about unknown filetype in rifle when command==ask
Diffstat (limited to 'ranger')
-rwxr-xr-xranger/ext/rifle.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/ranger/ext/rifle.py b/ranger/ext/rifle.py
index fd91c1af..821d69ab 100755
--- a/ranger/ext/rifle.py
+++ b/ranger/ext/rifle.py
@@ -382,7 +382,12 @@ def main():
 			for count, cmd, label, flags in rifle.list_commands(positional):
 				print("%d:%s:%s:%s" % (count, label or '', flags, cmd))
 		else:
-			rifle.execute(positional, number=number, label=label, flags=options.f)
+			result = rifle.execute(positional, number=number, label=label,
+					flags=options.f)
+			if result == ASK_COMMAND:
+				# TODO: implement interactive asking for file type?
+				print("Unknown file type: %s" % rifle._get_mimetype(positional[0]))
+
 
 
 if __name__ == '__main__':
f='/akspecs/ranger/commit/TODO?h=v1.9.0b5&id=b5493fe4b4c47c6ea7834421c67416358f28d3c1'>b5493fe4 ^
ef0ee843 ^
0b8a9d79 ^
a6791aee ^
23236d0c ^
08f21ae5 ^
4b826595 ^
757e1f55 ^
277ecc9e ^
9983328c ^
752378e0 ^
a1274aba ^
b42eb058 ^
b13518af ^
509afd70 ^
fc486c60 ^
eb063058 ^
2c1d2db0 ^
291ca616 ^
50845f37 ^
4be8b401 ^



d955e3f0 ^
75013dc7 ^
67bb838c ^
a808a661 ^
bba8d293 ^
2a64495f ^
5e449699 ^
fc486c60 ^
7b04e507 ^
0268e3c3 ^
6f43de0a ^




fca1fc4f ^
f70ee6b2 ^
0db4c9b2 ^
b2d63ef5 ^
291ca616 ^
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