cullmann added a comment.
If you really want to close the document aka removing it from the application's document list, you need the interface. If you just want to set it back to "untitled document" you can use closeUrl REPOSITORY R39 KTextEditor REVISION DETAIL https://phabricator.kde.org/D20467 To: meven, cullmann, #kate, #frameworks, dhaumann Cc: dhaumann, ngraham, kwrite-devel, kde-frameworks-devel, gennad, domson, michaelh, bruns, demsking, cullmann, sars