athityakumar / colorls

A Ruby gem that beautifies the terminal's ls command, with color and font-awesome icons. :tada:
MIT License
4.84k stars 379 forks source link

Add --dots-first option to sort dot-files and dot-folders first #613

Open dmitrykok opened 2 months ago

dmitrykok commented 2 months ago

Description

directory and file names started with '.' - dot symbol, not listed first. I want to add --dots-first option to sort dot-files and dot-folders first

dmitrykok commented 2 months ago

How to assign this issue to me ?

dmitrykok commented 2 months ago

I implemented it already and tested, need permission to commit new branch and assign this issue to me


sorting options:

        --sd, --sort-dirs, --group-directories-first
                                     sort directories first
        --sf, --sort-files           sort files first
        --df, --dots-first           sort dot-files and dot-folders first
    -t                               sort by modification time, newest first
    -U                               do not sort; list entries in directory order
    -S                               sort by file size, largest first
    -X                               sort by file extension
        --sort=WORD                  sort by WORD instead of name: none, size (-S), time (-t), extension (-X), df (--df)
    -r, --reverse                    reverse order while sorting