-
Notifications
You must be signed in to change notification settings - Fork 409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More spacing after icons "Folder:icon()" solution doesn't work as expected #647
Comments
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 yazi/yazi-plugin/preset/components/folder.lua Lines 17 to 20 in 25c9655
|
Thanks for your quick response, @sxyazi! I found 2 issues related with how I installed yazi:
|
Ah that's a bit unfortunate, this is a known issue specific to ArchLinux, likely related to Rust/LLVM on ArchLinux, see #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 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! #537 (comment) |
I've just seen it! 🥳 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 :)
The text was updated successfully, but these errors were encountered: