CodeEditSourceEditor icon indicating copy to clipboard operation
CodeEditSourceEditor copied to clipboard

Folding Ribbon: Collapsed Indicators, Masking, Bracket Emphasis

Open thecoolwinter opened this issue 7 months ago • 0 comments

Description

  • Adjacent folds (folds that start/end on the same line) are drawn with a horizontal line instead of overlapping their pills.
  • Collapsed folds are drawn with the correct indicator
    • This indicator does not respond to hovering
    • When a lower-depth fold is hovered, the collapsed indicator masks itself to that hovered fold's bounds. This creates a nice effect to avoid overlapping the hovered fold boundary and the collapsed box. The hovered fold's chevrons are also hidden if they overlap the collapsed fold.
    • When a collapsed indicator is clicked it toggles the fold.
  • Adds an emphasis to hovered folds that have brackets surrounding their fold range.
    • @austincondiff may start working on a better emphasis style, so this is a placeholder for now just to indicate the functionality. It should be very easy to replace with the new style once it's done.

Related Issues

  • almost rounds out #43
  • Requires https://github.com/CodeEditApp/CodeEditTextView/pull/98
  • Requires #331

Checklist

  • [x] I read and understood the contributing guide as well as the code of conduct
  • [x] The issues this PR addresses are related to each other
  • [x] My changes generate no new warnings
  • [x] My code builds and runs on my machine
  • [x] My changes are all related to the related issue above
  • [x] I documented my code

Screenshots

https://github.com/user-attachments/assets/aff0485f-79ad-4bce-b8ee-09b6f610b378

thecoolwinter avatar Jun 06 '25 15:06 thecoolwinter