How to set project window title

Answered

Hello

Is there a way to change the main IntelliJ project window title (either via an API hook or via preferences) ?  We would like to include the current git branch int the window title, which would allow us to automate our time spent on each issue via tools like WiseTime.

Screenshot below:

 

0
8 comments

Thanks for confirming this Serge.

I wrote a plugin this afternoon to insert the git branch name in the window title of IntelliJ.   I've posted plugin bundle here
<https://github.com/PracticeInsight/branch-window-title/releases>. It will include the branch name in the window title (where the given project/module contains a git repository).  It uses the root git repo's branch name (and will ignore any git submodule branch state).

1

Thank you for the contribution, I'm sure some users will find it very handy.

0
Avatar
Permanently deleted user

Thanks for your efforts, Thomas. I've installed it. Unfortunately when I change the git branch, the title isn't updated. :-(


Version:

IntelliJ IDEA 2017.3.3 (Ultimate Edition)
Build #IU-173.4301.25, built on January 15, 2018
JRE: 1.8.0_152-release-1024-b11 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.12.6

0

Birgit, the title will only change once IntelliJ itself detects the changed branch state.  If you look at bottom right hand corner of window, has the Git: `xxxx` text updated to your expected branch name?

This is the first issue reported, so keen to understand it re fix.

 

0
Avatar
Permanently deleted user

Thanks, Thomas, for replying. Sorry for my late reply, I was on holiday.


I tried to reproduce the problem again and failed (fortunately).
I actually use the dropdown (bottom right hand) to switch between branches. Probably last time the switch failed, even though the dropdown did show the selected branch.

0
Avatar
Permanently deleted user

On the original question, is it possible to customize the window title? Currently seems to show : project_name [project_path] - file_path. I would like to remove the file_path from the title bar.

0

Please sign in to leave a comment.