Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-5218

Show part of file path for files that have the same name in UI

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • None
    • All Other Issues
    • 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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              con Eike Ziller
              holmsted Lasse Holmstedt
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes