Skip to content

Make composer arrows navigate input history#1138

Merged
Hmbown merged 1 commit into
Hmbown:mainfrom
reidliu41:fix/composer-arrow-history
May 8, 2026
Merged

Make composer arrows navigate input history#1138
Hmbown merged 1 commit into
Hmbown:mainfrom
reidliu41:fix/composer-arrow-history

Conversation

@reidliu41

Copy link
Copy Markdown
Contributor

Summary

Plain Up/Down previously scrolled the transcript when the composer was empty, so users could not use the default arrow keys to browse input
history. This made the most common composer action require Ctrl+Up/Down instead.

This change makes plain Up/Down navigate composer input history by default, while keeping slash/mention menus in control of their own arrow
navigation. Existing transcript scroll shortcuts such as PageUp/PageDown and Alt/Super+Up/Down are preserved.

It also adds word-wise composer cursor movement for Ctrl+Left/Right and Alt/Option+Left/Right, which matches common terminal/editor
behavior and works better on macOS terminals.

fixes: #1117

Testing

  • cargo test --all-features
  • cargo fmt --all -- --check
  • cargo clippy --all-targets --all-features

Checklist

  • Updated docs or comments as needed
  • Added or updated tests where relevant
  • Verified TUI behavior manually if UI changes

  Make plain Up/Down navigate composer input history instead of scrolling
  the transcript from an empty composer.

  Keep menu overlays in control of arrow keys, preserve existing transcript
  scroll shortcuts, and support word-wise cursor movement with Ctrl or
  Alt/Option Left/Right.
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@Hmbown Hmbown merged commit 71c5dfb into Hmbown:main May 8, 2026
8 checks passed
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