Skip to content

feat(tui): add ctrl+t to expand the todo list - #1009

Merged
liruifengv merged 6 commits into
mainfrom
feat/todo-expand-shortcut
Jun 23, 2026
Merged

feat(tui): add ctrl+t to expand the todo list#1009
liruifengv merged 6 commits into
mainfrom
feat/todo-expand-shortcut

Conversation

@liruifengv

@liruifengv liruifengv commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

Related Issue

No related issue. This is a small UX improvement that was discussed and agreed on before implementation.

Problem

When the todo list grows beyond five entries, the TUI truncates it to five rows and shows a +N more footer, but there is no way to reveal the hidden items. A user who wants to review the full plan has no in-app affordance to do so.

What changed

Added a Ctrl-T shortcut that toggles the todo panel between the truncated view (five rows) and the full list. The shortcut only consumes the key while the list actually overflows, so it stays out of the way otherwise. The footer hint reflects the current state (ctrl+t to expand / ctrl+t to collapse), the /help panel and the rotating toolbar tips mention the new binding, and the bilingual keyboard-shortcuts reference is updated. Tests cover the panel rendering and the editor shortcut wiring.

The handler also disarms a pending double-press exit confirmation, so expanding the todo list between two Ctrl-C presses does not accidentally exit.

This PR also tightens the gen-changesets skill: minor is now described as a substantial new user-facing feature, while small improvements to existing features (such as a single shortcut) are explicitly patch.

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked a related issue, or explained the problem above.
  • I have added tests that prove my feature works.
  • Ran gen-changesets skill, or this PR needs no changeset.
  • Ran gen-docs skill, or this PR needs no doc update.

Toggle between the truncated view and the full list; the shortcut only takes effect while the list actually overflows.
@changeset-bot

changeset-bot Bot commented Jun 23, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: e5552f6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@moonshot-ai/kimi-code Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Jun 23, 2026

Copy link
Copy Markdown
pnpm dlx https://pkg.pr.new/@moonshot-ai/kimi-code@e5552f6
npx https://pkg.pr.new/@moonshot-ai/kimi-code@e5552f6

commit: e5552f6

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f0c6274c17

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread apps/kimi-code/src/tui/controllers/editor-keyboard.ts
@liruifengv
liruifengv merged commit e47de61 into main Jun 23, 2026
9 checks passed
@liruifengv
liruifengv deleted the feat/todo-expand-shortcut branch June 23, 2026 07:49
@github-actions github-actions Bot mentioned this pull request Jun 23, 2026
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.

1 participant