vercel / hyper

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

Copy with ctrl+c only when highlighted #3798

Open jacobtomlinson opened 5 years ago

jacobtomlinson commented 5 years ago

Issue

If I highlight some text and hit ctrl+c I would like to copy the text to the clipboard. If no text is highlighted I would like ctrl+c to interrupt as normal.

This seems to be the way the terminal works in VSCode and I am trying to make Hyper consistent with that.

Is it possible to configure this functionality?

r-tae commented 4 years ago

I agree with @jacobtomlinson, Windows Terminal also behaves this way and Hyper should definitely follow the standard they're setting https://github.com/microsoft/terminal/issues/839#issuecomment-492892232

Benjamin-Connelly commented 2 years ago

+1

horizone commented 1 year ago

Oh yes, the possibility to use Ctrl-C for copy, only when something is highlighted would be what a user expects. There is no real risk for accidentally stopping a program because one rarely tries to copy something as programs are running in the terminal anyway, only when the prompt is ready to have something pasted into, you tend to copy and paste stuff.