Skip to content

fix(select): handle Ctrl+U in task picker - #678

Open
liangmiQwQ wants to merge 2 commits into
voidzero-dev:mainfrom
liangmiQwQ:liang/codex/fix-task-picker-ctrl-u
Open

fix(select): handle Ctrl+U in task picker#678
liangmiQwQ wants to merge 2 commits into
voidzero-dev:mainfrom
liangmiQwQ:liang/codex/fix-task-picker-ctrl-u

Conversation

@liangmiQwQ

Copy link
Copy Markdown
Contributor

Motivation

On macOS, Cmd+Backspace is sent to the terminal as Ctrl+U. Crossterm decodes it as a control-modified u, but the task picker appended every character event to the search query, inserting a literal u.

This PR makes Ctrl+U clear the query and reset the selection. It also limits search text to unmodified and Shift character events so other modified control keys are ignored.

🤖 Generated with Codex

Crossterm decodes Ctrl+U as Char('u') with CONTROL, which fell through modifier-agnostic text handling. Clear the query for Ctrl+U and restrict text insertion to unmodified or Shift keys so control sequences cannot enter search text.

Co-authored-by: GPT-5 Codex <codex@openai.com>
@liangmiQwQ

Copy link
Copy Markdown
Contributor Author

@codex review

@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: c2e46608a0

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/vt_select/src/interactive.rs Outdated
Allow printable Ctrl+Alt character events used by AltGr while keeping Ctrl+U limited to the exact control shortcut.

Co-authored-by: GPT-5.6 Codex <codex@openai.com>
@liangmiQwQ

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: 7673df375f

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@liangmiQwQ
liangmiQwQ marked this pull request as ready for review August 17, 2026 04:47
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