editor

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Editor

type Editor struct {
	*tview.Box
	Lines []string
	// contains filtered or unexported fields
}

func NewEditor

func NewEditor(statusBar *tview.TextView) *Editor

NewEditor creates a new Editor instance.

func (*Editor) Draw

func (e *Editor) Draw(screen tcell.Screen)

Draw renders the editor on the screen.

func (*Editor) InputHandler

func (e *Editor) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive))

InputHandler handles key events for the editor.

func (*Editor) ValidateStructure

func (e *Editor) ValidateStructure() error

ValidateStructure checks if the structure is valid.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