dhaumann added a comment.
There even is a bug report about this: https://bugs.kde.org/show_bug.cgi?id=381532 In this bug report, there is also an example of how sublime text handles this, namely "Document name - path/bla", i.e. the path is appended behind the document name. What about this solution? Algo: 1. When opening a file, identify all other open documents with the same filename 2. For all these documents, create the unique names by appending the path that uniquely identifies the files REPOSITORY R39 KTextEditor REVISION DETAIL https://phabricator.kde.org/D21287 To: loh.tar, #ktexteditor Cc: dhaumann, cullmann, kwrite-devel, kde-frameworks-devel, #ktexteditor, domson, michaelh, ngraham, bruns, demsking, sars