换行/发送 的不同方式 #1763
superzmy
started this conversation in
Show and tell
换行/发送 的不同方式
#1763
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
我平时不习惯 Enter 直接发送,而是更习惯用 Ctrl+Enter 发送、Enter 换行。
所以我把 deepseek-tui 改成了:Ctrl+Enter 发送,Shift+Enter / Ctrl+J / Enter 换行。
不过我发现,在 Git Bash / mintty 环境下,这些带修饰键的组合似乎无法被正确识别。
在我修改后的版本里:
Git Bash:Ctrl+Enter 不会发送,而是换行;Shift+Enter / Ctrl+J 会发送。
Windows Terminal(稳定版):行为符合预期,Ctrl+Enter 发送,Shift+Enter / Ctrl+J / Enter 换行。
Windows Terminal Preview: 特殊按键都变成了可见的转义序列无法消费。
根据 deepseek 的分析:
如果我坚持把 Ctrl+Enter 作为发送键,是否就意味着不同终端环境会出现不同的操作方式?
大家怎么看这个交互方案?
English version
I’m not used to Enter sending messages directly.
My preferred behavior is Ctrl+Enter to send and Enter to insert a newline.
So I modified deepseek-tui to use Ctrl+Enter to send, while Shift+Enter / Ctrl+J / Enter insert newlines.
However, I found that in the Git Bash / mintty environment, these modifier-based shortcuts do not seem to be recognized correctly.
In my modified version:
Git Bash: Ctrl+Enter does not send; it inserts a newline instead. Shift+Enter / Ctrl+J send.
Windows Terminal (stable): behaves as expected — Ctrl+Enter sends, Shift+Enter / Ctrl+J / Enter insert newlines.
Windows Terminal Preview: We could see “[13;133u” etc.
According to deepseek’s analysis:
If I insist on using Ctrl+Enter as the send shortcut, doesn’t that mean the behavior will differ across terminal environments?
What do you think about this interaction design?
Beta Was this translation helpful? Give feedback.
All reactions