()
| 690 | } |
| 691 | |
| 692 | func (m *browseModel) filterView() string { |
| 693 | label := m.colors.Bold("filter:") |
| 694 | if m.filtering { |
| 695 | label = m.colors.CyanBold("filter:") |
| 696 | } |
| 697 | filter := label + " " + m.filterInput.View() |
| 698 | if m.width <= 0 { |
| 699 | return filter |
| 700 | } |
| 701 | return renderListLine(filter, m.width) |
| 702 | } |
| 703 | |
| 704 | func (m *browseModel) helpView() string { |
| 705 | lines := strings.Split(helpText, "\n") |
no test coverage detected