From ad7add321b2d9f6dd499c9511eda5dc865a11252 Mon Sep 17 00:00:00 2001 From: hut Date: Wed, 3 Aug 2011 20:19:33 +0200 Subject: defaults/keys.py: added sorting by ctime --- ranger/defaults/keys.py | 1 + ranger/fsobject/directory.py | 1 + 2 files changed, 2 insertions(+) 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 '', } -- cgit 1.4.1-2-gfad0