Skip to content

Commit

Permalink
Fix cell-path in themes (#911)
Browse files Browse the repository at this point in the history
Four minor changes:

* As previously mentioned, updates `make.nu` to use `cell-path` rather
than `cellpath`
* Slight improvements on #905 (cc @amtoine) - The last theme converted
was the only one printed via `info`, but it didn't get removed from the
screen. Things moved so fast on my system that it looked like only one
theme was being converted, since that's the only message that was left
on the screen ;-). Now prints a "Done" message showing how many themes
were converted and how many failed.
* There was a previous update to `catppuccin-latte.nu` that was
apparently made directly to the theme, rather than the custom src.
Synced these up.
* Bumped `nupm.nuon`
  • Loading branch information
NotTheDr01ds authored Jul 22, 2024
1 parent ecfbad6 commit 90bab5a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion themes/nupm.nuon
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
description: "Officially-supported themes for Nushell"
documentation: "https://github.com/nushell/nu_scripts/blob/main/README.md"
license: "https://github.com/nushell/nu_scripts/blob/main/LICENSE"
version: 0.3.0
version: 0.4.0
type: "module"
}
3 changes: 2 additions & 1 deletion themes/src/custom-nu-themes/catppuccin-latte.nu
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,5 @@ export def main [] {
background: $color_palette.base
foreground: $color_palette.text
cursor: $color_palette.blue
}}
}
}
5 changes: 3 additions & 2 deletions themes/src/make.nu
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def make_color_config [ name: string, source: string = "lemnos" ] {
string: '($colors.color7)'
nothing: '($colors.color7)'
binary: '($colors.color7)'
cellpath: '($colors.color7)'
cell-path: '($colors.color7)'
row_index: { fg: '($colors.color2)' attr: 'b' }
record: '($colors.color7)'
list: '($colors.color7)'
Expand Down Expand Up @@ -251,10 +251,11 @@ def main [] {
$t
}
}
info -n $"Completed converting (($themes | length) - ($failed | length)) themes \r"

print ''
if not ($failed | is-empty) {
warn "The following themes have failed:"
warn $"The following ($failed | length) themes have failed:"
print $failed
} else {
print "all done"
Expand Down

0 comments on commit 90bab5a

Please sign in to comment.