telescope.nvim icon indicating copy to clipboard operation
telescope.nvim copied to clipboard

Full messages visible in diagnostics picker

Open drybalka opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe. I am always frustrated when I cannot see the full diagnostics message in the diagnostics picker results, even with wrap_results enabled

Describe the solution you'd like A nicely looking full diagnostics messages and their file of origin. I guess this may be possible with enabled wrap_results and by having the line_width parameter set to the message length, different for each message

Describe alternatives you've considered The only relevant option seems to be line_width, but it is a fixed number. Setting it to a large number produces quite horribly-looking results

drybalka avatar Jun 21 '22 13:06 drybalka

Yes, with { defaults = { wrap_results = true } } I get things like this:

image

Where you can't see which file it's in but you can see the full line of code.

artfulrobot avatar Aug 03 '22 16:08 artfulrobot

This makes Typescript errors especially inscrutable given the length/depth of the messages tsc emits

bnwa avatar Jan 02 '23 21:01 bnwa

I managed to make a quick fix for this by appling this change: https://github.com/blue-pitaya/telescope.nvim/commit/7365b66a92d03aa1b39ef2e9e3e54d63b1095cea

The problem seems to be that line width is ignoring wrap_results flag.

image

blue-pitaya avatar Jan 04 '23 17:01 blue-pitaya

Any idea of when this will be make it into a release?

bnwa avatar Jan 29 '24 07:01 bnwa

@bnwa sorry no timeline. you can pin telescope to this commit https://github.com/nvim-telescope/telescope.nvim/commit/dc7f25c81025981ea20fa9ffa2697ef8459123a1 in the meantime.

jamestrew avatar Jan 29 '24 18:01 jamestrew