Git Product home page Git Product logo

powerline-extra-symbols's Introduction

Powerline Extra Symbols

Extra glyphs for your Powerline separators

These glyphs are now available in the patched fonts from: Nerd Fonts

preview

NOTE: This repo will soon probably just hold the glyphs.

Vim preview also showing column number glyph:

preview

  • vimrc settings to achieve the above:
    " testing extra-powerline-symbols
    
    " set font terminal font or set gui vim font
    " to a Nerd Font (https://github.com/ryanoasis/nerd-fonts):
    set guifont=DroidSansMono\ Nerd\ Font\ 12
    
    " testing rounded separators (extra-powerline-symbols):
    let g:airline_left_sep = "\uE0B4"
    let g:airline_right_sep = "\uE0B6"
    
    " set the CN (column number) symbol:
    let g:airline_section_z = airline#section#create(["\uE0A1" . '%{line(".")}' . "\uE0A3" . '%{col(".")}'])

This prompt is on fiiire (flaming shell), just having some fun:

preview

Glyphs

font forge

Sample Configurations

Example configuration I have for Banga's powerline-shell

        # original
        'patched': {
                'lock': u'\uE0A2',
                'network': u'\uE0A2',
                'separator': u'\uE0B0',
                'separator_thin': u'\uE0B1'
        },
        # angly 1
        'patched': {
                'lock': u'\uE0A2',
                'network': u'\uE0A2',
                'separator': u'\uE0B8',
                'separator_thin': u'\uE0B9'
        },
        # angly 2
        'patched': {
        	'lock': u'\uE0A2',
        	'network': u'\uE0A2',
        	'separator': u'\uE0BC',
        	'separator_thin': u'\uE0BD'
        },
        # curvy
        'patched': {
        	'lock': u'\uE0A2',
        	'network': u'\uE0A2',
        	'separator': u'\uE0B4',
        	'separator_thin': u'\uE0B5'
        },
        # flames (flamey)
        'patched': {
        	'lock': u'\uE0A2',
        	'network': u'\uE0A2',
        	'separator': u'\uE0C0',
        	'separator_thin': u'\uE0C1'
        },
        # lego (blocky)
        'patched': {
        	'lock': u'\uE0A2',
        	'network': u'\uE0A2',
        	'separator': u'\uE0CE',
        	'separator_thin': u'\uE0CF'
        },
        # pixelated blocks 2 (large) random fade (pixey)
        'patched': {
        	'lock': u'\uE0A2',
        	'network': u'\uE0A2',
        	'separator': u'\uE0C6',
        	'separator_thin': u'\uE0C6'
        }

TODO

  • Add more triangles
  • Add more other type glyphs
  • Create Powerline symbol only font for fontconfig
  • Add to more fonts (just testing the included Droid font for now) see: Nerd Fonts
  • Add glyph set to patcher and fonts in Nerd Fonts

powerline-extra-symbols's People

Contributors

ryanoasis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

powerline-extra-symbols's Issues

Can I create my own glyphs ?

I want to create a box like with border (like Github Star button). Is it hard to make one ? Why there only few glyphs ? Thank you!

Spacemacs-style Contour Separator

I'm a big fan of Spacemacs, and I especially like how the interface looks with the contour separator style (see "13.4.2 Separators" in the documentation. For example:

spacemacs screenshot

Any chance you could add the contour-style separator symbols?

Ideally, it would be nice to support all of the separator symbols that Spacemacs supports. I would be happy to help, but I'm do not have any experience with making font glyphs.

n/a

whoops sorry wrong project...

Right Sided Symbols Are Not Flush

The e0be and e0b6 symbols have some of the background bleeding through the right side. With the e0be you can use the inverse to accomplish the same effect(as seen in the picture), but there is no inverse version of e0b6.
screenshot from 2019-02-20 01-26-24

How to use in P9K Theme?

I playing with zsh, because of changing my terminal from bash to zsh.
I found this in https://medium.com/@oldwestaction/beautifying-your-terminal-with-zsh-prezto-powerlevel9k-9e8de2023046.

But i have no idea how to use it.

I like the flames and want to use them in my theme.

At the moment it looks like this:
Bildschirmfoto 2019-06-09 um 12 21 18

i want to change alle the left sided indicators with it, but i can't found a solution for it (trying out some fonts, without success.

I hope someone can help me out...

Inverted Versions

Can you add inverted versions of the arrow characters? (Specifically e0b0 and e0b2). Because I want something like this:

image

What you see above is using inverted colors, and it works! b
But it doesnt work when using effects like transparency because its not transparent too. Which is bad.

image

Adding a inverted version of the character would fix this problem.

rxvt-unicode issue

Hi,

I'm not sure why and if there is something that can be done, but the full width character are not working in rxvt-unicode. u+E0B8 to u+E0D1 are displayed as empty box. The other characters are ok. I tested the font in terminator and it's ok. Tested it in xterm and it's displayed but truncated.

