Skip to content

Recover / Restore unsaved changes after Restart #428

Description

@stefan123t
 * Xed version 2.6.2
 * Distribution - Linux Mint Ulyana 20

Issue
I sometimes loose open and unsaved changes in my xed tabs due to power outages, crashes, etc.
I therefor have to work harder or remember to save early.
Autosave is only applicable for documents Named and saved once.
(see #353)

Steps to reproduce
Type something in an unsaved UnnamedX document.
Wait for autosave period to expire (1-10 min).
killall xed
Start xed again

Expected behaviour
Should have autosaved the changes during the last autosave period
Should reopen the unsaved UnnamedX document.
(see #226)

Other information
@JosephMcc explained in #353 (and unfortunately closed the issue) that xed does not auto-save Unnamed/Unsaved document changes to a common Temp folder.
Along with #226 on restoring tabs, people (e.g. @dmitry) were asking for some auto-save functionality for Unsaved/Opened tabs (like e.g. in Notepad++ ) too.
With system failures in mind, having such a backup of unsaved files being restored when starting xed again would be appreciated.

I believe vim and others call it a swap file.
There should be a documented (or even menu driven ?) way of preventing the initial restore / loading of such auto-saved swap files, e.g. removing the respective files in ~/.xed/auto-save/ or some opened_tabs document with the paths.
This is to recover in case xed died due to too many opened tabs or some other issue and one does not want to restore / reopen all those tabs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions