hop.nvim icon indicating copy to clipboard operation
hop.nvim copied to clipboard

feat: hint_char1 should ignore char that under cursor

Open cathaysia opened this issue 3 years ago • 2 comments
trafficstars

Peek 2021-12-04 23-35

It's obvious I don't pick work that under cursor.

cathaysia avatar Dec 04 '21 15:12 cathaysia

yeah, I have the same opinion.

ybisland avatar Feb 20 '22 07:02 ybisland

This is not linked to this mode only, it’s also a problem with any kind of jump target. The right fix here is to filter the list of jump targets after they are generated (right before creating the actual hint labels), and removing the one (if present) that has the same location as the cursor. It’s an easy fix. I will implement that later in the day.

hadronized avatar Jun 21 '22 10:06 hadronized