-
Notifications
You must be signed in to change notification settings - Fork 389
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
Conceal fontawesome5 #2506
Comments
I temporarily realize a plugin to do this work for me. If you realize it in vimtex, please apply this issue, and I'll solve the potential conflict. |
I've added support for the Also, thanks a bunch for providing a solution along with the issue report. I've more or less copied it, although I did found a few minor mistakes in the regexes. I also made some further improvements, I believe. I'll let you be the judge :) |
Works great: I have an advice: Like https://github.com/lambdalisue/nerdfont.vim#contribution and https://github.com/voldikss/vim-browser-search/blob/master/assets/json/engines.json. goodBecause these icons are only data, which use an independent data exchange format may be more reasonable. baddecode a json will cost a little time |
Thanks for the advice. I agree in principle that having the data separated from the code is better. However, in this specific case, I believe it will bring little to no real advantage at a cost of slightly higher complexity. As a pragmatic plugin developer with not too much time, I'll therefore not do this. But I would be willing to consider a PR for something like this, if anyone (you) would be willing to help. Notice that the order of the |
OK, I have tested a PR can work. |
Cool! For future reference: #2528. |
\usepackage{fontawesome5}
provides fontawesome 5 symbol in LaTeX. Older\usepackage{fontawesome}
provides fontawesome 4 symbol in LaTeX.Because https://github.com/FortAwesome/Font-Awesome#documentation, only conceal fontawesome5 is OK.
This is an example:
This is a full list (1440 icons, achieved from fontawesome5 documentation),
their icons can be achieved from https://fontawesome.com/v5/cheatsheet/pro/solid:
The text was updated successfully, but these errors were encountered: