Giter Club home page Giter Club logo

Comments (9)

Lokaltog avatar Lokaltog commented on July 22, 2024

Here's a free icon font we could grab a couple of glyphs from. Which ones do you think could be the most useful?

I'm also thinking about including a couple of more divider styles, at least one "sloped" style (a right triangle) and a S-kind of curved sloped style.

from powerline.

derekbrokeit avatar derekbrokeit commented on July 22, 2024

I'm really liking that this project got started. I had recently begun to think about just this kind of general version of a powerline lib. Thanks for starting it.

I'm not sure you want to add too many icons since most unicode fonts support a lot of helpful ones already (lock, cloud, etc.). Some quick thoughts I had while perusing this list are following. I'm not sure about the usefulness of any of these, but for the sake of consideration:

  1. Upload/Download icons could be used to symbolize commits ahead/behind a vcs repository
  2. clipboard, copy, paste, tags, etc. symbols could be used to display active/recent registers if possible

from powerline.

Lokaltog avatar Lokaltog commented on July 22, 2024

I agree that we should limit the amount of icons, but I think adding 5-10 more icons that have a real purpose could improve the plugin quite a bit. I like your ideas about which icons should be included.

The problem with the existing unicode glyphs (e.g. the three existing pencil icons in the dingbats range) is that they don't exist in most fonts, and on my system the only font that has them looks like total crap (line art with too much detail for smaller font sizes, so they just become a blurry, unidentifiable mess). By providing a set of good icons meant for terminal rendering we have much more control over the appearance of prompts and statuslines.

Another question is: If we choose to include icons that already have assigned code points in Unicode, should we overwrite existing glyphs for fonts that already have them in order to use existing code points as they are intended, or should we add all the custom glyphs to the private use area?

from powerline.

derekbrokeit avatar derekbrokeit commented on July 22, 2024

You make a good point. In that case, it might be wise to consider including the padlock character, too. It is great for signifying that a buffer has no write access. It would be nice to ensure that all systems could take advantage of this without relying on the system-provided resources.

Also, I am not sure where others's stand, but I would personally be confused if there were two characters with the same purpose populating the screen. Some characters may not look great with mixed fonts, but in general, it would probably be good to overwrite the existing character. Some cases that I might caution against it would be the inclusion of a cloud character without all other weather related icons. Aesthetic problems could pop up when mixing unicode generated from different sources.

from powerline.

KangOl avatar KangOl commented on July 22, 2024

You can use http://fontello.com/ to generate a custom font that only contain the wanted glyphs.

from powerline.

Lokaltog avatar Lokaltog commented on July 22, 2024

The code points have been updated in 53fbfe1, and all the symbols have now been moved to the Private Use Area. I haven't decided whether to include more symbols or not, but I've seen a couple on fontello that I think could be useful to include in the font patcher. I'm a bit unsure about some of the icons because they may become very distorted when added to narrow coding fonts.

from powerline.

Lokaltog avatar Lokaltog commented on July 22, 2024

No additional glyphs will be included with Powerline. The "FT" glyphs have also been removed.

from powerline.

gdetrez avatar gdetrez commented on July 22, 2024

Hi @Lokaltog, the link to https://github.com/Lokaltog/vim-powerline/issues/128 that you mentioned in the issue above is now dead (deleted issue tracker?) Could you give a short summary of the discussion/reason why you moved the glyphs?

(And thanks for sharing this really cool code!)

from powerline.

Lokaltog avatar Lokaltog commented on July 22, 2024

The glyphs were basically at invalid and already reserved unicode code points which caused issues in some terminal emulators.

from powerline.

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.