editor

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: MIT Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package editor runs the user's text editor on a file in this terminal, for the command line's `config edit` and the terminal UI's `:config`.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command(file string) *exec.Cmd

Command runs the editor on file. The editor command goes through sh, as git runs it, so it may hold arguments and quotes ("code --wait"); the file is passed as one argument and never interpreted by the shell. The caller connects the terminal.

func Name

func Name() string

Name is the editor command: $VISUAL, else $EDITOR, else vi.

Types

This section is empty.

Jump to

Keyboard shortcuts

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