diff --git a/git.yazi/main.lua b/git.yazi/main.lua index 66ef3bb..75000b1 100644 --- a/git.yazi/main.lua +++ b/git.yazi/main.lua @@ -189,6 +189,11 @@ local function setup(st, opts) } Linemode:children_add(function(self) + -- TODO: use `not self._file.in_current` instead + if self._file.in_current == false then + return "" + end + local url = self._file.url local repo = st.dirs[tostring(url.base or url.parent)] local code diff --git a/mactag.yazi/main.lua b/mactag.yazi/main.lua index 309a46a..30112a5 100644 --- a/mactag.yazi/main.lua +++ b/mactag.yazi/main.lua @@ -32,7 +32,9 @@ local function setup(st, opts) local url = tostring(self._file.url) local spans = {} for _, tag in ipairs(st.tags[url] or {}) do - if self._file.is_hovered then + -- TODO: use `not self._file.in_current` instead + if self._file.in_current == false then + elseif self._file.is_hovered then spans[#spans + 1] = ui.Span(" ●"):bg(st.colors[tag] or "reset") else spans[#spans + 1] = ui.Span(" ●"):fg(st.colors[tag] or "reset")