dduan / tre

Tree command, improved.
MIT License
880 stars 18 forks source link

Output order makes no sense? #133

Open eggbean opened 1 year ago

eggbean commented 1 year ago

This is the output from tree, single level. It ignores the leading dot when showing files and directories in alphabetical order.

jason@helios:~/.dotfiles% tree -aL 1
.
├── bin
├── bootstrap
├── config
├── .git
├── .gitattributes
├── .git-crypt
├── .githooks
├── .github
├── key.gpg
└── packages

7 directories, 4 files

This is what tre does with the -a switch. I can't make any sense of it.

jason@helios:~/.dotfiles% tre -al 1
.
├── bin
├── key.gpg
├── config
├── packages
├── .github
├── .git-crypt
├── bootstrap
├── .git
├── .githooks
└── .gitattributes

This is tre without the -a switch. Not quite as WTF, but still crazy.

jason@helios:~/.dotfiles% tre -l 1
.
├── bin
├── key.gpg
├── .git-crypt
├── .gitattributes
├── .githooks
├── .github
├── bootstrap
├── config
└── packages

It would be great if tre could get a little more development to fix these issues.

pucicu commented 1 month ago

I found that the order of the output is random. You can call the same setting several times, you will get always different order. This does not make sense. I need a setting which I can use to select the order.