show parent folder name on tabs for repositories with duplicate names - #2669
Open
flowprog wants to merge 1 commit into
Open
show parent folder name on tabs for repositories with duplicate names#2669flowprog wants to merge 1 commit into
flowprog wants to merge 1 commit into
Conversation
Collaborator
|
I do not think this is the right way to distinguish two repository with the same name.
|
Author
|
You're referring to a workspace when you say "group," right? Often, duplicate names happen because they come from the same project—a server-side project, a client-side project, or a front-end project—and they're usually placed in the same workspace. Being able to fully customize names is great, but users need to manually modify them. If the goal is to minimize extra modifications and increase the burden while still providing intuitive differentiation, then automatic naming is also an option. Frankly, I wouldn't have noticed the option to modify it until you mentioned it. Of course, this is just my opinion. |
Collaborator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
When multiple repositories with the same name are opened at the same time, their tabs are indistinguishable — you can only tell them apart by switching through them one by one.
This PR makes the tab bar disambiguate duplicate names by appending the parent folder name:
reporepo (parent-folder)Implementation
DisplayNameproperty toLauncherPage(initialized to the node name) and bind the tab text to it instead ofNode.Name.Launcher.RefreshTabDisplayNames(), which counts repository tab names and appends the parent folder (from the repository path) only when a name is used by more than one open tab.No behavior change for uniquely-named tabs.