Title: feat: Handle Shift+Enter as prompt newline by Lellansin · Pull Request #52 · lessweb/deepcode-cli · GitHub
Open Graph Title: feat: Handle Shift+Enter as prompt newline by Lellansin · Pull Request #52 · lessweb/deepcode-cli
X Title: feat: Handle Shift+Enter as prompt newline by Lellansin · Pull Request #52 · lessweb/deepcode-cli
Description: 变更内容 在 Prompt 激活时启用终端 extended key reporting,让支持该能力的终端可以区分 Shift+Enter 和普通 Enter。 将普通 Enter 保持为提交 Prompt,Shift+Enter 作为插入换行处理。 补充 Shift+Enter、普通 Enter、替代回车序列以及终端 escape helper 的单元测试。 背景 部分终端默认会把 Shift+Enter 和 Enter 都发送为相同的回车字符,导致应用无法判断用户是想换行还是提交。本次改动在 Prompt 生命周期内主动请求终端启用扩展按键模式,并兼容常见的 shifted return 序列。 验证 npm run test:single -- src/tests/promptInputKeys.test.ts npm run check npm test codex review --base origin/main
Open Graph Description: 变更内容 在 Prompt 激活时启用终端 extended key reporting,让支持该能力的终端可以区分 Shift+Enter 和普通 Enter。 将普通 Enter 保持为提交 Prompt,Shift+Enter 作为插入换行处理。 补充 Shift+Enter、普通 Enter、替代回车序列以及终端 escape helper 的单元测试。 背景 部分终端默认会把 ...
X Description: 变更内容 在 Prompt 激活时启用终端 extended key reporting,让支持该能力的终端可以区分 Shift+Enter 和普通 Enter。 将普通 Enter 保持为提交 Prompt,Shift+Enter 作为插入换行处理。 补充 Shift+Enter、普通 Enter、替代回车序列以及终端 escape helper 的单元测试。 背景 部分终端默认会把 ...
Opengraph URL: https://github.com/lessweb/deepcode-cli/pull/52
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:95b2e0c6-a83a-3838-9e09-df188537f9f8 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 97E0:34B1A9:CE9678:12D3615:6A4E285C |
| html-safe-nonce | 2470ab990a23563af13ac69afc00b0185c89ec2a11f254488c8d31f31147e59b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5N0UwOjM0QjFBOTpDRTk2Nzg6MTJEMzYxNTo2QTRFMjg1QyIsInZpc2l0b3JfaWQiOiI4MzYxNTU2MTU0NTY0NjE4MzMyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4e1f83e6bb326e9514b98641e324de9cb27fbabe1b276d312a858b83b820de71 |
| hovercard-subject-tag | pull_request:3674436738 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/lessweb/deepcode-cli/pull/52/files |
| twitter:image | https://avatars.githubusercontent.com/u/2081487?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/2081487?s=400&v=4 |
| og:image:alt | 变更内容 在 Prompt 激活时启用终端 extended key reporting,让支持该能力的终端可以区分 Shift+Enter 和普通 Enter。 将普通 Enter 保持为提交 Prompt,Shift+Enter 作为插入换行处理。 补充 Shift+Enter、普通 Enter、替代回车序列以及终端 escape helper 的单元测试。 背景 部分终端默认会把 ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/lessweb/deepcode-cli git https://github.com/lessweb/deepcode-cli.git |
| octolytics-dimension-user_id | 118287711 |
| octolytics-dimension-user_login | lessweb |
| octolytics-dimension-repository_id | 1223512305 |
| octolytics-dimension-repository_nwo | lessweb/deepcode-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1223512305 |
| octolytics-dimension-repository_network_root_nwo | lessweb/deepcode-cli |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d9dd20d38f8ae3c4cb6b597807431db300d0bd2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width