ru forum
Если редактор открывался пустым, там вводился какой-то текст, туда-сюда, а в конце
опять стал пустым, при закрытии не надо спрашивать про сохранение. Был пустым, остался пустым, всё, закрыли и забыли.
En:
if editor was opened clean, some text was typed, at the end editor became clean again, then on exiting - don't ask confirmation to save.
Notepad++ does it.
(user message)
@kvichans @dinkumoil @tmsg-gh @jairo-martinez @OlehL Agree?
I'm not sure if I understood the user's complaint correctly.
I right-clicked a file in Windows Explorer and selected _Open with CudaText_ context menu entry. Then I did some changes in the document without saving them. Additionally, I created a new document and typed some random stuff. Finally I reverted all changes by pressing CTRL+Z in both documents. Then I closed CudaText. It didn't ask me to save something, exactly as I expected. So, AFAICS no problem.
@dinkumoil You didn't see problem coz you did UNDO. User wants to clear by hands (w/o undo) and still don't see confirm to save.
EDIT
He opens editor w/o files.
user posted GIF of Notepad.

Ah, I understand.
Indeed, closing a document's tab without asking the user to save it makes sense in case of an unsaved (i.e. newly created) document not backed by a disk file, where user has typed something but erased all content before closing the tab or the whole application. So yes, I would like such a feature.
I am agree too. Thanks @Alexey-T
Если "туда-сюда" это undo-redo, и если отменили все изменения - да, не нужно спрашивать.
Но если "туда-сюда" это редактирование и получился пустой файл - нет, нужно предложить сохранение
туда-сюда в untitled tab. там можно не спрашивать.
Можно? Я ОЧЕНЬ часто работаю в таких табах. Мне было бы удобно, чтобы Куд спрашивал. Может я не один такой?
Не знаю, ну что,опцию делать что-ли...
@kvichans It seems like you misunderstood something.
If a user creates a new document, i.e a new empty tab, in CudaText, there is no file on disk that holds the documents's content (which is nothing, emptyness). If a user types some stuff in this document, erases it, types some other stuff, erases it again, and so forth, he ends up with a document whose state is "dirty", but it has no content. So why should CudaText ask the user to save nothing (i.e a new 0-byte file) when he closes the empty document's tab?
In contrast, if a user loads a file with CudaText, changes it and ends up with an empty document, the document's state is "dirty" and it is backed by disk file. In this case CudaText MUST ask the user if he wants to save it when closing the document's tab.
Currently CudaText works exactly as described above and IMO that makes sense.
@dinkumoil I clearly understand the situation.
I continue to say "I want the Cuda asks me about empty changed(!) doc". It saves my works.
@kvichans, what is the your case? Why do you need it?
I often use CT to quick edit simple text blocks in empty new tab, but I never end up with empty tab I should take care of.
@kvichans how critical is this option for you? if its missed (if i won't make option) will you use Cud? this opt is very rarely needed. maybe only needed for u.
Most helpful comment
@kvichans It seems like you misunderstood something.
If a user creates a new document, i.e a new empty tab, in CudaText, there is no file on disk that holds the documents's content (which is nothing, emptyness). If a user types some stuff in this document, erases it, types some other stuff, erases it again, and so forth, he ends up with a document whose state is "dirty", but it has no content. So why should CudaText ask the user to save nothing (i.e a new 0-byte file) when he closes the empty document's tab?
In contrast, if a user loads a file with CudaText, changes it and ends up with an empty document, the document's state is "dirty" and it is backed by disk file. In this case CudaText MUST ask the user if he wants to save it when closing the document's tab.
Currently CudaText works exactly as described above and IMO that makes sense.