Skip to content

feat: Allow users to specify a maximum length for files/folders #1416

@BrendanMesters

Description

@BrendanMesters

Requested behaviour

I think a specific option, which could limit the name length displayed when using eza would be usefull.
This way your view would not be limited to one collumn by a single file with a long file name.

How would this look

You could add another option to eza, e.g. --max_length and set it to a value.

if you have a folder containing a file "foo_bar_baz.txt" for example, but you only want at most 8 characters to be dislpayed per file you could simply call

$ eza --max_length 8
> foo_bar_

Why is this necessary

Its not a high priority feature, but it would be very nice to set a reasonable limit (40 or 50 characters say), as I find that specifically the Downloads folder can sometimes be infested by random files with to long a name. This can also be a problem when saving papers under the full title.

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