<table><tr><td style="">loh.tar created this revision.<br />loh.tar added a reviewer: KTextEditor.<br />Herald added projects: Kate, Frameworks.<br />Herald added subscribers: kde-frameworks-devel, kwrite-devel.<br />loh.tar requested review of this revision.
</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><strong>REVISION SUMMARY</strong><div><p>When you e.g. work on multiple projects at the same time you have often the case that you have documents with a number suffix on tabs or other places like side bars. These suffix give no hint which file it really is.<br />
This patch add some folder name to the document to make the name unique, which should be in any case more helpful than the number suffix.</p>

<p>Drawbacks</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">The unique names can change when you open a file</li>
<li class="remarkup-list-item">The numbering is kept as fallback for rare cases. When it is in use are these numbers also not "static" like in case of "Untitled" documents</li>
</ul></div></div><br /><div><strong>TEST PLAN</strong><div><p>No Patch<br />
<a href="https://phabricator.kde.org/F6834935" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;">F6834935: no-patch.png</a><br />
Patch<br />
<a href="https://phabricator.kde.org/F6834936" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;">F6834936: patch.png</a></p>

<p>Hint: The shown "Documents" plugin did not notice name changes, keep this in mind when you play around</p></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>AFFECTED FILES</strong><div><div>src/document/katedocument.cpp<br />
src/document/katedocument.h</div></div></div><br /><div><strong>To: </strong>loh.tar, KTextEditor<br /><strong>Cc: </strong>kwrite-devel, kde-frameworks-devel, KTextEditor, domson, michaelh, ngraham, bruns, demsking, cullmann, sars, dhaumann<br /></div>