yazi: The context menu show incorrect options in some files

What system are you running Yazi on?

macOS

What terminal are you running Yazi in?

Warp / iTerm2

Yazi version

0.2.3

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

Not tried, and I’ll explain why below

Describe the bug

Using main branch need to build yazi locally and need many dependencies. And I’ve checked recent open and closed issues don’t include this.

The options in the open options menu of some files are incorrect, for example:

I’ve got a print.sh and a print.swift and their options are incorrect: image image

Then I create a print2.sh and this time the options are correct: image

Their attributes are basically the same: image

Besides, I’ve got a mov.mp4 file and its options are incorrect either(but another file named fmp4.mp4 is correct): image

And here is the file list in yazi: image It’s interesting that one of the two mp4 files is yellow, and one of the two shell files is yellow. I’m using the default configuration.

Expected Behavior

All shell files and swift files should contains the $EDITOR option, and all video files should contains the play option(mpv)

To Reproduce

I’ve got no idea temporarily, do you have and ideas about how this happened?

Configuration

no config

Anything else?

No response

About this issue

  • Original URL
  • State: closed
  • Created 4 months ago
  • Comments: 28 (16 by maintainers)

Most upvoted comments

Thanks for testing! Let’s merge it then

Hi, I made a PR trying to fix it, https://github.com/sxyazi/yazi/pull/707, let me know if it works for you!

What’s your Nerd font version? Can it render properly, if you paste this line to your terminal?

https://github.com/sxyazi/yazi/blob/3f27532c576365bf5da4a82ee89c48a677ec498f/yazi-config/preset/theme.toml#L205

It looks like this on my side:

CleanShot 2024-02-19 at 20 17 45

This is amazing, it’s my first time discovering that Yazi has so many cute icons.