You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If activated (Options -> Auto Save), saves the current buffers content to a separate, temporary file.
This happens 10 seconds after the last change, or immediately after 150 changes.
Unnamed buffers are stored to "~/.cache/l3afpad/buffers/.txt"
Named buffers are stored to either
"~/.cache/l3afpad/buffers/"
or
"/.",
depending on the Options -> Auto Save Same Dir config value.
The temporary file is deleted once the user saves to a proper, primary file.
why
I usually have many l3afpad buffers open, because it is so light-weight, and i do lots of note-taking here and there. the nature of my machine is such though, that it often crashes or hangs, or fails to wakeup from suspend, and then i usually lost all my notes (except the manually saved ones).
Therefore, i hacked together this crude auto-save functionality.
It is not yet well tested, and is surely very rough around the edges, but it basically works.
Please feel free to test and comment.
I do not expect this to ever get into the master branch, but maybe someone else has use for it too.
The text was updated successfully, but these errors were encountered:
where (code)
https://github.com/hoijui/l3afpad/tree/autosave
(will probably never be merged into master, to keep master clean and lean)
what
l3afpad with auto-save functionality.
how
If activated (Options -> Auto Save), saves the current buffers content to a separate, temporary file.
This happens 10 seconds after the last change, or immediately after 150 changes.
Unnamed buffers are stored to "~/.cache/l3afpad/buffers/.txt"
Named buffers are stored to either
"~/.cache/l3afpad/buffers/"
or
"/.",
depending on the Options -> Auto Save Same Dir config value.
The temporary file is deleted once the user saves to a proper, primary file.
why
I usually have many l3afpad buffers open, because it is so light-weight, and i do lots of note-taking here and there. the nature of my machine is such though, that it often crashes or hangs, or fails to wakeup from suspend, and then i usually lost all my notes (except the manually saved ones).
Therefore, i hacked together this crude auto-save functionality.
It is not yet well tested, and is surely very rough around the edges, but it basically works.
Please feel free to test and comment.
I do not expect this to ever get into the master branch, but maybe someone else has use for it too.
The text was updated successfully, but these errors were encountered: