-
-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
config.node_types.file.style.fg foreground color isn't applied to files #651
Comments
It was fixed in #640, but not released yet. Try the dev branch. |
Actually, it might be a separate issue. Will take a closer look later. |
Tinkering around on the latest commit i found a way to work around this issue, albeit by ignoring LS_COLORS completely const LS_COLORS_DEFAULT: &str = "rs=0:lc=\x1b[:rc=m:cl=\x1b[K:ex=01;32:sg=30;43:su=37;41:di=01;34:st=37;44:ow=34;42:tw=30;42:ln=01;36:bd=01;33:cd=01;33:do=01;35:pi=33:so=01;35:"; Either way, by editing xplr.fn.builtin.fmt_general_table_row_cols_1 in the builtin init.lua i got the thing to "work" Edited functionxplr.fn.builtin.fmt_general_table_row_cols_1 = function(m)
local nl = xplr.util.paint("\\n", { add_modifiers = { "Italic", "Dim" } })
local r = m.tree .. m.prefix
-- start of edited part
local style = m.style
-- local style = xplr.util.lscolor(m.absolute_path)
-- style = xplr.util.style_mix({ style, m.style })
-- end of edited part
if m.meta.icon == nil then
r = r .. ""
else
r = r .. m.meta.icon .. " "
end
local rel = m.relative_path
if m.is_dir then
rel = rel .. "/"
end
r = r .. xplr.util.paint(xplr.util.shell_escape(rel), style)
r = r .. m.suffix .. " "
if m.is_symlink then
r = r .. "-> "
if m.is_broken then
r = r .. "×"
else
local symlink_path =
xplr.util.shorten(m.symlink.absolute_path, { base = m.parent })
if m.symlink.is_dir then
symlink_path = symlink_path .. "/"
end
r = r .. symlink_path:gsub("\n", nl)
end
end
return r
end |
Possibly related to #705 |
The same can be said for all node_types style properties except directory.
This only applies for files that have no permission for execution.
My LS_COLORS is empty, i'm using fish and wezterm but the results are identical with kitty and sh. I'm using xplr version 0.21.2 from pacman.
this is an example of what seems to be happening:
These are my relevant configurations, i've deleted the rest of the config (except for version) to make sure nothing else could be interfering:
The text was updated successfully, but these errors were encountered: