Vim icon indicating copy to clipboard operation
Vim copied to clipboard

vim-surround: changing/deleting a shorthand React Fragment tag doesn't do anything

Open brw opened this issue 5 years ago • 3 comments

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

brw avatar Feb 16 '20 20:02 brw

I'm also looking for this feature.

keidarcy avatar Feb 10 '21 06:02 keidarcy

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 avatar Mar 30 '22 12:03 Jarmos-san

@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…

silvenon avatar Sep 08 '22 09:09 silvenon