diff options
author | hut <hut@lavabit.com> | 2011-10-06 22:59:06 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2011-10-08 06:09:01 +0200 |
commit | afcc81964f8fa2a6e4800c725822feb0f7edebd3 (patch) | |
tree | 7b7b60264eecdf619f00e3edb410b3fbc3195955 | |
parent | abb2184711491b4dfbaeaf19bc49b1055943fa86 (diff) | |
download | ranger-afcc81964f8fa2a6e4800c725822feb0f7edebd3.tar.gz |
config_examples/options.py: added
-rw-r--r-- | ranger/data/config_examples/options.py | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/ranger/data/config_examples/options.py b/ranger/data/config_examples/options.py new file mode 100644 index 00000000..e37605ce --- /dev/null +++ b/ranger/data/config_examples/options.py @@ -0,0 +1,32 @@ +# =================================================================== +# This is the main configuration file of ranger. It consists of python code, +# but fear not, you don't need any python knowledge for this. +# +# Lines beginning with # are comments. To enable a line, remove the #. +# +# Technical information: This file is imported as a python module. Every +# top-level variable with the name of a ranger setting will be used to change +# the value of that setting. You can use "del <variable-name>" to avoid that. +# =================================================================== + +# This line imports some basic variables to get some basic variables +from ranger.api.options import * + +# T +#column_ratios = (1, 1, 4, 3) + +# A function that adds an additional macro: +# +## Save the original macro function +#import ranger.actions +#old_get_macros = ranger.actions.Actions.get_macros +# +## Define a new macro function +#import time +#def add_my_macro(self): +# macros = old_get_macros(self) +# macros['date'] = time.strftime('%m/%d/%Y') +# return macros +# +## Overwrite the old one +#ranger.actions.Actions.get_macros = add_my_macro |