helix
helix copied to clipboard
feat(core): add plaintext matching fallback to tree-sitter matching
This patch introduces bracket matching independent of tree-sitter grammar. For the initial iteration of this feature, only match on the current line. This matching is introduced as a fallback in cases where the tree-sitter matcher does not match any bracket.
This fallback should provide a better experience to users that are editing documents without tree-sitter grammar, but also provides a better experience in cases like the ones reported in #3614
If we find that this feature works well, we could consider extending it for multi-line matching, but I wanted to keep it small for the first iteration and gather thoughts beforehand.
Relates to #3584 as well
Let me know your thoughts about this.
hi, any progress here possible?
@archseer thoughts on this PR?
Folks! I've been out of the loop for some time. I got back into this, I've rebased latest master to make sure everything kept working, the pending feedback that was requested has been applied in: https://github.com/helix-editor/helix/pull/4288/commits/adf0fbd3c8a663ceeaba3050f955c4bdec242381 https://github.com/helix-editor/helix/pull/4288/commits/715b928dae00d8048f32ce8c6527a9d45f7d4f70 and https://github.com/helix-editor/helix/pull/4288/commits/f5cb382af064d6db6df2e5da89913ae24e363ee5