From c1f2a152d0ed514bb44ee61dd0c2c52da57cd7ee Mon Sep 17 00:00:00 2001 From: hut Date: Mon, 3 Oct 2011 05:30:13 +0200 Subject: core.actions: added %rangerdir macro --- ranger/core/actions.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ranger/core/actions.py') 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: -- cgit 1.4.1-2-gfad0