Please send a warning message when a file is removed

Post Reply
lookoutside
Posts: 51
Joined: 17.08.2022 13:42

Please send a warning message when a file is removed

Post 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!
main Alexey
Posts: 2300
Joined: 25.08.2021 18:15

Post 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.
main Alexey
Posts: 2300
Joined: 25.08.2021 18:15

Post 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.
lookoutside
Posts: 51
Joined: 17.08.2022 13:42

Post 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.
main Alexey
Posts: 2300
Joined: 25.08.2021 18:15

Post 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/
lookoutside
Posts: 51
Joined: 17.08.2022 13:42

Post by lookoutside »

Thank you! that's it.
Post Reply