This repository was archived by the owner on Nov 13, 2024. It is now read-only.
chore: add script to generate nerd-fonts v3 icon list#21
Merged
ziontee113 merged 1 commit intoziontee113:masterfrom Jan 3, 2024
Merged
chore: add script to generate nerd-fonts v3 icon list#21ziontee113 merged 1 commit intoziontee113:masterfrom
ziontee113 merged 1 commit intoziontee113:masterfrom
Conversation
Owner
|
Thank you so much @Snxwman for the PR. Since the script is very descriptive it'd be a breeze in the future to adapt to new Nerd Fonts versions. Thank you 👍 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I've written a bash script that extracts all the nerd-fonts icons and names from the nerd-fonts repo and generates a lua file that contains the icon list. This generated file is the same as the previous
nf-v3-icon-list.lua, just with the updated names and icons.I've done my best to comment the script so it is overly clear what the script does.
This script will allow you to regenerate the
nf-v3-icon-list.luafile every time nerd-fonts releases a new version that adds or changes icons.The script is a bit slow (takes about 35 seconds on my desktop) due to how many icons there are (currently about 9200), but only needs to be run once each time nerd-fonts updates their version. It could probably be made faster, but for how infrequently it needs to be run, I don't think it matters much.