Skip to content

Commit

Permalink
Replace deprecated Nerd Font icons
Browse files Browse the repository at this point in the history
Nerd Font 3.0.0 removed the old Material Design icons and replaced them
with different codepoints, ugh.

Ref: ryanoasis/nerd-fonts#365
  • Loading branch information
ajvondrak committed May 18, 2023
1 parent 4ac87c1 commit e0d74bb
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
24 changes: 12 additions & 12 deletions doc/settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ This icon indicates the left prompt and changes colors to convey different infor

### Data

| Setting | Default | Notes |
|----------------|------------|------------------------------------------------|
| `logo` | `"\ufa62"` | Sets default logo for all three of the below |
| `logo:ok` | - | Logo when the last exit status was zero |
| `logo:error` | - | Logo when the last exit status was non-zero |
| `logo:vicmd` | - | Logo when you're in vi mode |
| Setting | Default | Notes |
|----------------|-------------|------------------------------------------------|
| `logo` | `"\Uf0563"` | Sets default logo for all three of the below |
| `logo:ok` | - | Logo when the last exit status was zero |
| `logo:error` | - | Logo when the last exit status was non-zero |
| `logo:vicmd` | - | Logo when you're in vi mode |

## `path`

Expand Down Expand Up @@ -164,12 +164,12 @@ By default, this is indicated with the four combinations of two possible colors

### Data

| Setting | Default | Notes |
|----------------------|------------|------------------------------------------|
| `git:index:clean` | `"\uf7d7"` | A filled-in hexagon |
| `git:index:staged` | `"\uf7d8"` | An unfilled hexagon outline |
| `git:index:unstaged` | `"\uf7d8"` | An unfilled hexagon outline |
| `git:index:conflict` | `"\uf7d7"` | A filled-in hexagon |
| Setting | Default | Notes |
|----------------------|-------------|------------------------------------------|
| `git:index:clean` | `"\Uf02d8"` | A filled-in hexagon |
| `git:index:staged` | `"\Uf02d9"` | An unfilled hexagon outline |
| `git:index:unstaged` | `"\Uf02d9"` | An unfilled hexagon outline |
| `git:index:conflict` | `"\Uf02d8"` | A filled-in hexagon |

**N.B.** Although none of the default format strings use them, they are always given `printf` arguments. `git:index:conflict` is given the number of files with merge conflicts. The others are given:
1. the number of staged files
Expand Down
8 changes: 4 additions & 4 deletions elements/git/index
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ euclid::optics "git:index:staged" "green"
euclid::optics "git:index:unstaged" "red"
euclid::optics "git:index:conflict" "red"

euclid::data "git:index:clean" "\uf7d7"
euclid::data "git:index:staged" "\uf7d8"
euclid::data "git:index:unstaged" "\uf7d8"
euclid::data "git:index:conflict" "\uf7d7"
euclid::data "git:index:clean" "\Uf02d8"
euclid::data "git:index:staged" "\Uf02d9"
euclid::data "git:index:unstaged" "\Uf02d9"
euclid::data "git:index:conflict" "\Uf02d8"

euclid::element "git:index" euclid::elements::git::index

Expand Down
2 changes: 1 addition & 1 deletion elements/logo
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
euclid::optics "logo:vicmd" "214"
euclid::optics "logo:error" "red"

euclid::data "logo" "\ufa62"
euclid::data "logo" "\Uf0563"

euclid::element "logo" euclid::elements::logo

Expand Down

0 comments on commit e0d74bb

Please sign in to comment.