For those of us with very long usernames (not by choice), it would be nice to be able to truncate user and group names to avoid excessive repetition and to avoid wrapping in moderately-narrow terminals. I've had some success using a hack for GNU ls but I'd really love similar functionality to exist natively in eza
Perhaps this could be implemented with a couple of flags, like the following:
--max-name-len <LEN> which would cause at most <LEN> bytes of user and group names to be output
--truncate-names-at <STR>, which would cause names to be printed up to the first occurrence of <STR>
(This would be very useful in my case as verylong.username@domain.com could be truncated at the first @ or . for something much shorter)
I have an implementation of the above and would be happy turn it into a PR if there's interest
For those of us with very long usernames (not by choice), it would be nice to be able to truncate user and group names to avoid excessive repetition and to avoid wrapping in moderately-narrow terminals. I've had some success using a hack for GNU
lsbut I'd really love similar functionality to exist natively inezaPerhaps this could be implemented with a couple of flags, like the following:
--max-name-len <LEN>which would cause at most<LEN>bytes of user and group names to be output--truncate-names-at <STR>, which would cause names to be printed up to the first occurrence of<STR>(This would be very useful in my case as
verylong.username@domain.comcould be truncated at the first@or.for something much shorter)I have an implementation of the above and would be happy turn it into a PR if there's interest