mirror of
https://github.com/charmbracelet/glow.git
synced 2026-08-20 15:14:17 +02:00
Use lock emoji for stashed item in pager
This commit is contained in:
parent
b2511c54b0
commit
06cbbd7b6b
2 changed files with 8 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue