Edit a string with the users preferred text editor using $VISUAL or $ENVIRONMENT
79
A small utility that opens a text editor via the provided dependency and returns edited text plus metadata drawn from its legacy snake_case accessors.
@generates
export interface LegacyEditResult {
editedText: string;
legacyTempPath: string;
legacyExitStatus: number | null;
}
/**
* Opens a user-editable buffer using the configured external editor, allowing test runs
* to override the editor command, and returns edited content along with metadata derived
* from the dependency's legacy snake_case accessors for the temporary file and last exit status.
*
* @param initialText Initial text seeded into the editable file.
* @param editorCommand Optional override to force a specific editor invocation (e.g., a scripted command).
*/
export function runLegacyEdit(initialText?: string, editorCommand?: string): Promise<LegacyEditResult>;Provides editor launching plus legacy snake_case metadata for temp file path and exit status.
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