René's URL Explorer Experiment


Title: feat: Add prompt undo and redo shortcuts by Lellansin · Pull Request #59 · lessweb/deepcode-cli · GitHub

Open Graph Title: feat: Add prompt undo and redo shortcuts by Lellansin · Pull Request #59 · lessweb/deepcode-cli

X Title: feat: Add prompt undo and redo shortcuts by Lellansin · Pull Request #59 · lessweb/deepcode-cli

Description: 变更内容 为 Prompt 输入框增加 Ctrl+- undo 和 Ctrl+Shift+- redo 快捷键。 解析终端 modifyOtherKeys 下的 Ctrl+- / Ctrl+Shift+- 序列,并兼容 raw 0x1F redo fallback。 将 Prompt undo/redo 栈逻辑拆成独立模块,提交、取消输入、执行 slash 命令或消费 slash token 后会清空历史,避免恢复已处理的命令文本。 补充快捷键解析和 undo/redo 栈语义的单元测试。 背景 Prompt 输入目前支持多种编辑快捷键,但缺少常见的撤销和重做能力。终端在不同按键模式下对 Ctrl+- / Ctrl+Shift+- 的上报不同,本次改动在已有 extended key reporting 基础上兼容常见序列,并保持标准 redo 语义:新编辑会清空 redo 历史。 验证 npm test -- --test-reporter=spec npm run typecheck npm run lint npm run format:check git diff --check main...HEAD codex review --base main

Open Graph Description: 变更内容 为 Prompt 输入框增加 Ctrl+- undo 和 Ctrl+Shift+- redo 快捷键。 解析终端 modifyOtherKeys 下的 Ctrl+- / Ctrl+Shift+- 序列,并兼容 raw 0x1F redo fallback。 将 Prompt undo/redo 栈逻辑拆成独立模块,提交、取消输入、执行 slash 命令或消费 slash toke...

X Description: 变更内容 为 Prompt 输入框增加 Ctrl+- undo 和 Ctrl+Shift+- redo 快捷键。 解析终端 modifyOtherKeys 下的 Ctrl+- / Ctrl+Shift+- 序列,并兼容 raw 0x1F redo fallback。 将 Prompt undo/redo 栈逻辑拆成独立模块,提交、取消输入、执行 slash 命令或消费 slash toke...

