Skip to content

feat(launcher): open submodule tabs next to parent with prefixed titles - #2613

Open
berkanuslu wants to merge 4 commits into
sourcegit-scm:developfrom
berkanuslu:master
Open

feat(launcher): open submodule tabs next to parent with prefixed titles#2613
berkanuslu wants to merge 4 commits into
sourcegit-scm:developfrom
berkanuslu:master

Conversation

@berkanuslu

Copy link
Copy Markdown

Submodule tabs now insert right after the parent repo tab instead of appending at end, and display a Parent : Submodule title for quick identification.

Changes

  • Tab placement — Pass parent page hint through OpenRepositoryInTab so submodule tabs insert at parentIdx + 1
  • Title prefix — Compose "ParentName : SubfolderName" for submodule tab titles using a single ComposeSubmoduleTitle helper
  • Live rename sync — Recompose title on every open so renaming the parent immediately reflects in child tabs

Before / After

Before After
A, B, C, D → open submodule in B → A, B, C, D, BB A, B, C, D → open submodule in B → A, B, B : BB, C, D

Files Changed

  • src/ViewModels/Launcher.cs — tab insertion logic + title composition
  • src/ViewModels/Repository.cs — pass parent page to launcher

Submodule tabs now insert right after the parent repo tab instead of
appending at end. Makes related repos visually grouped.

- Pass parent page hint from OpenSubmodule through both overloads
- Insert new tab at parentIdx + 1 when parent is a repository
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