arthurbacci / Teditor

A simple text/code editor
GNU General Public License v3.0
74 stars 7 forks source link

Modify the way ted can be closed #38

Closed bynect closed 3 years ago

bynect commented 3 years ago

Actually ted can be closed just with ctrl+c, even if unsaved changes to a file have been made.

Isn't a little bit too easy to erroneously quit in this way? Should ted prompt the user for a confirm message (ex: Are you sure to quit?)? Or maybe introduce the exit/quit config dialog (like vim)?

bynect commented 3 years ago

Maybe we should add a dirty boolean flag that is set when the file is modified, and if the user presses ctrl+c and this flag is set ted will prompt for confirmation like Exit without saving (true/false)

arthurbacci commented 3 years ago

I am doing this now.

arthurbacci commented 3 years ago

46 closes