init: show symlinks in ui

This commit is contained in:
notohh 2024-01-22 03:49:37 -05:00
parent 96d049445b
commit 1cdef8d662
Signed by: notohh
GPG key ID: BD47506D475EE86D

View file

@ -82,8 +82,11 @@ function Status:name()
if h == nil then if h == nil then
return ui.Span("") return ui.Span("")
end end
local linked = ""
return ui.Span(" " .. h.name) if h.link_to ~= nil then
linked = " -> " .. tostring(h.link_to)
end
return ui.Span(" " .. h.name .. linked)
end end
function Status:permissions() function Status:permissions()