listview

package module
v0.1.0-pre Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2022 License: MIT Imports: 8 Imported by: 0

README

A full-screen bubble for displaying a list of markdown files and rendering them.

Very much a WIP ...

asciicast

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActiveBox

type ActiveBox uint8
const (
	SELECTION ActiveBox = 0
	DOCUMENT  ActiveBox = 1
)
type MenuEntry struct {
	Name     string
	Document string
	// contains filtered or unexported fields
}

type Model

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

func New

func New(title string, documents []common.Document) Model

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

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

func (Model) View

func (m Model) View() string

Directories

Path Synopsis
bubbles

Jump to

Keyboard shortcuts

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