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

Jumper to a visible language control-structure #77

Open
bew opened this issue Oct 25, 2021 · 1 comment
Open

Jumper to a visible language control-structure #77

bew opened this issue Oct 25, 2021 · 1 comment

Comments

@bew
Copy link
Owner

bew commented Oct 25, 2021

A way to jump to a currently visible control structure like if, while, return, def, try, .....

Or to hint only lines with a control structure (less hints)
And where there are multiple consecutive lines,
-> only add hint to the first line of a 2 lines group
-> only add hints to the first & last line of a 3+ lines group

👉 This would allow to stop moving up/down by relative lines over lots of lines (still ok for short vertical movements), because it's annoying to distinguish (read) and type a 2 digit number.

Maybe use Hop with its upcoming general hint mode?
Cf: hadronized/hop.nvim#163


The alternative could be:

  • to use a jumper to lines (but for a 60-lines window that will be a lots of hints, and hard to target)
  • to use a jumper to every 5/10 lines, but less precise
@bew
Copy link
Owner Author

bew commented Apr 5, 2022

A plugin that does this, using treesitter: https://github.com/mfussenegger/nvim-treehopper

It would be nice to not gray out everything, and keep the buffer colors of the target keywords (but gray out everything else)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

1 participant