about summary refs log tree commit diff stats
path: root/038scheduler.cc
Commit message (Expand)AuthorAgeFilesLines
* 1620Kartik K. Agaram2015-06-221-0/+1
* 1585Kartik K. Agaram2015-06-171-1/+1
* 1518 - still horribly brokenKartik K. Agaram2015-06-011-0/+3
* 1483 - *really* check color screens in scenariosKartik K. Agaram2015-05-271-2/+2
* 1414 - traces now robust to new recipes/typesKartik K. Agaram2015-05-211-9/+9
* 1391 - avoid unsigned integersKartik K. Agaram2015-05-171-26/+26
* 1383 - warn on unknown typeKartik K. Agaram2015-05-161-0/+4
* 1364 - trace call-stack when switching routinesKartik K. Agaram2015-05-131-2/+12
* 1363 - rename 'integer' to 'number'Kartik K. Agaram2015-05-131-23/+24
* 1361Kartik K. Agaram2015-05-121-2/+2
* 1357 - temporarily revert floating-point supportKartik K. Agaram2015-05-121-2/+2
* 1356 - snapshot #2: floating point supportKartik K. Agaram2015-05-121-2/+2
* 1321 - *finally*, fixed the chessboard sluggishnessKartik K. Agaram2015-05-101-0/+17
* 1318 - 1317 actually works nowKartik K. Agaram2015-05-101-7/+38
* 1317 - all tests passingKartik K. Agaram2015-05-091-6/+34
* 1315 - chessboard now working interactivelyKartik K. Agaram2015-05-091-0/+6
* 1308Kartik K. Agaram2015-05-081-0/+13
* 1301 - back to the chessboardKartik K. Agaram2015-05-071-0/+17
* 1299 - stop using [] in any vectorKartik K. Agaram2015-05-071-8/+8
* 1298 - better ingredient/product handlingKartik K. Agaram2015-05-071-13/+12
* 1296 - roll back 1295Kartik K. Agaram2015-05-071-31/+3
* 1295 - broken snapshotKartik K. Agaram2015-05-071-3/+31
* 1290Kartik K. Agaram2015-05-061-5/+4
* 1276 - make C++ version the defaultKartik K. Agaram2015-05-051-0/+244
84'>84 85


















                                                                          
                      

                                                                       
                                                            


















                                                            
                           

                              
                              



                                                                      


                                                                              








                                                                 
                                                                       





















                                                                      
Guidelines on Code Modification
===============================

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

* Use syntax compatible to both python 2.6 and 3.1.
* Use docstrings with pydoc in mind
* Follow the style guide for python code:
    http://www.python.org/dev/peps/pep-0008/
* Although this guide suggests otherwise, tabs are used for indentation
    of code and docstrings.  In other documents (readme, etc), use spaces.


Patches
-------

Send patches, created with "git format-patch", to the email adress

    romanz@lavabit.com

If you plan to do major changes, or many changes over time, I encourage
you to create a fork on GitHub, Gitorious or any other site.


Common Changes
--------------

* Change which files are previewed in the auto preview:
In ranger/gui/widget/browsercolumn.py
the constant PREVIEW_BLACKLIST

* Adding options:
In ranger/defaults/options.py
add the default value, like: my_option = True
In ranger/shared/settings.py
add the name of your option to the constant ALLOWED_SETTINGS

The setting is now accessible at self.settings.my_option,
assuming <self> is a "SettingsAware" object.

* Change commands:
ranger/defaults/commands.py

* Create aliases for commands:
In ranger/defaults/commands.py
at the bottom, write something like: alias(exit=quit)

* Adding colorschemes:
Copy ranger/colorschemes/default.py to ranger/colorschemes/myscheme.py
and modify it according to your needs.  Alternatively, mimic the jungle
colorscheme.  It subclasses the default scheme and just modifies a few things.
In ranger/defaults/options.py (or ~/.ranger/options.py), change
    colorscheme = colorschemes.default
to: colorscheme = colorschemes.myscheme

* Change which files are considered to be "hidden":
In ranger/defaults/options.py
change the hidden_filter regular expression.

* Change the key map:
Modify ranger/defaults/keys.py.  This should be self-explanatory.
Check out ranger/core/actions.py for the most common actions, of course
you can also use your own functions.

* Change the file type => application associations:
In ranger/defaults/apps.py
modify the method app_default.
The variable "f" is a filesystem-object with attributes like mimetype,
extension, etc.  For a full list, check ranger/fsobject/fsobject.py

* Change the file extension => mime type associations:
Modify ranger/data/mime.types
and run ranger/data/generate.py to compile it.


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

X.Y.Z, where:

* X: Milestones
* Y: Stable versions
* Z: Experimental versions