fix: remove more stash-related stuff (#656)

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
Carlos Alexandro Becker 2024-10-31 09:53:59 -03:00 committed by GitHub
commit ae57cced06
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 0 additions and 18 deletions

View file

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

View file

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

View file

@ -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,
}