Details
-
Suggestion
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
None
-
None
Description
When editing multiple files with same the filename but different path, Qt Creator only displays the filename, but never the path in the editor toolbar. If you have eg. 20 files with the same name, you always have to hover over the filename to see which one it is.
The same problem also presents itself in the Locator - if you have many files in a deep directory hierarchy, the locator will elide the dir names from right side only, so there is no way to tell which file you're opening, unless you hover over these items too.
Furthermore, this problem is also visible in the ctrl+tab menu for switching editors.
Ideally, if you have multiple files with the same name but different path open, Qt Creator should label them differently, by e.g. showing the part of the file path that differs, or the whole path if it fits.
path/name/bar/foo.qml
path/name/foo.qml
path/name/is/long/and/goes/here/foo.qml
So the labels for above filenames be printed e.g like following:
foo.qml (path/name/bar)
foo.qml (path/name)
foo.qml (.../and/goes/here/) // this is elided from left side since it's so long
Attachments
Issue Links
- is replaced by
-
QTCREATORBUG-10185 Prefix duplicate names in Open Documents to make them unique.
-
- Closed
-