Remove "News:" prefix from news items

This commit is contained in:
Christian Rocha 2020-11-25 21:36:29 -05:00
commit dd9179a9ae
2 changed files with 1 additions and 7 deletions

View file

@ -47,11 +47,6 @@ func (m *markdown) buildFilterValue() {
m.filterValue = m.Note
}
if m.markdownType == NewsDocument {
m.filterValue = "News: " + note
return
}
m.filterValue = note
}

View file

@ -12,7 +12,6 @@ import (
)
const (
newsPrefix = "News: "
verticalLine = "│"
noMemoTitle = "No Memo"
fileListingStashIcon = "• "
@ -32,7 +31,7 @@ func stashItemView(b *strings.Builder, m stashModel, index int, md *markdown) {
if title == "" {
title = "News"
} else {
title = newsPrefix + truncate(title, truncateTo-rw.StringWidth(newsPrefix))
title = truncate(title, truncateTo)
}
case StashedDocument, ConvertedDocument:
icon = fileListingStashIcon