state

package
v0.0.0-...-cd859d0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddNewTodo

func AddNewTodo(todos *[]models.Todo, msg string)

func CleanTodos

func CleanTodos(todos *[]models.Todo)

func CreatePrompt

func CreatePrompt() textinput.Model

func CursorFocusOnLast

func CursorFocusOnLast(cursor *int, todos []models.Todo)

func EditTodo

func EditTodo(todo *models.Todo, newText string)

func EnsureCursorIsVisible

func EnsureCursorIsVisible(cursor *int, todos []models.Todo)

func ExitPrompt

func ExitPrompt(input *textinput.Model, mode *bool)

func FilterPendingTodos

func FilterPendingTodos(todos []models.Todo) []models.Todo

func Load

func Load() []models.Todo

func MarkTodo

func MarkTodo(todo *models.Todo)

func Save

func Save(todos []models.Todo)

func SetPromptByTodo

func SetPromptByTodo(input *textinput.Model, todo models.Todo)

func ShiftDown

func ShiftDown(cursor *int, todos *[]models.Todo)

func ShiftUp

func ShiftUp(cursor *int, todos *[]models.Todo)

func ToogleTodo

func ToogleTodo(todo *models.Todo)

func UpdateCursor

func UpdateCursor(cursor *int, limit int, direction string)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL