Cleanup list navigates; spend bars; office writes the missing scaffold; memory read-out per agent
This commit is contained in:
@@ -297,9 +297,26 @@ func (m repairModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
||||
}
|
||||
return m, nil
|
||||
case "up", "k":
|
||||
if m.tab == 3 {
|
||||
if m.sessAt > 0 {
|
||||
m.sessAt--
|
||||
}
|
||||
m.scroll = max(0, min(m.scroll, m.sessAt-2))
|
||||
return m, nil
|
||||
}
|
||||
m.scroll--
|
||||
return m, nil
|
||||
case "down", "j":
|
||||
if m.tab == 3 {
|
||||
if m.sessAt < len(m.sessions)-1 {
|
||||
m.sessAt++
|
||||
}
|
||||
visible := max(3, m.height-6)
|
||||
if m.sessAt > m.scroll+visible-3 {
|
||||
m.scroll = m.sessAt - visible + 3
|
||||
}
|
||||
return m, nil
|
||||
}
|
||||
m.scroll++
|
||||
return m, nil
|
||||
case "esc":
|
||||
@@ -507,10 +524,10 @@ func (m repairModel) cleanupLines(width int) []string {
|
||||
r.lastUsed.Format("2 Jan 15:04"), state)
|
||||
mark := " "
|
||||
if m.ticked[r.name] {
|
||||
mark = "▸ "
|
||||
mark = "* "
|
||||
}
|
||||
if i == m.sessAt {
|
||||
out = append(out, selectedStyle2().Render(padTo(mark+line, width)))
|
||||
out = append(out, selectedStyle2().Render(padTo("▸"+line[1:], width)))
|
||||
continue
|
||||
}
|
||||
out = append(out, mark+line)
|
||||
|
||||
Reference in New Issue
Block a user