diff options
Diffstat (limited to 'ranger/core/actions.py')
-rw-r--r-- | ranger/core/actions.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py index cb692d4c..3281964e 100644 --- a/ranger/core/actions.py +++ b/ranger/core/actions.py @@ -163,7 +163,11 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware): elif type(files) not in (list, tuple): files = [files] - return self.run(files=list(files), **kw) + self.signal_emit('execute.before', keywords=kw) + try: + return self.run(files=list(files), **kw) + finally: + self.signal_emit('execute.after') # -------------------------- # -- Moving Around |