Closed moshpirit closed 7 months ago
Hi! I noticed that you are using a rather old v0.1.5 of Yazi. Please use our latest v0.2.3 and add:
function Folder:icon(file)
local icon = file:icon()
return icon and ui.Span(" " .. icon.text .. " "):style(icon.style) or ui.Span("")
end
to your ~/.config/yazi/init.lua
it should work. This is its source code, you can change it to what you want in your init.lua
:
https://github.com/sxyazi/yazi/blob/25c96557edbc856523056ce67e5920cd3c3c076c/yazi-plugin/preset/components/folder.lua#L17-L20
Thanks for your quick response, @sxyazi! I found 2 issues related with how I installed yazi:
~/.config/yazi/
files for configuration, since completely removing yazi, removing the files and installing it again doesn't create any file at all. So I don't even know where are they created. I'll investigate this.I use Arch, so I installed the package from the extra repo with pacman. But the package seems to be out of date (and flagged as such), and there's an AUR version that is more updated, but it's giving me some error
Ah that's a bit unfortunate, this is a known issue specific to ArchLinux, likely related to Rust/LLVM on ArchLinux, see https://github.com/sxyazi/yazi/issues/537, and we're currently unsure how to fix it. Could you please try installing via Cargo or building from source? You can also use our prebuilt binaries directly from https://github.com/sxyazi/yazi/releases
yazi doesn't seem to use ~/.config/yazi/ files for configuration, since completely removing yazi, removing the files and installing it again doesn't create any file at all. So I don't even know where are they created. I'll investigate this.
Yazi comes with the default configuration file pre-built at build time, if you want to customize the configuration see https://yazi-rs.github.io/docs/configuration/overview
Hi, the latest Yazi is now available on Arch Linux! https://github.com/sxyazi/yazi/issues/537#issuecomment-1937473903
I've just seen it! :partying_face: it works perfectly!! Thanks for everything! ❤️
I'm going to lock this issue because it has been closed for 30 days. ⏳ This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
What system are you running Yazi on?
Linux X11
What terminal are you running Yazi in?
Konsole
Yazi version
yazi 0.1.5
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
Since I can't comment on #297, 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 to work with me.
Expected Behavior
Nothing seems to have changed.
To Reproduce
echo "function Folder:icon(file) return ui.Span(\" \" .. file:icon() .. \" \") end" >> "$HOME/.config/yazi/ui.lua"
yazi.toml
file and add the text under[plugin]
(or create[plugins]
and put it under that, nothing seems to change):Configuration
I haven't changed anything that I recall from the default configuration, except for what is mentioned above:
Anything else?
Cool software, btw :)