Skip to content

[✨ FEATURE] Add newspaces to chat input #2579

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

Open
1 of 7 tasks
enarroied opened this issue Apr 18, 2025 · 1 comment
Open
1 of 7 tasks

[✨ FEATURE] Add newspaces to chat input #2579

enarroied opened this issue Apr 18, 2025 · 1 comment
Labels
πŸ–° GUI Related to GUI πŸ†˜ Help wanted Open to participation from the community ✨New feature 🟩 Priority: Low Low priority and doesn't need to be rushed

Comments

@enarroied
Copy link

enarroied commented Apr 18, 2025

πŸ” Feature Description

Hi!

When I create a chat element with;

tgb.chat("{messages}", users="{users}", sender_id="{users[0]}", on_action=chat)

It creates a chat interface. But the input field doesn't accept newlines, even if I add \n, the screen would print the \n. Even if I copy-paste a text with a newline into the chat input, it transforms them into spaces.

It would be nice to be able to add newlines (either from copy-pasted text or from a ctrl + enter command). This would make chatting a way better experience.

πŸ“œ Code of Conduct

  • I have checked the existing issues to avoid duplicates.
  • I am willing to work on this issue (optional)

βœ… Acceptance Criteria

  • A working demo or example code (if applicable) is provided.
  • Integration tests demonstrate the new functionality.
  • Any new code is covered by unit tests.
  • Code coverage remains at least 90%.
  • Related documentation updates and release notes are created.
@jrobinAV jrobinAV added πŸ–° GUI Related to GUI πŸ†˜ Help wanted Open to participation from the community 🟩 Priority: Low Low priority and doesn't need to be rushed ✨New feature labels Apr 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
πŸ–° GUI Related to GUI πŸ†˜ Help wanted Open to participation from the community ✨New feature 🟩 Priority: Low Low priority and doesn't need to be rushed
Projects
None yet
Development

No branches or pull requests

2 participants