Documentation
¶
Index ¶
Constants ¶
View Source
const CommandNoOp = ":"
CommandNoOp is a special command that indicates that no editor should be launched and the text should be returned as-is. This behavior is copied from git's GIT_EDITOR. https://github.com/git/git/blob/5699ec1b0aec51b9e9ba5a2785f65970c5a95d84/editor.c#L57
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// The text to be edited.
// After the editor is closed, the contents will be written back to this field.
Text string
// The file pattern to use when creating the temporary file for the editor.
TmpFilePattern string
// The prefix used to identify comments in the text.
CommentPrefix string
// If true, strip comments from the end of lines. If false, only whole lines
// that are comments will be stripped.
EndOfLineComments bool
// The editor command to be used.
// If empty, the git default editor will be used.
Command string
}
Click to show internal directories.
Click to hide internal directories.