From afcc81964f8fa2a6e4800c725822feb0f7edebd3 Mon Sep 17 00:00:00 2001 From: hut Date: Thu, 6 Oct 2011 22:59:06 +0200 Subject: config_examples/options.py: added --- ranger/data/config_examples/options.py | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 ranger/data/config_examples/options.py 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 " 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 -- cgit