mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-01 06:37:46 +00:00
Fix cell-path in themes (#911)
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`
This commit is contained in:
parent
ecfbad67b9
commit
90bab5a139
3 changed files with 6 additions and 4 deletions
|
@ -3,6 +3,6 @@
|
||||||
description: "Officially-supported themes for Nushell"
|
description: "Officially-supported themes for Nushell"
|
||||||
documentation: "https://github.com/nushell/nu_scripts/blob/main/README.md"
|
documentation: "https://github.com/nushell/nu_scripts/blob/main/README.md"
|
||||||
license: "https://github.com/nushell/nu_scripts/blob/main/LICENSE"
|
license: "https://github.com/nushell/nu_scripts/blob/main/LICENSE"
|
||||||
version: 0.3.0
|
version: 0.4.0
|
||||||
type: "module"
|
type: "module"
|
||||||
}
|
}
|
||||||
|
|
|
@ -111,4 +111,5 @@ export def main [] {
|
||||||
background: $color_palette.base
|
background: $color_palette.base
|
||||||
foreground: $color_palette.text
|
foreground: $color_palette.text
|
||||||
cursor: $color_palette.blue
|
cursor: $color_palette.blue
|
||||||
}}
|
}
|
||||||
|
}
|
|
@ -84,7 +84,7 @@ def make_color_config [ name: string, source: string = "lemnos" ] {
|
||||||
string: '($colors.color7)'
|
string: '($colors.color7)'
|
||||||
nothing: '($colors.color7)'
|
nothing: '($colors.color7)'
|
||||||
binary: '($colors.color7)'
|
binary: '($colors.color7)'
|
||||||
cellpath: '($colors.color7)'
|
cell-path: '($colors.color7)'
|
||||||
row_index: { fg: '($colors.color2)' attr: 'b' }
|
row_index: { fg: '($colors.color2)' attr: 'b' }
|
||||||
record: '($colors.color7)'
|
record: '($colors.color7)'
|
||||||
list: '($colors.color7)'
|
list: '($colors.color7)'
|
||||||
|
@ -251,10 +251,11 @@ def main [] {
|
||||||
$t
|
$t
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
info -n $"Completed converting (($themes | length) - ($failed | length)) themes \r"
|
||||||
|
|
||||||
print ''
|
print ''
|
||||||
if not ($failed | is-empty) {
|
if not ($failed | is-empty) {
|
||||||
warn "The following themes have failed:"
|
warn $"The following ($failed | length) themes have failed:"
|
||||||
print $failed
|
print $failed
|
||||||
} else {
|
} else {
|
||||||
print "all done"
|
print "all done"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue