Oni Version: 0.3.6
Neovim Version (Linux only): n/a
Operating System: MacOS 10.12
Issue:
When editing a file that is supported by a configured language server, I would like to be able to jump to the next/previous highlighted error. There doesn't appear to be any way to do this currently, unless I'm missing something.
Looking into the code, I see 3 ways of implementing this:
- add all diagnostic errors to the Quickfix List, so they can be navigated with
[q
and ]q
- add all diagnostic errors to the Location List, so they can be navigated with
[l
and ]l
- add a new entry to
browser/src/Services/GlobalCommand
, so that custom bindings can be added by the user
The Quickfix and Location List approaches have the downside of potentially overwriting anything already in those lists. I know that workspace searches and find-all-references searches populate the Quickfix list, so that's probably not ideal for many users.
I'm also curious if there's a default binding we should set for this. JetBrains IDEs like WebStorm and IntelliJ use F2/Shift-F2
for these bindings, while VSCode and VisualStudio use F8/Shift-F8
.
Expected behavior:
Press a key combo (e.g. ), and the cursor would jump to the next highlighted error.
Actual behavior:
No such binding is available or documented
Steps to reproduce:
- Open a Typescript file
- type in some gibberish
- verify the nonsensical line is highlighted
- jump to a different spot in the file
- how to quickly jump back to error?