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

] r for Goto next reference #6125

Open
lukepighetti opened this issue Feb 27, 2023 · 3 comments · May be fixed by #6465
Open

] r for Goto next reference #6125

lukepighetti opened this issue Feb 27, 2023 · 3 comments · May be fixed by #6465
Labels
A-helix-term Area: Helix term improvements C-enhancement Category: Improvements

Comments

@lukepighetti
Copy link

Right now you can show a picker containing references with gr

What would be nice though is to navigate to the next reference in a file with ]r

Right now the closest approximation is doing a search for the name and iterating through

@lukepighetti lukepighetti added the C-enhancement Category: Improvements label Feb 27, 2023
@kirawi
Copy link
Member

kirawi commented Feb 27, 2023

#2738 should be usable for this in the meantime. It's bound to S-h by default.

@askreet
Copy link
Contributor

askreet commented Mar 2, 2023

Hey @lukepighetti, I've been working on a version of quickfix that can be populated from any file picker. The workflow would be:

  • Use gr to find references to a symbol.
  • Use C-q to copy the search results into a quickfix list.
  • Use ]q and [q to navigate between entries in the list.

This was a common workflow I'd used a lot in vim/intellij that I missed most switching to Helix. If you want to give it a try it's on this branch.

@lukepighetti
Copy link
Author

That sounds interesting for use in a global context, but I do wish we could do this at the local file much quicker

@kirawi kirawi added E-easy Call for participation: Experience needed to fix: Easy / not much A-helix-term Area: Helix term improvements E-good-first-issue Call for participation: Issues suitable for new contributors labels Mar 9, 2023
@the-mikedavis the-mikedavis removed E-easy Call for participation: Experience needed to fix: Easy / not much E-good-first-issue Call for participation: Issues suitable for new contributors labels Aug 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-helix-term Area: Helix term improvements C-enhancement Category: Improvements
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants