René's URL Explorer Experiment


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

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:95b2e0c6-a83a-3838-9e09-df188537f9f8
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id97E0:34B1A9:CE9678:12D3615:6A4E285C
html-safe-nonce2470ab990a23563af13ac69afc00b0185c89ec2a11f254488c8d31f31147e59b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5N0UwOjM0QjFBOTpDRTk2Nzg6MTJEMzYxNTo2QTRFMjg1QyIsInZpc2l0b3JfaWQiOiI4MzYxNTU2MTU0NTY0NjE4MzMyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac4e1f83e6bb326e9514b98641e324de9cb27fbabe1b276d312a858b83b820de71
hovercard-subject-tagpull_request:3674436738
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/lessweb/deepcode-cli/pull/52/files
twitter:imagehttps://avatars.githubusercontent.com/u/2081487?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://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_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/lessweb/deepcode-cli git https://github.com/lessweb/deepcode-cli.git
octolytics-dimension-user_id118287711
octolytics-dimension-user_loginlessweb
octolytics-dimension-repository_id1223512305
octolytics-dimension-repository_nwolessweb/deepcode-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1223512305
octolytics-dimension-repository_network_root_nwolessweb/deepcode-cli
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
released9dd20d38f8ae3c4cb6b597807431db300d0bd2a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/lessweb/deepcode-cli/pull/52/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flessweb%2Fdeepcode-cli%2Fpull%2F52%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flessweb%2Fdeepcode-cli%2Fpull%2F52%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=lessweb%2Fdeepcode-cli
Reloadhttps://github.com/lessweb/deepcode-cli/pull/52/files
Reloadhttps://github.com/lessweb/deepcode-cli/pull/52/files
Reloadhttps://github.com/lessweb/deepcode-cli/pull/52/files
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/52/files
lessweb https://github.com/lessweb
deepcode-clihttps://github.com/lessweb/deepcode-cli
Notifications https://github.com/login?return_to=%2Flessweb%2Fdeepcode-cli
Fork 152 https://github.com/login?return_to=%2Flessweb%2Fdeepcode-cli
Star 1.7k https://github.com/login?return_to=%2Flessweb%2Fdeepcode-cli
Code https://github.com/lessweb/deepcode-cli
Issues 44 https://github.com/lessweb/deepcode-cli/issues
Pull requests 22 https://github.com/lessweb/deepcode-cli/pulls
Actions https://github.com/lessweb/deepcode-cli/actions
Projects https://github.com/lessweb/deepcode-cli/projects
Security and quality 0 https://github.com/lessweb/deepcode-cli/security
Insights https://github.com/lessweb/deepcode-cli/pulse
Code https://github.com/lessweb/deepcode-cli
Issues https://github.com/lessweb/deepcode-cli/issues
Pull requests https://github.com/lessweb/deepcode-cli/pulls
Actions https://github.com/lessweb/deepcode-cli/actions
Projects https://github.com/lessweb/deepcode-cli/projects
Security and quality https://github.com/lessweb/deepcode-cli/security
Insights https://github.com/lessweb/deepcode-cli/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Flessweb%2Fdeepcode-cli%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Flessweb%2Fdeepcode-cli%2Fissues%2Fnew%2Fchoose
qorzjhttps://github.com/qorzj
lessweb:mainhttps://github.com/lessweb/deepcode-cli/tree/main
Lellansin:dev/shift-enter-newlinehttps://github.com/Lellansin/deepcode-cli/tree/dev/shift-enter-newline
Conversation 0 https://github.com/lessweb/deepcode-cli/pull/52
Commits 1 https://github.com/lessweb/deepcode-cli/pull/52/commits
Checks 0 https://github.com/lessweb/deepcode-cli/pull/52/checks
Files changed https://github.com/lessweb/deepcode-cli/pull/52/files
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/52/files
feat: Handle Shift+Enter as prompt newline https://github.com/lessweb/deepcode-cli/pull/52/files#top
Show all changes 1 commit https://github.com/lessweb/deepcode-cli/pull/52/files
e56a112 feat: support Shift+Enter prompt newlines Lellansin May 13, 2026 https://github.com/lessweb/deepcode-cli/pull/52/commits/e56a112fba198cfebff138e2c6d40656c7563c53
Clear filters https://github.com/lessweb/deepcode-cli/pull/52/files
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/52/files
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/52/files
promptInputKeys.test.ts https://github.com/lessweb/deepcode-cli/pull/52/files#diff-713c9278b038b90666b32d319cdbd3247c31a5f96d4596a3a0785cd97a1eb847
PromptInput.tsx https://github.com/lessweb/deepcode-cli/pull/52/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
index.ts https://github.com/lessweb/deepcode-cli/pull/52/files#diff-8b9f572e7b966526733261e0898fc2731a8757c4427d099194655c1390aef48e
cursor.ts https://github.com/lessweb/deepcode-cli/pull/52/files#diff-1ef2f1b44b73fcee13bf52cbed9f13f7185ba0217976531d8e3e1fd6c95dc5be
index.ts https://github.com/lessweb/deepcode-cli/pull/52/files#diff-90ec13bc19edf18819501265fb49e4a87569e434c3804c60eeacad60dee44d88
useTerminalInput.ts https://github.com/lessweb/deepcode-cli/pull/52/files#diff-f6c0e8110e67628fb13983eab6e596fb5615a429b47b89469c24555f64d90b26
src/tests/promptInputKeys.test.tshttps://github.com/lessweb/deepcode-cli/pull/52/files#diff-713c9278b038b90666b32d319cdbd3247c31a5f96d4596a3a0785cd97a1eb847
View file https://github.com/Lellansin/deepcode-cli/blob/e56a112fba198cfebff138e2c6d40656c7563c53/src/tests/promptInputKeys.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/lessweb/deepcode-cli/pull/52/{{ revealButtonHref }}
https://github.com/lessweb/deepcode-cli/pull/52/files#diff-713c9278b038b90666b32d319cdbd3247c31a5f96d4596a3a0785cd97a1eb847
https://github.com/lessweb/deepcode-cli/pull/52/files#diff-713c9278b038b90666b32d319cdbd3247c31a5f96d4596a3a0785cd97a1eb847
https://github.com/lessweb/deepcode-cli/pull/52/files#diff-713c9278b038b90666b32d319cdbd3247c31a5f96d4596a3a0785cd97a1eb847
https://github.com/lessweb/deepcode-cli/pull/52/files#diff-713c9278b038b90666b32d319cdbd3247c31a5f96d4596a3a0785cd97a1eb847
src/ui/PromptInput.tsxhttps://github.com/lessweb/deepcode-cli/pull/52/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
View file https://github.com/Lellansin/deepcode-cli/blob/e56a112fba198cfebff138e2c6d40656c7563c53/src/ui/PromptInput.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/lessweb/deepcode-cli/pull/52/{{ revealButtonHref }}
https://github.com/lessweb/deepcode-cli/pull/52/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/52/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/52/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/52/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/52/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/52/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/52/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/52/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/52/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/52/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
src/ui/index.tshttps://github.com/lessweb/deepcode-cli/pull/52/files#diff-8b9f572e7b966526733261e0898fc2731a8757c4427d099194655c1390aef48e
View file https://github.com/Lellansin/deepcode-cli/blob/e56a112fba198cfebff138e2c6d40656c7563c53/src/ui/index.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/lessweb/deepcode-cli/pull/52/{{ revealButtonHref }}
https://github.com/lessweb/deepcode-cli/pull/52/files#diff-8b9f572e7b966526733261e0898fc2731a8757c4427d099194655c1390aef48e
https://github.com/lessweb/deepcode-cli/pull/52/files#diff-8b9f572e7b966526733261e0898fc2731a8757c4427d099194655c1390aef48e
https://github.com/lessweb/deepcode-cli/pull/52/files#diff-8b9f572e7b966526733261e0898fc2731a8757c4427d099194655c1390aef48e
src/ui/prompt/cursor.tshttps://github.com/lessweb/deepcode-cli/pull/52/files#diff-1ef2f1b44b73fcee13bf52cbed9f13f7185ba0217976531d8e3e1fd6c95dc5be
View file https://github.com/Lellansin/deepcode-cli/blob/e56a112fba198cfebff138e2c6d40656c7563c53/src/ui/prompt/cursor.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/lessweb/deepcode-cli/pull/52/{{ revealButtonHref }}
https://github.com/lessweb/deepcode-cli/pull/52/files#diff-1ef2f1b44b73fcee13bf52cbed9f13f7185ba0217976531d8e3e1fd6c95dc5be
https://github.com/lessweb/deepcode-cli/pull/52/files#diff-1ef2f1b44b73fcee13bf52cbed9f13f7185ba0217976531d8e3e1fd6c95dc5be
https://github.com/lessweb/deepcode-cli/pull/52/files#diff-1ef2f1b44b73fcee13bf52cbed9f13f7185ba0217976531d8e3e1fd6c95dc5be
src/ui/prompt/index.tshttps://github.com/lessweb/deepcode-cli/pull/52/files#diff-90ec13bc19edf18819501265fb49e4a87569e434c3804c60eeacad60dee44d88
View file https://github.com/Lellansin/deepcode-cli/blob/e56a112fba198cfebff138e2c6d40656c7563c53/src/ui/prompt/index.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/lessweb/deepcode-cli/pull/52/{{ revealButtonHref }}
https://github.com/lessweb/deepcode-cli/pull/52/files#diff-90ec13bc19edf18819501265fb49e4a87569e434c3804c60eeacad60dee44d88
https://github.com/lessweb/deepcode-cli/pull/52/files#diff-90ec13bc19edf18819501265fb49e4a87569e434c3804c60eeacad60dee44d88
src/ui/prompt/useTerminalInput.tshttps://github.com/lessweb/deepcode-cli/pull/52/files#diff-f6c0e8110e67628fb13983eab6e596fb5615a429b47b89469c24555f64d90b26
View file https://github.com/Lellansin/deepcode-cli/blob/e56a112fba198cfebff138e2c6d40656c7563c53/src/ui/prompt/useTerminalInput.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/lessweb/deepcode-cli/pull/52/{{ revealButtonHref }}
https://github.com/lessweb/deepcode-cli/pull/52/files#diff-f6c0e8110e67628fb13983eab6e596fb5615a429b47b89469c24555f64d90b26
https://github.com/lessweb/deepcode-cli/pull/52/files#diff-f6c0e8110e67628fb13983eab6e596fb5615a429b47b89469c24555f64d90b26
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.