Comments (10)
@l1n3n01z Without sounding negative/demanding - is that something you could come up with PR for? It would be greatly appreciated and accepted. I surely lack enough unicode knowledge to push it further.
I will have to read up on the contributing guidelines and in general how to do PRs on github, but I'm happy to.
from nvim-web-devicons.
hi !
I wouldn't encode each character icon by default, but maybe encoding only the needed icons should suffice, maybe making some rtl_wrap function that you would pass like icon = rtl_wrap('ﭨ')
. My terminal handles this by default so i cannot really spend time debugging this, but you could make a PR when you have time :)
from nvim-web-devicons.
hi ! I wouldn't encode each character icon by default, but maybe encoding only the needed icons should suffice, maybe making some rtl_wrap function that you would pass like
icon = rtl_wrap('ﭨ')
. My terminal handles this by default so i cannot really spend time debugging this, but you could make a PR when you have time :)
Your terminal "works" because it does not handle RTL at all. More featureful terminals do. Mintty and Kitty at least. So really this is a bug and should be fixed.
The smallest possible fix would be to fix it in the default icons. Check which icons there are RTL and wrap them with the correct characters manually. This would mean that the defaults are not broken for users of terminals that support RTL.
from nvim-web-devicons.
Thank you @l1n3n01z
The pragmatic solution is indeed to use a sane terminal.
from nvim-web-devicons.
This shouldn't have been closed yet.
from nvim-web-devicons.
This shouldn't have been closed yet.
What is outstanding? This is a problem with the terminal, not nvim-web-devicons.
from nvim-web-devicons.
This shouldn't have been closed yet.
What is outstanding? This is a problem with the terminal, not nvim-web-devicons.
There is still an outstanding bug in Unicode handling in this project.
Mintty is the only terminal for WSL that behaves correctly for a variety of TUI tools. Kitty is one of the most popular terminals on Mac.
These terminals are sane in the way they handle RTL characters. That is, for people who use RTL alphabets in their day to day work in a terminal environment. They also behave correctly in this regard according to the semantics of Unicode.
Terminals that don't handle RTL correctly are deficient for this particular use case.
When a project decides to use Unicode characters that have particular semantics for display purposes, they have a responsibility to do so in a sane way.
I have described an easy solution. In the default configuration, shield the character with characters that change the semantics so that it can be used for display purposes.
Another solution would be to only use Unicode characters in the default configuration that you actually know how to use correctly.
The solution that you seem to have chosen, to ignore the problem, means that users will first have to understand what is wrong, which takes a long time.
Then they have to do one of the following:
- Find a terminal that is objectively worse for their day to day work (i.e. switch to a terminal that suck for WSL, switch to a terminal that doesn't handle terminal graphics or that doesn't handle colors or cannot render their native language in the way it should when writing emails or for note taking)
- Change the default configuration, with the caveat that this needs some extra coding to handle color scheme changes.
- Stop using a project that makes their nvim file tree slightly prettier but messes up the text rendering in a lot of cases.
- Fork the project, locally or otherwise, which means maintenance.
The default config should not break text rendering in any modern terminal. You have had several bug reports on this issue. Maybe fix it instead of being facetious about it?
from nvim-web-devicons.
@l1n3n01z Without sounding negative/demanding - is that something you could come up with PR for? It would be greatly appreciated and accepted. I surely lack enough unicode knowledge to push it further.
from nvim-web-devicons.
In the very least, please reopen this issue.
from nvim-web-devicons.
What is the appearance of the icons following grep 'icon = "' lua/nvim-web-devicons.lua
?
from nvim-web-devicons.
Related Issues (20)
- Git Staged symbol missing HOT 5
- File with .md extension show unknown icon HOT 8
- chore: sort icons_by_filename and icons_by_file_extension
- Add arduino (.ino) icon HOT 2
- Add TypoScript (TYPO3) icons
- compose.yml , should have the same icon as docker-compose.yml and Dockerfile HOT 1
- Is there a way to set default options (hidden by default) HOT 1
- Font
- bug: OptionSet autocommand is clearing the Neovim intro screen HOT 3
- Errors showing in nvim due to hex color with 7 characters HOT 2
- TOML icon broken HOT 7
- Are you open to a PR for adding operating system icons? HOT 5
- Package-lock.json file name causes error HOT 3
- Outdated Terraform file icon
- New JS icon is not legible/recognizable in small size HOT 11
- Question - Where to find / edit git icons. Maybe not part of this codebase?
- Icons for C++20 module files doent work HOT 1
- Consolidate Default Icon Set: Seti HOT 1
- Material Icon Set
- Highlight Error HOT 4
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 nvim-web-devicons.