Replies: 3 comments 65 replies
-
Would it be possible to integrate treesitter to delete/change more complex surrounds such as function calls? I'm thinking it might be possible to leverage the For symmetrical surrounds, a simple table should suffice I reckon. Regarding the "bonus"-question: I think adding a |
Beta Was this translation helpful? Give feedback.
-
Since I can't be bothered to open up a whole new issue, I'm using this thread for declaring (un)intentional breaking changes, as well as a place for you guys that are testing the "beta" to report any bugs. I'll be continuously updating this top-level comment as new issues get found, and old issues get resolved. If there are any intentional changes on this list that you object to, I'm open to discussion in the replies. Intentional Changes
Unintentional Changes
Fixed by 3d8c197
|
Beta Was this translation helpful? Give feedback.
-
I am on the latest commit on the |
Beta Was this translation helpful? Give feedback.
-
One main pain point of this plugin so far is the complete lack of any way to delete custom surrounds, e.g.
ds*
for de-italicizing text in a Markdown file (see #61). To introduce this feature, it would make sense to let the user specify left/right patterns fornvim-surround
to detect, and use those as selections to delete. For example,This would greatly enhance the usability of the plugin, but I would like feedback on what the user interface should look like. If anybody has any ideas that don't involve using Lua patterns, I'm also open to hearing about them as well.
Bonus: It seems reasonably common for the user to want to change the surrounding pair without deleting the whole thing:
Perhaps an additional key
change
could be introduced into this table? Somehow this key would let the plugin know which selection to change, and if not present it would default to using the "entire thing" as defined bydelete
?Beta Was this translation helpful? Give feedback.
All reactions