add "goto next workspace diagnostic" commands#10913
Open
plul wants to merge 3 commits intohelix-editor:masterfrom
Open
add "goto next workspace diagnostic" commands#10913plul wants to merge 3 commits intohelix-editor:masterfrom
plul wants to merge 3 commits intohelix-editor:masterfrom
Conversation
5d90536 to
aab0239
Compare
Contributor
Author
|
Rebased and added |
713980c to
09a4b20
Compare
Contributor
Author
|
Rebased on 25.01.1 |
09a4b20 to
c316f98
Compare
Contributor
Author
|
Rebased on master (for the newly merged file picker). |
c316f98 to
e6ffc30
Compare
e6ffc30 to
d7b550c
Compare
Contributor
Author
|
For anyone wishing to test this out, you can use the following keybindings as an example: [keys.normal]
1 = "goto_next_diag_workspace"
2 = "goto_next_warning_workspace"
3 = "goto_next_error_workspace"
C-1 = "goto_first_diag_workspace"
C-2 = "goto_first_warning_workspace"
C-3 = "goto_first_error_workspace"This is what I've been daily-driving for the past 8 months or so. |
d7b550c to
f191f85
Compare
f191f85 to
f3b29c7
Compare
(cherry picked from commit fd8aacc)
Adds - goto_first_diag_workspace - goto_first_error_workspace - goto_first_warning_workspace - goto_next_diag_workspace - goto_next_error_workspace - goto_next_warning_workspace
f3b29c7 to
192d9a8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_...andgoto_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 thegoto_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:
goto_next_diag_error/goto_prev_diag_error#3405