ui

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package ui is the root Bubble Tea application for mdit: it embeds the editor widget, draws the status bar, and owns save/quit confirmation prompts, the fuzzy finder, wikilink navigation, autocomplete, and zen mode.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

App is the root tea.Model. Construct with NewApp.

func NewApp

func NewApp(v *vault.Vault, initial *doc.Document, th theme.Theme) *App

NewApp builds an App over the given vault and initial document.

func (*App) Doc

func (a *App) Doc() *doc.Document

Doc returns the document currently open in the editor.

func (*App) Init

func (a *App) Init() tea.Cmd

Init implements tea.Model.

func (*App) Update

func (a *App) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update implements tea.Model.

func (*App) View

func (a *App) View() string

View implements tea.Model.

Jump to

Keyboard shortcuts

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