CodeEditApp / CodeEditSourceEditor

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

✨ Custom ruler view to support advanced requirements #127

Open ben-p-commits opened 1 year ago

ben-p-commits commented 1 year ago

Description

The vertical ruler (NSRulerView) has a number of requirements that no longer can be efficiently met by STTextView's implementation.

The recommendation is for an NSRulerView subclass to instead be encapsulated within CodeEditTextView, to provide easier workflows for contributors to customize and enhance it. See the bottom of this description for a list of proposed enhancements after this port is complete.

The goal of this enhancement should be to provide basic RulerView functionality aligned with what exists today in the project. It is not to implement the enhancements listed below!

Future enhancements will likely include