Skip to content

Conversation

@dhth
Copy link
Owner

@dhth dhth commented Sep 26, 2025

No description provided.

@gemini-code-assist
Copy link

Summary of Changes

Hello @dhth, 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 significantly improves the user experience of the terminal user interface (TUI) by introducing more intuitive navigation controls. The primary changes include making the help pane a toggleable feature and adding several new keybindings for efficient scrolling and movement within different application views. These enhancements aim to streamline interaction and make information more accessible.

Highlights

  • Help Pane Toggle: The '?' key now functions as a toggle. Pressing it once opens the help pane, and pressing it again closes the help pane, returning to the previously active view.
  • Enhanced Viewport Navigation: New keybindings 'g' and 'G' have been added to allow users to quickly jump to the top and bottom of the message details and help viewports, respectively.
  • Half-Page Scrolling: Keybindings 'ctrl+d' and 'ctrl+u' are introduced to enable half-page scrolling within the message details viewport when the message list is the active view.
Using Gemini Code Assist

The 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 /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

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 .gemini/ folder in the base of the repository. Detailed instructions can be found here.

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

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request aims to allow quitting the help pane by pressing ?, effectively making it a toggle. The implementation for this is correct. However, my review found that this change interacts with a pre-existing critical bug in view-switching logic that can cause the application to become stuck in the help view under certain conditions.

Additionally, this PR introduces several new keybindings for navigation (g, G, ctrl+d, ctrl+u). While these are useful features, they are unrelated to the stated purpose of the PR and should ideally be submitted in a separate pull request to maintain a clean and focused commit history. I've also provided feedback on a minor inconsistency with the new ctrl+u binding.

@dhth
Copy link
Owner Author

dhth commented Sep 26, 2025

/gemini review

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces two main changes. First, it fixes a bug where the previous view state could be lost when the terminal is resized to be too small while the help pane is active. This is solved by adding a new lastViewBeforeInsufficientDims field to the model. Second, it changes the behavior of the ? key to act as a toggle for the help pane, improving user experience. The changes are logical and correct. I've added one suggestion to consider a more scalable view management approach using a stack, which could simplify the state management in the long run.

@dhth dhth merged commit 0aa5201 into main Sep 26, 2025
15 checks passed
@dhth dhth deleted the fix-bug-with-quitting-help-pane branch September 26, 2025 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants