-
Notifications
You must be signed in to change notification settings - Fork 30.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Identical file name path in tab is too long and difficult to diff #12040
Comments
Sounds like a fun PR. The entry point is https://github.com/Microsoft/vscode/blob/master/src/vs/workbench/browser/parts/editor/tabsTitleControl.ts#L258 |
Great idea, its confusing when 60% of my files are named |
@kumarharsh do you mean like in my proposal or like |
The second part of my comment:
was meant to provide an example of what is good in the current UI (filename first, folder low-lighted). Perhaps if the UI can somehow merge the goodness of both the existing UI as well as your proposal (unique folder names, lowlighted)... |
I would suggest this one for your example:
I mean: Showing the left-first different names is good enough. When the user points the mouse at the tabs, VSC already shows up full paths. Another idea: you can add a second line and put the path there. That will leave more room. It could be an option in settings (whether to use second line or not). |
@Mac-pro but the last one is not enough information imo as both |
As I understand ... represents one or more path segments? |
@hun1ahpu yes, provided a and f dirs don't appear in each others paths elsewhere. Enough information to disambiguate the file name. |
|
Verified with 2 minor issues filed, thanks again @hun1ahpu 👍 |
Current:
Proposed:
To describe the behavior I want: It should replace all parts of the start of the path that are the same with
…/
, then add the differing word(s) and then either/…/
or/
. This makes it easier to differentiate each tab and also reduces the total space taken by the tab particularly in a deep directory structure.Some interesting cases could arise when more than 2 files collide in which maybe 2 parts of the path would need to be displayed, for example:
src/vs/workbench/parts/execution/electron-browser/terminalService.ts
src/vs/workbench/parts/execution/electron-browser/something/terminalService.ts
src/vs/workbench/parts/terminal/electron-browser/terminalService.ts
Could yield:
…/execution/electron-browser/terminalService.ts
…/execution/electron-browser/something/terminalService.ts
…/terminal/…/terminalService.ts
Basically just providing enough information to uniquely identify the file,
electron-browser
could not be truncated above as…/execution/…/terminalService.ts
represents both files.Another interesting edge case: single letter folders would probably consume more space when truncated.
The text was updated successfully, but these errors were encountered: