vercel / hyper

A terminal built on web technologies
https://hyper.is
MIT License
43.27k stars 3.52k forks source link

Middle-clicking on selected text should paste it to the current input #1023

Open perry-mitchell opened 7 years ago

perry-mitchell commented 7 years ago

Issue

In other terminals middle-clicking pastes selected content, wherever you click in the terminal. Hyper will paste only if the middle click does not occur on top of the selected text:

Hyperterm middle click failing

When middle-clicking on the text itself, nothing happens.

jamo commented 7 years ago

Does the normal paste command (cmd+v etc.) work -- it might require setting copyOnSelect: true in ~/.hyper.js

kleinfreund commented 7 years ago

@jamo When hovering over selected text, pressing the mouse wheel does nothing no matter what copyOnSelect is set to.

However, CtrlShiftV works while hovering over selected text when copyOnSelect is set to true, not when set to false.

(I’m on Ubuntu 16.04, too. Same Hyper version)

perry-mitchell commented 7 years ago

This also occurs when middle-clicking anywhere on the same line, even if it's not exactly on the text.

ppot commented 7 years ago

@perry-mitchell I will do a PR you will be able to test it when made

working-name commented 7 years ago

Any update on this? Middle mouse click for paste is kinda staple in most terminals... got used to its convenience, hoping I can recreate it here too. Thank you!

philcaonz commented 6 years ago

I've made a PR for middle click support https://github.com/zeit/hyper/pull/3069

lechat commented 6 years ago

Any chance on reviewing and merging #3069?

thetaurean commented 6 years ago

+1, this is a greatly needed feature

harmin-parra commented 2 years ago

Is it possible to have the choice between the middle-button or the right-button click for pasting ?

Konnichy commented 1 year ago

Hello, Any news on this topic? The PR is "Awaiting Response" since 2019.

ixqbar commented 1 year ago

+1