pocco81 / high-str.nvim

🦎 A NeoVim plugin for highlighting visual selections like in a normal document editor!
GNU General Public License v3.0
306 stars 2 forks source link

[ Feature Req ] Jump to Highlights #7

Open ldelossa opened 2 years ago

ldelossa commented 2 years ago

Hey there,

I've been using your plugin to finally fill in that void of being able to highlight lines persistently across buffers.

The export and import stuff is great too, helps me keep my place when trying to learn large code bases.

The only thing I feel is lacking here is a "jump to previous" and "jump to next" highlight feature.

The use case being, you're studying a large code base, and making highlights along the way, you export and some time later, you import. It would be nice if you did not have to remember where your highlights were and could cycle thru them, jogging your memory.

pidgeon777 commented 1 year ago

I second this request.

Example

HSJumpNext <color_id> : Jump to the next highlight associated to 'color_id'.
HSJumpPrev <color_id> : Jump to the previous highlight associated to 'color_id'.

If no color_id is specified, then the jump occurs to the next/previous highlight, no matter the colour.

smsossah commented 7 months ago

Agreed! This would be a nice addition to the plugin!