Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update nerd font classes to comply with v3 changes #101

Closed
NewtonChutney opened this issue May 3, 2023 · 6 comments
Closed

Update nerd font classes to comply with v3 changes #101

NewtonChutney opened this issue May 3, 2023 · 6 comments
Assignees

Comments

@NewtonChutney
Copy link

Currently the icons seem to not work with a v3 patched font.. Just noticed this behavior yesterday. See the "next release outlook" section of release 2.3.3 of the nerd-fonts repo.

Most of the icon classes show up as deprecated in the cheat sheet, and have to change too. (eg, nf-mdi-onedrive => nf-md-microsoft_onedrive, nf-mdi-ship_wheel => nf-md-ship_wheel)

@NewtonChutney NewtonChutney changed the title Update nerd don't classes to comply with v3 changes Update nerd font classes to comply with v3 changes May 3, 2023
@mattcargile
Copy link

Yeah the data\glyphs.ps1 needs a modification. I wonder if there is a way to get a json dump of the glyphs and name from the site.

@NewtonChutney
Copy link
Author

Yeah the data\glyphs.ps1 needs a modification. I wonder if there is a way to get a json dump of the glyphs and name from the site.

I was able to find something useful here:
https://github.com/ryanoasis/nerd-fonts/master/glyphnames.json

From this issue: ryanoasis/nerd-fonts#1189 (comment)

@Finii
Copy link

Finii commented May 5, 2023

Main thread at Nerd Fonts about this issue is ryanoasis/nerd-fonts#1190

There are tools to help migration (listed in that thread).

@devblackops
Copy link
Owner

There is a psake task to create a new glyphs.ps1 here. It parses the cheat sheet page. Provided you have the psake module installed, you can run it with the command below.

./build.ps1 -task UpdateGlyphs 

@jhongyu
Copy link

jhongyu commented Jul 6, 2023

Is a new version planned to fix this problem?

@devblackops devblackops self-assigned this Jul 6, 2023
@devblackops
Copy link
Owner

v0.11.0 has been released with support for v3 nerd fonts. Please update to that version with:

Update-Module Terminal-Icons

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants