From 1cdef8d662e43f9fdfe3c6f70ee7f7f2f4191dda Mon Sep 17 00:00:00 2001 From: notohh Date: Mon, 22 Jan 2024 03:49:37 -0500 Subject: [PATCH] init: show symlinks in ui --- home/yazi/init.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/home/yazi/init.lua b/home/yazi/init.lua index 2db8977..3a9d3cc 100644 --- a/home/yazi/init.lua +++ b/home/yazi/init.lua @@ -82,8 +82,11 @@ function Status:name() if h == nil then return ui.Span("") end - - return ui.Span(" " .. h.name) + local linked = "" + if h.link_to ~= nil then + linked = " -> " .. tostring(h.link_to) + end + return ui.Span(" " .. h.name .. linked) end function Status:permissions()