diff options
author | hut <hut@lavabit.com> | 2011-08-03 20:19:33 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2011-08-03 20:19:33 +0200 |
commit | ad7add321b2d9f6dd499c9511eda5dc865a11252 (patch) | |
tree | bf4649035588a7f5bdfd0ead71d668e07bc70998 | |
parent | c6c46e2ff77dee8df2aafb5c3585de9cfad0aabd (diff) | |
download | ranger-ad7add321b2d9f6dd499c9511eda5dc865a11252.tar.gz |
defaults/keys.py: added sorting by ctime
-rw-r--r-- | ranger/defaults/keys.py | 1 | ||||
-rw-r--r-- | ranger/fsobject/directory.py | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/ranger/defaults/keys.py b/ranger/defaults/keys.py index 8448e6ad..fef678c1 100644 --- a/ranger/defaults/keys.py +++ b/ranger/defaults/keys.py @@ -219,6 +219,7 @@ sort_dict = { 'b': 'basename', 'n': 'natural', 'm': 'mtime', + 'c': 'ctime', 't': 'type', } diff --git a/ranger/fsobject/directory.py b/ranger/fsobject/directory.py index 7b8a7563..e0623e23 100644 --- a/ranger/fsobject/directory.py +++ b/ranger/fsobject/directory.py @@ -87,6 +87,7 @@ class Directory(FileSystemObject, Accumulator, Loadable, SettingsAware): 'natural': sort_naturally, 'size': lambda path: -path.size, 'mtime': lambda path: -(path.stat and path.stat.st_mtime or 1), + 'ctime': lambda path: -(path.stat and path.stat.st_ctime or 1), 'type': lambda path: path.mimetype or '', } |