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

FR Improved UI/UX for submitting chat input (CTRL/CMD + ENTER) #163

Open
neoromantic opened this issue Apr 10, 2023 · 3 comments
Open

FR Improved UI/UX for submitting chat input (CTRL/CMD + ENTER) #163

neoromantic opened this issue Apr 10, 2023 · 3 comments

Comments

@neoromantic
Copy link

neoromantic commented Apr 10, 2023

cmd+enter shortcut in chat to send message

Self-explanatory. Just a small feature that goes a long way in UX.

@brianpetro
Copy link
Owner

Hey @neoromantic

Check out this thread #156 (comment)

Thanks,
Brian 🌴

@brianpetro
Copy link
Owner

Recorded response https://youtu.be/VRslvjrcfnQ

@brianpetro brianpetro changed the title FR cmd+enter shortcut in chat to send message FR Improved UI/UX for submitting chat input Jul 5, 2024
@brianpetro brianpetro changed the title FR Improved UI/UX for submitting chat input FR Improved UI/UX for submitting chat input (CTRL/CMD + ENTER) Jul 5, 2024
@brianpetro
Copy link
Owner

Some notes on the topic

  • CMD+SHIFT+ENTER or CTRL+SHIFT+ENTER should both work to submit the chat prompt.
  • Additional suggestions include making the "Enter" press alone submit the chat input.
  • It should be configurable.
  • It gets a little tricky managing CTRL vs CMD, so that's why the code currently attempts to use Obsidian's isModEvent to detect whether a "modifier" key is present when Enter is pressed in the chat input. But that doesn't seem to work as implemented for handling CTRL/CMD + ENTER

🌴

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants