spectre.console icon indicating copy to clipboard operation
spectre.console copied to clipboard

Search not working on the selectionprompt if you have [] characters in your string.

Open flupkede opened this issue 1 year ago • 1 comments

Describe the bug Adding [] characters in the string you add to the selectionprompt choices results in an error on invoking the search in the UI: System.InvalidOperationException: 'Encountered malformed markup tag at position 4.'

To Reproduce var testprompt = new SelectionPrompt() { SearchEnabled = true } .Title("Test Search"); testprompt.AddChoice("[[01]] My first item"); testprompt.AddChoice("[[02]] My second item"); var result = _con.Prompt(testprompt);

Run the code and try to type in the search input.

Expected behavior Search should work without formatting

Please upvote :+1: this issue if you are interested in it.

flupkede avatar Sep 23 '24 11:09 flupkede

Hi @patriksvensson @flupkede Can I pick this bug?

Elementttto avatar Feb 02 '25 04:02 Elementttto