This module implements persistence across different Yi runs. It includes minibuffer command history, marks, VimTagStack etc. Warning: Current version will _not_ check whether two or more instances of Yi are run at the same time.
Loads a persistent state, and sets Yi state variables accordingly.
Here is a persistent history saving part. We assume each command is a single line. To add new components, one has to:
- add new field in
PersistentStatestructure, * add write and read parts in
savePersistentState, * add a trimming code in
savePersistentStateto prevent blowing up of save file.