git/dew/main
issues/0007-remove-dead-edittask-and-dedupe-the-cli-tui-sort-r.md
13 lines655 B last change raw · rendered · history
---
title: remove dead EditTask and dedupe the CLI/TUI sort + render logic
status: open
labels: [refactor]
created: 2026-09-18
closed:
---
Two bits of cleanup in the same area:

`EditTask` in `actions.go` is defined with a doc comment but never called from anywhere — the TUI edits tasks through `$EDITOR` instead. Delete it or wire it up.

The sort comparator and the due-date colour logic are copy-pasted between `main.go`'s `listTasks` and `tui.go`'s `refreshTasks`/`View`. They've already drifted — the CLI version has no terminal-width truncation — and they have to be kept in sync by hand. Hoist the shared sort/format helpers into one place.