Documentation
¶
Index ¶
Constants ¶
View Source
const ( AnimSparkle = iota AnimMatrix AnimWipeRight AnimWipeLeft AnimRainbow AnimWave AnimBinary AnimDissolve AnimFlip AnimPulse AnimTypewriter AnimParticle AnimRedact AnimChaos AnimConverge AnimBounce AnimSpin AnimZipper AnimEraser AnimGlitch AnimMoons AnimBraille AnimHex AnimReverse AnimCaseFlip AnimWide AnimTraffic AnimCenterStrike AnimLoading AnimSlider AnimCount = 30 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
Tasks []Task
State AppState
PreviousState AppState // Previous state for help overlay
SortMode SortMode
ThemeIndex int
LastAnim int
Cursor int
Width int
Height int
TextInput textinput.Model
// Temporary storage for task creation
TempTitle string
// Undo functionality
DeletedTasks []Task // Store recently deleted tasks for undo
// Tutorial functionality
TutorialTasks []Task // Store tutorial tasks separately
}
func (*Model) ValidateCursor ¶
func (m *Model) ValidateCursor()
ValidateCursor ensures the cursor is within valid bounds
type Task ¶
type Task struct {
ID int64
Title string
Description string
Done bool
// UI States
Expanded bool
// Animation States
IsAnimatingCheck bool
IsDeleting bool
IsRestoring bool // Animation for restoring from bin
IsDeletingFromBin bool // Animation for permanent deletion from bin
AnimType int
AnimStart time.Time
}
Click to show internal directories.
Click to hide internal directories.