ui

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ActiveHeaderColor      = "#fc5fa3"
	InactivePaneColor      = "#d0a8ff"
	DisabledFileColor      = "#6c7986"
	DirectoryColor         = "#41a1c0"
	NoConstructsColor      = "#fabd2f"
	UnsupportedFileColor   = "#928374"
	CWDColor               = "#d0a8ff"
	FilepathColor          = "#fc5fa3"
	FilepathColorTUI       = "#ffd166"
	TSElementColor         = "#41a1c0"
	DividerColor           = "#6c7986"
	DefaultForegroundColor = "#282828"
	ModeColor              = "#fc5fa3"
	HelpMsgColor           = "#83a598"
	FooterColor            = "#7c6f64"
	HTMLBackgroundColor    = "#1f1f24"
)

Variables

This section is empty.

Functions

func RenderUI

func RenderUI(config Config) error

func RightPadTrim

func RightPadTrim(s string, length int) string

func ShowResults

func ShowResults(results []tsutils.Result, trimPrefix string, plain bool)

func Trim

func Trim(s string, length int) string

func WriteResults

func WriteResults(results []tsutils.Result, outDir string, quiet bool)

Types

type Config

type Config struct {
	ViewFileCmd []string
}

type FileRead

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

type FileResultsReceivedMsg

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

type Model

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

func InitialModel

func InitialModel(config Config) 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

type Pane

type Pane uint

type ViewFileFinishedmsg

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

Jump to

Keyboard shortcuts

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