mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-20 12:23:22 +00:00
- Extract shared formatDurationShort, truncateStr, renderHorizontalSplit, tuiMinSplitWidth into tui_helpers.go; replace 5 truncate and 3 relative time duplicates across cmd/skillshare with thin wrappers - Remove duplicate applyRestoreDetailScroll from restore_tui.go - Cache detail panel content in restore_tui.go and trash_tui.go to avoid filesystem I/O (recursive walks, SKILL.md reads) on every bubbletea render frame — recompute only on selection change or mutation - Remove dead ListBackupVersions call in startDelete whose result was discarded