Closed davidhatten closed 5 years ago
Hi David,
thanks for reporting. Actually I never tried tmux-gitbar on Windows. I can see 2 ways to solve your problem:
Find a font in which the missing symbols are defined. I point you to the Font section of tmux-gibar documentation
You can easily replace the problematic symbols with other symbols, for that check out the Symbols section of the doc. All default symbols can be redefined in your tmux-gitbar configuration file, find the complete list in ./lib/tmux-gitbar.sh
I'll see about getting Consolas Powerline installed, if that's applicable in my case.
Are you familiar with the Linux Subsystem/Bash on Ubuntu on Windows framework? It's not entirely correct to say that this is running on Windows, but nor is it entirely wrong to say that. It may exist on Windows, but it is 100% a bash terminal that reads from ~/.bashrc
at runtime. It's some crazy magic that's probably contributing to whatever issue is happening here. I'll dig around.
Using the referenced Consolas Powerline in the Fonts section results in the same artifacts as Consolas.
It seems like this is happening with every font. There's probably something deeper going on, and the issue is likely with Bash on Ubuntu on Windows and not with your library.
Sorry to hear that. Maybe you could go with replacing the characters in tmux gitbar config file
I am interested in knowing how you resolve the font problem. If you find a suitable font for your system I'd include it in the doc as I guess Ubuntu subsystem for Window will be more and more used in the future.
Cheers
On 30 Sep 2017 22:40, "davidhatten" notifications@github.com wrote:
Using the referenced Consolas Powerline in the Fonts section results in the same artifacts as Consolas.
It seems like this is happening with every font. There's probably something deeper going on, and the issue is likely with Bash on Ubuntu on Windows and not with your library.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/aurelien-rainone/tmux-gitbar/issues/49#issuecomment-333334612, or mute the thread https://github.com/notifications/unsubscribe-auth/AAdF6nFfqBxs5oms5cr_CS3UKC6SeDSDks5snqdLgaJpZM4PpkMl .
Hey @davidhatten Did you find a solution/workaround?
I was in the same situation. What I did was that I first installed consoles-font-powerline, which as @davidhatten said did not fix the issue.
Then I went to the .tmux-gitbar/lib/tmux-gitbar.sh
directory and verified there that the characters were unreadable. So I decided to copy those characters variables on my .tmux-gitbar.conf
and replace the characters as needed. For some reason, even having the fonts installed and/or copy-pasting the characters from the file here on the repository (where the fonts are readable correctly) it does not display well on Windows.
So, open the Character Map
app on Windows, and select Powerline Consolas
, search over there whatever character you want to use, I did not find some of the ones I see here in the default file but I did not search that much I'm in a hurry. Select the character and then go to your .tmux-gitbar.conf
and change it there. This is part of my config now:
BRANCH_SYMBOL=" "
STAGED_SYMBOL="●"
CONFLICT_SYMBOL="х"
CHANGED_SYMBOL="[+]"
UNTRACKED_SYMBOL="..."
STASHED_SYMBOL=""
CLEAN_SYMBOL="√"
AHEAD_SYMBOL="↑·"
BEHIND_SYMBOL="↓·"
PREHASH_SYMBOL=":"
And here is the Character Map app in action:
Regards,
A.J.
Hey, thanks a lot for your feedback. I'm gonna close the issue and add a link to this issue in the readme.
On Tue, 12 Jun 2018, 17:08 A. J. Javier, notifications@github.com wrote:
I was in the same situatiopn. What I did was that I first installed consoles-font-powerline https://github.com/runsisi/consolas-font-for-powerline, which as @davidhatten https://github.com/davidhatten said did not fix the issue. Then I went to the .tmux-gitbar/lib/tmux-gitbar.sh directory and verified there that the characters were unreadable. So I decided to copy those characters variables on my .tmux-gitbar.conf and replace the characters as needed. For some reason, even having the fonts installed and/or copy-pasting the characters from the file here on the repository (where the fonts are readable correctly) it does not display well on Windows.
So, open the Character Map app on Windows, and select Powerline Consolas, search over there whatever character you want to use, I did not find any correspondent of the one I see here in the default file but I did not search that much I'm in a hurry. Select the character and then go to your .tmux-gitbar.conf and change it there. This is part of my config now:
[image: image] https://user-images.githubusercontent.com/1992392/41299027-8996be16-6e30-11e8-9a18-75b7455a1d76.png
BRANCH_SYMBOL=" " STAGED_SYMBOL="●" CONFLICT_SYMBOL="х" CHANGED_SYMBOL="[+]" UNTRACKED_SYMBOL="..." STASHED_SYMBOL="" CLEAN_SYMBOL="√" AHEAD_SYMBOL="↑·" BEHIND_SYMBOL="↓·" PREHASH_SYMBOL=":"
And here is the Character Map app in action: [image: image] https://user-images.githubusercontent.com/1992392/41299070-a3385258-6e30-11e8-9ceb-3c07d76b36f7.png
Regards,
A.J.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/arl/tmux-gitbar/issues/49#issuecomment-396624513, or mute the thread https://github.com/notifications/unsubscribe-auth/AAdF6uNhY1KeegpFZz6pz2GFvbMZms80ks5t79mDgaJpZM4PpkMl .
Hi, I'm using this in Bash on Ubuntu on Windows. The arrow symbol is showing up, but nothing else is.
In Courier:
In Consolas