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

@@ -342,7 +342,7 @@ func main() {
// Create a new messenger
// This is used for sending the user messages in the bottom of the editor
messenger = new(Messenger)
messenger.history = make(map[string][]string)
messenger.LoadHistory()
// Now we load the input
buffers := LoadInput()