Ollama-SwiftUI icon indicating copy to clipboard operation
Ollama-SwiftUI copied to clipboard

Submit Prompt with Enter instead of clicking the send button

Open brasfb opened this issue 10 months ago • 2 comments

Is your feature request related to a problem? Please describe.

I'm used to typing a prompt and hitting "Enter" or "Command + Enter" to submit, but thus far I don't get any response when this happens. Instead, I have to use the old mouse to do the trick. Am I doing something wrong or is this just not built into the

Describe the solution you'd like I want to be able to type a prompt, hit enter, and get a response rather than using the mouse or trackpad.

Describe alternatives you've considered I'm a little new to Swift programming, TBH I have no clue where to start.

Additional context

https://github.com/kghandour/Ollama-SwiftUI/assets/120994691/5825ca76-394c-460b-ba4a-e475a2dd7b9d

brasfb avatar Mar 29 '24 15:03 brasfb

You are not doing anything wrong. That interaction existed in old versions, however, they lacked multi line support. With the addition of multiline, this feature went missing. I can try to add command + enter to quickly send the prompt instead of using the mouse.

kghandour avatar Mar 29 '24 16:03 kghandour

command + enter would be a great solution!

devasworski avatar Apr 25 '24 11:04 devasworski

be nice to have indeed.

zajerao avatar Jul 22 '24 12:07 zajerao

Thank you for the suggestions!

New release ( 2.0.1 ) added support for command + enter to send a message, and command + r to refresh connection to server.

kghandour avatar Aug 04 '24 09:08 kghandour