refactor(cli): rename 'return' key to 'enter' internally#21796
refactor(cli): rename 'return' key to 'enter' internally#21796
Conversation
|
Size Change: -97 B (0%) Total Size: 26.1 MB ℹ️ View Unchanged
|
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request refactors the CLI's internal keybinding system by standardizing the name for the 'Enter' key from 'return' to 'enter'. This change is crucial for future compatibility with VS Code-style keybinding configurations, ensuring a more consistent and maintainable codebase for input handling. Highlights
Changelog
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request is a comprehensive refactoring that renames the internal key name from 'return' to 'enter' across the packages/cli workspace. The changes are consistent and cover test files, UI components, hooks, and keybinding definitions. This alignment with VS Code's conventions is a good step towards better integration. The changes appear to be well-executed and thorough.
Summary
Renames the internal key name from
returntoenterDetails
This aligns us with other systems (like VS Code) which will make customizable key bindings easier for users to understand.
Note: We were already calling it "enter" publically so that doesn't change.
Related Issues
Related to #21294
How to Validate
npm run typecheck -w packages/cli.npm run test -w packages/cli.Pre-Merge Checklist