Skip to content

Conversation

@forketyfork
Copy link
Owner

Summary

  • Fix Cmd+left wraparound to land on rightmost spawned terminal
  • Clear notification highlighting on any key press (not just text input)
  • Increase notification tint visibility

Solution

Grid navigation wraparound (src/app/grid_nav.zig): When pressing Cmd+left from the leftmost column (column 0), the navigation now searches backward from the last column to find the rightmost spawned terminal, rather than unconditionally landing on the last cell which might be empty.

Notification clearing on key press (src/app/runtime.zig): Previously, only SDL_EVENT_TEXT_INPUT events cleared the notification attention flag. Keys like Enter, Tab, and arrow keys only generate SDL_EVENT_KEY_DOWN events (no TEXT_INPUT), so they didn't clear the highlighting. Now any key forwarded to the terminal in Grid mode clears the attention.

Notification tint visibility (src/render/renderer.zig): Increased the alpha value of the notification overlay tint from 25/35 to 55, making the yellow (awaiting approval / running) and green (done) highlights more visible while still being subtle enough not to obscure terminal content.

Issue: Cmd+left from the leftmost cell wrapped to the last grid cell even
if empty; pressing Enter didn't clear notification highlighting; and the
notification tint overlay was barely visible.

Solution: Updated grid navigation to find the rightmost spawned terminal
when wrapping left. Added attention clearing when any key is forwarded to
the terminal in Grid mode (not just text input). Increased notification
tint alpha from 25 to 55 for better visibility.
@forketyfork forketyfork requested a review from Copilot January 22, 2026 11:58
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR improves grid navigation behavior and notification user experience by fixing wraparound logic and enhancing visual feedback.

Changes:

  • Fixed Cmd+left grid navigation to land on the rightmost spawned terminal instead of potentially empty cells
  • Extended notification clearing to trigger on any key press, not just text input events
  • Increased notification tint opacity for better visibility

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/app/grid_nav.zig Adds logic to find rightmost spawned terminal when wrapping left from column 0
src/app/runtime.zig Clears notification attention on any key press in Grid mode
src/render/renderer.zig Increases notification overlay alpha from 25/35 to 55 for better visibility

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@forketyfork forketyfork merged commit 5b1bb03 into main Jan 22, 2026
4 checks passed
@forketyfork forketyfork deleted the fix/grid-nav-and-notification-ux branch January 22, 2026 12:06
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