You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any API to retrieve only the text that is visible on-screen along with the indices of it's beginning and end in a larger document?
The use case for this would be editing long documents within a virtual scroll pane. For example, languagetool can be used to check for spelling and grammar problems in a doc being edited. Real-time checking works fine for short documents, but analysis becomes too long as the document grows. An alternative would be to do analysis after a period of inactivity, like StackOverflow handles syntax highlighting, for example. But it would be better to be able to do the analysis as the text is entered.
Analyzing only the portion of the document shown on screen would be perfectly acceptable and performant if there were a way to get it programmatically.
The text was updated successfully, but these errors were encountered:
At this time, no. This is something that would need to be exposed in Flowless before it could be exposed in RichTextFX. The real solution would be to show which paragraphs are visible (whether partially or not) on top of which you could then implement that feature.
I'm currently adding support for this in #501. Part of me feels like I should expose the ParagraphBox as well because then one could do bounds-related things, but I think that would need further discussion from more people.
Is there any API to retrieve only the text that is visible on-screen along with the indices of it's beginning and end in a larger document?
The use case for this would be editing long documents within a virtual scroll pane. For example, languagetool can be used to check for spelling and grammar problems in a doc being edited. Real-time checking works fine for short documents, but analysis becomes too long as the document grows. An alternative would be to do analysis after a period of inactivity, like StackOverflow handles syntax highlighting, for example. But it would be better to be able to do the analysis as the text is entered.
Analyzing only the portion of the document shown on screen would be perfectly acceptable and performant if there were a way to get it programmatically.
The text was updated successfully, but these errors were encountered: