From 70f95d4f27869f1fe1dc3d922d408d053d836241 Mon Sep 17 00:00:00 2001 From: hut Date: Mon, 13 Apr 2015 12:32:05 +0200 Subject: core.actions: update execute_file() docstring --- ranger/core/actions.py | 16 ++++++++++------ 1 file 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 -- cgit 1.4.1-2-gfad0