Replies: 1 comment
-
this is the best I could do: dotfiles and dotdirectories always last sort_function = function(a, b)
if a.name and b.name then
local a_is_hidden = a.name:sub(1, 1) == "."
local b_is_hidden = b.name:sub(1, 1) == "."
if a_is_hidden and not b_is_hidden then
return false
elseif not a_is_hidden and b_is_hidden then
return true
end
end
if a.type == b.type then
return a.path < b.path
else
return a.type < b.type
end
end,
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Beta Was this translation helpful? Give feedback.
All reactions