Opengraph URL: https://github.com/lessweb/deepcode-cli/pull/59

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:f3ce7728-c9a0-13b8-bb5b-25a34f5cdcbb
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9C3E:A56AD:FDA84:17074C:6A4DFBDA
html-safe-nonce22f90f83fe68289db6412b5483b4693ecc7917893de6fa49ed95088fbee62875
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QzNFOkE1NkFEOkZEQTg0OjE3MDc0Qzo2QTRERkJEQSIsInZpc2l0b3JfaWQiOiIzOTk2MTU5OTcxOTU5ODk3MDUwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac6ebc4f0e66c64d5e353d4111f03b1e60b74c805ca8802cd10d28c78531fc7761
hovercard-subject-tagpull_request:3680423775
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/59/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 输入框增加 Ctrl+- undo 和 Ctrl+Shift+- redo 快捷键。 解析终端 modifyOtherKeys 下的 Ctrl+- / Ctrl+Shift+- 序列,并兼容 raw 0x1F redo fallback。 将 Prompt undo/redo 栈逻辑拆成独立模块,提交、取消输入、执行 slash 命令或消费 slash toke...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None5818716c93c6a2925b815402541a32814e43a7b1261c322b0c2df75224289566
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
release4314b1df11fa8a565684f3a72dc971e3785da365
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/lessweb/deepcode-cli/pull/59/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flessweb%2Fdeepcode-cli%2Fpull%2F59%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%2F59%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/59/files
Reloadhttps://github.com/lessweb/deepcode-cli/pull/59/files
Reloadhttps://github.com/lessweb/deepcode-cli/pull/59/files
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/59/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 43 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:feat/prompt-undo-redohttps://github.com/Lellansin/deepcode-cli/tree/feat/prompt-undo-redo
Conversation 0 https://github.com/lessweb/deepcode-cli/pull/59
Commits 1 https://github.com/lessweb/deepcode-cli/pull/59/commits
Checks 0 https://github.com/lessweb/deepcode-cli/pull/59/checks
Files changed https://github.com/lessweb/deepcode-cli/pull/59/files
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/59/files
feat: Add prompt undo and redo shortcuts https://github.com/lessweb/deepcode-cli/pull/59/files#top
Show all changes 1 commit https://github.com/lessweb/deepcode-cli/pull/59/files
71944b9 feat(prompt): add ctrl+- undo and ctrl+shift+- redo Lellansin May 14, 2026 https://github.com/lessweb/deepcode-cli/pull/59/commits/71944b91579cf1ad3f61d3d28605d56bf4554288
Clear filters https://github.com/lessweb/deepcode-cli/pull/59/files
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/59/files
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/59/files
promptInputKeys.test.ts https://github.com/lessweb/deepcode-cli/pull/59/files#diff-713c9278b038b90666b32d319cdbd3247c31a5f96d4596a3a0785cd97a1eb847
promptUndoRedo.test.ts https://github.com/lessweb/deepcode-cli/pull/59/files#diff-83c6d7b24580d0f61cefaadf3913ca602911a77a1ec60d77b43ba49596e3bccd
PromptInput.tsx https://github.com/lessweb/deepcode-cli/pull/59/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
useTerminalInput.ts https://github.com/lessweb/deepcode-cli/pull/59/files#diff-f6c0e8110e67628fb13983eab6e596fb5615a429b47b89469c24555f64d90b26
promptUndoRedo.ts https://github.com/lessweb/deepcode-cli/pull/59/files#diff-9a9c3305869927a8784836efb33fe1dea18e7baa87889c21c4078718cfb236e9
src/tests/promptInputKeys.test.tshttps://github.com/lessweb/deepcode-cli/pull/59/files#diff-713c9278b038b90666b32d319cdbd3247c31a5f96d4596a3a0785cd97a1eb847
View file https://github.com/Lellansin/deepcode-cli/blob/71944b91579cf1ad3f61d3d28605d56bf4554288/src/tests/promptInputKeys.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/lessweb/deepcode-cli/pull/59/{{ revealButtonHref }}
https://github.com/lessweb/deepcode-cli/pull/59/files#diff-713c9278b038b90666b32d319cdbd3247c31a5f96d4596a3a0785cd97a1eb847
https://github.com/lessweb/deepcode-cli/pull/59/files#diff-713c9278b038b90666b32d319cdbd3247c31a5f96d4596a3a0785cd97a1eb847
src/tests/promptUndoRedo.test.tshttps://github.com/lessweb/deepcode-cli/pull/59/files#diff-83c6d7b24580d0f61cefaadf3913ca602911a77a1ec60d77b43ba49596e3bccd
View file https://github.com/Lellansin/deepcode-cli/blob/71944b91579cf1ad3f61d3d28605d56bf4554288/src/tests/promptUndoRedo.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/lessweb/deepcode-cli/pull/59/{{ revealButtonHref }}
src/ui/PromptInput.tsxhttps://github.com/lessweb/deepcode-cli/pull/59/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
View file https://github.com/Lellansin/deepcode-cli/blob/71944b91579cf1ad3f61d3d28605d56bf4554288/src/ui/PromptInput.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/lessweb/deepcode-cli/pull/59/{{ revealButtonHref }}
https://github.com/lessweb/deepcode-cli/pull/59/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/59/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/59/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/59/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/59/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/59/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/59/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/59/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/59/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/59/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/59/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/59/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/59/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/59/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/59/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/59/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/59/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
https://github.com/lessweb/deepcode-cli/pull/59/files#diff-82045eb6c45c8c094739d89e1eb59b5ca893247cff1a12ef81af2ed6231b6be2
src/ui/prompt/useTerminalInput.tshttps://github.com/lessweb/deepcode-cli/pull/59/files#diff-f6c0e8110e67628fb13983eab6e596fb5615a429b47b89469c24555f64d90b26
View file https://github.com/Lellansin/deepcode-cli/blob/71944b91579cf1ad3f61d3d28605d56bf4554288/src/ui/prompt/useTerminalInput.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/lessweb/deepcode-cli/pull/59/{{ revealButtonHref }}
https://github.com/lessweb/deepcode-cli/pull/59/files#diff-f6c0e8110e67628fb13983eab6e596fb5615a429b47b89469c24555f64d90b26
https://github.com/lessweb/deepcode-cli/pull/59/files#diff-f6c0e8110e67628fb13983eab6e596fb5615a429b47b89469c24555f64d90b26
src/ui/promptUndoRedo.tshttps://github.com/lessweb/deepcode-cli/pull/59/files#diff-9a9c3305869927a8784836efb33fe1dea18e7baa87889c21c4078718cfb236e9
View file https://github.com/Lellansin/deepcode-cli/blob/71944b91579cf1ad3f61d3d28605d56bf4554288/src/ui/promptUndoRedo.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/lessweb/deepcode-cli/pull/59/{{ revealButtonHref }}
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.