-
Notifications
You must be signed in to change notification settings - Fork 87
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
Allow preserving the full filename when truncating the result lines for grep provider #537
Comments
Issue-Label Bot is automatically applying the label Links: app homepage, dashboard and code for this bot. |
When you move the cursor to the line, the whole filepath will be displayed in the preview window below. |
I'm aware, but that doesn't solve my issue. It's about having an overview of the results per file, so i instantly see where the results are without moving through the entire list. |
You have to understand that the window size is always limited and can't display the whole line, therefore it has to be truncated for displaying the part containing the matched items. |
Yes and it could make sure to preserve the filename during truncation. |
Hmm, I'm not interested unless someone sends a PR. |
I might have a look at it when I have time this week. Can you give me pointers to the code where the truncation happens? |
The truncation processing is in vim-clap/crates/printer/src/lib.rs Line 53 in 41dc711
Currently it's not flexible to support various truncation style, for the result lines can have distinct formats, but at least you can fork it to meet your own need :) |
I realize this is a nice-to-have feature, we should support it. The printer crate might need to be refactored first. |
@hasufell Can you try this branch https://github.com/liuchengxu/vim-clap/tree/preserve-file-name? |
I can't read most of the file names. I think these should always be visible (not the whole path, but the filename).
The text was updated successfully, but these errors were encountered: