Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Proposal: Improve tab titles when opening files with the same name #7345

Closed

Description

@patrick-steele-idem

When opening multiple files with the same base name (but in different directories) it is hard to distinguish which tab is associated with which file. Currently, when Atom detects that multiple files with the same name are opened it appends the complete project path after the filename, but it is cut off (making it not very helpful). The user must use their mouse to hover over the tab to know the full path. I think the logic can be improved by including the parent directory name to the left of the file name as shown below:

One tab

one-tab

Two tabs (current)

two-tabs

Two tabs (proposed)

two-tabs-good

Thoughts?

Activity

  1. maxbrunsfeld commented on Jun 19, 2015

    @maxbrunsfeld
    Contributor

    I like this idea. There are cases where it would do a worse job disambiguating the paths than the current behavior (e.g. some-dir/src/stuff.c and another-dir/src/stuff.c), but I think that in many cases it will do a better job. I also just think it's more readable this way - a single path rather than a name and a path separated by a hyphen.

  2. mehcode commented on Jun 19, 2015

    @mehcode
    Contributor

    For that .. how about some-dir/../stuff.c and another-dir/../stuff.c.
    The idea would be to truncate starting from the common point or the middle (if no common point).

  3. maxbrunsfeld commented on Jun 19, 2015

    @maxbrunsfeld
    Contributor

    For that .. how about some-dir/../stuff.c and another-dir/../stuff.c.

    👍 Perfect.

  4. patrick-steele-idem commented on Jun 19, 2015

    @patrick-steele-idem
    Author

    I'm also in favor of the following:

    For that .. how about some-dir/../stuff.c and another-dir/../stuff.c.

    👍

    On a related note, I do see a problem with tabs currently having a max-width: 160px; style. I feel like it is more important for a tab to take up the needed width than setting some arbitrary max width. I would drop the max-width style, but I'm not sure what other implications that would have on the UI.

  5. maxbrunsfeld commented on Jun 19, 2015

    @maxbrunsfeld
    Contributor

    I do see a problem with tabs currently having a max-width: 160px; style.

    That property is set by the UI theme. You might want to open an issue on the Atom Dark UI theme for that.

  6. ollpu commented on Jun 21, 2015

    @ollpu

    Would be a much appreciated feature for me! I often develop two separate modules which have a similar file structure, and distinguishing between their files can be difficult in Atom. @mehcode's idea seems perfect 👍!

  7. paulpflug commented on Jun 21, 2015

    @paulpflug

    I would propose two-lines tabs - in all themes I have tested, there is enough space
    fnt-one
    like here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions