This repository has been archived by the owner on Feb 29, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathconfig.def.h
174 lines (156 loc) · 4.42 KB
/
config.def.h
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
#ifndef CFM_CONFIG_H
#define CFM_CONFIG_H
/*
* Uncomment an option to enable it.
* Comment to disable.
* Each is accompanied with an explanation.
*/
/* EDITOR:
* If not set, cfm will attempt to use the
* $EDITOR environment variable when opening
* files.
*
* Default: $CFM_EDITOR then $EDITOR
* Value: string
*/
//#define EDITOR "/bin/vi"
/* SHELL:
* If not set, cfm will attempt to use the $SHELL
* environment variable to open shells in a given directory.
* Else, the specified shell will be invoked.
*
* Default: $CFM_SHELL then $SHELL
* Value: string
*/
//#define SHELL "/bin/bash"
/* OPENER:
* If not set, cfm will attempt to use the $OPENER
* environment variable to open files with an opener.
* Otherwise, it will use the specified opener when
* you use the 'o' key.
*
* Default: $CFM_OPENER then $OPENER
* Value: string
*/
//#define OPENER "xdg-open"
/* TMP_DIR:
* If not set, cfm will attempt to use $CFM_TMP as its
* temporary file directory. If this does not exist,
* /tmp/cfmtmp will be used instead. TMP_DIR must be
* set to an absolute path. If you wish to disable temp
* files (which disables cut and paste as well as undo),
* you can set this to an empty string.
*
* Note that cfm will not allow you to mark or delete its
* temp directory.
*
* Default: "/tmp/cfmtmp"
* Value: string
*/
//#define TMP_DIR "/tmp/cfmtmp"
/* ENTER_OPENS:
* If not set, using enter will be the same as using
* l or right arrow on normal files, aka they will be
* opened with EDITOR. Otherwise, pressing enter will open
* a file with OPENER. No-op if OPENER not defined or NULL.
*
* Default: 0
* Value: boolean (1 or 0)
*/
//#define ENTER_OPENS 0
/* POINTER:
* If not set, cfm will use "->" in front of the selected
* item. You can set a different string here, such as ">".
*
* Default: "->"
* Value: string
*/
//#define POINTER "->"
/* BOLD_POINTER:
* If set, cfm will make the pointer bold for files
* who appear bold, such as directories and executables.
* Default: 1
* Value: boolean (1 or 0)
*/
//#define BOLD_POINTER 1
/* INVERT_SELECTION:
* If set, cfm will reverse the foreground/background colors
* of the currently selected line.
*
* Default: 1
* Value: boolean (1 or 0)
*/
//#define INVERT_SELECTION 1
/* INVERT_FULL_SELECTION:
* If set, cfm will invert the colors on the entire selected line. Otherwise,
* the effect will only appear on the name of the file.
* This has no effect if INVERT_SELECTION is disabled.
*
* Tip: This looks a little strange with the pointer. It's recommended that
* you either set POINTER to "" or enable INDENT_SELECTION.
*
* Default: 1
* Value: boolean (1 or 0)
*/
//#define INVERT_FULL_SELECTION 1
/* INDENT_SELECTION:
* If not set, all lines will be indented enough to make room
* for the pointer, regardless of being selected or not.
* If set, only the selected line will be indented.
*
* Default: 1
* Value: boolean (1 or 0)
*/
//#define INDENT_SELECTION 0
/* MARK_SYMBOL:
* If not set, marked items will be prefixed with a '^' symbol.
* Else, can be a single character which will be placed at the
* start of the line for any non-selected, marked item.
*
* Default: '^'
* Value: char ('c')
*/
//#define MARK_SYMBOL '^'
/* VIEW_COUNT:
* If not set, cfm will allow for two views by default.
* Else, it will use this number of views. The value
* of VIEW_COUNT must be within the range 1-10.
*
* Default: 2
* Value: integer (1-10)
*/
//#define VIEW_COUNT 2
/* ALLOW_SPACES:
* If not set, cfm will allow spaces when creating new
* files/directories. If set to 0, only POSIX
* "fully portable filenames" will be allowed,
* which includes the characters 0-9A-Za-z._-
* When enabled (or unset), spaces will be added to
* the allowed characters.
*
* Default: 1
* Value: boolean (1 or 0)
*/
//#define ALLOW_SPACES 1
/* CD_ON_CLOSE:
* If set to a file path, cfm can write its current working
* directory to a file on closing with Q (as opposed to q).
* If set to NULL, this feature will be disabled.
*
* If not set, cfm will attempt to use the file specified in
* the $CFM_CD_ON_CLOSE environment variable.
*
* Default: $CFM_CD_ON_CLOSE
* Value: String
*/
//#define CD_ON_CLOSE "/tmp/cfmdir"
/* ABREVIATE_HOME:
* If set, replace a leading $HOME in the current working directory with ~. For
* example, if the current directory is /home/cactus/git/cfm, ~/git/cfm will be
* shown.
*
* Default: 1
* Value: boolean (1 or 0)
*/
//#define ABBREVIATE_HOME 1
#endif