In rxvt-unicode, I don't have any issue with standard full width unicode character like u+FFE6.

Thanks

Any updates on this?

The repo has not been maintained for 3 years now, there are some never released symbols (#7).

Are there any forks? Alternative fonts with similar symbols?

How to patch the symbol ?

Hi, is there a guide on how to patch these additional symbols to existing fonts on ryanoasis/nerd-fonts?! I havent tried all of patched fonts there, but from what I tried so far. None of them have the extra-symbols yet.

The DroidSansMono patched fonts in this repo has the extra symbols though, but no devicons and awesome icons :(

Symbols being cut off

I had a (now fixed) issue whereby symbols such as the flames were being cut off when using the Fira Code patched font in Konsole. The solution was to add whitespace after the symbols when defining them in my .vimrc, as discussed here.
i.e. changing:

let g:airline_left_sep = "\uE0C0"
let g:airline_right_sep = "\uE0C2"

to:

let g:airline_left_sep = "\uE0C0 "
let g:airline_right_sep = "\uE0C2 "

No one else appears to have encountered this specific issue with this set of symbols but thought it might be something worth leaving here for the next person to stumble across this issue

I have no idea where to change the settings for shell

Dear all,
I have installed powerline via
sudo apt install powerline powerline-fonts powerline-gitstatus
because the other way, via github had issues like it could not find the ' ' command.

Funnily enough, the vim I have has its own implementation of powerline, and your docs show how to change the separators and that works well. But for the shell version, don't even know what to change, you mention the patched element, but not the file it has to go to.

I tried to search online, and found this article: powerline/powerline#20
where it shows how to change the separators, but again, to no avail, as you will see in the end notes of the case (I updated a close case, silly me).

Any help would be appreciated, I am going mad wasting hours on hours on this.

Thanks

How to install ?

Hello,

I am desperately trying to install your font, but I can't install them. I tried downloading the otf font in the patched-fonts directory and copying it in my ~/.fonts directory, but it didn't work. The fc-cache -vf command doesn't seem to recognise it. When I launch a gtk2fontsel the font doesn't appear.

Thank you very much in advance :)

Inverted version of the '\uE0B0' triangle

Would it be possible to add the inverted (i.e. negative) version of that symbol?

original -> inverted

Reason is, in PowerShell you can only set the background color of a character to be transparent, not the foreground color.

Unicode characters width

Hello,

I'm curious about the following behavior:
image

This is macOS 10.14.4 running iTerm2 build Build 3.2.9 using Unicode version 9 widths.

As you can see, the two U+E0B8 and U+E0BE symbols don't have the same width.
Is this a thing controlled by the font? Or is the width assign to codepoint ranges by the Unicode standard?

Thanks

powerline-shell config.json file!

dummy issue

this is my configuration file

{
  "segments": [
    "virtual_env",
    "username",
    "ssh",
    "cwd",
    "git",
    "hg",
    "jobs",
    "root"
  ],
  "cwd": {
    "max_depth": 2,
    "full_cwd": true
  },
  "patched" :{
    "lock" : "u'\uE0A2'",
    "network" :" u'\uE0A2'",
    "separator" : "'u'\uE0B8'",
    "separator_thin":"u'\uE0B9'"
  }
}

but don't work, nerd fonts works on my vim configuration but I do not get that works on my shell
can u share ur .json config example please?

Symbols Override font

Powerline uses a font called Powerline Symbols which can be used as a "preferred" font-family in fontconfig.

This "override" font would be helpful, or a way to "generate" this font would be rather neat.

Unable to print "|/" i.e e0bc symbol

The command I used to install the font:

wget https://github.com/ryanoasis/powerline-extra-symbols/blob/master/patched-fonts/DroidSansMonoForPowerlinePlusNerdFileTypesMono.otf

sudo mv DroidSansMonoForPowerlinePlusNerdFileTypesMono.otf /usr/share/fonts/

fc-cache -vf ~/.local/share/fonts/ 

Now while printing the font i.e
cut -c3- ~/.tmux.conf | sh -s _decode_unicode_escapes '\uE0BC'
I am getting some different output
๎‚ผ%

Few questions regarding powerline-extra-symbols

I thinking of installing it but I have a few questions:

  • How do I install it? It is unfortunately unavailable in the AUR and I am not too sure if there is a build script included?
  • I wanted to add it to lemonbar-xft. Is it possible to get these triangle styles (on the right hand side of the taskbar)
    image

`e0ba` is not quite flush

Hello ๐Ÿ‘‹

Thanks for this awesome project. This and NerdFonts are amazing!

I noticed that the symbol e0ba has a slight gap on the bottom, and it doesn't look quite right on a few terminals I've tried. I've had to update my config to use e0bc but inverted.

Here's a screenshot showing the problem.

image

e0ba and e0b8 are good, but the other two are off by a bit.

Thanks again :)

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.