feat: v0.1.6 - auto-refresh file list, separate reset key

- Auto-refresh: file list now checks directories every 2 seconds for new files
- r key: resets done/error/deleted file back to idle for reconversion
- f key: manually refresh the file list
- d key: removes file from list only (unchanged)
- Auto-refresh works for directories that files were loaded from
- Updated help menu and bottom bar with new keybindings
This commit is contained in:
noah
2026-03-11 10:46:31 +01:00
parent 82a4123f84
commit 31cfd03e42
6 changed files with 99 additions and 41 deletions
+4 -4
View File
@@ -113,15 +113,15 @@ func TestDeleteOutput(t *testing.T) {
t.Fatalf("expected done, got %s", m.files[0].status)
}
// Test pressing 'x' to delete the output and reset to idle
newModel, _ = m.Update(tea.KeyMsg{Type: tea.KeyRunes, Runes: []rune{'x'}})
// Test pressing 'r' to reset the done file back to idle
newModel, _ = m.Update(tea.KeyMsg{Type: tea.KeyRunes, Runes: []rune{'r'}})
m = newModel.(Model)
if m.files[0].status != "idle" {
t.Fatalf("expected 'idle' status after pressing x, got '%s'", m.files[0].status)
t.Fatalf("expected 'idle' status after pressing r, got '%s'", m.files[0].status)
}
t.Log("Delete output works: file removed from disk, status reset to 'idle'")
t.Log("Reset works: status reset from done back to 'idle'")
}
func TestViewRendersDuringConversion(t *testing.T) {