New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filtered item shows escaped style color #430
Comments
Good catch. Do you have any code we can use to reproduce? |
I came across a similar issue - charmbracelet/bubbletea#523 |
Their response was to move it to a discussion but not address it. I think this is a bug as the rendering of the list item works, my filter shouldn't change how the list-item is rendered. It should just remove the items not part of the filter. |
Sorry, yes. The link from @pjg11 also has a good example of the same issue. But create any list and then in the
|
I pulled down the PR code to check it in my code and was able to confirm that PR would fix this issue. |
Looks like @muesli recommended defining your own itemDelegate in charmbracelet/bubbletea#523. Is that still the recommended way to work around this? Or should I try picking up where #452 left off? |
Latest version seemed to correct it for me.
On March 21, 2024, Github Notification ***@***.***> wrote:
Looks like @muesli <https://github.com/muesli> recommended defining
your own itemDelegate
<https://github.com/charmbracelet/bubbletea/blob/master/examples/list-
simple/main.go#L29-L50> in charmbracelet/bubbletea#523
<charmbracelet/bubbletea#523>. Is that still
the recommended way to work around this? Or should I try picking up
where #452 <#452> left
off?
—
Reply to this email directly, view it on GitHub
<#430 (comment)-
2013759579>, or unsubscribe
<https://github.com/notifications/unsubscribe-
auth/AABUP6C4VF4D6I5TTURUGMTYZNFEZAVCNFSM6AAAAAA7B3B2OOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJTG42TSNJXHE>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
For anyone coming across this thread, I've fixed my issue by defining a custom item delegate. |
Describe the bug
I have a list item with a colored style applied in the title. When I filter the list, it shows the colors escaped in the terminal
Setup
Build any list and add a lipgloss color style to the Title
Expected behavior
Color is still properly displayed for filtered items
Screenshots
Unfiltered:
Filtered:
The text was updated successfully, but these errors were encountered: