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

Selecting with mouse says it yanked to system clipboard but doesn’t #1901

Closed
aral opened this issue Mar 31, 2022 · 3 comments
Closed

Selecting with mouse says it yanked to system clipboard but doesn’t #1901

aral opened this issue Mar 31, 2022 · 3 comments
Labels
A-helix-term Area: Helix term improvements C-bug Category: This is a bug

Comments

@aral
Copy link
Contributor

aral commented Mar 31, 2022

Summary

When you make a selection using the mouse, Helix shows you the yanked main selection to system clipboard message but it does not actually do it.

If you manually yank to system clipboard (space Y) after making a selection, it works.

Reproduction Steps

  1. Select some text in an open buffer using your mouse.
  2. Notice the message yanked main selection to system clipboard is displayed in Helix.
  3. Paste it into a different app on your system.

What should happen

The selected text should be pasted.

What actually happens

The selected text is not pasted. (Whatever was on the system clipboard previously is.)

Workaround

Manually yank the selection to the system clipboard after selecting it with the mouse using space Y.

Helix log

No relevant entries found in log (no errors/warnings).

Platform

Linux (elementary OS 6; based on Ubuntu)

Terminal Emulator

Terminal (elementary OS)

Helix Version

22.03-7-gc18de0e8

@aral aral added the C-bug Category: This is a bug label Mar 31, 2022
@archseer
Copy link
Member

Selecting with mouse usually yanks into a different clipboard -- I forgot what it's called but it's the one that's used when pasting with the middle click on the mouse.

@aral
Copy link
Contributor Author

aral commented Apr 8, 2022

Thanks, @archseer, it’s currently confusing because the same message is displayed for two different clipboards.

Suggestions:

  • Make selecting with the mouse yank into the system clipboard (what the message currently says it does)
  • Change the message so it tells you where it is actually yanked to (and, ideally, that you have to use the middle mouse button to paste it)

Which would you think is best? (I’d likely go with the first as it seems less confusing to me. It would actually be least confusing if there the middle mouse button clipboard and the system clipboard were merged so that only the latter was used.)

@the-mikedavis
Copy link
Member

Let's close this in favor of #2615 which has more discussion on the same lines.

@the-mikedavis the-mikedavis closed this as not planned Won't fix, can't repro, duplicate, stale Jul 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-helix-term Area: Helix term improvements C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

3 participants