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

Treesitter commands don't work within injection #7257

Closed
A-Walrus opened this issue Jun 6, 2023 · 1 comment
Closed

Treesitter commands don't work within injection #7257

A-Walrus opened this issue Jun 6, 2023 · 1 comment
Labels
C-bug Category: This is a bug

Comments

@A-Walrus
Copy link
Contributor

A-Walrus commented Jun 6, 2023

Summary

Treesitter commands such as expand, don't work within injected language.
For example say I have a markdown file with some rust code in it and I try to select using treesitter commands, I expect them to act according to the rust syntax tree when I'm within the codeblock.

Reproduction Steps

asciinema

I tried this:

  1. Open a markdown file and add a codeblock, for example some rust code.
  2. Try to navigate and select within the rust code using treesitter commands.

I expected this to happen:
selection is based on injected rust syntax

Instead, this happened:
selection is based on external markdown syntax

Helix log

No response

Platform

Linux

Terminal Emulator

kgx (Gnome Console)

Helix Version

helix 23.05 (ff442ee)

@A-Walrus A-Walrus added the C-bug Category: This is a bug label Jun 6, 2023
@the-mikedavis
Copy link
Member

Duplicate of #2311

I have some local changes that improve on #5176 that I'm hoping to finish off and push soon.

@the-mikedavis the-mikedavis closed this as not planned Won't fix, can't repro, duplicate, stale Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

2 participants