diff options
author | hut <hut@lepus.uberspace.de> | 2015-04-13 12:32:05 +0200 |
---|---|---|
committer | hut <hut@lepus.uberspace.de> | 2015-04-13 12:32:05 +0200 |
commit | 70f95d4f27869f1fe1dc3d922d408d053d836241 (patch) | |
tree | ab1800fd8579bc8a1d4ab40b6372fccaf24a9c9f /ranger | |
parent | 3259b3112e0b5aa1c2b3ff8d751648a18c5ec721 (diff) | |
download | ranger-70f95d4f27869f1fe1dc3d922d408d053d836241.tar.gz |
core.actions: update execute_file() docstring
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/core/actions.py | 16 |
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 |