mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-25 18:07:07 +09:00
Add support for switching between crlf and lf
Dos and Unix line endings are now both supported (previously on unix line endings were supported) and can be accessed via the `fileformat` option. The file format will be automatically detected and displayed in the statusline but can be overriden. Possible values for the `fileformat` option are `dos` and `unix`. Closes #443 Closes #755
This commit is contained in:
@@ -173,6 +173,13 @@ Default plugin options:
|
||||
|
||||
default value: `on`
|
||||
|
||||
* `fileformat`: this determines what kind of line endings micro will use for the file. Unix line endings
|
||||
are just `\n` (lf) whereas dos line endings are `\r\n` (crlf). The two possible values for this option
|
||||
are `unix` and `dos`. The fileformat will be automatically detected and displayed on the statusline but
|
||||
this option is useful if you would like to change the line endings or if you are starting a new file.
|
||||
|
||||
default value: `unix`
|
||||
|
||||
Any option you set in the editor will be saved to the file
|
||||
~/.config/micro/settings.json so, in effect, your configuration file will be
|
||||
created for you. If you'd like to take your configuration with you to another
|
||||
|
||||
Reference in New Issue
Block a user