dustinblackman / oatmeal

Terminal UI to chat with large language models (LLM) using different model backends, and integrations with your favourite editors!
https://dustinblackman.com/posts/oatmeal/
MIT License
477 stars 23 forks source link

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

Closed kyu08 closed 5 months ago

kyu08 commented 5 months ago

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 commented 5 months ago

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 https://github.com/dustinblackman/oatmeal/issues/16 and https://github.com/rhysd/tui-textarea/issues/5.

kyu08 commented 5 months ago

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.