How to show title of gitk instance in application switcher?

I usually have multiple instances of Gitk open while working on projects. When I switch between Gitk windows I cannot see which Gitk instance belongs to which project, though.

GitK in application switcher

The project title is written in the header of the window once have it in foreground.

Is it possible to show the window title in the application switcher?

1

2 Answers

Check if using <Super>+<Tab> instead of <Alt>+<Tab> is useful for you.

If so, that can be configured in Settings -> Keyboard Shortcuts (Switch windows vs. Switch applications).

enter image description here

Besides, a couple of possibly useful links, which may even be interesting as replacement features from what you have in mind:

5

Since gitk is a friendly wish (Tcl/Tk) program, we can utilize wish's options to do what you want manually. There might be a way to edit /usr/bin/gitk to do exactly what you want, but I have found an alternative.

Method:

cd ./dir-with-git-repo/
wish /usr/bin/gitk -name "Manual Name"

Result:

Application Switcher now shows gitk icon instance with "Manual Name" as application name.

Alt Method:

Edit /usr/bin/gitk line 3:

exec wish "$0" -- "$@"

to

exec wish "$0" -name "$@" -- "$@"

Alt Result:

"$ gitk" shows -- for gitk application name "$ gitk branchname" shows branchname for gitk application name in switcher.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like