summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--INSTALL23
-rw-r--r--README92
-rwxr-xr-xranger.py7
3 files changed, 46 insertions, 76 deletions
diff --git a/INSTALL b/INSTALL
deleted file mode 100644
index 8ba89921..00000000
--- a/INSTALL
+++ /dev/null
@@ -1,23 +0,0 @@
-Installing
-==========
-
-Use the package manager of your operating system to install ranger.
-
-To install ranger manually, use either:
-sudo ./setup.py install --optimize=1 --record=install_log.txt
-
-or for short:
-sudo make install
-
-
-Uninstalling
-============
-
-Again, use your package manager to uninstall ranger.  No other way for
-automatically removing ranger is supported!
-
-However, if you installed ranger with the command above, all installed files
-have been recorded to "install_log.txt".  This information can be used to remove
-ranger by hand, e.g.:
-
-cat install_log.txt | sed s/\^/\\// | xargs -d "\n" sudo rm --
diff --git a/README b/README
index e48edeb8..57fce508 100644
--- a/README
+++ b/README
@@ -1,58 +1,27 @@
-Ranger v.1.5.0
+ranger v.1.5.0
 ==============
+ranger is a file manager with VI key bindings.  It provides a minimalistic yet
+nice curses interface with a view on the directory hierarchy.  The secondary
+task of ranger is to psychically guess which program you want to use for
+opening particular files.
 
-Ranger is a free console file manager that gives you greater flexibility
-and a good overview of your files without having to leave your *nix console.
-It visualizes the directory tree in two dimensions: the directory hierarchy
-on one, lists of files on the other, with a preview to the right so you know
-where you'll be going.
-
-The default keys are similar to those of Vim, Emacs and Midnight Commander,
-though Ranger is easily controllable with just the arrow keys or the mouse.
-
-The program is written in Python (2.6 or 3.1) and uses curses for the
-text-based user interface.
-
-
-Getting Started
----------------
-
-Ranger can be started without installing:  Just run ranger.py.  If you want to
-install it anyway, the INSTALL file contains instructions.
-
-After starting ranger, you can use the Arrow Keys (or hjkl) to navigate, Enter
-to open a file or type Q to quit.  The column on the right shows a preview of
-the current file.  The second from the right is the main column and the others
-show parent directories.
-
-The manual page of ranger contains a documentation of rangers functions,
-keybindings, commands and options.  You can access it by typing "?" in ranger,
-running "man ranger" or view it online.
-
-An easy way to customize ranger is running "ranger --copy-config=all"
-and editing the new files in ~/.config/ranger/.
+This file describes ranger and how to get it to run.  For instructions on the
+usage, please read the man page.
 
 
 About
 -----
+* Authors:     Check the copyright notices in each source file
+* License:     GNU General Public License Version 3
 
-* Authors:         Check the copyright notices in each source file
-* Website:         http://ranger.nongnu.org/
-* License:         GNU General Public License Version 3
-
-* Download URL of the newest stable version:
-http://ranger.nongnu.org/ranger-stable.tar.gz
-
-* Git Clone URL:
-git clone http://git.sv.gnu.org/r/ranger.git
-
-* Bug report:
-https://savannah.nongnu.org/bugs/?group=ranger&func=additem
+* Website:     http://ranger.nongnu.org/
+* Download:    http://ranger.nongnu.org/ranger-stable.tar.gz
+* GIT Clone:   http://git.sv.gnu.org/r/ranger.git
+* Bug reports: https://savannah.nongnu.org/bugs/?group=ranger&func=additem
 
 
 Design Goals
 ------------
-
 * An easily maintainable file manager in a high level language
 * A quick way to switch directories and browse the file system
 * Keep it small but useful, do one thing and do it well
@@ -61,7 +30,7 @@ Design Goals
 
 Features
 --------
-
+* UTF-8 Support  (if your python copy supports it)
 * Multi-column display (Miller Columns)
 * Preview of the selected file/directory
 * Common file operations (create/chmod/copy/delete/...)
@@ -74,9 +43,7 @@ Features
 
 Dependencies
 ------------
