harpoon icon indicating copy to clipboard operation
harpoon copied to clipboard

feat(index-tracking): keep track of the `list._index` while navigating

Open kimabrandt-flx opened this issue 10 months ago • 1 comments

This change tries to keep track of the list._index, by using an autocmd for BufEnter - which updates the index when entering a harpooned file - and setting the index for different functions inside the list.

There's room for improvements, but maybe it can help!?

This also removes the autocmd Filetype harpoon - which didn't seem to highlight the row?! - and replaces it with passing the index for setting the cursor to a row.

Maybe there should be an user-option, to enable this?!

This also merges #573, since I felt it's somehow related.

kimabrandt-flx avatar Apr 11 '24 22:04 kimabrandt-flx

Works well for me. Would be nice, if it could get merged.

mike-jl avatar Jul 17 '24 12:07 mike-jl