D21287: Try to find always an unique visible document name without a number suffix
loh tar
noreply at phabricator.kde.org
Sun May 19 12:16:34 BST 2019
loh.tar created this revision.
loh.tar added a reviewer: KTextEditor.
Herald added projects: Kate, Frameworks.
Herald added subscribers: kde-frameworks-devel, kwrite-devel.
loh.tar requested review of this revision.
REVISION SUMMARY
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.
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.
Drawbacks
- The unique names can change when you open a file
- 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
TEST PLAN
No Patch
F6834935: no-patch.png <https://phabricator.kde.org/F6834935>
Patch
F6834936: patch.png <https://phabricator.kde.org/F6834936>
Hint: The shown "Documents" plugin did not notice name changes, keep this in mind when you play around
REPOSITORY
R39 KTextEditor
REVISION DETAIL
https://phabricator.kde.org/D21287
AFFECTED FILES
src/document/katedocument.cpp
src/document/katedocument.h
To: loh.tar, #ktexteditor
Cc: kwrite-devel, kde-frameworks-devel, #ktexteditor, domson, michaelh, ngraham, bruns, demsking, cullmann, sars, dhaumann
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20190519/4e541373/attachment.html>
More information about the Kde-frameworks-devel
mailing list