#66200

Helix: mm not working inside JSX object literal

Openkraftwer1opened 3d ago

Reproduction steps

function MyComponent() {
  return <div style={{ border: "1px solid red"}} />
}
  1. Open the snippet above in a .tsx buffer with Helix mode enabled
  2. Place the cursor on solid (inside the string) and press m m
  3. Place the cursor on border (inside the inner { } but outside the string) and press m m

Current vs. Expected behavior

Current behavior:

In both cases nothing happens. The cursor does not move to the " when the string is the closest pair, nor to the matching { / } when the object literal is the closest pair.

Expected behavior:

m m should jump to the matching delimiter of the closest surrounding pair, as it would when the object is not embedded as a literal.

Zed version and system specs

Zed: v1.25.3+stable.382.8dd255c3eafb5231056fe4e6f601cedd011f1c93 (Zed) OS: macOS 27.0.1 Memory: 32 GiB Architecture: aarch64

Attach Zed log file

Zed.log
undefined

Relevant Zed settings

settings.json
undefined

Relevant Keymap

keymap.json
undefined

(for AI issues) Model provider details

No response

If you are using WSL on Windows, what flavor of Linux are you using?

None

Activity

0

No activity yet.