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
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.lua
file 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.