Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Use Nerd Font css class names instead of hardcoding #192

Labels
enhancementNew feature or requesthelp wantedExtra attention is needed
@mochaaP

Description

@mochaaP

Background

Nerd Fonts plans to introducea breaking change in v3.0.0:

Next Release Outlook

Thev3.0.0 release will bring two bigger changes:

Material Design Icons

The Material Design Icons have to move codepoints. Historically we patch them in betweenF500 -FD46; but part of that range is needed for Chinese and other glyphs. With #773 andPlan 5+ of#365 their new home will be afterF0001. And they grow considerably.

Thev2.3.x release has both, the 'old' and the 'new' codepoints to enable you an easier transision.Please change alreadynow your prompts and other uses to the new codepoints. Releasev3.0.0 will finally drop the old codepoints (F500 -FD46).

Naming

Naming will also change. The name parts will move to places where they are customarily expected (e.g. weight and style comes last). This will fix some more problems. Probably we will drop theComplete monicker, as ... everyone uses the complete versions, it just takes precious space in the names.
The details are not fixed yet, follow#1074 to keep up to date.

Hardcoding glyphs are very fragile to those changes. Moreover, if a user choose to use custom codepoint ranges (due to conflicts, etc.), it's a hassle to manually replace all icons in every plugin.

Solution

Fortunately, Nerd Fonts do have methods for getting glyphs via name, one via CSS class names, one beingwork in progress.

I suggest we could made the glyph table into a single .lua file and reference that and additionally, sync upstream with CI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp