jupyterlab / jupyterlab-desktop

JupyterLab desktop application, based on Electron.
BSD 3-Clause "New" or "Revised" License
3.76k stars 366 forks source link

Possible to add in a 'warn before closing' message when the user tries to quit the program? #822

Open kburchfiel opened 7 months ago

kburchfiel commented 7 months ago

On a few occasions, I've accidentally pressed Ctrl + W when trying to hit Ctrl + V (these keys are right next to each other in the Dvorak keyboard layout), causing me to accidentally quit Jupyterlab Desktop. Is there a way to instead have the program warn me when I attempt to quit, at least when a document has unsaved changes? If not, would it be possible to add this in?

I could also resolve this issue by disabling the Ctrl + W shortcut within the settings menu, but a 'prompt before quitting' option could be handy.

By the way, I'm getting much better performance with Jupyter notebooks in Jupyterlab Desktop than I am in VS Code, especially with larger notebooks, so keep up the great work!