editor

package
v0.0.0-...-2352b81 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MODE_NORMAL       mode = "NORMAL"
	MODE_INSERT       mode = "INSERT"
	MODE_COMMAND_LINE mode = "COMMAND_LINE"
)
View Source
const (
	CURSOR_UP    cursorMovement = "UP"
	CURSOR_DOWN  cursorMovement = "DOWN"
	CURSOR_RIGHT cursorMovement = "RIGHT"
	CURSOR_LEFT  cursorMovement = "LEFT"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Editor

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

func NewEditor

func NewEditor(f string) (Editor, error)

NewEditor is a contructor function for the Editor

func (*Editor) HandleUserActions

func (e *Editor) HandleUserActions()

HandleUserActions - function that listens the user input channel and handles it appropriately

Jump to

Keyboard shortcuts

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