pathfinder.vim icon indicating copy to clipboard operation
pathfinder.vim copied to clipboard

Display start and end cursor positions

Open danth opened this issue 4 years ago • 2 comments

Sometimes, if pathfinding takes a while, you can forget what motion you did so the suggestion isn't very useful. I originally thought to highlight the positions in the buffer - but that wouldn't work if the user entered insert mode and deleted something while it was running.

Therefore, I suggest displaying a snapshot of the characters around the start and target within the suggestion window. Maybe a 5x5 area around the cursor. This could be placed above the suggestion, or put the start to the left and the target to the right so the popup doesn't get too tall.

Use colors to make it look different from the suggestion text - perhaps even use the original syntax highlighting if that is possible.

This would be disabled by default since it takes up a lot of screen space.

danth avatar May 31 '20 11:05 danth

Of course I'm open to other suggestions if someone has a better idea of how to display it.

danth avatar May 31 '20 11:05 danth

Now that the popup is not fixed at the bottom of the screen, this could be done by placing it above the target position rather than the cursor.

danth avatar Jun 19 '20 12:06 danth