edit

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EditorPriority = []string{
	os.Getenv(`VISUAL`),
	os.Getenv(`EDITOR`),
	`code`, `nvim`, `vim`, `vi`, `nvi`, `emacs`, `nano`,
}

Functions

func Editor

func Editor() string

Editor returns the first editor found from EditorPriority or blank if none found.

func Files

func Files(files ...string) error

Files opens files with the first editor found from EditorPriority list.

Types

This section is empty.

Jump to

Keyboard shortcuts

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