Skip to content

Fix tab titles colliding when opening files with identical basenames - #83

Open
Spandan-Mishra wants to merge 2 commits into
unstablebuild:mainfrom
Spandan-Mishra:fix/disambiguate-tab-titles
Open

Spandan-Mishra wants to merge 2 commits into
unstablebuild:mainfrom
Spandan-Mishra:fix/disambiguate-tab-titles

Conversation

@Spandan-Mishra

Copy link
Copy Markdown
Contributor

fixes #62

Issue

Opening multiple files with identical basenames (such as client/main.go and server/main.go) rendered duplicate tab names in the tab bar, making it ambiguous to identify active buffers.

Fix

Recalibrate tab default titles upon tab creation, removal, or manual rename by computing paths relative to the lowest common ancestor of colliding tabs. Retain dirty attributes across title updates, and revert remaining tabs to their original short names when collisions are closed.

Evidence

Before:
screenshot-2026-09-16_22-50-51

After:
screenshot-2026-09-17_01-18-47

Behavior while closing tabs:

screenrecording-2026-09-17_01-20-40.mp4

Recalibrate tab default titles when opening files with identical basenames
by computing paths relative to their lowest common ancestor. Retain dirty
state across updates and revert remaining tabs to basenames upon closure.

Fixes unstablebuild#62

Signed-off-by: Spandan Mishra <spandanmishra69@gmail.com>
@Spandan-Mishra
Spandan-Mishra force-pushed the fix/disambiguate-tab-titles branch from 4658414 to 21e3146 Compare September 17, 2026 20:47
@Spandan-Mishra Spandan-Mishra changed the title fix: tab titles colliding when opening files with identical basenames Fix tab titles colliding when opening files with identical basenames Sep 17, 2026
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.

Automatically disambiguate tab titles by path

2 participants