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

feature: ability to truncate long error messages in mini view

Open dlvhdr opened this issue 6 months ago • 0 comments

Did you check the docs?

  • [X] I have read all the noice.nvim docs

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

Sometimes I get errors that are really long, but there's nothing actionable I want to do with them. I just want them not to take my entire screen. If I'm in the mood, I might handle them, but most of the time I just let them disappear. It could be from a plugin misbehaving - not something I want not to see entirely, but also I don't want it to block my screen.

Describe the solution you'd like

I would like to have an option added to the mini view where you can set the truncate length. Any more than X characters will be truncated with an ellipsis (...). If I open Noice and want to see more, I will still be able to.

Describe alternatives you've considered

I haven't seen an option for this. I can filter messages out but that's not what I'm looking for.

Additional context

https://github.com/folke/noice.nvim/assets/6196971/e0005db3-a02f-4486-a440-250b7a911cf3

dlvhdr avatar Dec 30 '23 21:12 dlvhdr