Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add an option to truncate long file names #1245

Open
BrendanMesters opened this issue Nov 26, 2024 · 0 comments
Open

feat: Add an option to truncate long file names #1245

BrendanMesters opened this issue Nov 26, 2024 · 0 comments

Comments

@BrendanMesters
Copy link

Requested behaviour

I would like to have an option, lets say --truncate=max_size where it truncates file/dir names longer then the max_size to the max_size so that it does not clutter up the screen.

Example

$ eza
> a_very_long_file_name_which_should_probably_be_truncated.pdf
> bar
> foo

$ eza --truncate=10
> a_very_lon
> bar
> foo

It might also be nice to keep file extensions so instead have the behaviour be

$ eza --truncate=10
> a_very_lon.pdf
> bar
> foo

or

$ eza --truncate=10
> a_very.pdf
> bar
> foo

You would probably want to have a way to denote that these files have been truncated.

Use case

I often find myself storing books and papers under the full title of the book/paper, this usually messes up the table view provided by eza, it would be nice if there was an option which could help elevate this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant