Skip to content

Save unsaved files on close, and restore unsaved files when opening lapce#840

Merged
dzhou121 merged 10 commits intolapce:masterfrom
nheuillet:fix-unsaved-quit
Jul 28, 2022
Merged

Save unsaved files on close, and restore unsaved files when opening lapce#840
dzhou121 merged 10 commits intolapce:masterfrom
nheuillet:fix-unsaved-quit

Conversation

@nheuillet
Copy link
Copy Markdown
Contributor

@nheuillet nheuillet commented Jul 20, 2022

This PR Fixes the issue of losing all of the unsaved files when closing Lapce by doing the following:

  • When a user closes Lapce, all the files that contain unsaved work are saved
  • When a user opens the Workspace again, the files are fetched, and the buffer is applied again: this makes Undo work even after startup

closes #758

Working example:

/home/noe/Videos/obs_recordings/unsaved_1.gif

@MinusGix MinusGix added the A-editor Area: editor, modal editing label Jul 21, 2022
@dzhou121 dzhou121 merged commit 4114bdb into lapce:master Jul 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-editor Area: editor, modal editing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Closing the Editor does not prevent data loss when the buffer has not been save

3 participants