mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-19 02:17:09 +00:00
Enable selecting and deleting log entries directly from the interactive TUI without exiting. Uses space-toggle multi-select with two-step confirmation (d → y) to prevent accidental deletion. Backend: oplog.DeleteEntries() matches entries by content (timestamp, command, status, duration) rather than index, since Read() and readAllEntries() use opposite sort orders. Atomic rewrite via tmp+rename. TUI keys: space (toggle), a (select all/none), d (delete), y/n (confirm). Entries grouped by source file (operations vs audit) before deletion. Async reload after delete reuses the original loadFn to preserve filters.