Hyper: Right click the selection to automatically insert selected text

Created on 21 Nov 2017  路  2Comments  路  Source: vercel/hyper

  • [x] I am on the latest Hyper.app version
  • [x] I have searched the issues of this repo and believe that this is not a duplicate
  • OS version and name: Windows 10
  • Hyper.app version: 2.1.1 (stable)
  • Link of a Gist with the contents of your .hyper.js: default config
  • Relevant information from devtools _(CMD+ALT+I on macOS, CTRL+SHIFT+I elsewhere)_: none
  • The issue is reproducible in vanilla Hyper.app: Is Vanilla

Issue

Most of the linux terminal emulators I've worked with and cmder on windows automatically insert the selected text when right clicking the selection. From what I can tell, hyper.js requires two right clicks (one for copy and one for paste). I've tried setting copyOnSelect: true in the .hyper.js config file, but it didn't help.

Is this something that would be considered for implementation? Or, if not, what would be the simplest way to implement it via a plugin?

Most helpful comment

I think there is a misunderstanding of what the OP is talking about. Currently even with quickEdit enabled, you need two clicks to paste text. The first click clears the selected text, and the second actually pastes it. This is even referenced in the comment for the quickEdit option.

// if `true` (without backticks and without quotes), on right click selected text will be copied or pasted if no
// selection is present (`true` by default on Windows and disables the context menu feature)

It would be nice if there was an option to clear the selection and paste at the same time in a single click. This is how other terminals I have used function. Also if you have copyOnSelect enabled, it doesn't really make sense to have right click copy the text anyway.

All 2 comments

You want quickEdit: true,

I think there is a misunderstanding of what the OP is talking about. Currently even with quickEdit enabled, you need two clicks to paste text. The first click clears the selected text, and the second actually pastes it. This is even referenced in the comment for the quickEdit option.

// if `true` (without backticks and without quotes), on right click selected text will be copied or pasted if no
// selection is present (`true` by default on Windows and disables the context menu feature)

It would be nice if there was an option to clear the selection and paste at the same time in a single click. This is how other terminals I have used function. Also if you have copyOnSelect enabled, it doesn't really make sense to have right click copy the text anyway.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

anthonyettinger picture anthonyettinger  路  3Comments

yvan-sraka picture yvan-sraka  路  3Comments

leo picture leo  路  3Comments

laur1s picture laur1s  路  3Comments

ghost picture ghost  路  3Comments