Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Full-stack Signals][DX] Add StringSignal type to store a shared text with collaborative capabilities #2944

Open
taefi opened this issue Dec 2, 2024 · 1 comment
Labels
enhancement New feature or request hilla Issues related to Hilla

Comments

@taefi
Copy link
Contributor

taefi commented Dec 2, 2024

Describe your motivation

We could have StringSignal that basically can store a collaborative text. This signal can have methods for text modifications, e.g. to insert at certain positions, to replace, or modify by regexp etc.

Describe the solution you'd like

No response

Describe alternatives you've considered

For starters, maybe, a more versatile ListSignal<Character> could support some of the needed API for a convenient support of such shared text data structure.

Additional context

No response

@taefi taefi added enhancement New feature or request hilla Issues related to Hilla labels Dec 2, 2024
@Legioth
Copy link
Member

Legioth commented Dec 2, 2024

What is needed is technically a ListSignal<Character> but there are some tricks specific for typical text editing patterns that allows implementing it in a more efficient way than by tracking each char as its own list entry. https://github.com/yjs/yjs is one popular open source implementation but we would need to have a compatible Java implementation as well.

@taefi taefi changed the title [Full-stack Signals][DX] Add StringSignal type that can be used to store a collaborative text [Full-stack Signals][DX] Add StringSignal type to store a shared text with collaborative capabilities Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hilla Issues related to Hilla
Projects
None yet
Development

No branches or pull requests

2 participants