Skip to content

✨ Custom ruler view to support advanced requirements #127

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

Open
ben-p-commits opened this issue Jan 25, 2023 · 2 comments
Open

✨ Custom ruler view to support advanced requirements #127

ben-p-commits opened this issue Jan 25, 2023 · 2 comments

Comments

@ben-p-commits
Copy link
Contributor

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

  • support for the same preferences available in Xcode's preferences:
    image
  • toggle line numbers on/off without hiding other RulerView features
  • A code folding ribbon
    image
  • Code comparison controls
    image
@austincondiff
Copy link
Collaborator

austincondiff commented Apr 19, 2025

@thecoolwinter Is this issue still necessary now that we are using our own text view? Could this be considered our gutter view?

@thecoolwinter
Copy link
Collaborator

Yeah this is our gutter view. We ended up going a slightly different direction and used a floating subview over an NSRulerView but it's the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Todo
Development

No branches or pull requests

3 participants