Versions in this module Expand all Collapse all v0 v0.3.1 May 30, 2026 Changes in this version + type CmdKind int + const CmdDelete + const CmdEdit + const CmdForceQuit + const CmdGoto + const CmdNone + const CmdQuit + const CmdSet + const CmdSubstitute + const CmdUninstall + const CmdWrite + const CmdWriteQuit + type Command struct + Args []string + Force bool + Kind CmdKind + Range Range + SetOpt *SetOption + SubFlg string + SubNew string + SubOld string + func Parse(input string) (*Command, error) + func (c *Command) CompileRegex() (*regexp.Regexp, error) + func (c *Command) MakeGlobal() bool + func (c *Command) String() string + type Executor struct + DeleteRange func(startLine, endLine int) (string, error) + GetLineCount func() int + GetLineText func(line int) string + GotoLine func(line int) error + OpenFile func(path string) error + Quit func(force bool) error + ReplaceText func(oldPattern, newText string, startLine, endLine int, global, ignoreCase bool) (int, error) + SetOption func(name, value string) error + ShowMsg func(msg string) + Uninstall func() error + WriteFile func(path string) error + func (ex *Executor) Execute(cmd *Command) (shouldQuit bool, err error) + type ParseError struct + Msg string + func (e *ParseError) Error() string + type Range struct + All bool + End int + Start int + func (r Range) ExpandRange(totalLines int) (int, int) + type SetOption struct + Name string + Value string