D21287: Try to find always an unique visible document name without a number suffix

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

D21287: Try to find always an unique visible document name without a number suffix

Malte Kraus
View Revision
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
Patch
F6834936: patch.png

Hint: The shown "Documents" plugin did not notice name changes, keep this in mind when you play around


REPOSITORY
R39 KTextEditor


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