From 82e70bf00d8dd7d1add1652e1c8e95d6cbfd4cd0 Mon Sep 17 00:00:00 2001 From: Patrik Svensson Date: Sun, 25 Feb 2024 12:54:36 +0100 Subject: [PATCH] Make prompt searchable --- examples/Console/Prompt/Program.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/Console/Prompt/Program.cs b/examples/Console/Prompt/Program.cs index ab2cee434..216d029f3 100644 --- a/examples/Console/Prompt/Program.cs +++ b/examples/Console/Prompt/Program.cs @@ -110,6 +110,7 @@ public static string AskFruit() { fruit = AnsiConsole.Prompt( new SelectionPrompt() + .EnableSearch() .Title("Ok, but if you could only choose [green]one[/]?") .MoreChoicesText("[grey](Move up and down to reveal more fruits)[/]") .AddChoices(favorites));