Skip to content

Implement needed modifications for issue #12600, more flexible copy-on-select and middle-click-action#12604

Open
mohshami wants to merge 20 commits into
ghostty-org:mainfrom
mohshami:main
Open

Implement needed modifications for issue #12600, more flexible copy-on-select and middle-click-action#12604
mohshami wants to merge 20 commits into
ghostty-org:mainfrom
mohshami:main

Conversation

@mohshami
Copy link
Copy Markdown
Contributor

@mohshami mohshami commented May 6, 2026

For middle-click-action

  • Kept the option "primary-paste" instead of "paste-primary" to keep backwards compatibility
  • Added the option "clipboard-paste"

For copy-on-select

  • Added the both, none and primary options

Updated config documentation

Note: No AI was used, Even though I don't know Zig, I looked at the code and the modifications seemed easy enough

Closes #12600

For middle-click-action
* Kept the option "primary-paste" instead of "paste-primary" to keep
backwards compatibility
* Added the option "clipboard-paste"

For copy-on-select
* Added the both, none and primary options

Updated config documentation
@mohshami mohshami requested a review from a team as a code owner May 6, 2026 22:27
@ghostty-vouch
Copy link
Copy Markdown
Contributor

ghostty-vouch Bot commented May 6, 2026

Hi @mohshami, thanks for your interest in contributing!

This project requires that pull request authors are vouched, and you are not in the list of vouched users.

This PR will be closed automatically. See https://github.com/ghostty-org/ghostty/blob/main/CONTRIBUTING.md for more details.

@ghostty-vouch ghostty-vouch Bot closed this May 6, 2026
@jcollie
Copy link
Copy Markdown
Member

jcollie commented May 6, 2026

!vouch

@ghostty-vouch ghostty-vouch Bot mentioned this pull request May 6, 2026
ghostty-vouch Bot added a commit that referenced this pull request May 6, 2026
Triggered by
[comment](#12604 (comment))
from @jcollie.

Vouch: @mohshami

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@jcollie jcollie reopened this May 6, 2026
Comment thread src/config/Config.zig
xi-guan pushed a commit to xi-guan/cmux-ghostty that referenced this pull request May 18, 2026
Triggered by
[comment](ghostty-org#12604 (comment))
from @jcollie.

Vouch: @mohshami

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@00-kat 00-kat left a comment

Choose a reason for hiding this comment

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

Thanks a lot! These are a couple comments I had on my mind when you first opened this PR, but I wanted to hold off until someone else asked you to use the backward compat mechanism instead (I don't know much about it, so I didn't know how to phrase that request then).

Comment thread src/config/Config.zig Outdated
Comment thread src/config/Config.zig Outdated
Comment thread src/config/Config.zig Outdated
Comment thread src/config/Config.zig Outdated
Comment thread src/config/Config.zig Outdated
Comment thread src/Surface.zig Outdated
Comment thread src/Surface.zig Outdated
Comment thread src/config/Config.zig Outdated
Comment thread src/config/Config.zig Outdated
Comment thread src/config/Config.zig Outdated
mohshami and others added 2 commits May 18, 2026 17:47
Co-authored-by: kat <65649991+00-kat@users.noreply.github.com>
Co-authored-by: kat <65649991+00-kat@users.noreply.github.com>
@00-kat
Copy link
Copy Markdown
Contributor

00-kat commented May 18, 2026

JSYK GitHub has a button to batch-add suggestions.

mohshami and others added 13 commits May 18, 2026 18:44
Co-authored-by: kat <65649991+00-kat@users.noreply.github.com>
Co-authored-by: kat <65649991+00-kat@users.noreply.github.com>
Co-authored-by: kat <65649991+00-kat@users.noreply.github.com>
Co-authored-by: kat <65649991+00-kat@users.noreply.github.com>
Co-authored-by: kat <65649991+00-kat@users.noreply.github.com>
Co-authored-by: kat <65649991+00-kat@users.noreply.github.com>
Co-authored-by: kat <65649991+00-kat@users.noreply.github.com>
Co-authored-by: kat <65649991+00-kat@users.noreply.github.com>
Co-authored-by: kat <65649991+00-kat@users.noreply.github.com>
Co-authored-by: kat <65649991+00-kat@users.noreply.github.com>
Co-authored-by: kat <65649991+00-kat@users.noreply.github.com>
Co-authored-by: kat <65649991+00-kat@users.noreply.github.com>
Co-authored-by: kat <65649991+00-kat@users.noreply.github.com>
@00-kat 00-kat enabled auto-merge (squash) May 18, 2026 16:04
@00-kat 00-kat disabled auto-merge May 18, 2026 16:08
@00-kat
Copy link
Copy Markdown
Contributor

00-kat commented May 18, 2026

(Disabled auto-merge since it still needs a review from someone in ghostty-org/terminal, so it wouldn't auto-merge until that happens.)

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.

more flexible copy-on-select and middle-click-action

3 participants