Skip to content

feat(gui): add terminal context menu - #542

Merged
youxi798 merged 2 commits into
tw93:mainfrom
elonnzhang:feat/add_context_menu
Aug 28, 2026
Merged

feat(gui): add terminal context menu#542
youxi798 merged 2 commits into
tw93:mainfrom
elonnzhang:feat/add_context_menu

Conversation

@elonnzhang

Copy link
Copy Markdown
Contributor

Summary

Add a native macOS context menu to terminal panes so common actions are accessible with a right-click.

The menu includes:

  • Paste
  • Search
  • AI Chat
  • Command Palette
  • Split pane in four directions
  • Close Pane

The context menu appears when the terminal application has not captured the right-click event. Holding Shift also allows it to be opened when mouse reporting is active.

Implementation

  • Route native context-menu display through WindowOps.
  • Convert Kaku screen coordinates to macOS global screen coordinates.
  • Attach existing KeyAssignment actions to native menu items.
  • Preserve the existing terminal mouse handling behavior when the menu is not shown.

Verification

  • make fmt-check
  • make check
  • make test
    • 1484 workspace tests passed
    • 15 escape parser tests passed
  • make app

Related #77

SCR-20260828-nqrw

Expose common pane actions on right-click so mouse-driven workflows do not require memorizing keyboard shortcuts.
@vercel

vercel Bot commented Aug 28, 2026

Copy link
Copy Markdown

@elonnzhang is attempting to deploy a commit to the Faberon Team on Vercel.

A member of the Team first needs to authorize it.

@youxi798
youxi798 merged commit 8e7c929 into tw93:main Aug 28, 2026
7 of 8 checks passed
@youxi798

Copy link
Copy Markdown
Collaborator

@elonnzhang Thanks for restoring the native terminal context menu. I finished the safety edges around stable pane targeting, close confirmation, configured mouse-reporting bypass, and custom bindings.

This is merged and available in the latest Nightly: https://github.com/tw93/Kaku/releases/tag/nightly

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