First time here? Check out the FAQ!
1

"Command+enter" to send message in ai coder

  • retag add tags

In many llm chat ui, command+enter is the keybinding to send message. In ai coder, I can use "enter" or "shift enter", Can I change it to "command + enter" ?

bai's avatar
103
bai
asked 2025-06-19 18:46:38 -0500
edit flag offensive 0 remove flag close merge delete

Comments

What OS are you on and what keyboard type? It seems like that already is working for me but it may be because I'm trying on macOS with U.S. keyboard layout. Also, what Wing version do you have, in case that matters?

Wingware Support's avatar Wingware Support (2025-06-20 07:19:28 -0500) edit

macOS with U.S. keyboard layout and wingware 11.0.1.

I also bind command+enter to eval-sel-in-shell, this is the key, command + enter will eval code in the editor, even the keyboard focus in the ai coder.

Can I force to use "command+enter" to override the in the ai coder panel?

bai's avatar bai (2025-06-21 20:14:16 -0500) edit
add a comment see more comments

1 Answer

0

If you bound Command+Enter to the command eval-sel-in-shell then it'll always do that command because it is active all the time regardless of whether the Python Shell tool or editor has keyboard focus. I don't think there's a good way for the IDE to know whether you want it to do evaluate the current selection in the Python Shell or submit AI Coder's message to the AI provider.

What might work is to instead bind Command+Enter to the command shell-ctrl-return, which is used internally to make Ctrl+Enter work. However, that's not going to do the same thing as eval-sel-in-shell in context of the Python Shell tool.

Wingware Support's avatar
4.3k
Wingware Support
answered 2025-06-24 07:06:10 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer