diff options
-rw-r--r-- | ranger/core/actions.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py index 0596e1a6..26223b5f 100644 --- a/ranger/core/actions.py +++ b/ranger/core/actions.py @@ -155,12 +155,16 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware): """ Change what is displayed as a filename. - "mode" may be: "filename", "permissions", "title" - "directory" specifies the directory. None means the current directory - "depth" specifies the recursion depth + - "mode" may be: "filename", "permissions", "title", the mode "normal" + is mapped to "filename". + - "directory" specifies the directory. None means the current directory + - "depth" specifies the recursion depth """ - assert mode in ("filename", "permissions", "title") + assert mode in ("normal", "filename", "permissions", "title") + + if mode == "normal": + mode = "filename" if directory is None: directory = self.fm.thisdir |