about summary refs log tree commit diff stats
path: root/TODO
Commit message (Expand)AuthorAgeFilesLines
...
* typohut2010-01-181-1/+1
* stuffhut2010-01-181-0/+1
* actions: bookmark old dir in ` when using :cdhut2010-01-181-1/+1
* fsobject: recognize capital letter file extensionshut2010-01-181-1/+2
* TODO: added entrieshut2010-01-171-0/+5
* just noticed that TODO entry #28 has been done alreadyhut2010-01-141-1/+1
* main: allow to set flags/mode for directly started fileshut2010-01-141-1/+1
* browserview: hide certain bookmarks in the listhut2010-01-131-1/+1
* todo: added #37hut2010-01-131-0/+1
* todo: added #36hut2010-01-121-0/+1
* fixed #31, cd-after-exit works even after pressing ^Chut2010-01-111-1/+1
* added a way to create symlinkshut2010-01-111-1/+1
* added chmod commandhut2010-01-101-1/+1
* todo: added more info on bug #31hut2010-01-091-1/+1
* todo: added a few thingshut2010-01-091-0/+2
* actions: fixed deletion of symlinks to directorieshut2010-01-091-1/+1
* todo: added #33hut2010-01-091-0/+1
* todo: added #32hut2010-01-081-0/+1
* directory: fixed non reloading symlinked directorieshut2010-01-071-1/+1
* loader: fixed some issues with updating/redrawinghut2010-01-061-1/+1
* updated TODOhut2010-01-061-0/+7
* color: added docstringhut2010-01-061-0/+1
* help: implemented help framework, started writinghut2010-01-051-1/+3
* random stuffhut2010-01-011-0/+1
* random cleanups/fixeshut2010-01-011-1/+1
* notify: merged into statusbar, allow to view the log in the pagerhut2010-01-011-0/+5
* bookmarks: fixed disappearing bookmarkshut2010-01-011-1/+1
* fixed crash after resizing while in the middle of a key combinationhut2010-01-011-1/+1
* fixed overflow while drawing bookmark listhut2010-01-011-0/+1
* draw a list of bookmarks when pressing ` or 'hut2010-01-011-1/+2
* added documentationhut2010-01-011-0/+6
* improved procedures of spawning processeshut2010-01-011-1/+1
* added documentation, clean uphut2009-12-311-2/+1
* different way of trimming indentation of command docstringshut2009-12-301-1/+1
* fixed spawning of shellhut2009-12-291-0/+1
* Optimized moving/resizing of windows, fixed absolute position bughut2009-12-291-1/+2
* implemented customized cycling through the directoryhut2009-12-271-1/+1
* fixes and cleanupshut2009-12-271-1/+2
* action.spawn/runcmd for terminals and du | lesshut2009-12-271-7/+5
* implemented sortinghut2009-12-241-2/+4
* added provisional filesystem operations (cp/cut/paste/delete/mkdir)hut2009-12-181-3/+8
* merged main with __init__hut2009-12-121-1/+1
* clean ups/fixeshut2009-12-121-1/+1
* Restructurationhut2009-12-101-0/+1
* random stuffhut2009-12-061-0/+13
href='#n448'>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 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658
612022e11772573cac23aabb4983'>6deb64e6 ^
c5f776ed ^
03ed2a43 ^
f8f6f7f9 ^
f8f6f7f9 ^
b071cb85 ^

f8f6f7f9 ^
c5f776ed ^
6deb64e6 ^



f8f6f7f9 ^
03ed2a43 ^
3652cb61 ^

c4e793c2 ^


03ed2a43 ^
c5f776ed ^
c4e793c2 ^

3652cb61 ^



















































































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

                                



            
                                                      
                                     
                                                                        

                                                                           
                                                                               
                                                                          
                                                                       
                                                   




       
                                                                   
 
              
 

                                 
                                                                             
                                                                     
                                                                              

                                          



                 



                                                              

 



                                               
 

                                

             
 


                                       

 
              


              

              




                                                                                   
 

                                                                                
 
 

                   
 
                                                                            
                                                                            

                                                                               
 

                                                   
 
 

                                            
 
                                                                              
                                                    
 
 

                                                 
 
                                                                                     



                                                    
 
                                                                      

 


       
                                                                      
                                                                             

                                                                            



















































































                                                                
Guidelines for Code Modification
================================

