summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/defaults/options.py53
1 files changed, 35 insertions, 18 deletions
diff --git a/ranger/defaults/options.py b/ranger/defaults/options.py
index 34e0c37e..e73ba1d7 100644
--- a/ranger/defaults/options.py
+++ b/ranger/defaults/options.py
@@ -15,22 +15,33 @@
 
 """
 This is the default configuration file of ranger.
-If you do any changes, make sure the import-line stays
-intact and the type of the value stays the same.
+
+There are two ways of customizing ranger.  The first and recommended
+method is creating a file at ~/.ranger/options.py and adding
+those lines you want to change.  It might look like this:
+
+from ranger.api.options import *
+preview_files = False  # I hate previews!
+max_history_size = 2000  # I can afford it.
+
+The other way is directly editing this file.  This will make upgrades
+of ranger more complicated though.
+
+Whatever you do, make sure the import-line stays intact and the type
+of the values stay the same.
 """
 
 from ranger.api.options import *
 
+# Which files are hidden if show_hidden is False?
+hidden_filter = regexp(
+	r'lost\+found|^\.|~$|\.(:?pyc|pyo|bak|swp)$')
+show_hidden = False
+
 # Which colorscheme to use?  These colorschemes are available by default:
 # default, default88, texas, jungle, snow
 # Snow is monochrome, texas and default88 use 88 colors.
-colorscheme = colorschemes.default
-
-max_history_size = 20
-scroll_offset = 2
-
-# Flush the input after each key hit?  (Noticable when ranger lags)
-flushinput = True
+colorscheme = colorschemes.ice
 
 # Preview files on the rightmost column?
 # And collapse the last column if there is nothing to preview?
@@ -38,15 +49,25 @@ preview_files = True
 max_filesize_for_preview = 300 * 1024  # 300kb
 collapse_preview = True
 
+# Specify a title for the window? Some terminals don't support this,
+# so it's turned off by default.
+update_title = False
+
+# How many directory-changes or console-commands should be kept in history?
+max_history_size = 20
+
+# Try to keep so much space between the top/bottom border when scrolling:
+scroll_offset = 2
+
+# Flush the input after each key hit?  (Noticable when ranger lags)
+flushinput = True
+
 # Save bookmarks (used with mX and `X) instantly?
-# this helps to synchronize bookmarks between multiple ranger
-# instances but leads to slight performance loss.
+# This helps to synchronize bookmarks between multiple ranger
+# instances but leads to *slight* performance loss.
 # When false, bookmarks are saved when ranger is exited.
 autosave_bookmarks = True
 
-# Specify a title for the window? Some terminals don't support this:
-update_title = False
-
 # Makes sense for screen readers:
 show_cursor = False
 
@@ -55,7 +76,3 @@ sort = 'basename'
 reverse = False
 directories_first = True
 
-# Which files are hidden if show_hidden is False?
-hidden_filter = regexp(
-	r'lost\+found|^\.|~$|\.(:?pyc|pyo|bak|swp)$')
-show_hidden = False
r Kartik K. Agaram <vc@akkartik.com> 2014-08-21 20:32:27 -0700 64' href='/akkartik/mu/commit/mu.arc?h=main&id=6f9bf3a063470d02cfaff0601281e39ee315e6a3'>6f9bf3a0 ^
7b6e5972 ^

2b15484f ^
b1637649 ^
c72d8310 ^

409e66cc ^
c72d8310 ^



e74ff413
8a93b211 ^

73978d2f ^
8a93b211 ^

b20165a8 ^
8a93b211 ^

73978d2f ^
baf61345 ^


8a93b211 ^
0c57bf0a ^
6f9bf3a0 ^
baf61345 ^
0c57bf0a ^

980e1bf3 ^
b9fef047 ^
dbe8d436 ^

b9fef047 ^








c7dc4ba9 ^
980e1bf3 ^


b9fef047 ^

980e1bf3 ^
c8a8fb6e ^
c7dc4ba9 ^
0c57bf0a ^


230415b4 ^
980e1bf3 ^
0c57bf0a ^
980e1bf3 ^
0c57bf0a ^
b9fef047 ^
b20165a8 ^
0a8858db ^


baf61345 ^
0a8858db ^

baf61345 ^



c41a0c27 ^
ff8b3afd ^
d90d6629 ^
b83c85c8 ^
d90d6629 ^

ff8b3afd ^
ff8b3afd ^
8ccc6ebf ^
ff8b3afd ^





d90d6629 ^














92819aa5 ^

d90d6629 ^























2ee76bda ^

d90d6629 ^


0cd4bfc8 ^
d90d6629 ^



0cd4bfc8 ^
b83c85c8 ^

d90d6629 ^

f9dd51f6 ^
baf61345 ^

6da81a3e ^












6a2edbe8 ^

d90d6629 ^


230415b4 ^




d90d6629 ^



0c57bf0a ^
d90d6629 ^

d90d6629 ^


817b7e0b ^
39dd5cd4 ^
d90d6629 ^


d90d6629 ^


ff8b3afd ^

aa0ce16f ^
e74ff413
230415b4 ^


















6215fec2 ^








b794da7f ^



6215fec2 ^

























b794da7f ^



b90a10d2 ^
6215fec2 ^


b794da7f ^
b90a10d2 ^
b794da7f ^



b90a10d2 ^
b794da7f ^



b90a10d2 ^
6215fec2 ^























1f18a4fd ^
c72d8310 ^
f37b3ab4 ^
c72d8310 ^
e74ff413
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
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332