editor

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NORMAL_MODE       string = "insert"
	INSERT_MODE       string = "normal"
	VISUAL_MODE       string = "visual"
	VISUAL_LINE_MODE  string = "visual_line"
	VISUAL_BLOCK_MODE string = "visual_block"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type VimEditor

type VimEditor struct {
	Mode string
}

This probably will be replaced with bubbletea TextArea as already supports vimotions

func (*VimEditor) Edit

func (ve *VimEditor) Edit(v *gocui.View, key gocui.Key, ch rune, mod gocui.Modifier)

func (*VimEditor) InsertMode

func (ve *VimEditor) InsertMode(v *gocui.View, key gocui.Key, ch rune, mod gocui.Modifier)

func (*VimEditor) NormalMode

func (ve *VimEditor) NormalMode(v *gocui.View, key gocui.Key, ch rune, mod gocui.Modifier)

Jump to

Keyboard shortcuts

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