Simplify messaging in (rare) state where there's absolutely nothing to show

This commit is contained in:
Christian Rocha 2020-08-13 12:51:53 -04:00 committed by Christian Muehlhaeuser
parent 2c3c5a8c87
commit 2a3fa6139c

View file

@ -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)