Vim
Vim copied to clipboard
vim-surround: changing/deleting a shorthand React Fragment tag doesn't do anything
Describe the bug
Trying to modify a React Fragment shorthand tag using dst
or cst
results in nothing changing (after being prompted in the case of cst
).
To Reproduce Example code:
function SurroundTest() {
return (
<>
Fragment {/* `dst` and `cst` don't work here, but `yst` does */}
<div>
Div {/* `dst` and `cst` do work here */}
</div>
</>
)
}
Expected behavior
The Fragment tag should be deleted in the case of dst
and modified in the case of cst
.
Environment (please complete the following information):
- Extension (VsCodeVim) version:
1.12.4
- VSCode version:
1.42.1
- OS Version:
Windows_NT x64 10.0.19041
I'm also looking for this feature.
So, this feature hasn't received any interests yet? I was wondering if there's a way to make Vim (not the VSCode plugin) perform a similar task as well?
@Jarmos-san doesn't look that way: tpope/vim-surround#278
I wonder if there's a vim script we could insert somewhere to make this work…