Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Filename highlighting not completely working when filtering #497

@fritzrehde

Description

@fritzrehde

What system are you running Yazi on?

Linux Wayland

What terminal are you running Yazi in?

Alacritty 0.13.1

Yazi version

yazi 0.1.5 (c3a8bdc 2024-01-09)

Did you try the latest main branch to see if the problem has already been fixed?

Tried, but the problem is still present

Describe the bug

When I have a directory with more files/directories inside than fit on the current screen, filtering for file/dir names causes those files/dirs that were previously not displayed on the current screen to not be highlighted. See this demo video (the left part is chopped off for privacy reasons, I hope the bug is still visible. In the bottom left of the screen, I have the filter popup window where I am typing .mp4):

screenrecording_20240109_15h38m37s.mp4

Expected Behavior

I would expect the newly shown file/dirs (those that were newly filtered out) to also have highlighting (i.e. be colored yellow like the originally visible files/dirs).

To Reproduce

I hope I described enough in the "Describe the bug" section. If not, please let me know.

Configuration

no config

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwaiting on opWaiting for more information from the original poster

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions