From 080e8b0ee5addc29879a2c5aede3671257235493 Mon Sep 17 00:00:00 2001 From: Taybin Rutkin Date: Tue, 21 Jul 2026 18:07:09 -0400 Subject: [PATCH] chore: drop vestigial state constants, mention DONE add in settings help --- internal/model/state.go | 8 +++----- internal/ui/settings.go | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/internal/model/state.go b/internal/model/state.go index ba6dc7e..b4c33db 100644 --- a/internal/model/state.go +++ b/internal/model/state.go @@ -4,9 +4,7 @@ package model type TodoState string const ( - StateTODO TodoState = "TODO" - StatePROG TodoState = "PROG" - StateBLOCK TodoState = "BLOCK" - StateDONE TodoState = "DONE" - StateNone TodoState = "" + // StateNone is the empty (no TODO keyword) state. Concrete TODO states are + // user-configurable (see config.States), so they are not hardcoded here. + StateNone TodoState = "" ) diff --git a/internal/ui/settings.go b/internal/ui/settings.go index 87898b1..e969591 100644 --- a/internal/ui/settings.go +++ b/internal/ui/settings.go @@ -545,7 +545,7 @@ func (m *uiModel) viewSettings() string { case settingsSectionTags: instructions = "←/→: Switch tabs • ↑/↓: Navigate • Enter: Edit • D: Delete\nc: Add new tag • ctrl+s: Save • q/,: Exit" case settingsSectionStates: - instructions = "←/→: Switch tabs • ↑/↓: Navigate • shift+↑/↓: Reorder • Enter: Edit\nD: Delete • c: Add new state • ctrl+s: Save • q/,: Exit" + instructions = "←/→: Switch tabs • ↑/↓: Navigate • shift+↑/↓: Reorder • Enter: Edit\nD: Delete • c: Add new (or DONE) state • ctrl+s: Save • q/,: Exit" case settingsSectionKeybindings: instructions = "←/→: Switch tabs • ↑/↓: Navigate • Enter: Edit keybinding\nctrl+s: Save • q/,: Exit" }