mirror of
https://github.com/charmbracelet/glow
synced 2024-11-10 14:14:17 +00:00
Simplify messaging in (rare) state where there's absolutely nothing to show
This commit is contained in:
parent
2c3c5a8c87
commit
2a3fa6139c
1 changed files with 0 additions and 10 deletions
10
ui/stash.go
10
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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue