Skip to content

docs: added usage tip for registerMarker()#5317

Merged
Tyriar merged 4 commits intoxtermjs:masterfrom
tabarra:docs/registerMarker-tip
Apr 22, 2025
Merged

docs: added usage tip for registerMarker()#5317
Tyriar merged 4 commits intoxtermjs:masterfrom
tabarra:docs/registerMarker-tip

Conversation

@tabarra
Copy link
Copy Markdown
Contributor

@tabarra tabarra commented Mar 2, 2025

Simple PR to add a usage tip for term.registerMarker().
Apologies if this sounds obvious, but definitely took me half an hour to figure out how to best deal with this issue.

Important

The issue with using the batched line index id only happens when there are lines reflowing above the marker position, and I don't know if the issue would be better solving by using the option from issue #5213.
Please disregard this PR if there are better options that I'm unaware.

tabarra added a commit to citizenfx/txAdmin that referenced this pull request Mar 2, 2025
This happened when there was any line reflowing above it.
Context: xtermjs/xterm.js#5317
@Tyriar Tyriar force-pushed the docs/registerMarker-tip branch from b395a5c to 78fbae3 Compare April 22, 2025 09:54
Copy link
Copy Markdown
Member

@Tyriar Tyriar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. registerMarker isn't used too often with write calls so it clutters the docs having it there imo. I instead made the note about the callback clearer in the write* docs.

@Tyriar Tyriar enabled auto-merge April 22, 2025 09:55
@Tyriar Tyriar added this to the 6.0.0 milestone Apr 22, 2025
@Tyriar Tyriar self-assigned this Apr 22, 2025
@Tyriar Tyriar merged commit 2af170d into xtermjs:master Apr 22, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants