ogham / exa

A modern replacement for ‘ls’.
https://the.exa.website/
MIT License
23.41k stars 658 forks source link

`exa --long --grid --extended` doesn’t show extended attributes #768

Open sivizius opened 3 years ago

sivizius commented 3 years ago

exa -l@G silently drops the xattr-data you would get with exa -l@. (v0.9.0)

sivizius commented 3 years ago

master too

ariasuni commented 3 years ago

Well, I’m not sure I would consider this as a bug. Displaying files in grid makes it kind of complicated to show xattr because it needs to stay under the file it’s attached to.

Here for these two files:

.rw-r--r-- 0 ariasuni 30 Dec 15:10 file1    .rw-r--r-- 0@ ariasuni 30 Dec 15:10 file2

It would need to be displayed like this:

.rw-r--r-- 0 ariasuni 30 Dec 15:10 file1    .rw-r--r--@ 0 ariasuni 30 Dec 15:10 file2
                                                                                ├── user.attr1 (len 4)
                                                                                └── user.attr2 (len 4)

It could cause weird column alignments, and I’m not sure if it’s reasonably feasible to handle more complicated cases. I guess it needs thinking and investigating.

Edit: it also could conflict with fixing #320.