Update 2025-04-26

This commit is contained in:
2025-04-26 23:21:08 +03:00
parent 1077cee297
commit 90d846ea20
13 changed files with 1137 additions and 511 deletions

View File

@@ -448,7 +448,7 @@ function Yatline.string.get:hovered_file_extension(show_icon)
if cha.is_dir then
name = "dir"
else
name = get_file_extension(hovered.url:name())
name = get_file_extension(hovered.url.name)
end
if show_icon then
@@ -474,7 +474,7 @@ function Yatline.string.get:tab_path(config)
local cwd = cx.active.current.cwd
local filter = cx.active.current.files.filter
local search = cwd.is_search and string.format(" (search: %s", cwd:frag()) or ""
local search = cwd.is_search and string.format(" (search: %s", cwd.frag) or ""
local suffix
if not filter then
@@ -593,7 +593,7 @@ function Yatline.line.get:tabs(side)
for i = 1, tabs do
local text = i
if tab_width > 2 then
text = ya.truncate(text .. " " .. cx.tabs[i]:name(), { max = tab_width })
text = ya.truncate(text .. " " .. cx.tabs[i].name, { max = tab_width })
end
separator_style = { bg = nil, fg = nil }
@@ -1105,6 +1105,10 @@ return {
right = { section_a = {}, section_b = {}, section_c = {} },
}
config.theme = (not rt.term.light and config.theme_dark)
or (rt.term.light and config.theme_light)
or config.theme
if config.theme then
for key, value in pairs(config.theme) do
if not config[key] then