After updating yazi to sxyazi/yazi@2014aee, the following API deprecation message is printed when hovering some files (see below for details):
sxyazi/yazi@8b47ebf#diff-f3fd609a7d5e2151bea826946cc2bf959f788ad4b6b97175f4fcc2f81e2032feR10-R25

Edit: updated screenshot showcasing plug-in name after updating to sxyazi/yazi@da1b236
ref: sxyazi/yazi#1761
I can reproduce with this minimal setup:
% uname -s
Linux
% yazi -V
Yazi 0.3.3 (2014aee 2024-10-11)
% tree ~/.config/yazi
yazi
├── plugins
│ └── mediainfo.yazi
│ └── init.lua
└── yazi.toml
yazi.toml content:
[plugin]
fetchers = [
{ id = "mime", name = "*", run = "mime", if = "!mime", prio = "high" },
]
prepend_previewers = [
{ mime = "{image,audio,video}/*", run = "mediainfo" },
{ mime = "application/{octet-stream,x-subrip}", run = "mediainfo" },
]
Then, open yazi and hover some files. I could only trigger the warning when hovering images, audio and video files as well as ~/.Xauthority for example. Hovering directories and other files doesn't trigger the warning.
Either commenting these lines or mv ~/.config/yazi/plugins/mediainfo.yazi ~/.config/yazi/plugins/mediainfo.yazi.bak removes the warning:
- prepend_previewers = [
- { mime = "{image,audio,video}/*", run = "mediainfo" },
- { mime = "application/{octet-stream,x-subrip}", run = "mediainfo" },
- ]
+ # prepend_previewers = [
+ # { mime = "{image,audio,video}/*", run = "mediainfo" },
+ # { mime = "application/{octet-stream,x-subrip}", run = "mediainfo" },
+ # ]