diff options
Diffstat (limited to 'examples/plugin_new_macro.py')
-rw-r--r-- | examples/plugin_new_macro.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/plugin_new_macro.py b/examples/plugin_new_macro.py index 31350387..8dbe435d 100644 --- a/examples/plugin_new_macro.py +++ b/examples/plugin_new_macro.py @@ -10,6 +10,8 @@ old_get_macros = ranger.core.actions.Actions._get_macros # Define a new macro function import time + + def get_macros_with_date(self): macros = old_get_macros(self) macros['date'] = time.strftime('%m/%d/%Y') |