"Show symlink in status bar" not working #500
-
I followed https://yazi-rs.github.io/docs/tips/#show-symlink-in-status-bar but it doesn't seem to work for me. function Status:name()
local h = cx.active.current.hovered
if h == nil then
return ui.Span("")
end
-- Show symlink if exists
local linked = ""
if h.link_to ~= nil then
linked = " -> " .. tostring(h.link_to)
end
return ui.Span(" " .. h.name .. linked)
end in [plugins]
preload = [
"$XDG_CONFIG_HOME/yazi/plugins/status-name.yazi/init.lua"
] but the symlink indicator text in the status bar is not showing up. Any ideas? |
Beta Was this translation helpful? Give feedback.
Answered by
sxyazi
Jan 9, 2024
Replies: 1 comment 1 reply
-
Please use |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
fritzrehde
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
preload
has been deprecated in the upcoming breaking change version v0.2.0.Please use
require("status-name")
in your~/.config/yazi/init.lua
instead, or simply copy the above code into yourinit.lua
.