| 702 | } |
| 703 | |
| 704 | func (m *browseModel) helpView() string { |
| 705 | lines := strings.Split(helpText, "\n") |
| 706 | for i, line := range lines { |
| 707 | switch line { |
| 708 | case "Application", "Navigation", "Extension Management", "Filtering", "Readmes": |
| 709 | lines[i] = m.colors.Bold(line) |
| 710 | default: |
| 711 | key, description, ok := strings.Cut(line, ":") |
| 712 | if ok && key != "" { |
| 713 | lines[i] = m.colors.Bold(key) + ":" + description |
| 714 | } |
| 715 | } |
| 716 | } |
| 717 | return strings.Join(lines, "\n") |
| 718 | } |
| 719 | |
| 720 | func (m *browseModel) readmePaneView() string { |
| 721 | style := lipgloss.NewStyle(). |