Skip to content

Commit b6d4d02

Browse files
committed
Add missing options
1 parent 854689e commit b6d4d02

File tree

2 files changed

+89
-3
lines changed

2 files changed

+89
-3
lines changed

data/micro.json

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@
8989
"type": "boolean",
9090
"default": true
9191
},
92+
"detectlimit": {
93+
"description": "Number of first lines in a file that are matched to determine the filetype\nhttps://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options",
94+
"type": "integer",
95+
"default": 100
96+
},
9297
"diffgutter": {
9398
"description": "Whether to display diff indicators before lines\nhttps://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options",
9499
"type": "boolean",
@@ -114,6 +119,11 @@
114119
"type": "boolean",
115120
"default": true
116121
},
122+
"fakecursor": {
123+
"description": "Whether to render the cursor using terminal colors instead of the actual terminal cursor\nhttps://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options",
124+
"type": "boolean",
125+
"default": false
126+
},
117127
"fastdirty": {
118128
"description": "Whether to use a fast algorithm to determine whether a file is changed\nhttps://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options",
119129
"type": "boolean",
@@ -133,11 +143,30 @@
133143
"type": "string",
134144
"default": "unknown"
135145
},
146+
"helpsplit": {
147+
"description": "A split type to be used by the `help` command\nhttps://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options",
148+
"type": "string",
149+
"enum": [
150+
"vsplit",
151+
"hsplit"
152+
],
153+
"default": "hsplit"
154+
},
136155
"hlsearch": {
137156
"description": "Whether to highlight all instances of a searched text after a successful search\nhttps://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options",
138157
"type": "boolean",
139158
"default": false
140159
},
160+
"hltaberrors": {
161+
"description": "Whether to highlight tabs when spaces are expected, and spaces when tabs are expected\nhttps://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options",
162+
"type": "boolean",
163+
"default": false
164+
},
165+
"hltrailingws": {
166+
"description": "Whether to highlight trailing whitespaces at the end of lines\nhttps://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options",
167+
"type": "boolean",
168+
"default": false
169+
},
141170
"ignorecase": {
142171
"description": "Whether to perform case-insensitive searches\nhttps://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options",
143172
"type": "boolean",
@@ -169,11 +198,21 @@
169198
"type": "boolean",
170199
"default": false
171200
},
201+
"lockbindings": {
202+
"description": "Whether to prevent plugins and lua scripts from binding any keys\nhttps://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options",
203+
"type": "boolean",
204+
"default": false
205+
},
172206
"matchbrace": {
173207
"description": "Whether to show matching braces\nhttps://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options",
174208
"type": "boolean",
175209
"default": true
176210
},
211+
"matchbraceleft": {
212+
"description": "Whether to also match the brace character to the left of the cursor when there is no brace character directly under the cursor\nhttps://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options",
213+
"type": "boolean",
214+
"default": true
215+
},
177216
"matchbracestyle": {
178217
"description": "Whether to underline or highlight matching braces\nhttps://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options",
179218
"type": "string",
@@ -193,6 +232,21 @@
193232
"type": "boolean",
194233
"default": true
195234
},
235+
"multiopen": {
236+
"description": "A way to layout multiple files opened at startup\nhttps://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options",
237+
"type": "string",
238+
"enum": [
239+
"tab",
240+
"vsplit",
241+
"hsplit"
242+
],
243+
"default": "tab"
244+
},
245+
"pageoverlap": {
246+
"description": "Number of lines from the current view to keep in view when paging up or down\nhttps://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options",
247+
"type": "integer",
248+
"default": 2
249+
},
196250
"parsecursor": {
197251
"description": "Whether to extract a line number and a column to open files with from file names\nhttps://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options",
198252
"type": "boolean",
@@ -240,6 +294,16 @@
240294
"type": "boolean",
241295
"default": false
242296
},
297+
"reload": {
298+
"description": "A reload behavior for the current buffer in case the file has changed\nhttps://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options",
299+
"type": "string",
300+
"enum": [
301+
"prompt",
302+
"auto",
303+
"disabled"
304+
],
305+
"default": "prompt"
306+
},
243307
"rmtrailingws": {
244308
"description": "Whether to remove trailing whitespaces\nhttps://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options",
245309
"type": "boolean",
@@ -270,6 +334,11 @@
270334
"type": "boolean",
271335
"default": false
272336
},
337+
"scrollbarchar": {
338+
"description": "A character used for displaying the scrollbar\nhttps://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options",
339+
"type": "string",
340+
"default": "|"
341+
},
273342
"scrollmargin": {
274343
"description": "A margin at which a view starts scrolling when a cursor approaches an edge of a view\nhttps://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options",
275344
"type": "integer",
@@ -280,6 +349,11 @@
280349
"type": "integer",
281350
"default": 2
282351
},
352+
"showchars": {
353+
"description": "Characters to be shown to display various invisible characters in the file\nhttps://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options",
354+
"type": "string",
355+
"default": ""
356+
},
283357
"smartpaste": {
284358
"description": "Whether to add a leading whitespace while pasting multiple lines\nhttps://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options",
285359
"type": "boolean",
@@ -354,6 +428,16 @@
354428
"type": "boolean",
355429
"default": false
356430
},
431+
"truecolor": {
432+
"description": "Whether to use true colors (24-bit colors) when using a colorscheme with true colors\nhttps://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options",
433+
"type": "string",
434+
"enum": [
435+
"auto",
436+
"on",
437+
"off"
438+
],
439+
"default": "auto"
440+
},
357441
"useprimary": {
358442
"description": "Whether to use primary clipboard to copy selections in the background\nhttps://github.com/micro-editor/micro/blob/master/runtime/help/options.md#options",
359443
"type": "boolean",

runtime/help/options.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Here are the available options:
9999
A higher limit means better accuracy of guessing the filetype, but also
100100
taking more time.
101101

102-
default value: `100`
102+
default value: `100`
103103

104104
* `diffgutter`: display diff indicators before lines.
105105

@@ -342,7 +342,7 @@ Here are the available options:
342342
* `reload`: controls the reload behavior of the current buffer in case the file
343343
has changed. The available options are `prompt`, `auto` & `disabled`.
344344

345-
default value: `prompt`
345+
default value: `prompt`
346346

347347
* `rmtrailingws`: micro will automatically trim trailing whitespaces at ends of
348348
lines.
@@ -500,7 +500,7 @@ Here are the available options:
500500

501501
Note: The change will take effect after the next start of `micro`.
502502

503-
default value: `auto`
503+
default value: `auto`
504504

505505
* `useprimary` (only useful on unix): defines whether or not micro will use the
506506
primary clipboard to copy selections in the background. This does not affect
@@ -591,6 +591,7 @@ so that you can see what the formatting should look like.
591591
"keymenu": false,
592592
"linter": true,
593593
"literate": true,
594+
"lockbindings": false,
594595
"matchbrace": true,
595596
"matchbraceleft": true,
596597
"matchbracestyle": "underline",
@@ -633,6 +634,7 @@ so that you can see what the formatting should look like.
633634
"tabreverse": false,
634635
"tabsize": 4,
635636
"tabstospaces": false,
637+
"truecolor": "auto",
636638
"useprimary": true,
637639
"wordwrap": false,
638640
"xterm": false

0 commit comments

Comments
 (0)