Skip to content

Cannot distinguish different files with the same path.filename(x) #8499

Closed

Description

Testing #7854

image

Activity

  1. alexdima commented on Jun 29, 2016

    @alexdima
    MemberAuthor

    I had both the user settings and the workspace settings ...

  2. changed the title [-]Cannot distinguish different files with the sane path.filename(x)[/-] [+]Cannot distinguish different files with the same path.filename(x)[/+] on Jun 29, 2016
  3. added
    ux
    workbench-tabs
    on Jun 29, 2016
  4. bpasero commented on Jun 29, 2016

    @bpasero
    Contributor

    Interesting what ST does in this case:

    image

  5. bgashler1 commented on Jun 29, 2016

    @bgashler1
    Contributor

    As originally designed, we did something very similar: whenever something is opened that is not in the root of the folder, then we show it's parent folder below the file name in smaller text.

    tabs-01c

    Some things to note... If we want to go with this approach, then we need to use something other than the italic font (this was before we decided to use italic font on preview tabs). What we could do is a less pronounced color. Combined with the smaller font size, I think that may work. I can work on some variations of this if we go down this route.

  6. stevencl commented on Jul 4, 2016

    @stevencl
    Member

    If we showed the path to the file in the status bar would this resolve this issue?

    Is there enough horizontal and vertical space in the tab to be able to show the path to the file?

  7. bpasero commented on Jul 13, 2016

    @bpasero
    Contributor

    We should talk about this when I am back from vacation, a user posted a PR that does the simple thing: Just add the path of the file to the tab if another tab has the same name.

  8. ecraig12345 commented on Jul 14, 2016

    @ecraig12345
    Member

    What about showing the path to the file in the window title like ST does? Often I would like to see the full path (for various reasons) even when I don't have multiple files by the same name open. (Since this is a slightly different issue, I can open a separate issue report if that seems more appropriate.)

  9. 19 remaining items

  10. bpasero commented on Aug 15, 2016

    @bpasero
    Contributor

    I pushed a change to show the name of the folder to distinguish tabs with the same file name but I am falling back to showing the full path as soon as the parent folder is also identical. I think that is a good solution.

    Steven Clarke (@stevencl) fyi, this solution is closer to what you suggested in the first place.

  11. jhofker commented on Aug 15, 2016

    @jhofker

    Good stuff!
    image

    But multiple files in one folder matching multiple files in another gets hairy:
    image

  12. bpasero commented on Aug 15, 2016

    @bpasero
    Contributor

    Jordan Hofker (@jhofker) yeah, nice finding, and I saw this today this morning and pushed a fix after our nightly was already running.

    The really only situation you should ever see a full path (that is: workspace relative if the file is from an opened folder) in a tab is when both files have the same parent folder. But that seems to be happening in ST as well:

    image

  13. jhofker commented on Aug 18, 2016

    @jhofker

    Benjamin Pasero (@bpasero) just updated to last night's build and this is working great. Thank you!

  14. removed
    verification-needed
    on Aug 29, 2016
  15. steve-ross commented on Nov 1, 2016

    @steve-ross

    Know this is closed (and working fine) however, is there a way to force setting to always on? Would be useful if i have the editor split so I can tell the following apart easily:

    screen shot 2016-11-01 at 8 54 53 am

  16. bpasero commented on Nov 1, 2016

    @bpasero
    Contributor
  17. peabnuts123 commented on May 28, 2017

    @peabnuts123

    +1 for a setting to force this always on, but for a different use-case than Steve Ross (@steve-ross). Working in a project that has many of the same filenames (e.g. Ember, where filenames are relatively semantic, or many NodeJS apps where index.js has an important role) produces strong usability issues as you often don't need to edit two files with the same name at the same time, but may lose track of which file you have open. It would, personally, make my life a lot easier if I could set a minimum value for tab path (i.e. always show at least the parent folder name, or more if you have multiple instances open) or perhaps a setting similar to window.title wherein you could supply a magic string for tab title and subtitles. I find in Ember especially (where I have many different application.js files and forms and routes with the same name) I have to hover over the tab to see the full path quite often.

  18. steve-ross commented on May 30, 2017

    @steve-ross

    Jeff (@peabnuts123) same use case :) as in my screen shot (react / redux app) maybe that approach makes more sense. Guess we should really dig in and see if we could contribute. Special thanks to all you open source contributors. Don't let our "complaints" & feature requests diminish the fact that you all kick ass for bringing us tools.

  19. davidacreates commented on Jun 7, 2017

    @davidacreates

    +1 i am working on a react/redux app and would love an always on option as Steve Ross (@steve-ross) mentioned.

  20. matthewrbrooks commented on Jun 16, 2017

    @matthewrbrooks

    Another +1 for exactly the same reasons as @orangemooncreative Steve Ross (@steve-ross) ...

    And another +1 for 'it's a great tool'!

    I'm not github-by enough to know whether we should / can file this as a feature request?

  21. locked and limited conversation to collaborators on Nov 18, 2017
  22. added a commit that references this issue on Sep 6, 2026
    b1c81be
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

buguxverifiedworkbench-tabs

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions