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

textobj-quote doesn't work with certain easyclip settings #15

Open
ltratt opened this issue May 1, 2017 · 2 comments
Open

textobj-quote doesn't work with certain easyclip settings #15

ltratt opened this issue May 1, 2017 · 2 comments
Labels

Comments

@ltratt
Copy link
Contributor

ltratt commented May 1, 2017

Not that this is exactly textobj-quote's fault, but if easyclip is configured as follows (which is what the easyclip documentation reccomends):

set clipboard=unnamed

then ReplaceWithCurly and friends don't make any change to the text because pasting no longer uses the " register. It seems that using set clipboard=unnamedplus fixes this problem, although I haven't fully worked out if it has other knock-on effects.

I guess textobj-quote could check for easyclip's existence and alter the paste register it uses; or maybe even documenting the issue might be enough?

@reedes
Copy link
Collaborator

reedes commented Sep 10, 2017

Sorry for the delay.

I'll try to reproduce this in the next week or two. Ideally this plugin can detect when the clipboard setting has changed, and restore it afterwards. Thanks.

@alerque
Copy link
Member

alerque commented Jun 1, 2020

Detecting the clipboard setting, changing it to something else, then reverting is a terrible idea these days. Maybe it wasn't in 2017, but Vim and Neovim handle this differently, and many platforms simply don't support the same clipboard options. I think we need a different mechanism entirely. I'm guessing there is a way to hook into the register functions directly such that we can use a private one that is unaffected by user settings, other plugins, or platform support.

@alerque alerque added the bug label Jun 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants