Skip to content

feat: add middle-click action configuration - #12478

Merged
mitchellh merged 1 commit into
ghostty-org:mainfrom
lebdron:feature/middle-click-behavior
Apr 27, 2026
Merged

mitchellh merged 1 commit into
ghostty-org:mainfrom
lebdron:feature/middle-click-behavior

Conversation

@lebdron

@lebdron lebdron commented Apr 26, 2026 •

Copy link
Copy Markdown
Contributor

This PR addresses #12108 implemented similarly to #8254 to allow middle click + TrackPoint scrolling on MacOS. primary-paste naming comes from gtk_enable_primary_paste.

The following configuration values for middle-click-action are provided:

  • primary-paste - Paste from the selection (or system) clipboard per copy-on-select.
  • ignore - Do nothing, ignore the middle click.

Tested locally on macOS with Zig 0.15.2 using zig build -Doptimize=ReleaseFast.

Thank you!

@lebdron
lebdron requested a review from a team as a code owner April 26, 2026 15:33
@lebdron

lebdron commented Apr 26, 2026

Copy link
Copy Markdown
Contributor Author

Friendly ping @ssevertson-svg

@mitchellh mitchellh added this to the 1.4.0 milestone Apr 27, 2026

@mitchellh mitchellh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks great pending CI.

@mitchellh
mitchellh merged commit 34cbb5f into ghostty-org:main Apr 27, 2026
17 checks passed
@lebdron
lebdron deleted the feature/middle-click-behavior branch April 27, 2026 22:14
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