preview

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Highlight

func Highlight(source, filename, themeName string) (string, string)

Types

type Model

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

func NewModel

func NewModel(width, height int, theme string) Model

func (Model) CopyFile added in v0.2.0

func (m Model) CopyFile() error

func (Model) CopyVisible added in v0.2.0

func (m Model) CopyVisible() error

func (Model) FilePath

func (m Model) FilePath() string

func (Model) GotoBottom

func (m Model) GotoBottom() Model

func (Model) GotoTop

func (m Model) GotoTop() Model

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Language

func (m Model) Language() string

func (Model) LineCount

func (m Model) LineCount() int

func (Model) LoadFile

func (m Model) LoadFile(path string) Model

func (Model) SetSize

func (m Model) SetSize(w, h int) Model

func (Model) SetTheme

func (m Model) SetTheme(theme string) Model

func (Model) ShowingLines

func (m Model) ShowingLines() bool

func (Model) ToggleLineNumbers

func (m Model) ToggleLineNumbers() Model

func (Model) ToggleWordWrap added in v0.1.2

func (m Model) ToggleWordWrap() Model

func (Model) Update

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

func (Model) View

func (m Model) View() string

func (Model) WordWrapEnabled added in v0.1.2

func (m Model) WordWrapEnabled() bool

Jump to

Keyboard shortcuts

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