Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
While i was working on my pr on a scrollbar bubble component (see: charmbracelet/bubbles#536), i suddenly realized how amazing it would be if such a component could be render as a border.
imagine something like that:
Anyway, i quickly realized too that the way border are handled, there is no room for custom complex rendering...
So i came up with an elegant solution, in multiple steps. The first one would be to introduce a new interface
Borderer
, and a first non-breaking implementation:NormalRenderer
. Then, it's all about transferring border responsabitilities to borderer.Here is this first step :)
Before going further, and make this interface able to handle complex borders, i would like to know if you're interested in :)
One of the annoying point to fix first, would be - for instance - the incredible heavy interface weight:
Somehow related: