diff options
author | hut <hut@lavabit.com> | 2011-10-03 15:57:39 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2011-10-03 15:57:39 +0200 |
commit | 8e02d5887895f41e4e2cb538556f385ca9e268fe (patch) | |
tree | 80ebd69a03134b5d48957dbedfbcd296b3bab65e | |
parent | 9c4f3cc87b9c15999cb07730caf9657a71b96d0c (diff) | |
download | ranger-8e02d5887895f41e4e2cb538556f385ca9e268fe.tar.gz |
core.actions: Added wrappers for common pager/taskview methods
-rw-r--r-- | ranger/core/actions.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py index 6a8e69e4..f547b8d0 100644 --- a/ranger/core/actions.py +++ b/ranger/core/actions.py @@ -325,6 +325,24 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware): # -- Shortcuts / Wrappers # -------------------------- + def pager_move(self, narg=None, **kw): + self.ui.browser.pager.move(narg=narg, **kw) + + def taskview_move(self, narg=None, **kw): + self.ui.taskview.move(narg=narg, **kw) + + def pager_close(self): + if self.ui.pager.visible: + self.ui.close_pager() + if self.ui.browser.pager.visible: + self.ui.close_embedded_pager() + + def taskview_open(self): + self.ui.open_taskview() + + def taskview_close(self): + self.ui.close_taskview() + def execute_command(self, cmd, **kw): return self.run(cmd, **kw) |