clink icon indicating copy to clipboard operation
clink copied to clipboard

Unable to paste more than 1024 characters using CTRL-V

Open sunsided opened this issue 8 years ago • 3 comments

On Windows 10's non-legacy console (where CTRL-V already works), clink appears to prevent pasting text longer than 1024 characters by cropping it to that length.

Pasting using right click in the console works fine, as does pasting in ConEmu (which appears to paste character by character).

For example, copying this text from Wikipedia's Cut, copy, and paste article

In human–computer interaction, cut, copy and paste are related commands that offer a user-interface interprocess communication technique for transferring data. The cut command removes the selected data from its original position, while the copy command creates a duplicate; in both cases the selected data is kept in a temporary storage tool called the clipboard. The data in the clipboard is later inserted in the position where the paste command is issued.

The command names are an interface metaphor based on the physical procedure used in manuscript editing to create a page layout.

This interaction technique has close associations with related techniques in graphical user interfaces that use pointing devices such as a computer mouse (by drag and drop, for example).

The capability to replicate information with ease, changing it between contexts and applications, involves privacy concerns because of the risks of disclosure when handling sensitive information. Terms like cloning, copy forward, carry forward, or re-use refer to the dissemination of such information through documents, and may be subject to regulation by administrative bodies.

results in

In human–computer interaction, cut, copy and paste are related commands that offer a user-interface interprocess communication technique for transferring data. The cut command removes the selected data from its original position, while the copy command creates a duplicate; in both cases the selected data is kept in a temporary storage tool called the clipboard. The data in the clipboard is later inserted in the position where the paste command is issued. The command names are an interface metaphor based on the physical procedure used in manuscript editing to create a page layout. This interaction technique has close associations with related techniques in graphical user interfaces that use pointing devices such as a computer mouse (by drag and drop, for example). The capability to replicate information with ease, changing it between contexts and applications, involves privacy concerns because of the risks of disclosure when handling sensitive information. Terms like cloning, copy forward, carry fo

which appears to be 1013 characters (in default line break to spaces mode).

I guess, this line in the paste_from_clipboard code is the problem.

We're handling Kubernetes secrets on the command line. Since they are currently base 64 encoded JSON, they are easily longer than that.

sunsided avatar Apr 05 '17 10:04 sunsided

@sunsided - i had copy paste issues - thought it was a windows thing until I realized I was using "ctrl+v" on the cmd prompt. did you manage to fix this on your local instance? [ I do not have the right build env to download this code on my end at the moment ]

thanks in advance!

sadaaithal avatar Jul 09 '20 18:07 sadaaithal

I fixed it by using Linux now. :see_no_evil:

sunsided avatar Jul 09 '20 19:07 sunsided

There's no limit in 1.0.0a1 or in the chrisant996/clink fork.

chrisant996 avatar Sep 25 '20 02:09 chrisant996