mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 18:58:12 +00:00
fix(explorer): fixed hierarchical sorting. Closes #828
This commit is contained in:
parent
692aeaf131
commit
fa32e20e99
1 changed files with 2 additions and 2 deletions
|
@ -485,9 +485,9 @@ function M.explorer(opts, ctx)
|
|||
|
||||
-- hierarchical sorting
|
||||
if item.dir then
|
||||
item.sort = parent.sort .. "/0" .. basename
|
||||
item.sort = parent.sort .. "!" .. basename .. " "
|
||||
else
|
||||
item.sort = parent.sort .. "/1" .. basename
|
||||
item.sort = parent.sort .. "#" .. basename .. " "
|
||||
end
|
||||
|
||||
if opts.tree then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue