Bug 412659

Summary: Documents Modified on Disk: Case "Deleted": Add "Close Document" button
Product: [Applications] kate Reporter: Gregor Mi <codestruct>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist CC: bugseforuns, nate
Priority: NOR Keywords: usability
Version First Reported In: 19.04.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: File Modified on Disk

Description Gregor Mi 2019-10-06 10:51:46 UTC
Created attachment 123049 [details]
File Modified on Disk

I often run into a situation where I move or delete a file on disk.

Then the attached dialog appears. It has three options:

- Overwrite
- Reload
- Ignore Changes

It would be helpful to have a "Close Document" button that closes the document that was associated with the deleted (or moved) file.
Comment 1 Nate Graham 2019-10-06 22:36:47 UTC
+1, I find myself briefly confused when I see this dialog as well. I think we need a larger UX overhaul. I have no idea what any of the buttons on the bottom will do. Here are my approximate reactions to each of them:
- Overwrite ("What's being overwritten? I thought the document was deleted!")
- Reload ("How do you reload a document that's been deleted?")
- Ignore Changes ("What does this do? Huh?")
Comment 2 Gregor Mi 2019-10-15 20:20:20 UTC
:-)

There are tooltips on the buttons explaining things at bit more. But the buttons and the tooltips were apparently not written with the "Deleted" case in mind.
Comment 3 Christoph Feck 2019-10-24 12:22:49 UTC
Here I get a non-windowed message asking "Close File", "Save As", and "Ignore". Was this recently improved for version 19.08?
Comment 4 Patrick Silva 2020-01-29 13:37:26 UTC
"Document modified on disk" window was very confuse to me too.
I can confirm Christoph's comment when using Kate 19.12.1 and I think that this issue is now solved.

Operating System: Arch Linux 
KDE Plasma Version: 5.17.90
KDE Frameworks Version: 5.66.0
Qt Version: 5.14.1
Comment 5 Nate Graham 2020-01-29 15:11:57 UTC
Agreed. Much nicer now.