edits

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2025 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IconExport = "💾"
)

Variables

This section is empty.

Functions

func Backspace

func Backspace()

func ClearMarks

func ClearMarks()

func ClearMode

func ClearMode()

func Copy

func Copy()

func DecScope

func DecScope()

func Delete

func Delete()

func End

func End()

func Enter

func Enter()

func Export

func Export(path string)

func Home

func Home()

func IncScope

func IncScope()

func InsertCut

func InsertCut()

Insert contents of cut buffer into the document.

func InsertRunes

func InsertRunes(runes []rune)

Insert runes into the document.

func Join

func Join()

func Left

func Left()

func Mark

func Mark()

func NextCut

func NextCut()

Select next cut.

func PrevCut

func PrevCut()

Select previous cut.

func PromptBackspace added in v0.5.3

func PromptBackspace()

func PromptDefault added in v0.5.3

func PromptDefault(s string)

func PromptEnd added in v0.5.3

func PromptEnd()

func PromptHome added in v0.5.3

func PromptHome()

func PromptInsertRunes added in v0.5.3

func PromptInsertRunes(runes []rune)

func PromptLeft added in v0.5.3

func PromptLeft()

func PromptResponse added in v0.5.3

func PromptResponse() string

func PromptRight added in v0.5.3

func PromptRight()

func Redo

func Redo()

func ResizeScreen

func ResizeScreen(x, y int)
func Right()

func Run added in v0.5.3

func Run(version, path string)

func Screen

func Screen() string

The entire screen including the edits window and status line.

func SetMode

func SetMode(mode ModeType, msg string)

func Space

func Space()

func Undo

func Undo()

Types

type ModeType

type ModeType int
const (
	None ModeType = iota
	ConfirmOverwrite
	ConfirmQuit
	Cuts
	Error
	Help
	PromptExport
)
var Mode ModeType

type Scope

type Scope int
const (
	Char Scope = iota // Character
	Word              // Word
	Sent              // Sentence
	Para              // Paragraph
	MaxScope
)

Jump to

Keyboard shortcuts

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