You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
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
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
Two tabs (current)
Two tabs (proposed)
Thoughts?
Reacted by John Michel, Patricio Ezequiel Hondagneu Roig, Collin Mutembei, Pedro A. Melendez, Keegan Farley, Julia, Viktor Dolhishev and Johan Walles
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.
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).
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.
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 👍!
Activity
maxbrunsfeld commentedon Jun 19, 2015
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.candanother-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.mehcode commentedon Jun 19, 2015
For that .. how about
some-dir/../stuff.candanother-dir/../stuff.c.The idea would be to truncate starting from the common point or the middle (if no common point).
maxbrunsfeld commentedon Jun 19, 2015
👍 Perfect.
patrick-steele-idem commentedon Jun 19, 2015
I'm also in favor of the following:
👍
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 themax-widthstyle, but I'm not sure what other implications that would have on the UI.maxbrunsfeld commentedon Jun 19, 2015
That property is set by the UI theme. You might want to open an issue on the Atom Dark UI theme for that.
ollpu commentedon Jun 21, 2015
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 👍!
paulpflug commentedon Jun 21, 2015
I would propose two-lines tabs - in all themes I have tested, there is enough space

like here
billybonks commentedon Oct 12, 2015
in the mean time you can use https://atom.io/packages/ember-tabs