Coding Style
------------

* Use syntax compatible with Python `2.6+` and `3.1+`.
* Use docstrings with `pydoc` in mind
* Follow the PEP8 style guide: https://www.python.org/dev/peps/pep-0008/
* Always run `make test` before submitting a new PR. `pylint`, `flake8` and
  `pytest` needs to be installed.
* When breaking backward compatibility with old configuration files or plugins,
  please include a temporary workaround code that provides a compatibility
  layer and mark it with a comment that includes the word `COMPAT`. For
  examples, grep the code for the word `COMPAT`. :)


Patches
-------

Send patches, created with `git format-patch`, to the email address

    hut@hut.pm

or open a pull request on GitHub.

Please use PGP-encryption for security-relevand patches or messages. The UIDs
of my key are `huterich <hut@lavabit.com>` and `hut <hut@hut.pm>`, my
fingerprint is `1E9B 36EC 051F F6F7 FFC9 69A7 F08C E1E2 00FB 5CDF` and my full
pubkey is at the very bottom of this file.


Version Numbering
-----------------

Three numbers, `A.B.C`, where
* `A` changes on a rewrite
* `B` changes when major configuration incompatibilities occur
* `C` changes with each release


Starting Points
---------------

Good places to read about ranger internals are:

* `ranger/core/actions.py`
* `ranger/container/fsobject.py`

About the UI:

* `ranger/gui/widgets/browsercolumn.py`
* `ranger/gui/widgets/browserview.py`
* `ranger/gui/ui.py`


Common Changes
==============

Adding options
--------------

* Add a default value in `rc.conf`, along with a comment that describes the option.
* Add the option to the `ALLOWED_SETTINGS` dictionary in the file
  `ranger/container/settings.py` in alphabetical order.
* Add an entry in the man page by editing `doc/ranger.pod`, then rebuild the man
  page by running `make man` in the ranger root directory

The setting is now accessible with `self.settings.my_option`, assuming self is a
subclass of `ranger.core.shared.SettingsAware`.


Adding colorschemes
-------------------

* Copy `ranger/colorschemes/default.py` to `ranger/colorschemes/myscheme.py`
  and modify it according to your needs. Alternatively, create a subclass of
  `ranger.colorschemes.default.Default` and override the `use` method, as it is
  done in the `Jungle` colorscheme.

* Add this line to your `~/.config/ranger/rc.conf`:
  `set colorscheme myscheme`


Change which programs start which file types
--------------------------------------------

Edit the configuration file `~/.config/ranger/rifle.conf`. The default one can
be obtained by running `ranger --copy-config rifle`.


Change which file extensions have which mime type
-------------------------------------------------

Modify `ranger/data/mime.types`. You may also add your own entries to `~/.mime.types`


Change which files are previewed in the auto preview
----------------------------------------------------

In `ranger/container/file.py`, change the constant `PREVIEW_BLACKLIST`


PGP key
=======

You may wish to send the author (`hut@hut.pm`) PGP-encrypted mails for
security-relevant messages. This is the authors key. Save everything from the
`BEGIN PGP PUBLIC KEY BLOCK` up until the `END PGP PUBLIC KEY BLOCK` message
into a file and import it with `gpg --import <filename>`.

```
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2

mQINBEyOeTcBEACwCWkaA9XTE+DtjaCj2mm1EXslelop0JQco+j/KC5haPsYJ0G3
6lH/UpoXNfYw6B84QxILjodK/uKMk5+1RFS2YX/HoypMOobQLV9LHqo4TvRNmwWA
u8K446nSE9CDx5yvWYkvj1HucV1GrKqNeDOPcbThRVOPasnwZwf5nmLaYWjn780t
nhiWP8OR75/EceyJM2cryASrqgfWRKZoLLioRd67qUxi8zVG9nZIwxIx2OgWvW30
VMsiMvHR6faSOFxBXecag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