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

Fail to use system clipboard #8713

Closed
Luv-Ray opened this issue Nov 4, 2023 · 10 comments
Closed

Fail to use system clipboard #8713

Luv-Ray opened this issue Nov 4, 2023 · 10 comments
Labels
C-bug Category: This is a bug

Comments

@Luv-Ray
Copy link
Contributor

Luv-Ray commented Nov 4, 2023

Summary

If I copy something from outside and paste into helix, it works normally.

If I copy something in helix into clipboard (<space>Y), the copy will sucess (I can use copied text outside), but I can't paste what I have copied from clipboard.

Clipboard provider: xclip
System clipboard provider: xclip

Reproduction Steps

I tried this:

  1. hx, edit a text
  2. use <space>Y copy something into clipboard
  3. i into insert mode
  4. use ctrl + shift + v, and can't paste what I have copied

Helix log

Noting gets logged when i run these commands.

Platform

Arch Linux

Terminal Emulator

Konsole

Installation Method

Pacman

Helix Version

helix 23.10

@Luv-Ray Luv-Ray added the C-bug Category: This is a bug label Nov 4, 2023
@Luv-Ray Luv-Ray closed this as completed Nov 4, 2023
@Luv-Ray Luv-Ray reopened this Nov 4, 2023
@woojiq
Copy link
Contributor

woojiq commented Nov 4, 2023

In my case I need to paste in the insert mode with ctrl-v instead of ctrl-shift-v (I'm using wezterm). Try pasting selected in the normal mode with <space>p, does it work?

@Luv-Ray
Copy link
Contributor Author

Luv-Ray commented Nov 4, 2023

In my case I need to paste in the insert mode with ctrl-v instead of ctrl-shift-v (I'm using wezterm).

I can use ctrl-shift-v to paste things from outside, and ctrl-v do not work.

Try pasting selected in the normal mode with <space>p, does it work?

<space>p works normally, and ctrl-shift-v not.

@pascalkuthe
Copy link
Member

This should be fixed on master by #8703

@Luv-Ray
Copy link
Contributor Author

Luv-Ray commented Nov 4, 2023

Does this mean I just need to wait for a patch and close the issue?

@pascalkuthe
Copy link
Member

you can just use the master branch it's pretty stable

@Luv-Ray Luv-Ray closed this as completed Nov 4, 2023
@Luv-Ray
Copy link
Contributor Author

Luv-Ray commented Nov 10, 2023

Now I'm using the master branch

$ git describe
23.10-39-g6ab774da
$ hx -V
helix 23.10 (6ab774da)

But the problem still exists, ctrl-shift-v can't paste text yanked by <space>Y.

@Luv-Ray Luv-Ray reopened this Nov 10, 2023
@the-mikedavis
Copy link
Member

This is probably a problem with the clipboard provider instead. Are you running X11 or Wayland? Can you copy/paste with xclip outside of Helix?

@Luv-Ray
Copy link
Contributor Author

Luv-Ray commented Nov 13, 2023

I'm using Wayland.
After running echo "test" | xclip -selection clipboard, I can paste "test" in browser, but can't paste "test" in Konsole.
Maybe the cause of the problem is Konsole?

@the-mikedavis
Copy link
Member

If you're using Wayland then you will need wl-clipboard (wl-copy & wl-paste) rather than xclip - xclip is only for X11 as far as I know

@Luv-Ray
Copy link
Contributor Author

Luv-Ray commented Nov 13, 2023

It works well in wl-clipboard, thanks!

@Luv-Ray Luv-Ray closed this as completed Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

4 participants