ryanoasis/nerd-fonts

nerdicons.nvim support search icon and copy icon inside neovim

glepnir opened this issue · 13 comments

Hi I am not sure i can create this issue for my plugin first . if it's not allowed please close it. I create a neovim plugin allow search icons in side neovim and easy to copy icon . nerdicons.nvim

gif

Finii commented

Nice plugin!

The issue will be closed, because issues is a 'thing' we need to act on, and if it is solved it is closed. Kind of a to-do-list.

I guess you want your plugin to be promoted. That would have to go into the docu somewhere; I have no clue where. Maybe you can suggest a place and a text that you would like?

Other than that, I guess typically you put your plugin into any number of plugin manager 'databases'. Or on the neovim website? I do not know, but I guess they have no list of plugins. So the plugin managers that would be.

As for the plugin itself ... you have this icons.lua file, which is not automatically created. Maybe somehow use the https://github.com/ryanoasis/nerd-fonts/blob/master/glyphnames.json

yeah it's okay. the icons.lua is generate by script. it parse the html source code of nerdfonts website. this json file very useful thanks !! can put this plugin in nerdfonts doc or wiki ? thanks .

doest this json file include the obsolete icons?

Finii commented

doest this json file include the obsolete icons?

It is the same data as the html (css / cheat sheet), so yes. They are not flagged specifically; but the range is clear (F500-FFFF, roughly speaking).

is generate by script

A perfect place to learn github workflows and let the script be run anytime its source changes ;-)

...

And sure, if you find a nice place in the docs...

yes i can create a github action for generate the icons.lua . also i can create it by reading json file in neovim by json decode .

thanks :)

Finii commented

:-) And thanks for closing this issue.

I'm currently fighting to get the issue count down to be ready for version 3.0.0.

Well, I am quite proud how I pulled down the number in the last time. Its so hard to keep up with incoming issues 😬

image

Number of issues over time, via https://9-volt.github.io/bug-life

Thank you for your excellent work. 👍

looks like this json file does not have the icon code ..so i can't to know the icon in F501-FFFF range. can we have a new json file or something else that i can use .

Finii commented

Well, see

Unfortunately it is not easy to add the raw code without breaking backward compatibility.

But to solve your problem, can you not just extract the code from the glyph? Depending on your language, but that should be very easy.

image

Or check if the name starts with "mdi-", they are the affected (obsoleted) icons.

Finii commented

@glepnir Added codepoint to json data with commit above.

oh that's really nice and useful thanks.

and can add nerdicons.nvim in this area ?

image