Edit a string with the users preferred text editor using $VISUAL or $ENVIRONMENT
79
Deprecated snake_case property aliases for backward compatibility
Legacy aliases
100%
100%
Editor launch
100%
100%
Non-zero status
100%
100%
Temp path alias
100%
100%
Command override
100%
100%
Async edit via editAsync callback helper
Uses editAsync
100%
100%
Error propagation
100%
100%
Forwards file options
100%
0%
Result handling
100%
100%
Sync edit via edit() convenience
Synchronous launch
100%
100%
Prefilled template
100%
100%
Empty handling
100%
100%
Change flag
96%
100%
Editor resolution from VISUAL/EDITOR with fallback and accessible bin/args
VISUAL first
40%
20%
EDITOR fallback
33%
20%
Default command
33%
20%
Expose command
66%
33%
Run via package
90%
100%
Exit status
0%
100%
Handles empty files and non-zero editor exits without throwing
Uses launcher
100%
100%
Initial text
100%
100%
Empty save
100%
100%
Exit status
100%
100%
Non-zero handled
100%
100%
Cleanup
100%
100%
Charset auto-detection and decoding with iconv-lite fallback to utf8
Editor invocation
100%
100%
Encoding detection
100%
100%
UTF-16 decode
100%
100%
Windows-1252 decode
100%
100%
UTF-8 fallback
100%
100%
Empty save
100%
100%
Expose lastExitStatus after editor run
Uses ExternalEditor
0%
50%
Run API
0%
48%
Exit status capture
0%
60%
Custom command
0%
33%
Cleanup
0%
100%
Customizable editor.bin and editor.args for scripted commands
Command override
0%
0%
Launch via run
0%
0%
Text from package
0%
0%
Exit status
33%
0%
CommandUsed
25%
0%
Seed initial text
0%
100%
ExternalEditor lifecycle control with run/runAsync/cleanup
Constructor usage
100%
100%
Sync launch
100%
100%
Async launch
75%
50%
Exit status
100%
100%
Manual discard
100%
100%
Option passthrough
100%
100%
Temp file creation with configurable prefix/postfix/dir/template/mode
Prefix/postfix
100%
100%
Dir/template
75%
100%
Mode applied
100%
100%
Status & cleanup
100%
100%
Async path
100%
100%
Install with Tessl CLI
npx tessl i tessl/npm-external-editor