diff options
-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?| |