Jumper to a visible language control-structure
bew opened this issue · comments
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: phaazon/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
A plugin that does this, using treesitter: https://github.com/mfussenegger/nvim-treehopper