diff --git a/yazi-config/preset/theme-dark.toml b/yazi-config/preset/theme-dark.toml index 01efac6c..997c3de1 100644 --- a/yazi-config/preset/theme-dark.toml +++ b/yazi-config/preset/theme-dark.toml @@ -29,6 +29,9 @@ preview_hovered = { underline = true } find_keyword = { fg = "yellow", bold = true, italic = true, underline = true } find_position = { fg = "magenta", bg = "reset", bold = true, italic = true } +# Symlink +symlink_target = { italic = true } + # Marker marker_copied = { fg = "lightgreen", bg = "lightgreen" } marker_cut = { fg = "lightred", bg = "lightred" } diff --git a/yazi-config/preset/theme-light.toml b/yazi-config/preset/theme-light.toml index dc34a636..4e2bf4a2 100644 --- a/yazi-config/preset/theme-light.toml +++ b/yazi-config/preset/theme-light.toml @@ -29,6 +29,9 @@ preview_hovered = { underline = true } find_keyword = { fg = "yellow", bold = true, italic = true, underline = true } find_position = { fg = "magenta", bg = "reset", bold = true, italic = true } +# Symlink +symlink_target = { italic = true } + # Marker marker_copied = { fg = "lightgreen", bg = "lightgreen" } marker_cut = { fg = "lightred", bg = "lightred" } diff --git a/yazi-config/src/theme/theme.rs b/yazi-config/src/theme/theme.rs index 940bd5cb..1f66539a 100644 --- a/yazi-config/src/theme/theme.rs +++ b/yazi-config/src/theme/theme.rs @@ -44,6 +44,9 @@ pub struct Mgr { find_keyword: Style, find_position: Style, + // Symlink + symlink_target: Style, + // Marker marker_copied: Style, marker_cut: Style, diff --git a/yazi-plugin/preset/components/entity.lua b/yazi-plugin/preset/components/entity.lua index 1fff8d52..5f59f8f5 100644 --- a/yazi-plugin/preset/components/entity.lua +++ b/yazi-plugin/preset/components/entity.lua @@ -73,7 +73,7 @@ function Entity:symlink() end local to = self._file.link_to - return to and ui.Span(string.format(" -> %s", to)):italic() or "" + return to and ui.Span(string.format(" -> %s", to)):style(th.mgr.symlink_target) or "" end function Entity:redraw()