I'm not really a developer or contributor, and I'm really not sure where to post this, but I have a feature request for a toggle somewhere in the kwrite (and kate, but to a lesser extent) settings to be able to close the editor when the last open document is closed, and to possibly make that the default behavior. My main point is that kwrite is a single document application, and I usually have a specific file I want to open, edit it, and then to close it with Ctrl+W. This closes the tab, but then creates a new untitled document in the same view, but this is rarely ever what I either want to do or expect to happen. I then need to re-close the entire window, which is annoying. Having it close when the last document is closed would mirror other file viewers like Windows Notepad.
This has been added some time ago :) Settings -> Configure Kate... -> Session -> Application Shutdown Behavior -> Close Kate entirely when the last file is closed
Sorry missed that it was mainly for KWrite..., there it does not work.
Git commit ea043f3c389f6ef32949794573da56fd7462ff7f by Christoph Cullmann. Committed on 30/03/2022 at 20:09. Pushed by cullmann into branch 'master'. add simplified session config this allows some basic stuff to be configured for KWrite e.g. should it close on last document, how many recent files and when to clear meta info as requested in Related: bug 438783, bug 425061 overall menu consistency is fixed, too M +31 -29 kate/kateconfigdialog.cpp M +3 -3 kate/ui/sessionconfigwidget.ui https://invent.kde.org/utilities/kate/commit/ea043f3c389f6ef32949794573da56fd7462ff7f