jmacdonald / amp

A complete text editor for your terminal.
https://amp.rs
Other
3.68k stars 105 forks source link

Buffer history is not preserved through buffer reload #188

Open knkski opened 4 years ago

knkski commented 4 years ago

One useful feature that is found in a number of editors is the ability to preserve buffer history even after reloading from disk. For example, my vim setup has the ability to edit a file, use :e to reload the buffer, and then revert back to a previous version from before the reload.

Currently, amp will drop all buffer history when a buffer is reloaded with ctrl+r. This will cause problems for anyone that is used to the vim keybinding of ctrl+r to redo a change, as instead of redoing a change, all history is dropped.