tre icon indicating copy to clipboard operation
tre copied to clipboard

Output order makes no sense?

Open eggbean opened this issue 2 years ago • 1 comments

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.

eggbean avatar Jun 01 '23 05:06 eggbean

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.

pucicu avatar Oct 01 '24 09:10 pucicu