Closed Jimmytalksalot closed 1 month ago
I noticed you're using the nightly version, so you should copy the latest theme.toml
file here https://github.com/sxyazi/yazi/blob/main/yazi-config/preset/theme.toml.
This is a breaking change in the upcoming Yazi v0.3, see https://github.com/sxyazi/yazi/pull/1086 for details.
now it says this Error: TOML parse error at line 264, column 1
|
264 | [[icon.conds]]
| ^^^^^^^^^^^^^^
missing field cond
which happened after I added
conds = [
{ if = "orphan", text = "" },
{ if = "link" , text = "" },
{ if = "block" , text = "" },
{ if = "char" , text = "" },
{ if = "fifo" , text = "" },
{ if = "sock" , text = "" },
{ if = "sticky", text = "" },
# Fallback
{ if = "dir", text = "" },
{ if = "exec", text = "" },
{ if = "!dir", text = "" },
]
when I tried to make the icons work for all directories
Your nightly build was from 2024-06-22, and it's been a while since then. Please update it to the latest.
how do I do that?
I used brew to install it, so do I have to use a different version?
You used the --HEAD
flag when installing Yazi with Homebrew, so you got the nightly version available at the time (2024-06-22). You need to upgrade it to the latest nightly version from today (2024-07-13).
So try
brew uninstall yazi
brew install yazi --HEAD
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?
Kitty
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
I wanted to change my folder icons to something else, I copied some configurations when I figured out that the yazi wiki wouldn't work, and even used AI to solve the problem. I'm fairly new to Linux, so please don't be mean to me.
Also I have no idea what a nightly build is. And don't know how to install them.
Expected Behavior
The folder icons would be changed, when I typed this out.
[icon] rules= [ { name = "" , text = "" }, { name = "/", text = "", fg = "yellow" }, ]
To Reproduce
I got it with this.
[icon] rules= [ { name = "" , text = "" }, { name = "/", text = "", fg = "yellow" }, ]
Configuration
"$schema" = "https://yazi-rs.github.io/schemas/theme.json"
[manager] cwd = {fg = "#959FA9"} hovered = {fg = "#87929e" } preview_hovered = {fg = "#959FA9"} marker_selected = {fg = "#959FA9"} marker_copied = {fg = "#959FA9"} border_style = {fg = "#959FA9"} tab_active = {fg = "#959FA9"} tab_inactive = {fg = "#959FA9"} tab_width = 5 [select] inactive = {fg = "#58688c"} active = {fg = "#ffffff", bg = "#264662"} selected = {fg = "#ffffff"} value = {fg = "#ffffff"}
[input] title = {fg = "#ffffff"}
[completion] active = {fg = "#264662"} inactive = {fg = "#264662"} icon_folder = "🗀"
[tasks] title = {fg = "#ffffff"}
[status] mode_normal = {fg = "#1a1417"} mode_select = {fg = "#1a1417"}
[help] run = {fg = "#264662"} on = {fg = "#264662"} desc = {fg = "#264662"} hovered = {fg = "#264662"} footer = {fg = "#264662"}
Define the styles for different file types
[filetype] rules = [
Images
]
[icon] rules= [ { name = "" , text = "" }, { name = "/", text = "", fg = "yellow" }, ]
Anything else?
No response