summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/data/config_examples/options.py32
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
href='/akspecs/aerc/commit/commands/new-account.go?h=0.5.0&id=2a0961701c4cabecc53d134ed1782e5612e64580'>2a09617 ^
a98824a ^
0771eaf ^

6811143 ^
937b33c ^
0771eaf ^





6811143 ^


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38