-
-* Python 2.6, 2.7 or Python 3.1 with the curses module
-(Later versions might work too, but 2.5 definitely won't.)
+* Python (tested with version 2.6, 2.7, 3.1, 3.2) with the curses module
 
 Optional:
 * The "file" program
@@ -88,3 +55,32 @@ For scope.sh: (enhanced file previews)
 * highlight for syntax highlighting of code
 * atool for previews of archives
 * lynx or elinks for previews of html pages
+
+
+Installing
+----------
+
+Use the package manager of your operating system to install ranger.
+
+To install ranger manually:
+    sudo make install
+
+This translates roughly to:
+    sudo ./setup.py install --optimize=1 --record=install_log.txt
+
+This also saves a list of all installed files to install_log.txt, which you can
+use to uninstall ranger.
+
+
+Getting Started
+---------------
+ranger can be started without installing:  Just run ranger.py.  If you want to
+install it anyway, the INSTALL file contains instructions.
+
+After starting ranger, you can use the Arrow Keys (or hjkl) to navigate, Enter
+to open a file or type Q to quit.  The column on the right shows a preview of
+the current file.  The second from the right is the main column and the others
+show parent directories.
+
+An easy way to customize ranger is running "ranger --copy-config=all"
+and editing the new files in ~/.config/ranger/.
diff --git a/ranger.py b/ranger.py
index 2a9c68a0..29f0a636 100755
--- a/ranger.py
+++ b/ranger.py
@@ -1,5 +1,5 @@
 #!/usr/bin/python -O
-# -*- coding: utf-8 -*-
+# ranger - a vim-inspired file manager for the console  (coding: utf-8)
 # Copyright (C) 2009, 2010  Roman Zimbelmann <romanz@lavabit.com>
 #
 # This program is free software: you can redistribute it and/or modify
@@ -33,7 +33,7 @@ if [ "$(cat -- "$tempfile")" != "$(echo -n `pwd`)" ]; then
 	rm -f -- "$tempfile"
 fi
 return $returnvalue
-"""
+""" and None
 
 import sys
 from os.path import exists, abspath
@@ -43,9 +43,6 @@ from os.path import exists, abspath
 argv = sys.argv[1:sys.argv.index('--')] if '--' in sys.argv else sys.argv[1:]
 sys.dont_write_bytecode = '-c' in argv or '--clean' in argv
 
-# Set the actual docstring
-__doc__ = """Ranger - file browser for the unix terminal"""
-
 # Don't import ./ranger when running an installed binary at /usr/.../ranger
 if __file__[:4] == '/usr' and exists('ranger') and abspath('.') in sys.path:
 	sys.path.remove(abspath('.'))
9d002de'>^
672e3e50 ^
4690ce81 ^
9570363a ^
672e3e50 ^






a654e4ec ^


4690ce81 ^
672e3e50 ^





4690ce81 ^
672e3e50 ^




4690ce81 ^
672e3e50 ^




a654e4ec ^

672e3e50 ^

dbe12410 ^
d5d908dd ^
4690ce81 ^

0e4a335e ^


4690ce81 ^
0e4a335e ^
65361948 ^
4690ce81 ^
672e3e50 ^
672e3e50 ^

76755b28 ^
672e3e50 ^
65361948 ^
4690ce81 ^
672e3e50 ^

65361948 ^


672e3e50 ^
672e3e50 ^

4690ce81 ^
a654e4ec ^
4690ce81 ^
672e3e50 ^






4690ce81 ^
672e3e50 ^
c5ffb6e1 ^
a654e4ec ^
4690ce81 ^
672e3e50 ^
65361948 ^
672e3e50 ^


672e3e50 ^

65361948 ^

4690ce81 ^


76755b28 ^
65361948 ^



672e3e50 ^
a654e4ec ^
4690ce81 ^
672e3e50 ^
76755b28 ^
672e3e50 ^
0e4a335e ^

4690ce81 ^
db1f56c8 ^
d009e158 ^
4690ce81 ^
d009e158 ^


a654e4ec ^
4690ce81 ^
d009e158 ^

0e4a335e ^
d009e158 ^
0e4a335e ^

c4699bc3 ^
672e3e50 ^
c4699bc3 ^
65361948 ^
672e3e50 ^
a654e4ec ^
672e3e50 ^
a654e4ec ^
672e3e50 ^





65361948 ^


a654e4ec ^
65361948 ^


672e3e50 ^


76755b28 ^

4690ce81 ^


90560d71 ^

4690ce81 ^

90560d71 ^

76755b28 ^


4690ce81 ^

65361948 ^
672e3e50 ^
a654e4ec ^
65361948 ^
76755b28 ^

db1f56c8 ^
76755b28 ^
672e3e50 ^
65361948 ^

672e3e50 ^




4690ce81 ^
9570363a ^

672e3e50 ^

a654e4ec ^
672e3e50 ^
a654e4ec ^
672e3e50 ^


4690ce81 ^
d009e158 ^
9570363a ^

672e3e50 ^
4690ce81 ^
9570363a ^

672e3e50 ^

a654e4ec ^
672e3e50 ^
a654e4ec ^
672e3e50 ^
a654e4ec ^
672e3e50 ^
a654e4ec ^
672e3e50 ^
a654e4ec ^
672e3e50 ^
76755b28 ^
4690ce81 ^
d009e158 ^
65361948 ^

9570363a ^
65361948 ^
672e3e50 ^
4690ce81 ^
65361948 ^
9570363a ^
672e3e50 ^



4690ce81 ^
d009e158 ^
672e3e50 ^
4690ce81 ^
9570363a ^
672e3e50 ^


4bbd3ded ^

672e3e50 ^
90560d71 ^

672e3e50 ^


672e3e50 ^
4690ce81 ^
9570363a ^
672e3e50 ^











4690ce81 ^
9570363a ^

672e3e50 ^



76755b28 ^




4690ce81 ^
d009e158 ^
76755b28 ^


4690ce81 ^
76755b28 ^








4690ce81 ^
76755b28 ^


65361948 ^


4690ce81 ^
d009e158 ^
65361948 ^

4690ce81 ^
9570363a ^
65361948 ^



a654e4ec ^
4690ce81 ^


65361948 ^


65361948 ^

a654e4ec ^

4690ce81 ^
65361948 ^




672e3e50 ^



4690ce81 ^
d009e158 ^
9570363a ^
672e3e50 ^
65361948 ^
672e3e50 ^
4690ce81 ^
9570363a ^
672e3e50 ^







76755b28 ^

4690ce81 ^

a654e4ec ^
9542bb11 ^

4690ce81 ^

9542bb11 ^

76755b28 ^


4690ce81 ^
a654e4ec ^


4690ce81 ^
65361948 ^
672e3e50 ^


65361948 ^









76755b28 ^

4690ce81 ^

a654e4ec ^
9542bb11 ^

4690ce81 ^

9542bb11 ^

76755b28 ^


4690ce81 ^
a654e4ec ^

4690ce81 ^
65361948 ^









76755b28 ^

4690ce81 ^

a654e4ec ^
9542bb11 ^

4690ce81 ^

9542bb11 ^

76755b28 ^


4690ce81 ^
a654e4ec ^

4690ce81 ^
65361948 ^









76755b28 ^

4690ce81 ^
76755b28 ^

65361948 ^
4690ce81 ^
a654e4ec ^
65361948 ^

672e3e50 ^

90560d71 ^




4690ce81 ^
d009e158 ^
0e4a335e ^



4690ce81 ^
90560d71 ^
4690ce81 ^
0e4a335e ^

90560d71 ^






4690ce81 ^

76755b28 ^
90560d71 ^


4690ce81 ^
90560d71 ^




a654e4ec ^
90560d71 ^





76755b28 ^

4690ce81 ^

a654e4ec ^
90560d71 ^

4690ce81 ^

90560d71 ^

4690ce81 ^

90560d71 ^

76755b28 ^


4690ce81 ^
a654e4ec ^

4690ce81 ^
90560d71 ^





d009e158 ^



4690ce81 ^
d009e158 ^
4690ce81 ^
d009e158 ^




4690ce81 ^

d009e158 ^





672e3e50 ^


a654e4ec ^
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
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572