Go to the next hit after Find references (Multi buffer results) #13132
-
Hi! I'm not sure if is really hidden, but I have not been able to find a keybinding/command that allows you to go to the next item in the result of the references presented in the multi-buffer. I wonder if it is something plan or in the works already, or if it's already there just with a non intuitive name for me. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Beta Was this translation helpful? Give feedback.
-
I miss that too, some keyboard-only way to quickly navigate through the Find References results. On Neovim I use Telescope, it's pretty good, I don't think Zed should necessarily mimic Telescope but it would be great we can have e.g. a keybinding for quick reference navigation in the references buffer. |
Beta Was this translation helpful? Give feedback.
-
My sloppy workaround when in multibuffer like findAllReferences I just redo a search with ctrl-f use your configured SelectNextMatch or SelectPrevMatch binding (linux/vscode default is enter, shift-enter). For a multibuffer like project search (ctrl-shift-f), you would need to redo the ctrl-shift-f then use a custom keybding with : {
"context": "ProjectSearchBar",
"bindings": {
"f3": "search::SelectNextMatch", // I used f3 because enter just redoes the project search
"ctrl-f3": "search::SelectPrevMatch"
} |
Beta Was this translation helpful? Give feedback.
I'm afraid there's no such thing for the "find all references" case, but the project search has this thing for the search hits:
I would imagine it's not very hard to get similar controls into the "find all references" multi buffer, but have not looked at it properly to claim this firmly.
In general, it's interesting to generalize this concept, as there's also a project diagnostics multi buffer with the same issue and, hopefully, soon there will be an "uncommitted project git changes" multi buffer with the same issue.
It's somewhat orthogonal and standalone, but next Preview will ship with an outline panel, that might ease navigation around multi buffers a bit: