-
-
Notifications
You must be signed in to change notification settings - Fork 853
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
Truncate or fold file paths if out of bounds #895
Comments
For making it dynamic there is a little bit missing because currently we don't know the result window width, when we calculate the display string, but i have an idea how we could do this. |
That helps, thanks. Although I'm still looking forward as to what they will come up with in #839. Also, not sure if I'm doing something wrong, but when I launch
|
Yeah currently it doesn't work in the |
Oh okay, feel free to close this issue if it's not going to be used for tracking as I would consider my problem solved. Thanks for the help. |
I am closing this now as |
It should goes like this in config, if you dont know how to setup it:
Check: |
Thanks, it worked with |
I have the same issue aas @nicos68, this works for find_files, but not for lsp_references or git_status, did anyone find a solution for this? |
Similar results to @nicos68 In the uses I've tested, it seems that some of the options ("smart", "shorten", etc) Do work with
Do NOT work with
Perhaps there is something I haven't configured properly? This is what I'm currently rocking in my init.lua:
|
Agree with this and also it doesn't work with extensions |
Same here. Custom function for |
I fixed the I tested out |
@jamestrew is there a reason why utils.path_truncate(display_filename, 1, {}) I can't imagine how I could achieve this myself without reusing |
Is your feature request related to a problem? Please describe.
Yes, in a large project, there are often deeply nested files leading to file paths going out of bounds and file names not being visible:
Here a part of the file name is cut off, and if there was another file 1 level deeper, its name wouldn't be visible at all. This makes it difficult to spot what you are looking for.
Describe the solution you'd like
Not 100% sure but either to truncate the file path if too long, or fold it.
Another potential solution to this would be to display only file names in the list and the path next to them, similarly to how IntelliJ does it.
Thanks for the amazing plugin!
The text was updated successfully, but these errors were encountered: