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

Display line number with filename when using filename_first #3156

Open
mehalter opened this issue Jun 7, 2024 · 1 comment
Open

Display line number with filename when using filename_first #3156

mehalter opened this issue Jun 7, 2024 · 1 comment
Labels
enhancement Enhancement to performance, inner workings or existent features Planned Part of a project

Comments

@mehalter
Copy link

mehalter commented Jun 7, 2024

Is your feature request related to a problem? Please describe.

When I'm using the relatively new filename_first path_display option, specifically with the buffer picker, it can be a bit jarring when the line number is displayed after the path rather than after the filename.

2024-06-07_11:07:27_screenshot

The line number is really "operating" on the filename and not on the directory. Also because the directory highlighting most of the time is a bit more dimmed than the filename and the line number they feel a bit separated for the two parts that are being shown as the "most important"

Describe the solution you'd like

Add a configuration option similar to the reverse_directories to relocate the line number displaying to be next to the filename.

rather than being something like

utils.lua lua/telescope:686

It would be displayed as

utils.lua:686 lua/telescope

Describe alternatives you've considered

I believe there is a solution to be able to implement this as a custom make_entry function but this takes some deep understanding of how to write these functions for a small change. Also I think this could be something that many people may find benefit in which makes it seem like it would be a good option to include

@mehalter mehalter added the enhancement Enhancement to performance, inner workings or existent features label Jun 7, 2024
@jamestrew jamestrew added the Planned Part of a project label Jun 8, 2024
@jamestrew
Copy link
Contributor

No I agree, the current behavior wasn't meant to be a long term thing.

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 Planned Part of a project
Projects
None yet
Development

No branches or pull requests

2 participants