coderaiser / cloudcmd

✨☁️📁✨ Cloud Commander file manager for the web with console and editor.
https://cloudcmd.io
MIT License
1.83k stars 257 forks source link

feat: Make a query selection before closing the edit window. #377

Open wll8 opened 2 years ago

wll8 commented 2 years ago

While editing the file, press esc. The current behavior is to close the edit window first.

Then, ask if you need to save.

At this time, no matter how I choose, I can no longer go back to my previous job.

Make a query selection before closing the edit window.

Is it better?

coderaiser commented 2 years ago

Yes! It’s definitely better!

https://github.com/coderaiser/cloudcmd/blob/ecfd4ecbdaa74833fc8540426b7d2b060e0db62c/client/modules/edit-file.js#L175