summary refs log tree commit diff stats
path: root/doc/HACKING
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2013-06-24 18:16:39 +0200
committerhut <hut@lavabit.com>2013-06-24 18:16:39 +0200
commitf61fbfae9257363979ded4688240f6a83c3f3233 (patch)
tree65a50a16047815beaae662187d18c1531078027a /doc/HACKING
parent1f795f3d7786f4b54141ce6e9e8faddfc59237b6 (diff)
downloadranger-f61fbfae9257363979ded4688240f6a83c3f3233.tar.gz
doc/HACKING: updated
Based on a patch by Niku.
Diffstat (limited to 'doc/HACKING')
-rw-r--r--doc/HACKING18
1 files changed, 8 insertions, 10 deletions
diff --git a/doc/HACKING b/doc/HACKING
index 9dc219a6..c9e458ea 100644
--- a/doc/HACKING
+++ b/doc/HACKING
@@ -27,7 +27,7 @@ Starting Points
 
 Good places to read about ranger internals are:
 ranger/core/actions.py
-ranger/fsobject/fsobject.py
+ranger/container/fsobject.py
 
 About the UI:
 ranger/gui/widgets/browsercolumn.py
@@ -39,11 +39,11 @@ Common Changes
 --------------
 
 * Change which files are previewed in the auto preview:
-In ranger/fsobject/file.py
+In ranger/container/file.py
 the constant PREVIEW_BLACKLIST
 
 * Adding options:
-In ranger/config/options.py
+In ranger/config/rc.conf
 add the default value, like: my_option = True
 In ranger/container/settings.py
 add the name of your option to the constant ALLOWED_SETTINGS
@@ -55,15 +55,13 @@ assuming <self> is a "SettingsAware" object.
 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/config/options.py (or ~/.config/ranger/options.py), change
-    colorscheme = 'default'
-to: colorscheme = 'myscheme'
+In ranger/config/rc.conf (or ~/.config/ranger/rc.conf), add the line:
+
+    set colorscheme myscheme
 
 * Change the file type => application associations:
-In ranger/config/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
+Edit the configuration file ~/.config/ranger/rifle.conf.  The default one can
+be obtained by running "ranger --copy-config rifle".
 
 * Change the file extension => mime type associations:
 Modify ranger/data/mime.types