Open meliache opened 11 months ago
For the history-saving solution, another way compared to the approach above would be to save it in a list or alist and then add this list to desktop-locals-to-save
, so that it persists across sessions if the uses uses desktop-save-mode
.
You might be interested in my branch where I implemented a temporary file association with the atomic buffer. The file can be retained on exit by a variable. https://github.com/eev2/atomic-chrome/blob/file-assoc/atomic-chrome.el
So it happened a couple of times that my Firefox tab with some text input was accidentally closed and I was surprised that the associated atomic-chrome buffer closed as well. There was no backup as it's not a file-visiting buffer.
Is there a way so set up temporary backups or at least save a history? Today I added a history-saving function myself to
atomic-chrome-edit-done-hook
and with adefcustom
this could be made opt in:It's not a backup as nothing is saved during editing. For that it would be nice somehow utilize Emacs' built-in backup/auto-save functions, but for most of my use-cases that's good enough.