How to use the external-editor.editAsync function in external-editor

To help you get started, we’ve selected a few external-editor examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github sx1989827 / DOClever / node_modules / inquirer / lib / prompts / editor.js View on Github external
Prompt.prototype.startExternalEditor = function () {
  // Pause Readline to prevent stdin and stdout from being modified while the editor is showing
  this.rl.pause();
  ExternalEditor.editAsync(this.currentText, this.endExternalEditor.bind(this));
};
github graalvm / graaljs / tools / node_modules / eslint / node_modules / inquirer / lib / prompts / editor.js View on Github external
startExternalEditor() {
    // Pause Readline to prevent stdin and stdout from being modified while the editor is showing
    this.rl.pause();
    editAsync(this.currentText, this.endExternalEditor.bind(this));
  }
github SBoudrias / Inquirer.js / packages / inquirer / lib / prompts / editor.js View on Github external
startExternalEditor() {
    // Pause Readline to prevent stdin and stdout from being modified while the editor is showing
    this.rl.pause();
    editAsync(this.currentText, this.endExternalEditor.bind(this));
  }
github rei / rei-cedar-docs / node_modules / inquirer / lib / prompts / editor.js View on Github external
Prompt.prototype.startExternalEditor = function () {
  // Pause Readline to prevent stdin and stdout from being modified while the editor is showing
  this.rl.pause();
  ExternalEditor.editAsync(this.currentText, this.endExternalEditor.bind(this));
};

external-editor

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

MIT
Latest version published 5 years ago

Package Health Score

65 / 100
Full package analysis

Popular external-editor functions