summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-01-01 16:40:05 +0100
committerhut <hut@lavabit.com>2010-01-01 16:40:05 +0100
commit28e13b122c9e695584633a6d4fcaa2006d415357 (patch)
tree9e2c0bd4f456766cd90c6dc3a33205b599da3181 /ranger
parent08f21ae5ad8d92d3f1819a95db3e5bdce603f4da (diff)
downloadranger-28e13b122c9e695584633a6d4fcaa2006d415357.tar.gz
sort bookmark list
Diffstat (limited to 'ranger')
-rw-r--r--ranger/gui/widgets/browserview.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ranger/gui/widgets/browserview.py b/ranger/gui/widgets/browserview.py
index 488b7cfd..c638f15d 100644
--- a/ranger/gui/widgets/browserview.py
+++ b/ranger/gui/widgets/browserview.py
@@ -57,8 +57,9 @@ class BrowserView(Widget, DisplayableContainer):
 	def _draw_bookmarks(self):
 		self.need_clear = True
 
+		sorted_bookmarks = sorted(self.fm.bookmarks)
 		def generator():
-			return zip(range(self.hei), self.fm.bookmarks)
+			return zip(range(self.hei), sorted_bookmarks)
 
 		maxlen = max(len(item[1].path) for i, item in generator())
 		maxlen = min(maxlen + 5, self.wid)
s='alt'>
1295513f ^
94c5d83e ^
e9e4b4ff ^







94c5d83e ^







76f8d548 ^



94c5d83e ^


423ce88a ^

94c5d83e ^








e9e4b4ff ^

50a0cb1c ^
e9e4b4ff ^

90416a69 ^
e9e4b4ff ^
fde932f2 ^
75682d43 ^
e9e4b4ff ^

2c5ea01d ^
e9e4b4ff ^




e9e4b4ff ^

2c5ea01d ^
e9e4b4ff ^
0c2c782d ^

30ae2137 ^
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92