Comments (9)
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.
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:
- Upload/Download icons could be used to symbolize commits ahead/behind a vcs repository
- clipboard, copy, paste, tags, etc. symbols could be used to display active/recent registers if possible
from powerline.
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.
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.
You can use http://fontello.com/ to generate a custom font that only contain the wanted glyphs.
from powerline.
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.
No additional glyphs will be included with Powerline. The "FT" glyphs have also been removed.
from powerline.
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.
The glyphs were basically at invalid and already reserved unicode code points which caused issues in some terminal emulators.
from powerline.
Related Issues (20)
- [ZSH ONLY] powerline-render error: argument --last-pipe-status: invalid <lambda> value: '0s0'
- No such file or directory (sometimes) HOT 1
- metadata-generation-failed when installing on on python 3.11/macOS 12 HOT 1
- setup fails for development version of tmux HOT 1
- Centre segments section HOT 1
- Logging test fail on python 3.8+
- Is it possible to set a highlight group for the environment variable segment? HOT 1
- Powerline doesn't working on Ubuntu 22.04.3 and bash
- Color and colorshemes override not working - gnome terminal - shell HOT 3
- powerline.segments.common.net.internal_ip HOT 2
- TMUX_VAR_RE does not use raw string, leading to SyntaxWarning with python 3.12
- powerline deprecation warning
- [feature] json schema support HOT 1
- The imp module is removed in Python 3.12 HOT 4
- Questions about Copilot + Open Source Software Hierarchy
- Questions about Copilot + Open Source Software Hierarchy
- does powerline works for csh HOT 4
- Terminal graphics donβt work correctly in Fedora 40 KDE HOT 2
- fuzzy_time segment prints "o'clock three" instead of "three o'clock" HOT 2
- Weather segment broken (Bad Yahoo Weather SSL Cert) in RHEL 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from powerline.