about summary refs log tree commit diff stats
path: root/ranger/core/actions.py
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2011-09-29 23:17:36 +0200
committerhut <hut@lavabit.com>2011-09-29 23:19:27 +0200
commit5e41c8479cfba986f6dad0e68aed3c1d7b51d3ae (patch)
treeda3a207377d29914511ce2b8f2d6b3c1cc94c5a5 /ranger/core/actions.py
parent2df0ad57d31b348acd2821d752aad9a84929314c (diff)
downloadranger-5e41c8479cfba986f6dad0e68aed3c1d7b51d3ae.tar.gz
core.actions: fixed cycling by atime and mtime
Diffstat (limited to 'ranger/core/actions.py')
-rw-r--r--ranger/core/actions.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index b61e514b..96e23189 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -426,6 +426,10 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware):
 					fnc = lambda item: item.mimetype
 				elif order == 'ctime':
 					fnc = lambda item: -int(item.stat and item.stat.st_ctime)
+				elif order == 'atime':
+					fnc = lambda item: -int(item.stat and item.stat.st_atime)
+				elif order == 'mtime':
+					fnc = lambda item: -int(item.stat and item.stat.st_mtime)
 				lst.sort(key=fnc)
 				cwd.set_cycle_list(lst)
 				return cwd.cycle(forward=None)