Edit a string with the users preferred text editor using $VISUAL or $ENVIRONMENT
79
A helper that opens the user's default text editor with prefilled content so the final note comes from a real editing session.
# <title> followed by the body (if provided) to a temporary file, opens the external editor, and returns exactly what the user saved. @testwasEdited as true; otherwise it is false. @test@generates
export interface DraftResult {
content: string;
wasEdited: boolean;
}
export function openNoteDraft(title: string, body?: string): DraftResult;Uses the user's default external text editor to synchronously edit the prefilled content.
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