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

Goto to matching bracket does not work for square brackets #6930

Closed
rkshthrmsh opened this issue May 1, 2023 · 1 comment
Closed

Goto to matching bracket does not work for square brackets #6930

rkshthrmsh opened this issue May 1, 2023 · 1 comment
Labels
A-helix-term Area: Helix term improvements C-bug Category: This is a bug

Comments

@rkshthrmsh
Copy link

rkshthrmsh commented May 1, 2023

Summary

Just as the title says, goto matching bracket does not work for square braces. For example, with a piece of code like this, mim inside, and mam inside (or on) the square brackets work just fine. However mm on either of the braces does not jump to the other one.

array[:, 1, 5]

Reproduction Steps

I tried this:

  1. mm on a pair of square brackets, while the cursor was on one of the square brackets.

I expected this to happen:
Jump to the other bracket in the pair

Instead, this happened:
Nothing happened

Helix log

Nothing worthy of note in the log.

Platform

macOS

Terminal Emulator

warp

Helix Version

helix 23.03 (3cf0372)

@rkshthrmsh rkshthrmsh added the C-bug Category: This is a bug label May 1, 2023
@kirawi kirawi added the A-helix-term Area: Helix term improvements label May 3, 2023
@pascalkuthe
Copy link
Member

Matching brackets depend on the language specific tree sitter grammar so without specifying a language this is not actionable.

This is likely fixed by #7242 so I am closing this. If you still experience this bug on latest master and can specify a language/reproduction file you can reopen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-helix-term Area: Helix term improvements C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

3 participants