Skip to content

feat: Allow user and group name truncation #1760

@TheSignPainter98

Description

@TheSignPainter98

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions