summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-09-15 22:31:18 +0200
committerhut <hut@lavabit.com>2010-09-15 22:31:18 +0200
commit50e17b62cc62fb8532a88afbe4c313a7dcf1d5b8 (patch)
tree865e22a83e0bda335553e49d42ba297f1f042487
parentb5124cee669f270b016aad40ae6ddd7176fa3b9c (diff)
downloadranger-50e17b62cc62fb8532a88afbe4c313a7dcf1d5b8.tar.gz
More intuitive statusbar content
-rw-r--r--ranger/gui/widgets/statusbar.py16
1 files changed, 10 insertions, 6 deletions
diff --git a/ranger/gui/widgets/statusbar.py b/ranger/gui/widgets/statusbar.py
index 3019930b..2a92f313 100644
--- a/ranger/gui/widgets/statusbar.py
+++ b/ranger/gui/widgets/statusbar.py
@@ -224,19 +224,23 @@ class StatusBar(Widget):
 				right.add(human_readable(sum(f.size \
 					for f in target.marked_items \
 					if f.is_file), seperator=''))
-			right.add(" / " + str(len(target.marked_items)))
+			right.add("/" + str(len(target.marked_items)))
 		else:
-			right.add(human_readable(target.disk_usage, seperator=''))
-			right.add(", ", "space")
+			right.add(human_readable(target.disk_usage, seperator='') +
+					" sum, ")
 			right.add(human_readable(self.env.get_free_space( \
-					target.mount_path), seperator=''))
+					target.mount_path), seperator='') + " free")
 		right.add("  ", "space")
 
 		if target.marked_items:
 			# Indicate that there are marked files. Useful if you scroll
 			# away and don't see them anymore.
 			right.add('Mrk', base, 'marked')
-		elif max_pos > 0:
+		elif len(target.files):
+			right.add(str(target.pointer + 1) + '/'
+					+ str(len(target.files)) + '  ', base)
+			if max_pos == 0:
+				right.add('All', base, 'all')
 			if pos == 0:
 				right.add('Top', base, 'top')
 			elif pos >= max_pos:
@@ -245,7 +249,7 @@ class StatusBar(Widget):
 				right.add('{0:0>.0f}%'.format(100.0 * pos / max_pos),
 						base, 'percentage')
 		else:
-			right.add('All', base, 'all')
+			right.add('0/0  All', base, 'all')
 
 	def _print_result(self, result):
 		self.win.move(0, 0)
00007f53c5ab213869'>bc643692 ^
4b79c627 ^
bc643692 ^
33262afe ^
bc643692 ^

10ffce98 ^
4b79c627 ^


047296d8 ^


bc643692 ^
047296d8 ^










ca01193d ^
ac0e9db5 ^
50eab110 ^

7da71d03 ^




7da71d03 ^
6d2b1168 ^
35064671 ^
1a0890ba ^
35064671 ^

7da71d03 ^
827898fc ^
7da71d03 ^



286ca5a4 ^
4b79c627 ^
7da71d03 ^
7284d503 ^

286ca5a4 ^
b38e5819 ^

bc643692 ^

b38e5819 ^
bc643692 ^
33262afe ^
bc643692 ^

10ffce98 ^
b38e5819 ^





7284d503 ^

286ca5a4 ^
b38e5819 ^

bc643692 ^


b38e5819 ^
bc643692 ^
33262afe ^
bc643692 ^

10ffce98 ^
b38e5819 ^





a2d8c713 ^





bc643692 ^

a2d8c713 ^














77d5b5d6 ^
a2d8c713 ^





35064671 ^
a2d8c713 ^



e4630643 ^
a2d8c713 ^


77d5b5d6 ^










bc643692 ^
77d5b5d6 ^




















e4630643 ^
77d5b5d6 ^
e4630643 ^
77d5b5d6 ^






35064671 ^
77d5b5d6 ^


35064671 ^
77d5b5d6 ^


7284d503 ^

4b79c627 ^
ac0e9db5 ^
31401373 ^
8f1db754 ^

ac0e9db5 ^
75845d2b ^
ac0e9db5 ^
2f5f7919 ^
35064671 ^
2f5f7919 ^
827898fc ^
75845d2b ^

fca0ebbe ^
7da71d03 ^
e4630643 ^

31401373 ^
7da71d03 ^

e0584755 ^
88be3dbc ^
e0584755 ^
bc643692 ^
5497090a ^
e0584755 ^


fca0ebbe ^
e0584755 ^
fca0ebbe ^
31401373 ^
e0584755 ^

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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232