You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I'm always frustrated when I have a directory that has number-named files.
For example NvimTree will display them like that:
You can add this functionality yourself. See :help nvim-tree.sort_by
This might get you started:
localsort_by=function(nodes)
table.sort(nodes, function(a, b)
locala_num=string.match(a.name, "^[0-9]+")
localb_num=string.match(b.name, "^[0-9]+")
ifa_numandb_numthenreturna_num<b_numelse-- we need to do something herereturnfalseendend)
end
Activity
alex-courtis commentedon Jan 7, 2023
You can add this functionality yourself. See
:help nvim-tree.sort_byThis might get you started: