templateprompt

package
v1.5.7 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package templateprompt is a TUI prompt for selecting note templates.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CancelMsg

type CancelMsg struct{}

CancelMsg is dispatched when the user presses Esc.

type DoneMsg

type DoneMsg struct {
	Vars map[string]string
}

DoneMsg is dispatched when the user has provided values for all variables.

type Model

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

Model is the template variable prompt component.

func New

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

New creates a prompt for the given list of unknown variable names.

func (Model) Update

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

func (Model) View

func (m Model) View() string

Jump to

Keyboard shortcuts

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