Skip to content

Disable canSkip as an option #1501

@woppadipsmakkabop

Description

@woppadipsmakkabop

Is your feature request related to a problem? Please describe.
Yes. If you first write this to the renderer:

hello there1
hello there2
hello there3

followed by this:

\x1b[48;2;0;0;255;mhello there1
hello there2
hello there3\x1b[49m

Then hello there2 does not get any background in either iTerm2 nor Ghostty.

This is because the line is skipped for rendering here:

if _, ignore := r.ignoreLines[i]; ignore || canSkip {

Describe the solution you'd like
I suggest an option flag to simply disable the canSkip.

Describe alternatives you've considered
I have considered adding the background color to each line, but that would be really combersome for my usecase, since it is a complex scenario where the background colors are not known when i pass the final string in my main View() function.

If you agree to the suggestion, i can make a PR with the feature

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions