You are not logged in.

#1 2020-12-12 11:50:22

mikael
Member
From: Slovakia
Registered: 2011-05-22
Posts: 30

Ctrl+v not pasting the same as mouse middle click

Hi, I don't know where's the issue.
Wanna paste in Chromium 87.0.4280.88 Arch Linux from PHPstorm, but Ctrl+v is pasting something else not what I selected and copied (Ctrl+c) before. Mouse middle click paste what I copied.

WM

awesome v4.3 (Too long)
• Compiled against Lua 5.3.5 (running with Lua 5.3)
• D-Bus support: ✔
• execinfo support: ✔
• xcb-randr version: 1.6
• LGI version: 0.9.2

X.Org X Server 1.20.10

Last edited by mikael (2020-12-12 13:03:06)

Offline

#2 2020-12-12 12:34:56

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,656

Online

#3 2020-12-12 13:05:06

mikael
Member
From: Slovakia
Registered: 2011-05-22
Posts: 30

Re: Ctrl+v not pasting the same as mouse middle click

Thanks, already read. under "copied" I ment Ctrl+c

Offline

#4 2020-12-12 13:17:30

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,656

Re: Ctrl+v not pasting the same as mouse middle click

That doesn't mean the client interprets that shortcut the way you may expect.
The context is therefore relevant (notbaly if you previsouly selected with the mouse)
You can also inspect the present buffer contents w/ "xclip -o -selection …"

Online

#5 2020-12-12 13:47:12

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,513
Website

Re: Ctrl+v not pasting the same as mouse middle click

While there is no universal standard, it is very common for selecting to copy to the primary selection and middle click to paste from the primary selection.  Ctrl+C and Ctrl+V are less common, but still fairly commonly bound to copying and pasting to the clipboard selection which is a different buffer than the one used by selecting / middle-click in most programs (unless you run a daemon that syncronizes the two buffers).

So what you are describing is that you are pasting in Chromium from the clipboard selection with Ctrl-V and pasting from the primary selection with middle click.  I've not used chromium in a bit, but I'm pretty sure this is it's behavior with those two actions.  Your problem is at the source end: I don't know anything about PHPStorm, but it very well may use only one of the two selections, or neither, and / or it may or may not respond to Ctrl+C or selecting text.

So as noted above, use a tool like xclip or xsel to check what is actually in each of the selection buffers after you attempt to copy, and focus your troubleshooting on the source end (PHPStorm) not on the destination (Chromium) as that's the limiting step.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2020-12-12 21:26:02

GSMiller
Member
Registered: 2020-11-23
Posts: 75

Re: Ctrl+v not pasting the same as mouse middle click

Excellent words, Trilby!

mikael wrote:

Thanks, already read. under "copied" I ment Ctrl+c

Where did you copy from? Some applications do not like to use Ctrl-C.
It is very common (also on Windows) but not all applications use it.
It is possible that you need to copy with primary selection, and middle click to paste. But I think Chromium does not like the primary selection.


A dog is a man's best friend.

Offline

Board footer

Powered by FluxBB