Documentation
¶
Index ¶
- func GetEditor() string
- func LaunchAndExit(scratchID string, content []byte) error
- func LaunchAndExitWithConfig(scratchID string, content []byte, cfg *config.Config) error
- func OpenInEditor(content []byte) ([]byte, error)
- func OpenInEditorWithExtension(content []byte, extensionHint string) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEditor ¶ added in v1.5.3
func GetEditor() string
GetEditor returns the editor to use, defaulting to vim if EDITOR is not set
func LaunchAndExit ¶ added in v1.5.3
LaunchAndExit launches the editor with a file in the final location and exits immediately
func LaunchAndExitWithConfig ¶ added in v1.5.3
LaunchAndExitWithConfig launches the editor with a file in the final location and exits immediately
func OpenInEditor ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.