mirror of
https://github.com/charmbracelet/glow
synced 2024-11-10 06:04:18 +00:00
Only dim items when starting a new search
This commit is contained in:
parent
5e27376af4
commit
356cd57c0e
1 changed files with 3 additions and 3 deletions
|
@ -93,7 +93,7 @@ func stashItemView(b *strings.Builder, m stashModel, index int, md *markdown) {
|
|||
title = textinput.View(m.noteInput)
|
||||
date = dullYellowFg(date)
|
||||
case stashStateSearchNotes:
|
||||
if len(m.getNotes()) != 1 {
|
||||
if len(m.getNotes()) != 1 && m.searchInput.Value() == "" {
|
||||
gutter = dimDullFuchsiaFg(verticalLine)
|
||||
icon = dimDullFuchsiaFg(icon)
|
||||
title = dimFuchsiaFg(title)
|
||||
|
@ -114,14 +114,14 @@ func stashItemView(b *strings.Builder, m stashModel, index int, md *markdown) {
|
|||
|
||||
if md.markdownType == newsMarkdown {
|
||||
gutter = " "
|
||||
if m.state == stashStateSearchNotes {
|
||||
if m.state == stashStateSearchNotes && m.searchInput.Value() == "" {
|
||||
title = dimIndigoFg(title)
|
||||
date = dimSubtleIndigoFg(date)
|
||||
} else {
|
||||
title = indigoFg(title)
|
||||
date = subtleIndigoFg(date)
|
||||
}
|
||||
} else if m.state == stashStateSearchNotes {
|
||||
} else if m.state == stashStateSearchNotes && m.searchInput.Value() == "" {
|
||||
icon = dimGreenFg(icon)
|
||||
if title == noMemoTitle {
|
||||
title = dimWarmGrayFg(title)
|
||||
|
|
Loading…
Reference in a new issue