summary refs log tree commit diff stats
path: root/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* Makefile, setup.py: Fixed `make doc`hut2010-09-111-1/+0
|
* Makefile: simplificationhut2010-06-241-1/+1
|
* make doc: minor cleanup and fixhut2010-06-211-2/+2
|
* commited pydocs are author agnosticshpelda2010-06-211-1/+2
|
* INSTALL: changed logname from uninstall_info to install_log.txthut2010-06-181-1/+1
|
* Removed built-in support for uninstalling.hut2010-06-181-5/+4
| | | | | | Since distutils (setup.py) is used and distutils doesn't support uninstalling, I shouldn't implement my own half-assed, potentially dangerous uninstall script either.
* Rewrote INSTALL and "make (un)install"hut2010-06-181-2/+12
|
* Makefile: removed functions which are now handled by setup.pyhut2010-06-181-51/+4
|
* make snapshot: prefix ranger-$VERSION/ in archiveshut2010-06-141-1/+1
|
* make install: Fixed script for finding PYTHON_SITE_DESThut2010-06-141-2/+6
|
* Makefile: dynamically get the version numberhut2010-06-091-1/+1
|
* simplified all_tests.py, moved to test/hut2010-06-071-2/+2
|
* make bm, make test: make use of PYTHON variablehut2010-05-251-2/+2
|
* make: replace literal python with $(PYTHON)hut2010-05-171-1/+1
|
* make: added DESTDIR to Makefilehut2010-05-171-9/+9
| | | | Patch by David Woodfall
* Makefile: updatedhut2010-05-101-9/+12
|
* Added license header to a few fileshut2010-05-041-0/+15
|
* Makefile: added `make bm` to run all benchmarks BMCOUNT timeshut2010-05-031-2/+5
|
* Makefile: cleaned up, added automatic uninstallhut2010-05-031-58/+57
|
* make clean: fixedhut2010-04-071-1/+1
|
* Makefile: improvementshut2010-04-031-2/+2
|
* clean uphut2010-03-311-12/+0
|
* make test: reduce verbosityhut2010-03-261-1/+1
|
* fixed make cleanhut2010-03-251-1/+1
|
* make clean: safer method of cleaninghut2010-03-221-1/+1
|
* make compile: create pyc files toohut2010-03-221-1/+2
|
* make test: don't use "clean" before "test"hut2010-03-211-1/+1
|
* make install: chmod after copyinghut2010-03-141-0/+2
|
* incremented verison number v1.0.4hut2010-03-121-1/+1
|
* make install: catch an exceptionhut2010-03-121-0/+4
|
* make push: removed "hut" repohut2010-03-121-1/+0
|
* misc changes, make installhut2010-03-121-7/+34
|
* make snapshot: changed the format of the filenamehut2010-03-081-2/+3
|
* make minimal_snapshot: snapshot with only neccessary fileshut2010-03-081-1/+13
|
* make clean: fixedhut2010-02-281-2/+2
|
* Makefile: added make info + some improvementshut2010-02-271-7/+22
|
* added make snapshothut2010-02-251-0/+4
|
* make clean: delete pyo files as well.hut2010-02-251-1/+1
|
* added Makefilehut2010-02-251-0/+39
ckground-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
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.
* Test the code with unit tests where it makes sense


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.


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

Good places to read about ranger internals are:
ranger/core/actions.py
ranger/core/environment.py
ranger/fsobject/fsobject.py

About the UI:
ranger/gui/widgets/browsercolumn.py
ranger/gui/widgets/browserview.py
ranger/gui/defaultui.py


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.

* Changing commands, adding aliases:
ranger/defaults/commands.py
or ~/.config/ranger/commands.py

* 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 ~/.config/ranger/options.py), change
    colorscheme = 'default'
to: colorscheme = '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


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

X.Y.Z, where:

* X: Major version, milestone
* Y: Minor version, even number => stable version
* Z: Revision, may be omitted if zero