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

Only display filename on long paths #3204

Closed
svartkanin opened this issue Jul 13, 2024 · 2 comments
Closed

Only display filename on long paths #3204

svartkanin opened this issue Jul 13, 2024 · 2 comments
Labels
enhancement Enhancement to performance, inner workings or existent features

Comments

@svartkanin
Copy link

Is your feature request related to a problem? Please describe.
I have the follow following keybinding

map('n', 'gr', require('telescope.builtin').lsp_references, { desc = 'Goto References' })

do display the references. Problem is, on long paths the displayed filepath gets cut off

image

Describe the solution you'd like
Option to display only filenames without the path, and then potentially display the full path as a header on top of the preview?

@svartkanin svartkanin added the enhancement Enhancement to performance, inner workings or existent features label Jul 13, 2024
@ryanthedev
Copy link

I believe this should help but hasn't been released yet
#2014

In the meantime I have been using
image

But still isn't perfect :(

@jamestrew
Copy link
Contributor

The entry maker for quite a number of the pickers including LSP References were changed in the master branch to no longer use fixed width for filenames in this PR #2842

There's also a fname_width option you can pass to these pickers (default is 30) if you want to stay on which ever release you're currently on.

We're planning to do a telescope 0.2 release in the coming weeks but it will be quite similar to the existing master branch. You can pin your telescope version to that PR's commit just to be safe as well (4367e05).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement to performance, inner workings or existent features
Projects
None yet
Development

No branches or pull requests

3 participants