helix icon indicating copy to clipboard operation
helix copied to clipboard

Feature request: Toggle minimum diagnostic severity for diagnostic picker

Open nick42d opened this issue 1 year ago • 4 comments

When working on a branch with a large number of diagnostic warnings, errors can get drowned out. It would be nice to have a way of toggling this.

languages.toml diagnostic-severity is not suitable, as once I have tackled the errors I would like to toggle and move onto the warnings without editing configuration.

nick42d avatar Jul 19 '24 22:07 nick42d

This would be solved by implementing fzf ORs operator. The last bit of fzf syntax we don't support yet. I have also found myself missing these for other applications. Then you could do $severity err|warn|info for example. I don't think adding a config option is something we would that. We are generally extremely conservative ablut adding config options.

pascalkuthe avatar Jul 19 '24 23:07 pascalkuthe

For now, you should be able to enter %sev ERROR to filter that column. But this picker doesnt keep a history of what you entered so you would have to type it each time as you go through them.

RoloEdits avatar Jul 20 '24 00:07 RoloEdits

that is the same thing I was saying but only works for error but not for warnings for example (issue is about minimum severisyt not about just showing a single severity). I don't think manually typing a couple of characters into the picker is something that needs a config option

pascalkuthe avatar Jul 20 '24 00:07 pascalkuthe

Cheers both! Learned some things from this;

  • There are some fzf-like matching options for the picker #5114.
  • On master the picker is now column based #9647 (I was running Arch latest 24.03) and typing %s ERR will show only errors.
  • There is a docs PR for some of this functionality open here: #11218.

From my perspective this covers my use case for now. I would generally just want to see errors only or all diagnostics. I will see if I can contribute to the docs PR at all.

nick42d avatar Jul 20 '24 04:07 nick42d