Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visually indicate which text was yanked #117

Closed
joelostblom opened this issue Oct 1, 2023 · 2 comments
Closed

Visually indicate which text was yanked #117

joelostblom opened this issue Oct 1, 2023 · 2 comments
Labels
enhancement New feature or request upstream Upstream issue

Comments

@joelostblom
Copy link
Contributor

Is it possible to visually indicate yanked regions with a highlight? I would like the same functionality as Neovim provides via this setting, or vim-highlightedyank provides for base Vim. I find this useful for confirming the yanked region (especially when grabbing a paragraph or targeting a character where it is easy to overlook that there is another of the same character earlier or grab an extra whitespace)

I tried hacking it with a rebind like map Y v$y and hoped the visual selection would flicker before it was yanked, but the yank happens instantaneously so the visual selection is not shown. It seems that codemirror's vim does no include the gs command or :sleep which otherwise could have been incorporated in a shortcut, so I think this might have to happen in the core extension.

Here is a short demo of what this could look like:

@joelostblom joelostblom added the enhancement New feature or request label Oct 1, 2023
@ianhi
Copy link
Collaborator

ianhi commented Oct 2, 2023

This would need to be fixed upstream, there seems to be a feature request there: replit/codemirror-vim#121

@joelostblom
Copy link
Contributor Author

Thanks for linking that issue. I followed up with a comment there and I'm closing this one.

@firai firai added the upstream Upstream issue label Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request upstream Upstream issue
Projects
None yet
Development

No branches or pull requests

3 participants