editor

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

Overview

Package editor provides $EDITOR integration for composing content.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(initialContent string) (string, error)

Open launches $EDITOR with initialContent and returns the edited text. Falls back to vi if $EDITOR is not set. Supports editors with arguments (e.g. EDITOR="code --wait"). Returns an error if the editor exits non-zero or the result is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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