minthemiddle / Quick-Capture

A quick capture app for adding thoughts to a daily markdown note.
MIT License
4 stars 0 forks source link

Feature: Append & clear on close #22

Closed animusastralis closed 1 month ago

animusastralis commented 3 months ago

While I tend to agree that this app doesn't need a "save draft" function, it would be helpful to append an input to a file when user closes the window.

Instant autosave is pretty much a standard for note taking apps, so from time to time I forget pressing ctrl+enter and lose my note.

Otherwise I love the minimalist philosophy of this app - it's a good addition to Obsidian, which has no quick note functionality whatsoever.

minthemiddle commented 3 months ago

@animusastralis Interesting take on the "prevent note loss". I discarded "Auto save" here where I also recorded my reasoning. Putting the save on close fits very much to the minimalistic approach of the app. Let me investigate. I put on the milestone for a next release.

Early thoughts: On closing the window. Check if textarea holds text. If yes, save and clear textarea.

minthemiddle commented 2 months ago

I'm struggling to capture the moment the app closes and act then.
In Tauri's docs, I cannot find good reference and none of the approaches I tried so far (via Javascript and Rust) did work.
For now, I'll go for auto-save and revisit https://github.com/minthemiddle/Quick-Capture/issues/5 and how to do it.

Will close this issue when I have #5 solved.

minthemiddle commented 2 months ago

@animusastralis I implemented "draft save on pause" in v.1.5.0, you can see the details in #5 for now. Unfortunately, I have build problems, so there are no binaries or a release news yet. If you work on Mac, I could create the binaries for you so you can test it out.

Edit: I manually released binaries in the v1.5.0 release .

minthemiddle commented 2 months ago

I'm very happy with the new feature in v1.5 to save drafts on pause on load on restarting the app.
It's a very lean solution and as it guarantees to not lose thoughts, I consider closing this feature request (which would need a much more complicated solution and saves a lot later, only on close).

minthemiddle commented 1 month ago

I have been using the draft function from v1.5 for another 3 weeks and it did not negatively surprise me in any situation. As everything in this app, it stays out of my way. I consider this topic solved until someone (including myself) comes up with a new problem with how it's being solved.