tui

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TUI

type TUI struct {
	UserID      string
	Fingerprint string
	DB          db.DB
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, cfg *config.Config, width, height int, userID string, fingerprint string, database db.DB, files []*snips.File) TUI

func (TUI) Init

func (t TUI) Init() tea.Cmd

func (TUI) Update

func (t TUI) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (TUI) View

func (t TUI) View() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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