Laverna / laverna

Laverna is a JavaScript note taking application with Markdown editor and encryption support. Consider it like open source alternative to Evernote.
https://laverna.cc/index.html
Mozilla Public License 2.0
9.18k stars 801 forks source link

[Feature Suggestion] cmd+s while editing behavior #947

Open niuliang42 opened 6 years ago

niuliang42 commented 6 years ago

Dear Laverna Developers, I really love this app. But there is one thing that bothers me.

When I am writing a note on my Macbook and I press cmd+s, what I want is to save the note without quiting editing mode. However for now, the app takes cmd+s as save and quit to list. As many people may feel like pressing cmd+s to avoid losing data they just wrote, I think maybe the behavior of cmd+s would be more of Principle of least astonishment if it keep users stay in editing mode without quitting to list.

Thank y'all!

ghost commented 6 years ago

I just modified my note and closed the application without saving and found that my changes are not lost in the process. It seems like modifications are saved as you type, regardless of saving or not (unless, you press 'Cancel' to close and undo all changes made).

So it seems like the pressing need to press cmd+s is more for the feel to save your data than a real necessity.

Nevertheless, I, too have this habit and suppressing it makes me feel really uncomfortable.

I vote for this feature!

ghost commented 6 years ago

I've been using Laverna for a while now. Well I got used to it. It saves automatically so you don't need it (I am using Dropbox here)

In the Desktop version, Ctrl + Shift + S is unused, I think. This could be used to Save & Close, while Ctrl + S can be used for Save.