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
Currently, when displaying ghost text within an Ace instance, that text is not soft-wrapped. For example observe how the first line (real text) is wrapped, while the second line is not:
Use Case
Soft-wrapping of ghost text when enabled would better match the user intention.
Proposed Solution
It looks like ghost text is added as a single token "ghost_text" here:
I wonder if the ghost text could be split into separate tokens, and added individually? A simple implementation would be to just split on whitespace, and I think that would be enough to make sure the rendered text obeys soft-wrapping rules.
Other Information
No response
Acknowledgements
I may be able to implement this feature request
This feature might incur a breaking change
ACE version used
version 1.32.7
The text was updated successfully, but these errors were encountered:
Describe the feature
Currently, when displaying ghost text within an Ace instance, that text is not soft-wrapped. For example observe how the first line (real text) is wrapped, while the second line is not:
Use Case
Soft-wrapping of ghost text when enabled would better match the user intention.
Proposed Solution
It looks like ghost text is added as a single token "ghost_text" here:
ace/src/virtual_renderer.js
Lines 1761 to 1762 in 099011b
I wonder if the ghost text could be split into separate tokens, and added individually? A simple implementation would be to just split on whitespace, and I think that would be enough to make sure the rendered text obeys soft-wrapping rules.
Other Information
No response
Acknowledgements
ACE version used
version 1.32.7
The text was updated successfully, but these errors were encountered: