Skip to content

Commit

Permalink
fix: remove more stash-related stuff
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Alexandro Becker <[email protected]>
  • Loading branch information
caarlos0 committed Oct 30, 2024
1 parent f1b5651 commit 3febd36
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 18 deletions.
5 changes: 0 additions & 5 deletions ui/stash.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(
Expand Down
3 changes: 0 additions & 3 deletions ui/stashhelp.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
10 changes: 0 additions & 10 deletions ui/ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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,
}
Expand Down

0 comments on commit 3febd36

Please sign in to comment.