Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
avishaan opened this issue May 30, 2020 · 7 comments
Open

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

avishaan opened this issue May 30, 2020 · 7 comments

Comments

@avishaan
Copy link

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 avishaan changed the title Can't jump to matching html in jsx tag when in visual line mode Can't jump to matching html tag in .jsx when in visual line mode May 30, 2020
@avishaan
Copy link
Author

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

@littke
Copy link

littke commented Jul 20, 2020

Might be related to this: microsoft/vscode#99896

@avishaan
Copy link
Author

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

@andrewplummer
Copy link

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.

@ericdvb
Copy link

ericdvb commented Nov 27, 2023

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

@kucingapi
Copy link

same issues

@musjj
Copy link

musjj commented May 3, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants