From 2a3fa6139c817e910f5c6777938a32c098017e59 Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Thu, 13 Aug 2020 12:51:53 -0400 Subject: [PATCH] Simplify messaging in (rare) state where there's absolutely nothing to show --- ui/stash.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/ui/stash.go b/ui/stash.go index cb4a853..6bb4795 100644 --- a/ui/stash.go +++ b/ui/stash.go @@ -18,7 +18,6 @@ import ( "github.com/dustin/go-humanize" runewidth "github.com/mattn/go-runewidth" "github.com/muesli/reflow/ansi" - "github.com/muesli/reflow/wordwrap" te "github.com/muesli/termenv" ) @@ -562,15 +561,6 @@ func stashHeaderView(m stashModel) string { return common.Subtle("Looking for stuff...") } - // Loading's finished. We didn't find anything, the stash is empty and - // there's no news. - if !loading && noMarkdowns { - s := "Nothing found. Try running " + common.Code("glow") + - " in a directory with markdown files, or stashing a file with " + - common.Code("glow stash") + ". For more, see " + common.Code("glow help") + "." - return wordwrap.String(s, stashIndent) - } - localItems := m.countMarkdowns(localMarkdown) stashedItems := m.countMarkdowns(stashedMarkdown)