Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Aug 14, 2022
1 parent ec515b8 commit e2ddda9
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions internal/shell/nushell/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,27 @@ func toNushellstyle(_style string) nushellStyle {
}

replacer := strings.NewReplacer(
"bright-", "light_",
"magenta", "purple",
"bright-black", "black",
"black", "dark_grey",
"bright-red", "red",
"red", "dark_red",
"bright-green", "green",
"green", "dark_green",
"bright-yellow", "yellow",
"yellow", "dark_yellow",
"bright-blue", "blue",
"blue", "dark_blue",
"bright-magenta", "magenta",
"magenta", "dark_magenta",
"bright-cyan", "cyan",
"cyan", "dark_cyan",
"bright-white", "white",
"white", "grey",
)

// TODO colorx -> ansi_(x)
// TODO #rrggbb -> rgb_(r,g,b)

fg := ""
if s.Foreground != nil {
fg = replacer.Replace(s.Foreground.String())
Expand Down

0 comments on commit e2ddda9

Please sign in to comment.