question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Discard changes" in "Save before closing" should delete "newer" backups

See original GitHub issue

As user, I work on JabRef. Then, I add some things. I maybe want to cancel my changes. Example:

grafik

Then, at the start of JabRef, JabRef should NOT prompt me to restore these changes.

Four options:

  • Option 1: Delete newer backup files
  • Option 2: Rename backup files to files with certain keywords (and delete them after some time)
  • Option 3: Make backups appearing “older” (we need to fake time stamps)
  • Option 4: Create discarded file to mark that the user discarded changes. On start of JabRef, JabRef removes that file and backup takes normally place. Example filename: 269b5589--test.bib--discarded.bak. When JabRef starts freshly, it creates new backups in the backup manner. After a normal save and an additional restart, JabRef MUST NOT assume that the last quit was a discard.

We opt for Option 4.

Issue Analytics

  • State:open
  • Created 10 months ago
  • Comments:18 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
mmohanb1commented, Nov 16, 2022

Hi Koppor, I would like to contribute to this project and would like to work on this issue. Could you please assign this to me. Thanks.

1reaction
mmohanb1commented, Nov 28, 2022

I was able to work on this issue and functionality seems to be working fine as expected but I need to test more using the testing documentation on jabref.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do you undo "Discard all changes" in VS Code/Git
I thought I was doing something wrong So I clicked on the 'Discard All Changes' option available on VSCode and boom! all the...
Read more >
Additional code to handle discarded changes #9441 - GitHub
Successfully merging this pull request may close these issues. "Discard changes" in "Save before closing" should delete "newer" backups.
Read more >
Notepad++ Is there a setting to stop from asking me to save on ...
Yes, there is. In Backup page of Preferences, be sure you check. Remember current session for next launch. Enable session snapshot and ...
Read more >
Save, back up, and recover a file in Microsoft Office
You can restore files and folders you deleted from your OneDrive. Saved to your device. If AutoRecover is turned on and your file...
Read more >
How to recover unsaved Excel file or restore its previous version
Learn how to use Excel backup features to retrieve an unsaved workbook or restore the previous version of an overwritten file.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found