-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.toml
272 lines (246 loc) · 8.51 KB
/
config.toml
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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
#highlight different bytes among all opened files.
#use the 'h' key to toggle this
highlight_diff = false
#show only printable characters. Other are replaced with space.
#use the 'p' key to toggle this
only_printable = false
#locks the view position for all file buffers.
#use the 'k' key to toggle this
lock_file_buffers = true
#This defines how screen is shifted when cursor move out the screen range.
#"Byte" - shift screen by bytes
#"Row" - shift screen by rows
#"Page" - shift screen by pages
screen_paging_size = "Row"
#mouse support
#true - enable mouse
#false - disable mouse
mouse_enabled = true
#defines how scroll with the mouse wheel.
#"Byte" - move screen/cursor <NUMBER> of bytes
#"Row" - move screen/cursor <NUMBER> of rows
#"Page" - move screen/cursor <NUMBER> of pages
mouse_scroll_type = "Row"
#defines <NUMBER> of bytes/rows/pages cursor/screen will move per one tick of mouse wheel.
mouse_scroll_size = 4
#style used for highlights. Choose one from:
#"None" - results are not highlighted, colorscheme bg_color is used.
#"Solid" - highlight_bg_color from colorscheme used.
#"RandomDark" - highlights have random colors from rgb 30-130.
#"RandomLight" - highlights have random colors from rgb 120-220.
#"RandomAnsi" - highlights have random ANSI color.
highlight_style = "RandomDark"
#the name of the initial color scheme.
active_color_scheme = "gudinuf"
#enable quit with ESC key if nothing other can't be canceled. Additionally to 'q' key.
esc_to_quit = true
#clear terminal when program ends
clear_screen_on_exit = false
#specify program to works with yanked data / block.
#Hexegg execute it, send selected block via stdin and wait until process ends.
#Variable must be an array where first item is program name, and the others are program arguments.
#Use empty array disable this features.
#
#Examples:
#send it to the clipboard (X server)
#yank_to_program = ["xclip", "-selection", "clipboard"]
#yank_to_program = ["xsel", "-i", "--clipboard"]
#
#clipboard on MS Windows
#yank_to_program = ["clip.exe"]
#
#send it to neovim
#yank_to_program = ["nvim"]
yank_to_program = []
#defines behaviour of initial stdin. Whether to open stdin and expect input data or not.
#Values are:
#"Pipe" - open stdin and wait for data only if are "piped" from other application.
#"Always" - always open stdin and wait for input data.
#"Never" - stdin is not opened and input data are ignored.
stdin_input = "Pipe"
#command aliases.
#Add new pair ["alias", "command string"] to define your own. If the first command word matches the alias, will be replaced by command string.
#Alias can contains commands with parameters as well. E.g. ["fq", "findallstrings 10"] can be later used as "fq http" to find all strings containing http with size at least 10.
#Aliases are not recursive, so "command string" can't contains other alias.
aliases = [
["q", "quit"],
["q!", "quit!"],
["g", "goto"],
["b", "bookmark"],
["fab", "findallbookmarks"],
["fap", "findallpatches"],
["f", "find"],
["fa", "findall"],
["fx", "findhex"],
["fax", "findallhex"],
["fs", "findstring"],
["fas", "findallstrings"],
["fu", "findunicodestring"],
["fau", "findallunicodestrings"],
["fad", "findalldiffs"],
["fah", "findallhighlights"],
["fasi", "findallsignatures"],
["fasi!", "findallsignatures!"],
]
#Predefined history in command input interface for your most used command
#Must be a array of strings. E.g. ["quit", "findall", "findallstrings 6 http://"]
preset_history = [
]
#which screen is loaded when program starts
default_screen = "text_screen"
#this section defines custom settings for each screen individualy. Screen is identified by it's name.
#disabled screens will not be shown in program.
#data_area_width is clamped to terminal size (minus other TUI elements).
[[screen_settings]]
name = "text_screen"
enabled = true
data_area_width = 9999
location_bar_width = 12
show_info_bar = true
show_offset_bar = true
show_location_bar = false
[[screen_settings]]
name = "byte_screen"
enabled = true
data_area_width = 9999
location_bar_width = 12
show_info_bar = true
show_offset_bar = true
show_location_bar = false
[[screen_settings]]
name = "word_screen"
enabled = true
data_area_width = 9999
location_bar_width = 12
show_info_bar = true
show_offset_bar = true
show_location_bar = false
#color schemes define how program's UI looks. To create a new colorscheme simply create a new [[color_scheme]] section with your colors with unique name.
# for 16 color terminal:
# "black", "white", "grey", "dark_grey", "red", "dark_red", "green", "dark_green", "yellow", "dark_yellow",
# "blue", "dark_blue", "magenta", "dark_magenta", "cyan", "dark_cyan"
#
# for 256 color terminal you can use "ansi_(..)" for example "ansi_(53)" for deep pink color. https://www.ditig.com/256-color-cheat-sheet
# for full RGB terminal you can use "rgb_(r,g,b)".
# various color types can be combined into one color scheme. However terminals with lower color resolution may struggle with higher resolution.
#the default color scheme for terminals that support only 16 basic colors
[[color_scheme]]
name = "default16"
fg_color = "white"
bg_color = "black"
error_fg_color = "yellow"
error_bg_color = "dark_red"
cursor_fg_color = "white"
cursor_bg_color = "dark_yellow"
patch_fg_color = "red"
selection_bg_color = "grey"
highlight_bg_color = "dark_yellow"
diff_fg_color = "dark_green"
infobar_fg_color = "black"
infobar_bg_color = "grey"
offsetbar_fg_color = "white"
offsetbar_bg_color = "black"
location_list_fg_color = "white"
location_list_bg_color = "black"
location_list_cursor_fg_color = "white"
location_list_cursor_bg_color = "dark_yellow"
[[color_scheme]]
name = "hiewlike"
fg_color = "cyan"
bg_color = "dark_blue"
error_fg_color = "yellow"
error_bg_color = "dark_red"
cursor_fg_color = "dark_blue"
cursor_bg_color = "grey"
patch_fg_color = "dark_green"
selection_bg_color = "blue"
highlight_bg_color = "dark_yellow"
diff_fg_color = "dark_red"
infobar_fg_color = "black"
infobar_bg_color = "grey"
offsetbar_fg_color = "cyan"
offsetbar_bg_color = "dark_blue"
location_list_fg_color = "cyan"
location_list_bg_color = "dark_blue"
location_list_cursor_fg_color = "black"
location_list_cursor_bg_color = "grey"
[[color_scheme]]
name = "gudinuf"
fg_color = "rgb_(255,230,190)"
bg_color = "rgb_(0,0,0)"
error_fg_color = "rgb_(255,255,100)"
error_bg_color = "rgb_(130,10,0)"
cursor_fg_color = "rgb_(0,0,0)"
cursor_bg_color = "rgb_(240,175,0)"
patch_fg_color = "rgb_(210,230,0)"
selection_bg_color = "rgb_(40,105,120)"
highlight_bg_color = "rgb_(194,59,35)"
diff_fg_color = "red"
infobar_fg_color = "rgb_(255,230,190)"
infobar_bg_color = "rgb_(65,65,65)"
offsetbar_fg_color = "rgb_(235,210,070)"
offsetbar_bg_color = "rgb_(0,0,0)"
location_list_fg_color = "rgb_(255,230,190)"
location_list_bg_color = "rgb_(0,0,0)"
location_list_cursor_fg_color = "rgb_(0,0,0)"
location_list_cursor_bg_color = "rgb_(240,175,0)"
[[color_scheme]]
name = "orange_terminal"
fg_color = "ansi_(208)"
bg_color = "black"
error_fg_color = "black"
error_bg_color = "ansi_(202)"
cursor_fg_color = "black"
cursor_bg_color = "ansi_(214)"
patch_fg_color = "ansi_(220)"
selection_bg_color = "ansi_(88)"
highlight_bg_color = "ansi_(94)"
diff_fg_color = "ansi_(202)"
infobar_fg_color = "black"
infobar_bg_color = "ansi_(172)"
offsetbar_fg_color = "ansi_(208)"
offsetbar_bg_color = "black"
location_list_fg_color = "ansi_(208)"
location_list_bg_color = "black"
location_list_cursor_fg_color = "black"
location_list_cursor_bg_color = "ansi_(214)"
[[color_scheme]]
name = "green_terminal"
fg_color = "ansi_(34)"
bg_color = "black"
error_fg_color = "black"
error_bg_color = "ansi_(202)"
cursor_fg_color = "black"
cursor_bg_color = "ansi_(46)"
patch_fg_color = "ansi_(220)"
selection_bg_color = "ansi_(88)"
highlight_bg_color = "ansi_(53)"
diff_fg_color = "ansi_(202)"
infobar_fg_color = "black"
infobar_bg_color = "ansi_(28)"
offsetbar_fg_color = "ansi_(34)"
offsetbar_bg_color = "black"
location_list_fg_color = "ansi_(34)"
location_list_bg_color = "black"
location_list_cursor_fg_color = "black"
location_list_cursor_bg_color = "ansi_(46)"
[[color_scheme]]
name = "blue_terminal"
fg_color = "ansi_(39)"
bg_color = "black"
error_fg_color = "yellow"
error_bg_color = "dark_red"
cursor_fg_color = "black"
cursor_bg_color = "ansi_(142)"
patch_fg_color = "ansi_(220)"
selection_bg_color = "ansi_(24)"
highlight_bg_color = "ansi_(88)"
diff_fg_color = "ansi_(202)"
infobar_fg_color = "black"
infobar_bg_color = "ansi_(39)"
offsetbar_fg_color = "ansi_(39)"
offsetbar_bg_color = "black"
location_list_fg_color = "ansi_(39)"
location_list_bg_color = "black"
location_list_cursor_fg_color = "black"
location_list_cursor_bg_color = "ansi_(142)"