diff --git a/ui/markdown.go b/ui/markdown.go index c108b2a..91679b4 100644 --- a/ui/markdown.go +++ b/ui/markdown.go @@ -47,11 +47,6 @@ func (m *markdown) buildFilterValue() { m.filterValue = m.Note } - if m.markdownType == NewsDocument { - m.filterValue = "News: " + note - return - } - m.filterValue = note } diff --git a/ui/stashitem.go b/ui/stashitem.go index 4cd265d..24325d1 100644 --- a/ui/stashitem.go +++ b/ui/stashitem.go @@ -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