tui

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2026 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Overview

Package tui wires the sidebar, editor, and search pane into a Bubble Tea MVU application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(cfg *config.Config, appVersion string) error

Run constructs the root model and starts the Bubble Tea program.

Types

type Model

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

Model is the root Bubble Tea model. It owns all child pane models and orchestrates focus, layout, and data flow.

func New

func New(cfg *config.Config, appVersion string) (*Model, error)

New constructs a Model from the provided configuration.

func (Model) Init

func (m Model) Init() tea.Cmd

Init loads notes from the store in the background and enables bracketed paste mode so that pasted text (any length) arrives as a single message instead of being fed character by character to the active input.

func (Model) Update

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

Update is the Bubble Tea message handler.

func (Model) View

func (m Model) View() string

View renders the full three-pane layout.

Directories

Path Synopsis
Package panes provides the individual UI pane components for NeuronCLI: the sidebar note list, the markdown editor/preview, and the search bar.
Package panes provides the individual UI pane components for NeuronCLI: the sidebar note list, the markdown editor/preview, and the search bar.
Package styles defines the visual theme for the NeuronCLI TUI.
Package styles defines the visual theme for the NeuronCLI TUI.

Jump to

Keyboard shortcuts

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