diff options
author | hut <hut@lavabit.com> | 2010-01-06 01:58:30 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-01-06 01:58:30 +0100 |
commit | 3868dfd0972e7cdc651860412bf728a9277e229c (patch) | |
tree | a06525fd3e4668fa30925a4ec83b331f704401f4 /ranger | |
parent | 111fd52647f141932d2fd619fa7e2de797c14f78 (diff) | |
download | ranger-3868dfd0972e7cdc651860412bf728a9277e229c.tar.gz |
actions: added reload_cwd + keybinding + help
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/actions.py | 7 | ||||
-rw-r--r-- | ranger/defaults/keys.py | 1 | ||||
-rw-r--r-- | ranger/help/movement.py | 1 |
3 files changed, 9 insertions, 0 deletions
diff --git a/ranger/actions.py b/ranger/actions.py index 7269abc4..8fc796a3 100644 --- a/ranger/actions.py +++ b/ranger/actions.py @@ -308,6 +308,13 @@ class Actions(EnvironmentAware, SettingsAware): if cf is not None: cf.force_load = True + def reload_cwd(self): + try: + cwd = self.env.pwd + except: + pass + cwd.load_content() + def set_filter(self, fltr): try: self.env.pwd.filter = fltr diff --git a/ranger/defaults/keys.py b/ranger/defaults/keys.py index 8a4cbcb8..e4e1466b 100644 --- a/ranger/defaults/keys.py +++ b/ranger/defaults/keys.py @@ -143,6 +143,7 @@ def initialize_commands(command_list): system_functions(command_list) bind('ZZ', fm.exit()) bind(ctrl('R'), fm.reset()) + bind('R', fm.reload_cwd()) bind(ctrl('C'), fm.interrupt()) bind(':', ';', fm.open_console(cmode.COMMAND)) bind('>', fm.open_console(cmode.COMMAND_QUICK)) diff --git a/ranger/help/movement.py b/ranger/help/movement.py index 761e9d75..1243afbe 100644 --- a/ranger/help/movement.py +++ b/ranger/help/movement.py @@ -49,6 +49,7 @@ These keys work like in vim: 1.2. Browser control ? view the help screen + R reload the current directory ^R clear the cache and reload the view ^L redraw the window : open the console |3?| |