Skip to content

Commit

Permalink
Make prompt searchable
Browse files Browse the repository at this point in the history
  • Loading branch information
patriksvensson committed Feb 25, 2024
1 parent f63dfba commit 82e70bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/Console/Prompt/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ public static string AskFruit()
{
fruit = AnsiConsole.Prompt(
new SelectionPrompt<string>()
.EnableSearch()
.Title("Ok, but if you could only choose [green]one[/]?")
.MoreChoicesText("[grey](Move up and down to reveal more fruits)[/]")
.AddChoices(favorites));
Expand Down

0 comments on commit 82e70bf

Please sign in to comment.