app

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfigYaml []byte

Functions

func ConfigPath added in v0.3.0

func ConfigPath() (string, error)

ConfigPath returns the path to the configuration file.

func LoadOrCreateConfig

func LoadOrCreateConfig(forceDefaultConfig bool) (config.RuleSet, error)

LoadOrCreateConfig loads the config file if it exists and creates a default config file otherwise.

Types

type Editor

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

Editor is a terminal-based text editing program.

func NewEditor

func NewEditor(screen tcell.Screen, path string, lineNum uint64, configRuleSet config.RuleSet) *Editor

NewEditor instantiates a new editor that uses the provided screen.

func (*Editor) RunEventLoop

func (e *Editor) RunEventLoop()

RunEventLoop processes events and draws to the screen, blocking until the user exits the program.

Jump to

Keyboard shortcuts

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