ui

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunAddDotfileView added in v0.4.3

func RunAddDotfileView(app *app.App, path string, dotfileName string, ignores []string)

func RunListView

func RunListView(app *app.App)

func RunSyncView added in v0.4.2

func RunSyncView(app *app.App, ignores []string)

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

Types

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
	ConfirmRemove bool
}

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