Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce option to right click to copy #4404

Open
mitchellh opened this issue Jan 2, 2025 · 1 comment
Open

Introduce option to right click to copy #4404

mitchellh opened this issue Jan 2, 2025 · 1 comment
Labels
gui GUI or app issue regardless of platform (i.e. Swift, GTK)

Comments

@mitchellh
Copy link
Contributor

Discussed in #4381

Originally posted by 7ijme January 2, 2025
When I right-click, I don't want a context menu to open. I want it to copy the current selection.

This is what it looks like now:
image

Solution

We should introduce a new configuration option copy-on-right-click (similar to copy-on-selection), boolean default to "false" that can be set to true by those who wish for this behavior.

When true, context menus are disabled and text is copied. When mouse reporting is enabled, this should also copy so long as there is an active selection.

We should make this work on both macOS and Linux. This is more prevalent in the Linux world but I see no reason to disallow it on macOS since it's opt-in.

@mitchellh mitchellh added the gui GUI or app issue regardless of platform (i.e. Swift, GTK) label Jan 2, 2025
@LovecraftianGodsKiller
Copy link

I second this.

I'd also like an option for middle-click to paste; unless it already exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gui GUI or app issue regardless of platform (i.e. Swift, GTK)
Projects
None yet
Development

No branches or pull requests

2 participants