CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-external-editor

Edit a string with the users preferred text editor using $VISUAL or $ENVIRONMENT

79

1.05x
Overview
Eval results
Files

Evaluation results

100%

Legacy Editor Metadata Collector

Deprecated snake_case property aliases for backward compatibility

Criteria
Without context
With context

Legacy aliases

100%

100%

Editor launch

100%

100%

Non-zero status

100%

100%

Temp path alias

100%

100%

Command override

100%

100%

80%

-20%

Async Editor Prompt

Async edit via editAsync callback helper

Criteria
Without context
With context

Uses editAsync

100%

100%

Error propagation

100%

100%

Forwards file options

100%

0%

Result handling

100%

100%

100%

1%

Note Draft Editor

Sync edit via edit() convenience

Criteria
Without context
With context

Synchronous launch

100%

100%

Prefilled template

100%

100%

Empty handling

100%

100%

Change flag

96%

100%

46%

-2%

Editor Preference Session

Editor resolution from VISUAL/EDITOR with fallback and accessible bin/args

Criteria
Without context
With context

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%

100%

Editor Exit Reporter

Handles empty files and non-zero editor exits without throwing

Criteria
Without context
With context

Uses launcher

100%

100%

Initial text

100%

100%

Empty save

100%

100%

Exit status

100%

100%

Non-zero handled

100%

100%

Cleanup

100%

100%

100%

Editor Charset Capture

Charset auto-detection and decoding with iconv-lite fallback to utf8

Criteria
Without context
With context

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%

54%

54%

Editor Exit Session

Expose lastExitStatus after editor run

Criteria
Without context
With context

Uses ExternalEditor

0%

50%

Run API

0%

48%

Exit status capture

0%

60%

Custom command

0%

33%

Cleanup

0%

100%

15%

5%

Scripted Editor Command

Customizable editor.bin and editor.args for scripted commands

Criteria
Without context
With context

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%

90%

-5%

Editor Lifecycle Manager

ExternalEditor lifecycle control with run/runAsync/cleanup

Criteria
Without context
With context

Constructor usage

100%

100%

Sync launch

100%

100%

Async launch

75%

50%

Exit status

100%

100%

Manual discard

100%

100%

Option passthrough

100%

100%

100%

5%

Temp Draft Editor

Temp file creation with configurable prefix/postfix/dir/template/mode

Criteria
Without context
With context

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
Evaluated
Agent
Codex

Table of Contents