Add savehistory option

When savehistory is enabled, micro will save your command history across
sessions. This includes command-mode, shell-mode, open, jump-to-line...
Anything that uses up-arrow for history in the infobar.

This option is on by default.

Closes #874
This commit is contained in:
Zachary Yedidia
2017-10-21 15:31:04 -04:00
parent 19ee4b281e
commit 7b6430af1c
6 changed files with 61 additions and 3 deletions

View File

@@ -211,6 +211,7 @@ func DefaultGlobalSettings() map[string]interface{} {
"rmtrailingws": false,
"ruler": true,
"savecursor": false,
"savehistory": true,
"saveundo": false,
"scrollmargin": float64(3),
"scrollspeed": float64(2),