file_viewer

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileViewerModel

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

FileViewerModel is the file viewer model. it renders a selected file's contents with pretty formatting.

func New

func New() FileViewerModel

func (FileViewerModel) Init

func (m FileViewerModel) Init() tea.Cmd

Init ...

func (FileViewerModel) SetIsActive

func (m FileViewerModel) SetIsActive(active bool) FileViewerModel

SetIsActive toggles active/focusState state for this model.

func (FileViewerModel) Update

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

Update ...

func (FileViewerModel) View

func (m FileViewerModel) View() string

View ...

Jump to

Keyboard shortcuts

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