mirror of
https://github.com/charmbracelet/glow.git
synced 2026-08-09 09:49:09 +02:00
fix: remove more stash-related stuff (#656)
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
parent
f1b565125f
commit
ae57cced06
3 changed files with 0 additions and 18 deletions
|
|
@ -141,7 +141,6 @@ type stashModel struct {
|
|||
err error
|
||||
spinner spinner.Model
|
||||
filterInput textinput.Model
|
||||
stashFullyLoaded bool // have we loaded all available stashed documents from the server?
|
||||
viewState stashViewState
|
||||
filterState filterState
|
||||
showFullHelp bool
|
||||
|
|
@ -726,10 +725,6 @@ func (m stashModel) view() string {
|
|||
p.Type = paginator.Arabic
|
||||
pagination = paginationStyle.Render(p.View())
|
||||
}
|
||||
|
||||
// We could also look at m.stashFullyLoaded and add an indicator
|
||||
// showing that we don't actually know how many more pages there
|
||||
// are.
|
||||
}
|
||||
|
||||
s += fmt.Sprintf(
|
||||
|
|
|
|||
|
|
@ -130,9 +130,6 @@ func (m stashModel) helpView() (string, int) {
|
|||
filterHelp = []string{"/", "edit search", "esc", "clear filter"}
|
||||
} else {
|
||||
filterHelp = []string{"/", "find"}
|
||||
if m.stashFullyLoaded {
|
||||
filterHelp = append(filterHelp, "t", "team filter")
|
||||
}
|
||||
}
|
||||
|
||||
if isEditable {
|
||||
|
|
|
|||
10
ui/ui.go
10
ui/ui.go
|
|
@ -7,11 +7,9 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/charmbracelet/bubbles/list"
|
||||
tea "github.com/charmbracelet/bubbletea"
|
||||
"github.com/charmbracelet/glamour/styles"
|
||||
"github.com/charmbracelet/glow/v2/utils"
|
||||
"github.com/charmbracelet/lipgloss"
|
||||
"github.com/charmbracelet/log"
|
||||
"github.com/muesli/gitcha"
|
||||
te "github.com/muesli/termenv"
|
||||
|
|
@ -142,14 +140,6 @@ func newModel(cfg Config) tea.Model {
|
|||
}
|
||||
}
|
||||
|
||||
teamList := list.New([]list.Item{}, list.NewDefaultDelegate(), 0, 0)
|
||||
teamList.Styles.Title = lipgloss.NewStyle().Foreground(yellowGreen)
|
||||
teamList.SetStatusBarItemName("team", "teams")
|
||||
teamList.SetShowHelp(true)
|
||||
|
||||
// We use the team list status message as a permanent placeholder.
|
||||
teamList.StatusMessageLifetime = time.Hour
|
||||
|
||||
common := commonModel{
|
||||
cfg: cfg,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue