Use lock emoji for stashed item in pager

This commit is contained in:
Christian Rocha 2020-08-25 09:56:17 -04:00 committed by Christian Muehlhaeuser
commit 06cbbd7b6b
2 changed files with 8 additions and 8 deletions

View file

@ -29,6 +29,7 @@ const (
darkGreen = "#1C8760"
noteHeadingText = " Set Memo "
notePromptText = " > "
pagerStashIcon = "🔒"
)
var (
@ -394,9 +395,9 @@ func pagerStatusBarView(b *strings.Builder, m pagerModel) {
statusIndicator = statusBarNoteStyle(" ") + spinner.View(m.spinner)
}
} else if isStashed && showStatusMessage {
statusIndicator = statusBarMessageStashDotStyle(" ")
statusIndicator = statusBarMessageStashDotStyle(" " + pagerStashIcon)
} else if isStashed {
statusIndicator = statusBarStashDotStyle(" ")
statusIndicator = statusBarStashDotStyle(" " + pagerStashIcon)
}
// Note

View file

@ -11,10 +11,10 @@ import (
)
const (
newsPrefix = "News: "
verticalLine = "│"
noMemoTitle = "No Memo"
stashIcon = "• "
newsPrefix = "News: "
verticalLine = "│"
noMemoTitle = "No Memo"
fileListingStashIcon = "• "
)
var (
@ -47,8 +47,7 @@ func stashItemView(b *strings.Builder, m stashModel, index int, md *markdown) {
title = newsPrefix + truncate(title, truncateTo-rw.StringWidth(newsPrefix))
}
case stashedMarkdown, convertedMarkdown:
icon = stashIcon
icon = stashIcon
icon = fileListingStashIcon
if title == "" {
title = noMemoTitle
}