extedit

package
v0.269.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: MIT Imports: 3 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 extedit resolves the user's terminal editor and builds the command that opens a file in it, so every TUI that hands a file to $EDITOR picks the same editor and parses the variable the same way.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command() (string, []string)

Command resolves the user's terminal editor for opening a file: $VISUAL, then $EDITOR, then the first of vim/vi/nano found on PATH. It returns the resolved binary and any leading arguments (the file path is appended by the caller). The binary is "" when nothing suitable is found, so the caller can surface a status hint rather than launching an empty command.

Types

This section is empty.

Jump to

Keyboard shortcuts

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