We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef7d414 commit 1fab46aCopy full SHA for 1fab46a
packages/core/src/prompts/prompt.ts
@@ -166,6 +166,12 @@ export default class Prompt {
166
if (char && (char.toLowerCase() === 'y' || char.toLowerCase() === 'n')) {
167
this.emit('confirm', char.toLowerCase() === 'y');
168
}
169
+ if (char === '\t' && this.opts.placeholder) {
170
+ if (!this.value) {
171
+ this.rl.write(this.opts.placeholder);
172
+ this.emit('value', this.opts.placeholder);
173
+ }
174
175
if (char) {
176
this.emit('key', char.toLowerCase());
177
0 commit comments