Closed afonsocarlos closed 7 months ago
Hey there, I wasn't able to replicate this on my system. By default the a"
text object only "searches" on the current line for a surrounding pair; do you have targets.vim
or mini.ai
(or similar) installed?
Hi, thank you for your reply. Hmmm yes, I have targets.vim
installed and it seems that's what's causing the problem! Removing it solved the issue :sweat_smile: thanks a lot for the help. I'll close the issue.
Checklist
:h nvim-surround
to see if there might be any relevant information there?Is your feature request related to a problem? Please describe. Changing surrounding pairs inside a visual range performs changes outside of the range. I think changes should stick within the range. Example issue:
Selecting within braces in array
names
:vi[
Then changing items inside array::'<,'>norm cs"'
Actually changes all quotes fromnames
and one fromroles
(because the first item innames
doesn't match thecs"'
)Describe the solution you'd like I think the change actions should be performed only inside the
'<,'>
range if it's provided.