summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-01-01 23:45:12 +0100
committerhut <hut@lavabit.com>2010-01-01 23:45:12 +0100
commit11ee0f3e0d9177731f85287cac3e67290b1bf127 (patch)
treee5fdfce129d7a02e2c636cf5fd7a8f016063290b
parente19f991553b17e9eb07124952682cd11a1ab1303 (diff)
downloadranger-11ee0f3e0d9177731f85287cac3e67290b1bf127.tar.gz
actions: reversed default cylce order for search("size")
If I cycle through the files by the size, I usually
care about large files, not small files
-rw-r--r--ranger/actions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/actions.py b/ranger/actions.py
index 9b877e71..d35a2c48 100644
--- a/ranger/actions.py
+++ b/ranger/actions.py
@@ -43,7 +43,7 @@ class Actions(EnvironmentAware, SettingsAware):
 			if original_order is not None:
 				lst = list(pwd.files)
 				if order == 'size':
-					fnc = lambda item: item.size
+					fnc = lambda item: -item.size
 				elif order == 'mimetype':
 					fnc = lambda item: item.mimetype
 				elif order == 'ctime':
/ tests in CI' href='/akkartik/mu/commit/.travis.yml?h=hlt&id=52ea31027b500c1e5d4281e9b41b71fd184d8be9'>52ea3102 ^
a088d5c3 ^




1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41