diceditor

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package diceditor is a TUI component for editing the personal spell dictionary.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloseMsg

type CloseMsg struct{}

CloseMsg is dispatched when the editor is closed without changes.

type DeleteMsg

type DeleteMsg struct {
	Removed []string
}

DeleteMsg is dispatched when the user confirms removal of selected words.

type Model

type Model struct {
	// contains filtered or unexported fields
}

Model is the personal dictionary editor component.

func New

func New(words []string, w, h int) Model

New creates a dictionary editor pre-populated with the given sorted word list.

func (Model) Update

func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)

Update handles key messages for the dictionary editor.

func (Model) View

func (m Model) View() string

View renders the dictionary editor.

Jump to

Keyboard shortcuts

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