Closed guttermonk closed 5 hours ago
This is expected behavior; Folder
has been renamed to Entity
since v0.3.0, https://github.com/sxyazi/yazi/issues/1046#issuecomment-2140320472
Since I'm using Version: 0.2.5 (latest version in the NixOS stable repo), shouldn't adding the following to ~/.config/yazi/init.lua
work?
function Folder:icon(file)
local icon = file:icon()
return icon and ui.Span(" " .. icon.text .. " "):style(icon.style) or ui.Span("")
end
0.2.5 is a bit too old, and I don't really remember what its API is - if possible, I suggest upgrading to the latest version, 0.3.3, which is available in nix unstable, or Yazi also offers a nix flake for use, https://yazi-rs.github.io/docs/installation#nix-flakes.
Sorry for the inconvenience! Yazi is a new project that's rapidly iterating, and we usually only support the latest version.
I understand. Thank you for the suggestions.
The function in the init.lua
should work since your comment here says it's for v0.2.3.
Looking much better with the flake. Thank you!
What system are you running Yazi on?
Linux Wayland
What terminal are you running Yazi in?
kitty 0.34.1, alacritty 0.13.2
yazi --debug
outputDid you try the latest nightly build to see if the problem got fixed?
No, and I'll explain why below
Describe the bug
Since I can't comment on https://github.com/sxyazi/yazi/issues/297 and https://github.com/sxyazi/yazi/issues/647, I need to open a new issue, but I'm exactly at the same position as discussed there: I'd like more space after the icons.
The problem is that I cannot make the solution provided work with me.
Minimal reproducer
I created a
~/.config/yazi/init.lua
file and added the following:Then restarted my terminal and reopened yazi. I get the same behavior in kitty and alacritty.
Anything else?