Edit a string with the users preferred text editor using $VISUAL or $ENVIRONMENT
79
{
"context": "Evaluates whether the solution relies on the external-editor package to resolve VISUAL/EDITOR preferences, expose the resolved command, and run an editing session while returning content and exit status.",
"type": "weighted_checklist",
"checklist": [
{
"name": "VISUAL first",
"description": "Uses external-editor resolution so VISUAL overrides EDITOR, with editor.bin/editor.args reflecting the VISUAL value when set.",
"max_score": 25
},
{
"name": "EDITOR fallback",
"description": "When VISUAL is absent, relies on external-editor parsing of EDITOR to split the command into bin and args instead of manual parsing.",
"max_score": 15
},
{
"name": "Default command",
"description": "Lets external-editor provide the platform fallback editor (vim or notepad) when both env vars are missing, rather than hard-coding a custom default.",
"max_score": 15
},
{
"name": "Expose command",
"description": "Returns editor.bin and editor.args obtained from ExternalEditor (or edit/editAsync) so callers can see the resolved command.",
"max_score": 15
},
{
"name": "Run via package",
"description": "Runs the editing session with external-editor APIs (edit, editAsync, run, or runAsync) to capture saved content instead of spawning the editor manually.",
"max_score": 20
},
{
"name": "Exit status",
"description": "Propagates lastExitStatus from ExternalEditor after running so callers receive the editor's exit status.",
"max_score": 10
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-external-editordocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10