CodeEditApp / CodeEditSourceEditor

A code editor view written in Swift powered by tree-sitter.
https://codeeditapp.github.io/CodeEditSourceEditor/documentation/codeeditsourceeditor
MIT License
517 stars 84 forks source link

✨ Matching tag and bracket pairs #79

Closed austincondiff closed 1 year ago

austincondiff commented 2 years ago

When user types a {, [, (, or <, we should append a matching }, ], ), or > right after the cursor position on the same line.

Related

mattmassicotte commented 2 years ago

This one of the core features of this library: https://github.com/ChimeHQ/TextFormation

Might be handy. It is text-system independent, so should be possible to incorporate into any system. But, does have some more straightforward hooks for NSTextView.

lukepistrol commented 1 year ago

Could be implemented using https://github.com/ChimeHQ/TextFormation