Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Window title: Show repo basename first as path can get truncated #457

Open
marcellarius opened this issue Apr 10, 2019 · 5 comments
Open

Comments

@marcellarius
Copy link

Problem description

Put the most important information first, rather than bury the lead.

If you've got several Sublime Merge windows open, then it can be hard to identify them. I've currently got 5 instances open and they all just show C:\Users\samdouglas\Projects... in the taskbar or Alt-Tab screen.

Preferred solution

Format the title like this:

${basename(repoPath)} - ${repoPath} - Sublime Merge

e.g. my-cool-app - /home/sam/Projects/my-cool-app - Sublime Merge

Alternatives

Tab support #84 etc. But this would let me use my native OS tab manager 👍

@YellowAfterlife
Copy link

Failing that, at least supporting Sublime Text style show_full_path setting would be nice - in my case repository basenames are always unique, but paths can get pretty long, therefore I am never able to tell which taskbar button corresponds to which repository window.

@YellowAfterlife
Copy link

For anyone on Windows, here's a tiny AutoIt script that auto-"collapses" Sublime Merge window titles from "X:\Dir\Dir2\Project - Sublime Merge" to "Project":

$h0 = 0
While 1
	Sleep(2500)
	$h1 = WinGetHandle("[ACTIVE]")
	If ($h1 == $h0) Then ContinueLoop
	$h0 = $h1
	$s = WinGetTitle("[ACTIVE]")
	If ($s == "") Then ContinueLoop
	$till = StringInStr($s, " - Sublime Merge")
	If ($till <= 0) Then ContinueLoop
	$start = StringInStr($s, "\", 1, -1)
	$next = StringMid($s, $start + 1, $till - $start - 1)
	WinSetTitle("[ACTIVE]", "", $next)
WEnd

@f18m
Copy link

f18m commented Sep 19, 2019

Hi,
I have exactly the same issue on my Linux: I have several GIT repos that I want to keep open at the same time in multiple SublimeMerge windows but the window titles are completely useless.
Also in my case repo paths are unique so just having the "${basename(repoPath)}" part would be fantastic.

Currently I need to search for the right sublime merge window loosing a lot of time.

Authors please address this!! thanks

@elliotmr
Copy link

I would also like chime in on this issue, right now I am working on a project where I routinely have 5 repos open and it is pure torture trying to figure out which is which.

@pacanukeha
Copy link

+1 here - I would love to have the ability to set the display name for each repo

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

No branches or pull requests

5 participants