Trouble using emacs bindings.

Hello.

I'm using Emacs keybindings; When mistyping while trying to C-x C-s (save) and hitting C-x C-c (close emacs in emacs, close all files in phpstorm ide) instead, it saves and closes all open files without asking for confirmation.
Would be good just to ask if I want to save, if there are unsaved changes in any open file before closing thus letting me cancel in case if I didn't mean to close all, but save.

Thanks in advance.

4 comments
Comment actions Permalink

There is no "close without saving" or "ask for confirmation before saving" options available -- that's one of the "unique features" of the IDEA platform/approach and devs have no plans of changing it. Even if you close IDE without clicking "Save", all changes will be saved anyway.

Other threads (search for more if required, not just PhpStorm one, but other as well):

0
Comment actions Permalink

Well, that sucks.

Reason for refusal to add this option is incomprehensible.

In that case the next logical step would be to preserve the local undo history through ide exits for the last 100 changes at least (if working in project context and not out of project file quick edit).
Otherwise it's godawful to follow such nosave philosophy and kill the chance to save/revert or cancel exiting at all.

Don't you think?

0
Comment actions Permalink

Well -- you already have read all explanations why it is like that. Cannot add anything about reasoning.

You can use Local History to revert to a previously saved version of the file (such entry got created on each Save operation and other actions). This may not be ideal for you compared to the "preserve the local undo history through ide exits" idea .. but still can be OK (I personally have no issues with this at all -- I rarelly have to use it -- must be my workflow).

0
Comment actions Permalink

Well, it's not so terrible.

It's just I've hit 1 of 100 times when it happened and first thing came onto my mind was wtf.

0

Please sign in to leave a comment.