ui

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunListView

func RunListView(app *app.App)

func RunUpdateView

func RunUpdateView(app *app.App)

RunUpdateView is the function that runs the update (edit) dotfile view

Types

type AddModel

type AddModel struct {
	FocusIndex int
	Inputs     []textinput.Model
}

func InitAddModel

func InitAddModel() AddModel

func (AddModel) Init

func (m AddModel) Init() tea.Cmd

func (AddModel) Update

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

func (AddModel) View

func (m AddModel) View() string

type KeyMap

type KeyMap struct {
	Remove key.Binding
	Quit   key.Binding
	Esc    key.Binding
}

func DefaultKeyMap

func DefaultKeyMap() KeyMap

type ListModel

type ListModel struct {
	App      *app.App
	Table    table.Model
	KeyMap   KeyMap
	Dotfile  app.Dotfile
	Dotfiles map[string]string
	Footer   string
}

func InitListModel

func InitListModel(config config.Config, app *app.App) ListModel

func (ListModel) Init

func (m ListModel) Init() tea.Cmd

func (ListModel) Update

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

func (ListModel) View

func (m ListModel) View() string

Jump to

Keyboard shortcuts

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