ui

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Overview

Package ui implements mado's terminal user interface: a file tree sidebar, a tab bar for multiple open files, and a markdown viewport.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

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

Model is the root bubbletea model.

func New

func New(cfg config.Config, rootDir string, initialFiles []string) (Model, error)

New creates the root model. initialFiles are opened as tabs.

func (Model) Init

func (m Model) Init() tea.Cmd

Init implements tea.Model.

func (Model) Serve added in v1.2.0

func (m Model) Serve(s *remote.Server) Model

Serve routes commands from `mado --remote …` into this instance.

func (Model) Update

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

Update implements tea.Model.

func (Model) View

func (m Model) View() string

View implements tea.Model.

Jump to

Keyboard shortcuts

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