editor

package
v0.3.0-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTempFile

func CreateTempFile(prefix, content string) (*os.File, error)

func EditTempFile

func EditTempFile(content, prefix string) (string, error)

func EditTempFileWithTemplate

func EditTempFileWithTemplate(template, prefix string) (string, error)

func GetEditorCommand

func GetEditorCommand() string

func HasInstructions

func HasInstructions(content string) bool

HasInstructions checks if content contains instruction comments that should be stripped

func ReadTempFile

func ReadTempFile(path string) (string, error)

func StripInstructions

func StripInstructions(content string) string

StripInstructions removes instruction comments from content Looks for common instruction patterns and removes everything before the separator

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL