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

Vim '%' matching bracket motion doesnt work inside comments and certain template languages #25435

Open
tannersltwtr opened this issue Feb 23, 2025 · 0 comments
Labels

Comments

@tannersltwtr
Copy link

tannersltwtr commented Feb 23, 2025

Summary

Vim-mode's % bracket matching jump fails when inside commented code and fails on template languages like Shopify's Liquid {% ... %} or {{ ... }} brackets.

Steps to trigger the problem:

  1. Find a piece of valid code where bracket matching works.
  2. Comment the code out
  3. Try jumping on the same bracket and notice it no longer works
  4. For the template language issue, open a file ending in .liquid, notice bracket jumping works on HTML code/JS code but fails on template brackets

Actual Behavior:
Cursor doesnt move

Expected Behavior:
Cursor jumps to matching bracket

Zed Version and System Specs

Zed: v0.174.6 (Zed)
OS: macOS 15.3.1
Memory: 48 GiB
Architecture: aarch64

@tannersltwtr tannersltwtr changed the title Vim '%' matching bracket motion doesnt work inside comments and certain for template languages Vim '%' matching bracket motion doesnt work inside comments and certain template languages Feb 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants