<table><tr><td style="">dhaumann added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D21287">View Revision</a></tr></table><br /><div><div><p>There even is a bug report about this: <a href="https://bugs.kde.org/show_bug.cgi?id=381532" class="remarkup-link" target="_blank" rel="noreferrer">https://bugs.kde.org/show_bug.cgi?id=381532</a><br />
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?</p>
<p>Algo:</p>
<ol class="remarkup-list">
<li class="remarkup-list-item">When opening a file, identify all other open documents with the same filename</li>
<li class="remarkup-list-item">For all these documents, create the unique names by appending the path that uniquely identifies the files</li>
</ol></div></div><br /><div><strong>REPOSITORY</strong><div><div>R39 KTextEditor</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D21287">https://phabricator.kde.org/D21287</a></div></div><br /><div><strong>To: </strong>loh.tar, KTextEditor<br /><strong>Cc: </strong>dhaumann, cullmann, kwrite-devel, kde-frameworks-devel, KTextEditor, domson, michaelh, ngraham, bruns, demsking, sars<br /></div>