summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/core/actions.py16
1 files changed, 10 insertions, 6 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index ef74d7a2..92b8a097 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -307,13 +307,17 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware):
                             (line, str(e)), bad=True)
 
     def execute_file(self, files, **kw):
-        """Execute a file.
+        """Uses the "rifle" module to open/execute a file
 
-        app is the name of a method in Applications, without the "app_"
-        flags is a string consisting of runner.ALLOWED_FLAGS
-        mode is a positive integer.
-        Both flags and mode specify how the program is run."""
-        # TODO: docstring out of date
+        Arguments are the same as for ranger.ext.rifle.Rifle.execute:
+
+        files: a list of file objects (not strings!)
+        number: a number to select which way to open the file, in case there
+            are multiple choices
+        label: a string to select an opening method by its label
+        flags: a string specifying additional options, see `man rifle`
+        mimetyle: pass the mimetype to rifle, overriding its own guess
+        """
 
         mode = kw['mode'] if 'mode' in kw else 0
 
-05-02 15:52:22 -0700 committer Kartik K. Agaram <vc@akkartik.com> 2015-05-02 22:56:13 -0700 1242 - simpler implementation for 'scenario'' href='/akkartik/mu/commit/cpp/051scenario_test.mu?h=hlt&id=22b3069272c1a177e814a7c4e769e20858e2b368'>22b30692 ^
7a84094a ^
22b30692 ^

ad8161f3 ^
22b30692 ^






7a84094a ^
22b30692 ^

ad8161f3 ^
0f996b7b ^

d9cd13ad ^
3f7eed6c ^
d9cd13ad ^
7a84094a ^
08f4628e ^


d9cd13ad ^
22b30692 ^
ad8161f3 ^
d9cd13ad ^

22b30692 ^


7a84094a ^
22b30692 ^

ad8161f3 ^
22b30692 ^




7a84094a ^
22b30692 ^

ad8161f3 ^
22b30692 ^




65b3db5d ^
22b30692 ^




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