Vim icon indicating copy to clipboard operation
Vim copied to clipboard

Can't jump to matching html tag in .jsx when in visual line mode

Open avishaan opened this issue 5 years ago • 7 comments

Describe the bug In Visual Line Mode one can't jump to tag

To Reproduce Steps to reproduce the behavior:

  1. Go to start of
    tag in jsx file
  2. Go into Visual Line mode (Shift+V)
  3. Type % (or alternatively open command menu for 'emmet matching pair' or any of the available pair options)
  4. Cursor will not jump to ending
tag

Expected behavior In Visual Line Mode I expect it to jump to ending tag

Screenshots

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 1.14.5
  • VSCode version: 1.45.1
  • OS: Darwin x64 19.4.0

Additional context This issue only occurs in Visual Line mode, it seems to work fine in other modes. My goal is to Visual Select and then hop to the close tag all fully selected with the tag included

avishaan avatar May 30 '20 01:05 avishaan

Also as a side note, matching pairs don't show up when in Visual Line mode

avishaan avatar May 30 '20 01:05 avishaan

Might be related to this: https://github.com/microsoft/vscode/issues/99896

littke avatar Jul 20 '20 18:07 littke

I'm back here again, not a huge deal as I've started to dabble with PyCharm but thought I would confirm this is still not working

avishaan avatar Sep 13 '21 13:09 avishaan

Having the same issue. Worth noting that it jumps to the matching pair correctly in normal mode. I would expect visual line mode (or visual mode which has the same issue) to work the same.

andrewplummer avatar Jan 17 '22 11:01 andrewplummer

Also seeing the same thing. Adding a when clause "vim.mode == 'VisualLine'" to the shortcut doesn't seem to do anything.

ericdvb avatar Nov 27 '23 21:11 ericdvb

same issues

kucingapi avatar Apr 03 '24 22:04 kucingapi

Just wanted to ask but is there a way to make % jump between tags and between normal parentheses?

I can't figure out a way to do this without mapping separate bindings. Is there a when clause context that can be used for this?

musjj avatar May 03 '24 07:05 musjj