about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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__':
<vc@akkartik.com> 2018-09-21 16:33:57 -0700 committer Kartik Agaram <vc@akkartik.com> 2018-09-21 16:38:35 -0700 4579' href='/akkartik/mu/commit/subx/examples/ex10.subx?h=main&id=ddeed58f8524849315286de8ff825c43e5b82f9d'>ddeed58f ^
ecfbbfb5 ^
ee9a9237 ^


ddeed58f ^
8188bbbc ^
ddeed58f ^
33352536 ^


ddeed58f ^
7a583220 ^
33352536 ^
9d27e966 ^

33352536 ^
9d27e966 ^
33352536 ^
ee9a9237 ^
6030d7e2 ^
ecfbbfb5 ^
33352536 ^
ecfbbfb5 ^
ddeed58f ^


71eb22a5 ^
33352536 ^


03d50cc8 ^
33352536 ^




ddeed58f ^
6323661c ^
6070c23e ^
ddeed58f ^
33352536 ^
6070c23e ^
ddeed58f ^
33352536 ^

6030d7e2 ^

03d50cc8 ^
6030d7e2 ^
6323661c ^
6070c23e ^
03d50cc8 ^
33352536 ^
6030d7e2 ^

03d50cc8 ^
33352536 ^
6030d7e2 ^
ed0e64a9 ^
ee9a9237 ^
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