diff options
Diffstat (limited to 'ranger/applications.py')
-rw-r--r-- | ranger/applications.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ranger/applications.py b/ranger/applications.py index c10df6f8..37358e12 100644 --- a/ranger/applications.py +++ b/ranger/applications.py @@ -8,7 +8,8 @@ ALLOWED_FLAGS = 'sdpSDP' class Applications(object): """ - This class contains definitions on how to run programs. + This class contains definitions on how to run programs and should + be extended in ranger.defaults.apps The user can decide what program to run, and if he uses eg. 'vim', the function app_vim() will be called. However, usually the user @@ -40,6 +41,10 @@ class Applications(object): return ('vim', ) + tuple(context) """ + def app_self(self, context): + """Run the file itself""" + return "./" + context.file.basename + def get(self, app): """Looks for an application, returns app_default if it doesn't exist""" try: |