commands

package
v0.0.0-...-2ab8766 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2022 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 DeleteEOL

type DeleteEOL struct{}

func (DeleteEOL) Apply

func (_ DeleteEOL) Apply(e *editor.Editor)

type DeleteRune

type DeleteRune struct{}

func (DeleteRune) Apply

func (_ DeleteRune) Apply(e *editor.Editor)

type DeleteRuneBackward

type DeleteRuneBackward struct{}

func (DeleteRuneBackward) Apply

func (_ DeleteRuneBackward) Apply(e *editor.Editor)

type Dir

type Dir int
const (
	Forward  Dir = 0
	Backward Dir = 1
	Up       Dir = 2
	Down     Dir = 3
)

type DisplayFileStatus

type DisplayFileStatus struct{}

func (DisplayFileStatus) Apply

func (r DisplayFileStatus) Apply(e *editor.Editor)

type InsertRune

type InsertRune struct {
	Rune rune
}

func (InsertRune) Apply

func (r InsertRune) Apply(e *editor.Editor)

type MoveBOL

type MoveBOL struct{}

func (MoveBOL) Apply

func (m MoveBOL) Apply(e *editor.Editor)

type MoveEOF

type MoveEOF struct{}

func (MoveEOF) Apply

func (m MoveEOF) Apply(e *editor.Editor)

type MoveEOL

type MoveEOL struct{}

func (MoveEOL) Apply

func (m MoveEOL) Apply(e *editor.Editor)

type MoveFOL

type MoveFOL struct{}

Front-of-line is defined as the first non-space character in the line.

func (MoveFOL) Apply

func (m MoveFOL) Apply(e *editor.Editor)

type MoveLine

type MoveLine struct {
	Dir Dir
}

func (MoveLine) Apply

func (m MoveLine) Apply(e *editor.Editor)

type MoveRune

type MoveRune struct {
	Dir  Dir
	Wrap bool
}

func (MoveRune) Apply

func (m MoveRune) Apply(e *editor.Editor)

type MoveView

type MoveView struct {
	// TODO use Repeat{} rather than lines argument?
	Lines int
	Dir   Dir
}

func (MoveView) Apply

func (m MoveView) Apply(e *editor.Editor)

type MoveWord

type MoveWord struct {
	Dir Dir
}

func (MoveWord) Apply

func (m MoveWord) Apply(e *editor.Editor)

type MoveWordEnd

type MoveWordEnd struct{}

func (MoveWordEnd) Apply

func (m MoveWordEnd) Apply(e *editor.Editor)

type NearestHSplit

type NearestHSplit struct {
	Dir Dir
}

func (NearestHSplit) Apply

func (m NearestHSplit) Apply(e *editor.Editor)

type NearestVSplit

type NearestVSplit struct {
	Dir Dir
}

func (NearestVSplit) Apply

func (m NearestVSplit) Apply(e *editor.Editor)

type NewLine

type NewLine struct {
	Dir Dir
}

func (NewLine) Apply

func (t NewLine) Apply(e *editor.Editor)

type Redo

type Redo struct{}

func (Redo) Apply

func (r Redo) Apply(e *editor.Editor)

type Repeat

type Repeat struct {
	Command editor.Command
	Count   int
}

func (Repeat) Apply

func (r Repeat) Apply(e *editor.Editor)
type Search struct {
	Dir Dir
}

func (Search) Apply

func (s Search) Apply(e *editor.Editor)

type Undo

type Undo struct{}

func (Undo) Apply

func (u Undo) Apply(e *editor.Editor)

Jump to

Keyboard shortcuts

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