From 71d48581890eca61693ab6b8fb3722dfd01fe792 Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Mon, 18 May 2020 13:08:05 +0200 Subject: [PATCH] limit view to 10 entries --- lib/Sources/InteractiveSource.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Sources/InteractiveSource.ts b/lib/Sources/InteractiveSource.ts index eabae0b..e27312e 100644 --- a/lib/Sources/InteractiveSource.ts +++ b/lib/Sources/InteractiveSource.ts @@ -40,7 +40,8 @@ export class InteractiveSource extends OptionSource { value = await new AutoComplete ({ message: this.get_message (opt), default: opt.default, - choices: opt.preset + choices: opt.preset, + limit: 10 }) .run (); }