google / ci_edit

A terminal text editor with mouse support and ctrl+Q to quit.
Apache License 2.0
223 stars 54 forks source link

Undo after File closing #204

Open ramanathan831 opened 5 years ago

ramanathan831 commented 5 years ago

From the ReadMe, I can see that we can undo the changes even after closing the file. Am I right in my interpretation or we can undo the changes only in the current file which is being edited. If we can undo on reopening, what's the shortcut for it. Ctrl + Z doesn't work out for me in OSX.

dschuyler commented 5 years ago

Thanks for asking. Here's what I just tried (to check whether it's working for me) On OSX:

  1. we file_name
  2. type "one" (or any text), ctrl+s, ctrl+q
  3. reopen the file with we file_name
  4. ctrl+z to undo (works), ctrl+y to redo (works) Please let me know if the above works for you (i.e. it may take something more for me to see the issue - it's super helpful to see the issue for me to fix it).

What's happening to make it work: