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

Paste with Shift+Insert doesn't work #4550

Closed
jabbalaci opened this issue Nov 8, 2023 · 3 comments
Closed

Paste with Shift+Insert doesn't work #4550

jabbalaci opened this issue Nov 8, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@jabbalaci
Copy link

What Operating System(s) are you seeing this problem on?

Linux X11

Which Wayland compositor or X11 Window manager(s) are you using?

XFCE

WezTerm version

wezterm 20230712-072601-f4abf8fd

Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?

No, and I'll explain why below

Describe the bug

Pasting with Shift+Insert doesn't work.

To Reproduce

with vim

  • Open vim, type in a text, select it and yank it.
  • Open gedit, press Ctrl-v (works), then press Shift+Insert (should also work).
  • Go back to vim, and press p in normal mode (paste). It should work. Go to insert mode and press Ctrl-Shift-v : also works. In insert mode press Shift+Insert : nothing happens.

with micro

It's simpler than vim.

  • Write in a text, select it and press Ctrl-c . Go to a new line and press Ctrl-v : works. Press Shift-Insert : you don't get the same text.
  • Start gedit. There pasting with Ctrl-v and Shift-Insert work.

Configuration

I renamed my config file and launched wezterm with zero configuration.

Expected Behavior

With Ctrl-v and Shift-Insert I would like to paste the same text. If Ctrl-v works, Shift-Insert should also work.

Logs

Debug Overlay
wezterm version: 20230712-072601-f4abf8fd x86_64-unknown-linux-gnu
Window Environment: X11 Xfwm4
OpenGL: Mesa Intel(R) HD Graphics 4600 (HSW GT2) 4.6 (Compatibility Profile) Mesa 23.1.9-manjaro1.1

Anything else?

I'm trying to move from Konsole to wezterm. I tried it in Konsole, there it works well.

@jabbalaci jabbalaci added the bug Something isn't working label Nov 8, 2023
@bew
Copy link
Contributor

bew commented Nov 8, 2023

On X11 there is the clipboard buffer (usually controlled through Ctrl-c/v/x), and there is the primary selection.
The X11 primary selection is normally automatically filled when you select some text in an application, and then middle mouse click or Shift-Insert is used to paste from that primary selection.
Read more about the X selections at https://superuser.com/a/90357

If you want to paste from the Clipboard when you do Shift-Insert, you'll need to configure the Shift-Insert keybind in your config using the PasteFrom action

@jabbalaci
Copy link
Author

Thank you! After adding the following line it works as I expected:

{ key = "Insert", mods = "SHIFT", action = act.PasteFrom("Clipboard") },

Copy link
Contributor

github-actions bot commented Dec 9, 2023

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants