editor

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package editor provides functionality for opening external editors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(content string) (string, error)

Open opens the content in an external editor and returns the edited result. It uses the VISUAL or EDITOR environment variable to determine the editor. Falls back to notepad on Windows or vi on other platforms.

Types

type OpenFunc

type OpenFunc func(content string) (string, error)

OpenFunc is the type for editor functions.

Jump to

Keyboard shortcuts

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