Skip to content

WIP: Unique tab names#113

Open
stdout-se wants to merge 1 commit into
jorio:masterfrom
stdout-se:wip/unique-tab-names
Open

WIP: Unique tab names#113
stdout-se wants to merge 1 commit into
jorio:masterfrom
stdout-se:wip/unique-tab-names

Conversation

@stdout-se

Copy link
Copy Markdown
Contributor

Feedback request for a suggestion:

When multiple tabs are open with the same name, use parent folder names to create unique tab names.

I work in products that have a structured multi-repo layout, where one repo is always named "app", another is always named "tests", and so on. Most of the time I have several of these open at the same time. This can cause confusion.

image

Suggestion: Include parent folder names if tabs have identical names. Two parent levels are used. If they are identical, tabs will be named with an alphabetical prefix "A: tab", "B: tab" etc.

image

Examples:

  • "a/app" and "b/app" would produce tabs "a/app" and "b/app"
  • "a/android/app" and "b/android/app" would produce tabs "a/android/app" and "b/android/app"
  • "a/android/samples/app" and "b/android/samples/app" would produce tabs "A: app" and "B: app"

Lots of questions:

  1. Good idea?
  2. How to handle naming collisions?
  3. How to handle long names?
  4. Special cases to consider?

When multiple tabs are open with the same name, use parent folder names to create unique tab names.

E.g. two tabs in repos "work/a/app" and "work/b/app" will be named "a/app" and "b/app".

Two parent levels are used. If they are identical, tabs will be named with an alphabetical prefix "A: tab", "B: tab" etc.
@stdout-se

Copy link
Copy Markdown
Contributor Author

Maybe truncate middle of path if there is a naming collision > 2 levels?

android/samples/ui/buttons/
ios/samples/ui/buttons/

Becomes
android/.../buttons
ios/.../buttons

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant