Bug 442995

Summary: Ctrl+W should close Kate window if only one file is open
Product: [Applications] kate Reporter: Alexander Potashev <aspotashev>
Component: applicationAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: wishlist CC: jpmbatrina01
Priority: NOR    
Version First Reported In: 21.08.0   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Option to exit kate when last file is closed

Description Alexander Potashev 2021-09-26 19:50:03 UTC
SUMMARY
Ctrl+W should close Kate window if only one file is open. This is how Dolphin behaves, and I like this behavior.

I understand there may be users whose workflow is to
 1. work on a document
 2. close it
 3. expect a new fresh Untitled document to show up and start writing something new it.
To account for this workflow, we may want to consider only closing the Kate window if
 A. The users presses Ctrl+W twice in a row (assuming Kate only has 1 document open prior to the first Ctrl+W press)
 B. The currently open document is an empty Untitled document (this is mostly the same as option A, except for possibly some edge cases like pressing Ctrl+W immediately upon starting Kate.)

STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Jan Paul Batrina 2021-09-27 14:00:26 UTC
Hello, enabling the option `Settings > Session > Close Kate entirely when the last file is closed` should make kate behave like dolphin (see screenshot below)
Comment 2 Jan Paul Batrina 2021-09-27 14:01:12 UTC
Created attachment 141951 [details]
Option to exit kate when last file is closed
Comment 3 Alexander Potashev 2021-09-27 15:20:33 UTC
Thanks!