Versions in this module Expand all Collapse all v0 v0.271.0 Nov 11, 2026 Changes in this version + type Action int + const Apply + const Close + const ForceClose + const None + type Editor struct + func New() Editor + func (e *Editor) CommandLine() string + func (e *Editor) Cursor() Pos + func (e *Editor) HandleKey(k Key) Action + func (e *Editor) InsertText(s string) + func (e *Editor) Line(i int) []rune + func (e *Editor) LineCount() int + func (e *Editor) Mode() Mode + func (e *Editor) Pending() string + func (e *Editor) Revision() uint64 + func (e *Editor) Selection() (Selection, bool) + func (e *Editor) SetTop(top int) + func (e *Editor) SetValue(s string) + func (e *Editor) SetViewportHeight(h int) + func (e *Editor) Status() string + func (e *Editor) Value() string + type Key struct + Name string + Text string + type Mode int + const Command + const Insert + const Normal + const Visual + const VisualLine + func (m Mode) String() string + type Pos struct + Col int + Row int + type Selection struct + End Pos + Linewise bool + Start Pos