about 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
2020-01-30 13:31:42 -0800 committer Ensa <psychoticfervor@tuta.io> 2020-01-30 14:56:12 -0800 new scripts, switched to ksh, and a lot more' href='/ensa/cfg/commit/bin/opener?id=8fa69fc68072910f855958b3b79360ede1a32682'>8fa69fc ^
1ddfd9b ^
8fa69fc ^

e1d03e2 ^
8fa69fc ^

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