Unique tab names for multiple repositories with the same last dir name
Created originally on Bitbucket by m5k8 (Michael Konieczny)
I have several simultaneously open repositories, and often tabs have the same name. This is due to the fact, that my repos are placed in dirs like: .../something1/firmware, .../something2/firmware, etc. Or .../something/src. Then almost all tabs have the same name ("firmware" or "src") and it's hard to navigate amongst them. There's an option to show full path of the repo in title bar (Full Path Title), but this covers only currently selected tab. My suggestion is as follows: when there are multiple tabs with the same name, extend the tab name with repo path. It doesn't have to be full path from the root (so the tabs don't get too wide), but prepend one directory up every path, until all tab names are unique and distinguishable. So for example, for two repos:
- /some/path/product1/firmware
- /some/path/product2/firmware we would have the following tabs:
- product1/firmware
- product2/firmware instead of
- firmware
- firmware Many text editors do it this way, for simultaneously open files that have the same names.
Thanks in advance!