Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrFileUnsaved = errors.New("file was not saved")
ErrFileUnsaved is returned if the user exited a vi-like editor without saving the file.
Functions ¶
This section is empty.
Types ¶
type Basic ¶
type Basic struct {
// contains filtered or unexported fields
}
Basic is an editor without special abilities. We can't detect whether the user saved the file or not.
func (*Basic) EditString ¶
EditString asks the user to edit the given string inside the editor.
type ViLike ¶
type ViLike struct {
// contains filtered or unexported fields
}
ViLike is an editor backed by vi/vim/neovim/etc.
If the user exits the editor without saving the file, no changes are recorded.
func (*ViLike) EditString ¶
EditString asks the user to edit the given string inside a vi-like editor. ErrFileUnsaved is returned if the user exits the editor without saving the file.
Click to show internal directories.
Click to hide internal directories.