From 06cbbd7b6b586b9ce22d9c02c78263eecb2a0aab Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Tue, 25 Aug 2020 09:56:17 -0400 Subject: [PATCH] Use lock emoji for stashed item in pager --- ui/pager.go | 5 +++-- ui/stashitem.go | 11 +++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ui/pager.go b/ui/pager.go index 2d9c4e9..e34b3bb 100644 --- a/ui/pager.go +++ b/ui/pager.go @@ -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 diff --git a/ui/stashitem.go b/ui/stashitem.go index 8d32b6b..f65722d 100644 --- a/ui/stashitem.go +++ b/ui/stashitem.go @@ -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 }