diff options
author | hut <hut@lavabit.com> | 2011-10-17 17:22:13 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2011-10-17 17:22:13 +0200 |
commit | cfb9044407481344136f8fa4e3700fe3df7efa4c (patch) | |
tree | 79ee1341bb09405cffee409d7992f4ba061b015e /ranger | |
parent | 9608a3482f690f91dc960afe79eb4d218ac175c6 (diff) | |
download | ranger-cfb9044407481344136f8fa4e3700fe3df7efa4c.tar.gz |
core.actions: added fm.select_file()
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/core/actions.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py index 41176776..20b910da 100644 --- a/ranger/core/actions.py +++ b/ranger/core/actions.py @@ -331,6 +331,11 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware): except IndexError: pass + def select_file(self, path): + path = path.strip() + if self.enter_dir(os.path.dirname(path)): + self.env.cwd.move_to_obj(path) + def history_go(self, relative): """Move back and forth in the history""" self.env.history_go(int(relative)) |