Giter VIP home page Giter VIP logo

Comments (7)

arl avatar arl commented on May 26, 2024 2

from tmux-gitbar.

aljavier avatar aljavier commented on May 26, 2024 1

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:

image

BRANCH_SYMBOL=" "
STAGED_SYMBOL="●"
CONFLICT_SYMBOL="х"
CHANGED_SYMBOL="[+]"
UNTRACKED_SYMBOL="..."
STASHED_SYMBOL=""
CLEAN_SYMBOL="√"
AHEAD_SYMBOL="↑·"
BEHIND_SYMBOL="↓·"
PREHASH_SYMBOL=":"

image

And here is the Character Map app in action:
image

Regards,

A.J.

from tmux-gitbar.

arl avatar arl commented on May 26, 2024

Hi David,

thanks for reporting. Actually I never tried tmux-gitbar on Windows.
I can see 2 ways to solve your problem:

  1. Find a font in which the missing symbols are defined. I point you to the Font section of tmux-gibar documentation

  2. 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

from tmux-gitbar.

davidhatten avatar davidhatten commented on May 26, 2024

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.

from tmux-gitbar.

davidhatten avatar davidhatten commented on May 26, 2024

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.

from tmux-gitbar.

arl avatar arl commented on May 26, 2024

from tmux-gitbar.

arl avatar arl commented on May 26, 2024

Hey @davidhatten
Did you find a solution/workaround?

from tmux-gitbar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.