LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

edit

MIME-type aware file editor launcher

TLDR

Edit a file using the appropriate editor for its MIME type
$ edit [filename]
copy
Edit with explicit MIME type
$ edit [text/html]:[filename]
copy
Show the editor command without running it
$ edit --norun [filename]
copy
Using run-mailcap directly with the edit action
$ run-mailcap --action=edit [filename]
copy

SYNOPSIS

edit filename

DESCRIPTION

edit is an alias for run-mailcap's edit action. It opens files in the appropriate editor based on MIME type configuration in mailcap files.The actual editor used depends on the file type and system mailcap configuration.

PARAMETERS

filename

File to edit. Can be prefixed with a MIME type and optional encoding as `MIME-TYPE:[ENCODING:]FILE`.
--debug
Print extra diagnostic information about what is happening.
--nopager
Ignore any `copiousoutput` directive and send output directly to stdout.
--norun
Display the command that would be run without executing it.

CONFIGURATION

/etc/mailcap

System-wide MIME type to application mappings.
~/.mailcap
User-specific MIME type overrides.

INSTALL

nix profile install nixpkgs#edit
copy

CAVEATS

Debian/Ubuntu specific. The editor used depends on mailcap configuration and MIME type detection.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid