diff options
author | hut <hut@lavabit.com> | 2011-10-03 05:30:13 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2011-10-03 05:30:13 +0200 |
commit | c1f2a152d0ed514bb44ee61dd0c2c52da57cd7ee (patch) | |
tree | d292a31295afb5dddc3d1dd8127e7f29ebbe3650 | |
parent | 6cf3818d93a325b53e8792722ce799cabe576dd6 (diff) | |
download | ranger-c1f2a152d0ed514bb44ee61dd0c2c52da57cd7ee.tar.gz |
core.actions: added %rangerdir macro
-rw-r--r-- | ranger/core/actions.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py index ffcf0dc7..6a8e69e4 100644 --- a/ranger/core/actions.py +++ b/ranger/core/actions.py @@ -120,6 +120,8 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware): def _get_macros(self): macros = {} + macros['rangerdir'] = shell_quote(ranger.RANGERDIR) + if self.fm.env.cf: macros['f'] = shell_quote(self.fm.env.cf.basename) else: |