Page 1 of 1

Please send a warning message when a file is removed

Posted: 18.08.2022 02:41
by lookoutside
I use CudaText to write notes for daily work. So I need to rename files or move some of them frequently to another folder using the windows resource manager.
But before that I always forget to close them in CudaText. As a result, I get two duplicated files with different names in Cudatext. Then I may work on the old wrong file and get my work lost.

I think when an opened file is modified or removed from outside CudaText, it should warn users immediately after the users try to activate the non-existing window (or Tab). In my case, CudaText can suggest me to close the non-existing file.

Here I will attach the notepad++ UI as an example:
keep-non-existing-file.png
Thank you!

Posted: 18.08.2022 08:47
by main Alexey
thanks for the idea.
this was reworked/improved now.
on deletion outside, Cud now shows non-modal (not like Notepad++) confirmation inside the editor:

file was deleted outside: ..... [ Close tab ] [ No more notifications ]

if you want, I give you the link to current beta , to test.

Posted: 18.08.2022 08:55
by main Alexey
when an opened file is modified or removed from outside CudaText, it should warn users immediately
this works already for 'file was changed' case - change the option
"ui_notif_confirm": 0,
in user.json.

Posted: 18.08.2022 09:10
by lookoutside
Thank you very much for your guide. The document is concise, and the app is powerful.

I just tried. Yes, It works. When the file is changed or removed outside, It will notify except that it is not so striking. Perhaps a red message in the tab will be better, I guess.

Thank you to give me the link to current beta to test.

Posted: 18.08.2022 19:50
by main Alexey
red message in the tab - will be cryptic (w/o telling the user what happened w/o clean text). better the text in the top of the tab. I did the coding and now Cud shows 'file was deleted outside' text too.
win64 beta,
http://uvviewsoft.com/c/

Posted: 19.08.2022 12:43
by lookoutside
Thank you! that's it.