code

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CodeSpec

type CodeSpec struct {
	pane.BaseSpec
}

func (CodeSpec) NewFromSpec

func (s CodeSpec) NewFromSpec(ctx *context.ProgramContext, spec pane.PaneSpec) pane.Pane

type Model

type Model struct {
	pane.Pane
	// contains filtered or unexported fields
}

func New

func New(ctx *context.ProgramContext, spec CodeSpec) *Model

func (*Model) Hide

func (m *Model) Hide()

func (*Model) SetContent

func (m *Model) SetContent(content string, filepath string)

func (*Model) SetSize

func (m *Model) SetSize(width int, height int)

func (*Model) Update

func (m *Model) Update(msg tea.Msg) (pane.Pane, tea.Cmd, bool)

func (*Model) View

func (m *Model) View() string

type NewCodeContentMsg

type NewCodeContentMsg struct {
	Page     string
	PaneId   int
	Content  string
	Filepath string
}

Jump to

Keyboard shortcuts

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