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

Show file extensions if file names are truncated #903

Closed
1 task
Brixy opened this issue Apr 12, 2024 · 3 comments
Closed
1 task

Show file extensions if file names are truncated #903

Brixy opened this issue Apr 12, 2024 · 3 comments
Labels
feature New feature request

Comments

@Brixy
Copy link
Contributor

Brixy commented Apr 12, 2024

Please describe the problem you're trying to solve

Hi guys,

Sometimes it would be important to see file extensions when file names are long and extensions are truncated.

This is particularly important if file icons are ambiguous or deactivated.

Would you be willing to contribute this feature?

  • Yes, I'll give it a shot

Describe the solution you'd like

I could think of two solutions:

  1. truncate file names like this is a very long f…EXTENSION or
  2. add an extension option to linemode. (Extensions of untruncated files are shown twice in this case.)

Additional context

Current workarounds:

  • rename, then escape
  • toggle full screen
  • use plugin to toggle preview pane’s visibility.

Thanks for considering this!

@sxyazi
Copy link
Owner

sxyazi commented Oct 16, 2024

Tracked by #51

@sxyazi sxyazi closed this as completed Oct 16, 2024
@boydaihungst
Copy link
Contributor

boydaihungst/relative-motions.yazi@6bc65a0
My way to handle this problem. Calculate dynamically, not fixed length.
2024-10-18T22:07:32,845587590+07:00
image

Copy link

I'm going to lock this issue because it has been closed for 30 days. ⏳
This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please file a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature New feature request
Projects
None yet
Development

No branches or pull requests

3 participants