Cleanup confirms and refreshes; projects switch sessions in place; explain verify.sh, headroom and Mouse-1

This commit is contained in:
Sam
2026-11-11 15:57:42 +11:00
parent 36abdc1f84
commit e02b39943d
13 changed files with 662 additions and 7 deletions

View File

@@ -345,6 +345,24 @@ func (m repairModel) View() string {
fmt.Sprintf("This workspace needs 80 × 24.\nThis panel is %d × %d.", m.width, m.height))
}
if m.confirmKill {
var names []string
for name := range m.ticked {
names = append(names, name)
}
sort.Strings(names)
entries := [][2]string{
{"what happens", "these TUIOS sessions are closed and their panes end"},
{"", "nothing in ~/.pi/paperclips is deleted; that is your Pi history"},
{"", "this project's session and attached sessions are never touched"},
{"y", "close them"},
{"esc or n", "do nothing"},
}
for _, n := range names {
entries = append(entries, [2]string{"", n})
}
return helpOverlay(fmt.Sprintf("close %s?", fmtCount(len(names), "session", "sessions")), entries, m.width, m.height)
}
if m.showHelp {
return helpOverlay("repair", [][2]string{
{"[ ] h l", "health, layout, rebuild log"},