mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
Add cond for hidden_dir
So now you can do the following example:
prepend_conds = [
# Fallback
{ if = "hidden_dir", text = "👻" },
{ if = "dir", text = "🗂️" },
]
This commit is contained in:
parent
ef1a31a274
commit
86d9f529bf
1 changed files with 1 additions and 0 deletions
|
|
@ -27,6 +27,7 @@ impl Icons {
|
|||
let f = |s: &str| match s {
|
||||
"dir" => file.is_dir(),
|
||||
"hidden" => file.is_hidden(),
|
||||
"hidden_dir" => file.is_hidden() && file.is_dir(),
|
||||
"link" => file.is_link(),
|
||||
"orphan" => file.is_orphan(),
|
||||
"dummy" => file.is_dummy(),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue