-
Notifications
You must be signed in to change notification settings - Fork 25
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
Ignore vim-surround #46
Comments
Hi @yanzhang0219, happy you like it :) Maybe a require('neoclip').setup{
...
filter = function(data)
print(vim.inspect(data))
return true
end,
...
} Then perform the action and see what Btw, I'm using vim-sandwich and if I do |
Okay. Thanks. I also noticed that not only the surroundings are stored, but the surrounded text is stored as well. That means, once I execute Here is what I didn't dig into the source code of |
@yanzhang0219 Another option would be to execute the Alternatively you could wrap the call with a Unfortunately, the data passed to the |
Btw, as for you question on the Anyway, I've been pretty happy with |
Thank you so much for the information.
Exactly. Sorry I overlooked that. Just now I went through the source code of
I will definitely give it a shot. Thank you. |
Hello @AckslD, after using this plugin for a while, I have some comments and I will write it down here instead of opening a new issue because they are related. Thank you. I found many plugins internally use Using |
@yanzhang0219 Hmm I see, I will try to think of there is a good solution here. Let me know if you have some ideas. |
Btw, have you found any plugins using |
Actually, I just realised that another plugin of mine for example uses |
No idea so far. 😮💨 If only they use the blackhole register instead of the default one. Is it possible to distinguish whether the operators are directly from the keystroke (by an event)? Actually we only care about the contents yanked directly by our own keystroke. Plugins internally use these operators by |
@yanzhang0219, I'm not sure if that's possible unfortunately :/ |
Was looking for such a plugin for managing clipboard and finally I found this. Thank you.
I am using
vim-surround
as well and I noticed that the deleted surroundings such as" "
,' '
, etc are caught by this plugin. I believe this is meaningless. Take"Hello World"
as an example, I place the cursor anywhere inside the double quotes and then I presscs"'
to change the surroundings from double quotes to single quotes. Then the double quotes" "
are recorded by this plugin. Is it possible to ignore such a behavior of other plugins?Thank you very much.
The text was updated successfully, but these errors were encountered: