diff options
Diffstat (limited to 'ui')
-rw-r--r-- | ui/stash.go | 5 | ||||
-rw-r--r-- | ui/stashhelp.go | 3 | ||||
-rw-r--r-- | ui/ui.go | 10 |
3 files changed, 0 insertions, 18 deletions
diff --git a/ui/stash.go b/ui/stash.go index 2334c66..2021966 100644 --- a/ui/stash.go +++ b/ui/stash.go @@ -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( diff --git a/ui/stashhelp.go b/ui/stashhelp.go index 636b751..7c009e7 100644 --- a/ui/stashhelp.go +++ b/ui/stashhelp.go @@ -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 { @@ -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, } |