Bug 412806 - [KDevelop]: "sorted list of open documents" should include more parent directories and projectname when necessary
Summary: [KDevelop]: "sorted list of open documents" should include more parent direct...
Status: REPORTED
Alias: None
Product: kdevelop
Classification: Applications
Component: UI: IDEAl (other bugs)
Version First Reported In: 5.4.2
Platform: Other All
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-10 09:22 UTC by RJVB
Modified: 2019-10-10 09:22 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description RJVB 2019-10-10 09:22:49 UTC
SUMMARY
The "sorted list of open documents" drop-down menu includes the parent folder name when multiple files with identical names are open. This doesn't help if those files have the same parent directory name. One trivial case in which this can happen is if you have 2 projects open that each hold a working copy of the same software project, for instance a tinker version and a stock version, or differing in build parameters.

STEPS TO REPRODUCE
1. Open a personal "scratchpad" copy of some software project in a KDevelop session
2. Open another, "stock" copy of the same project
3. Open a given file, once from each project
4. Open the "sorted list of open documents" drop-down

OBSERVED RESULT
No idea which is which in the drop-down list

EXPECTED RESULT
Identifiable entries.

ADDITIONAL INFORMATION
The current algorith that includes the parent directory for duplicates should add as many parent dirs. as required until one that is different is found (or the toplevel project dir. is reached). This path can probably be elided to save some space. In case this still gives 2 identical strings (= when the toplevel dir was reached) the project name should be included (also elided?). If per-project colours are being used a tag of the project colour could be added too.