Skip to content
This repository has been archived by the owner on Oct 6, 2024. It is now read-only.

Display start and end cursor positions #20

Open
danth opened this issue May 31, 2020 · 2 comments
Open

Display start and end cursor positions #20

danth opened this issue May 31, 2020 · 2 comments
Assignees
Labels
feature A new feature or a feature request

Comments

@danth
Copy link
Owner

danth commented May 31, 2020

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 danth added the feature A new feature or a feature request label May 31, 2020
@danth
Copy link
Owner Author

danth commented May 31, 2020

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

@danth danth self-assigned this May 31, 2020
@danth
Copy link
Owner Author

danth commented Jun 19, 2020

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature A new feature or a feature request
Projects
None yet
Development

No branches or pull requests

1 participant