Add, sort options in list, default JSON in options.md

This commit is contained in:
niten94
2024-12-16 13:18:49 +08:00
parent 9b3f7ff240
commit 4377e56e7e

View File

@@ -201,11 +201,11 @@ Here are the available options:
default value: `false` default value: `false`
* `incsearch`: enable incremental search in "Find" prompt (matching as you type). * `ignorecase`: perform case-insensitive searches.
default value: `true` default value: `true`
* `ignorecase`: perform case-insensitive searches. * `incsearch`: enable incremental search in "Find" prompt (matching as you type).
default value: `true` default value: `true`
@@ -292,15 +292,6 @@ Here are the available options:
default value: `2` default value: `2`
* `paste`: treat characters sent from the terminal in a single chunk as a paste
event rather than a series of manual key presses. If you are pasting using
the terminal keybinding (not `Ctrl-v`, which is micro's default paste
keybinding) then it is a good idea to enable this option during the paste
and disable once the paste is over. See `> help copypaste` for details about
copying and pasting in a terminal environment.
default value: `false`
* `parsecursor`: if enabled, this will cause micro to parse filenames such as * `parsecursor`: if enabled, this will cause micro to parse filenames such as
file.txt:10:5 as requesting to open `file.txt` with the cursor at line 10 file.txt:10:5 as requesting to open `file.txt` with the cursor at line 10
and column 5. The column number can also be dropped to open the file at a and column 5. The column number can also be dropped to open the file at a
@@ -311,6 +302,15 @@ Here are the available options:
default value: `false` default value: `false`
* `paste`: treat characters sent from the terminal in a single chunk as a paste
event rather than a series of manual key presses. If you are pasting using
the terminal keybinding (not `Ctrl-v`, which is micro's default paste
keybinding) then it is a good idea to enable this option during the paste
and disable once the paste is over. See `> help copypaste` for details about
copying and pasting in a terminal environment.
default value: `false`
* `permbackup`: this option causes backups (see `backup` option) to be * `permbackup`: this option causes backups (see `backup` option) to be
permanently saved. With permanent backups, micro will not remove backups when permanently saved. With permanent backups, micro will not remove backups when
files are closed and will never apply them to existing files. Use this option files are closed and will never apply them to existing files. Use this option
@@ -335,6 +335,12 @@ Here are the available options:
default value: `false` default value: `false`
* `relativeruler`: make line numbers display relatively. If set to true, all
lines except for the line that the cursor is located will display the distance
from the cursor's line.
default value: `false`
* `reload`: controls the reload behavior of the current buffer in case the file * `reload`: controls the reload behavior of the current buffer in case the file
has changed. The available options are `prompt`, `auto` & `disabled`. has changed. The available options are `prompt`, `auto` & `disabled`.
@@ -352,12 +358,6 @@ Here are the available options:
default value: `true` default value: `true`
* `relativeruler`: make line numbers display relatively. If set to true, all
lines except for the line that the cursor is located will display the distance
from the cursor's line.
default value: `false`
* `savecursor`: remember where the cursor was last time the file was opened and * `savecursor`: remember where the cursor was last time the file was opened and
put it there when you open the file again. Information is saved to put it there when you open the file again. Information is saved to
`~/.config/micro/buffers/` `~/.config/micro/buffers/`
@@ -441,14 +441,14 @@ Here are the available options:
default value: `true` default value: `true`
* `tabmovement`: navigate spaces at the beginning of lines as if they are tabs * `tabhighlight`: inverts the tab characters' (filename, save indicator, etc)
(e.g. move over 4 spaces at once). This option only does anything if colors with respect to the tab bar.
`tabstospaces` is on.
default value: `false` default value: `false`
* `tabhighlight`: inverts the tab characters' (filename, save indicator, etc) * `tabmovement`: navigate spaces at the beginning of lines as if they are tabs
colors with respect to the tab bar. (e.g. move over 4 spaces at once). This option only does anything if
`tabstospaces` is on.
default value: `false` default value: `false`
@@ -532,18 +532,24 @@ so that you can see what the formatting should look like.
"colorscheme": "default", "colorscheme": "default",
"comment": true, "comment": true,
"cursorline": true, "cursorline": true,
"detectlimit": 100,
"diff": true, "diff": true,
"diffgutter": false, "diffgutter": false,
"divchars": "|-", "divchars": "|-",
"divreverse": true, "divreverse": true,
"encoding": "utf-8", "encoding": "utf-8",
"eofnewline": true, "eofnewline": true,
"fakecursor": false,
"fastdirty": false, "fastdirty": false,
"fileformat": "unix", "fileformat": "unix",
"filetype": "unknown", "filetype": "unknown",
"incsearch": true,
"ftoptions": true, "ftoptions": true,
"helpsplit": "hsplit",
"hlsearch": false,
"hltaberrors": false,
"hltrailingws": false,
"ignorecase": true, "ignorecase": true,
"incsearch": true,
"indentchar": " ", "indentchar": " ",
"infobar": true, "infobar": true,
"initlua": true, "initlua": true,
@@ -556,6 +562,8 @@ so that you can see what the formatting should look like.
"matchbracestyle": "underline", "matchbracestyle": "underline",
"mkparents": false, "mkparents": false,
"mouse": true, "mouse": true,
"multiopen": "tab",
"pageoverlap": 2,
"parsecursor": false, "parsecursor": false,
"paste": false, "paste": false,
"permbackup": false, "permbackup": false,
@@ -565,12 +573,14 @@ so that you can see what the formatting should look like.
"pluginrepos": [], "pluginrepos": [],
"readonly": false, "readonly": false,
"relativeruler": false, "relativeruler": false,
"reload": "prompt",
"rmtrailingws": false, "rmtrailingws": false,
"ruler": true, "ruler": true,
"savecursor": false, "savecursor": false,
"savehistory": true, "savehistory": true,
"saveundo": false, "saveundo": false,
"scrollbar": false, "scrollbar": false,
"scrollbarchar": "|",
"scrollmargin": 3, "scrollmargin": 3,
"scrollspeed": 2, "scrollspeed": 2,
"smartpaste": true, "smartpaste": true,
@@ -583,12 +593,13 @@ so that you can see what the formatting should look like.
"statusline": true, "statusline": true,
"sucmd": "sudo", "sucmd": "sudo",
"syntax": true, "syntax": true,
"tabmovement": false,
"tabhighlight": true, "tabhighlight": true,
"tabmovement": false,
"tabreverse": false, "tabreverse": false,
"tabsize": 4, "tabsize": 4,
"tabstospaces": false, "tabstospaces": false,
"useprimary": true, "useprimary": true,
"wordwrap": false,
"xterm": false "xterm": false
} }
``` ```