Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.

Linux: Middleclick paste #1068

Open
topaxi opened this issue Dec 4, 2017 · 5 comments
Open

Linux: Middleclick paste #1068

topaxi opened this issue Dec 4, 2017 · 5 comments

Comments

@topaxi
Copy link

topaxi commented Dec 4, 2017

It would be very nice to support Linux-like middleclick paste. I'm very used to middleclick paste the current clipboard contents.

Behavior in Terminals and GVIM:

  • Command mode: Insert directly on mouse-position
  • Insert mode: Insert on textcursor-position
@badosu
Copy link
Collaborator

badosu commented Dec 4, 2017

@topaxi As a workaround you can use the * register.

  • In insert mode: <C-R>*
  • In normal mode: "*p

@bryphe
Copy link
Member

bryphe commented Dec 4, 2017

Thanks for the workaround, @badosu !

Thinking of #973 - do you think this makes sense to be something we provide as part of our default configuration, on Linux?

@badosu
Copy link
Collaborator

badosu commented Dec 4, 2017

@badosu
Copy link
Collaborator

badosu commented Dec 4, 2017

@bryphe This is not something actually related to Vim, except the integration from X11 to the * register so I would not say it's related to #973.

This is the behaviour expected for any app that runs under X11 (that probably will or should not be expected to work when Wayland gets mainstream usage), and I was surprised that electron did not support it by default.

Anyway, if it's an easy enough fix should make the linux experience a lot better.

@badosu
Copy link
Collaborator

badosu commented Dec 4, 2017

Just one thing that is important to keep in mind, usually there are two registers the normal clipboard (C-C, C-V) and this 'selection clipboard'.

The solution integrated by atom does not seem to be the best one, so I recommend atom/atom#3027 as a better reference.

There's an even better way, that is to use the same thing that Vim uses (the * register). If it's not supported by your vim configuration then it probably should not on Oni.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants