Cleanup confirms and refreshes; projects switch sessions in place; explain verify.sh, headroom and Mouse-1
This commit is contained in:
@@ -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"},
|
||||
|
||||
Reference in New Issue
Block a user