on main help sign in
feat(bangmode): adjust command output color
5f07034Kieran Klukas
internal/ui/chat/shell.go+1−4
@@ -201,10 +201,7 @@ func (s *ShellItem) RawRender(width int) string {
201 prompt = s.sty.Messages.ShellPromptBlurred.Render("$")
201 prompt = s.sty.Messages.ShellPromptBlurred.Render("$")
202 }
202 }
203
203
204− highlighted, err := common.SyntaxHighlight(s.sty, cmd, "cmd.sh", s.sty.Background)
205− if err != nil || highlighted == "" {
206− highlighted = s.sty.Messages.ShellCommand.Render(cmd)
204+ highlighted := s.sty.Messages.ShellCommand.Render(cmd)
207− }
208 header := prompt + " " + highlighted
205 header := prompt + " " + highlighted
209
206
210 if s.pending {
207 if s.pending {
internal/ui/styles/quickstyle.go+1−1
@@ -849,7 +849,7 @@ func quickStyle(o quickStyleOpts) Styles {
849 s.Messages.ShellPrompt = base.Foreground(o.primary).Bold(true)
849 s.Messages.ShellPrompt = base.Foreground(o.primary).Bold(true)
850 s.Messages.ShellPromptBlurred = base.Foreground(o.fgMoreSubtle)
850 s.Messages.ShellPromptBlurred = base.Foreground(o.fgMoreSubtle)
851 s.Messages.ShellCommand = base.Foreground(o.fgBase)
851 s.Messages.ShellCommand = base.Foreground(o.fgBase)
852− s.Messages.ShellOutput = subtle
852+ s.Messages.ShellOutput = lipgloss.NewStyle().Foreground(o.fgSubtle)
853 s.Messages.ShellExitCode = lipgloss.NewStyle().Foreground(o.destructive)
853 s.Messages.ShellExitCode = lipgloss.NewStyle().Foreground(o.destructive)
854 s.Messages.ShellTruncation = muted
854 s.Messages.ShellTruncation = muted
855
855