mirror of
https://github.com/RWejlgaard/org.git
synced 2026-09-01 17:05:34 +00:00
* feat: add configurable done flag to TODO states * feat: stamp CLOSED for any configured done state * feat: add DONE state option and done marker to settings * chore: remove unused Item.CycleState * chore: drop vestigial state constants, mention DONE add in settings help * feat: add state form model and commit logic * feat: wire state form update/view into settings dispatch * feat: replace state add/edit with unified form, toggle done after creation * consolidate AddState and AddDoneState * add findState() helper
10 lines
275 B
Go
10 lines
275 B
Go
package model
|
|
|
|
// TodoState represents the state of a todo item
|
|
type TodoState string
|
|
|
|
const (
|
|
// 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 = ""
|
|
)
|