dduan / tre

Tree command, improved.
MIT License
732 stars 15 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.