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

add "goto next workspace diagnostic" commands #10913

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

plul
Copy link
Contributor

@plul plul commented Jun 10, 2024

Helix currently has commands to go to the next LSP diagnostic in the present document, and it has a picker for workspace diagnostics and the ability to show in the status bar the number of workspace errors and warnings, but it lacks a seemingly simple "goto next workspace diagnostic" command.

This PR adds

  • goto_next_diag_workspace (any diagnostic level)
  • goto_next_error_workspace (errors)
  • goto_next_warning_workspace (errors and warnings)

Addition of goto_prev_..., goto_first_... and goto_last_... commands to match the existing ones that only search the current document I think are less important (the ones I personally want are almost always the goto_next_... variants), but should be easy to add as a follow up PR if the structure of this one is accepted.

Discussion of default keybindings for these commands should be reserved for a separate PR.

I'm a first time contributor to Helix, so bear that in mind when reviewing. Some helper functions I wasn't sure in which module to best place them. But any feedback or push back is welcomed.

Some related issues/pull-requests:

Adds
- goto_next_diag_workspace
- goto_next_error_workspace
- goto_next_warning_workspace
@kirawi kirawi added the A-command Area: Commands label Jun 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-command Area: Commands
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants