mirror of
https://github.com/charmbracelet/glow.git
synced 2026-08-21 07:34:18 +02:00
Remove "News:" prefix from news items
This commit is contained in:
parent
2748e75165
commit
dd9179a9ae
2 changed files with 1 additions and 7 deletions
|
|
@ -47,11 +47,6 @@ func (m *markdown) buildFilterValue() {
|
|||
m.filterValue = m.Note
|
||||
}
|
||||
|
||||
if m.markdownType == NewsDocument {
|
||||
m.filterValue = "News: " + note
|
||||
return
|
||||
}
|
||||
|
||||
m.filterValue = note
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue