bulletmark / edir

Program to rename, remove, and copy files and directories using your editor
139 stars 8 forks source link

Sort directories before files #10

Closed trapd00r closed 2 years ago

trapd00r commented 2 years ago

I've tried my hands on fixing this myself but to no avail. :)

Can we get an option that lets us sort directories before files? Just like how ls --group-directories-first work, and how vidir does it.

edir: edir

default vidir, no sort but directories still first: vidir

vidir with -s flag (sort): vidir

bulletmark commented 2 years ago

Generic vidir comes from Joey Hess moreutils and does not have any sorting options. Actually, the default order shown by that vidir is the same as the default order shown by edir. What vidir are you using?

trapd00r commented 2 years ago

Oh, my bad. I forgot that I've been using my own fork for many years, where I've been fixing and adding various things over the years.

https://github.com/trapd00r/vidir

I see that you already added the option, thank you for that!