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

feat: ctrl + o to insert a line break #62

Merged

Conversation

kyu08
Copy link
Contributor

@kyu08 kyu08 commented Mar 15, 2024

I’v been using oatmeal for the past several days and have found it to be quite beneficial. However, I believe that the chat functionality could be improved by allowing the insertion of line breaks.

My intention was to configure a key binding using Shift + Enter to insert a line break, but unfortunately, the application does not seem to recognize this.

Additionally, I've tried setting Ctrl + M and Ctrl + Enter as potential key bindings, but these too aren't detected as intended. Instead, the application appeared to recognize them as a simple Enter key press, which results in the message being sent.(Possibly, this could be due to the specifications of tui-textarea...?)

Thank you for considering this enhancement.

@dustinblackman
Copy link
Owner

Ah this is a nice addition, thanks!

Yes the issue is around tui-textarea which doesn't support nice multi line inputs yet. It's being tracked in #16 and rhysd/tui-textarea#5.

@dustinblackman dustinblackman merged commit 893d4ad into dustinblackman:main Mar 16, 2024
3 checks passed
@kyu08
Copy link
Contributor Author

kyu08 commented Mar 16, 2024

Thank you for reviewing and accepting my suggestion!
Also, thank you for releasing new version so quickly!
I'm so happy that I can use the new version so soon.

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