Questions tagged [copy-paste]

For issues relating to cut, copy, and paste operations.

The term "copy-and-paste" refers to the popular, simple method of reproducing text or other data from a source to a destination. It differs from cut and paste in that the original source text or data does not get deleted or removed. The popularity of this method stems from its simplicity and the ease with which users can move data between various applications visually – without resorting to permanent storage.

Source: Wikipedia

3477 questions
9
votes
1 answer

Java: use clipboard to copy-paste java objects between different instances of same application

I am trying to implement copy-paste of objects between different instances of same application. Currently it works only in one application (I mean, copy and paste in the same instance of application), but does not work between different…
Dmitry Frank
  • 10,417
  • 10
  • 64
  • 114
9
votes
3 answers

How to automatically append text to text copied with JavaScript

In JavaScript, how can you select text on a website, copy it (by Control+C, Command+C, or Edit Copy) and have JavaScript append a line or two to the clipboard so when the user pastes, the content they copied is shown as well as the extra line? Also,…
Jared
9
votes
3 answers

emacs - save current buffer list to a text file

Quite often I need to get a simple text copy of my currently opened files. The reasons are usually: I want to send the list to a colleague I want to document whatever I am working on (usually in an org document) I want to act on one of my currently…
blueFast
  • 41,341
  • 63
  • 198
  • 344
8
votes
1 answer

Copying text from browser with line breaks in Android

In my app, a user has to copy required text from browser and paste it to the textview. But copy'n'pasting this way removes most of line breaks. How do I fix it?
user1049280
  • 5,176
  • 8
  • 35
  • 52
8
votes
3 answers

How to optimize the HTML text copied from MS Word with GWT?

I'm having a problem with RichTextAreas, so my problem is: when i paste into RichTextArea the copied text from Ms Word or OpenOffice,it keeps all text styles and this is perfect, But one bad thing is it's HTML text is huge enough :( . And…
Jama A.
  • 15,680
  • 10
  • 55
  • 88
8
votes
6 answers

Simple copy paste function in JavaScript

How I can make simple copy and paste for text in JavaScript? I would like to achieve that when I select some text in a textarea, then I can click on a button to copy it, then I can go to another page right click in another textarea and choose paste.
Osama khodroj
  • 1,230
  • 2
  • 23
  • 29
8
votes
2 answers

GAC - To add an assembly to the GAC, drag and drop works, but copy and paste doesn't? Why?

I would like to know why drag and drop works, and copy paste doesn't. What is happening with a drag and drop that isn't happening with a copy and paste?
richard
  • 12,263
  • 23
  • 95
  • 151
8
votes
7 answers

How to Cut and Paste from Mac to Windows in Windows Remote Desktop RDC

When using Microsoft Remote Desktop on Mac, Command+V doe not work to paste into the RDP session. On Mac, I use Command+C to copy the password, but when I switch over to the RDP session and click Command+V, nothing happens. My questions is, how do…
Saeed D.
  • 1,125
  • 1
  • 11
  • 23
8
votes
3 answers

How to modify pasted data ? Jquery

I followed this question JavaScript get clipboard data on paste event (Cross browser) to get the pasted data from the clipboard, but I used jquery instead. Now that I got the data, I removed all html tag. But I don't know how to paste it. element…
TSR
  • 17,242
  • 27
  • 93
  • 197
8
votes
1 answer

Disable Chrome paste menu on text inputs while on a touch screen

How to disable this annoying contextmenu in chrome while on a touch screen. This pops up on selection/on long tap of any input while i have some text copied. Am developing an app using CEFSharp (Chromium Embedded Framework) and its going to be…
8
votes
3 answers

Google Chrome Extensions: How to detect Copy action (Ctrl-C and Edit-Copy)?

How might I detect that a user has selected and copied some content in the currently active tab in a Google Chrome Extension? It appears that there are no suitable Events that deal with the Clipboard in chrome.tabs or chrome.windows. Is there a way…
bjoern
  • 283
  • 3
  • 9
8
votes
3 answers

How to copy text in Emacs Evil-Mode without overwriting the clipboard?

This post described how to do it in Vim, where one prefixes their copy command with " + (ie k). How can I do this in Emacs Evil-Mode? For example, I tried the following: yy - copy first line to clipboard jjj - move to some new…
modulitos
  • 14,737
  • 16
  • 67
  • 110
8
votes
3 answers

In Vim, how to cut in block mode but paste in normal mode, inserting as new lines?

Every now and then I run into this type of editing problem in Vim. I have text formatting in a table that I want to turn into a list. Before: AAA BBB AAA BBB AAA BBB CCC DDD CCC DDD CCC…
hippietrail
  • 15,848
  • 18
  • 99
  • 158
8
votes
6 answers

Copy entire content from a folder to another in shell script

I'm trying every single code to copy all things inside a folder to another but i can't do it! I'm trying to use the code in my terminal emulator in my android device because i need that code in my application. This is the last code i use that…
David_D
  • 1,404
  • 4
  • 31
  • 65
8
votes
1 answer

How to make NSTextFieldCell Accept Keyboard copy/paste(cmd+c / cmd+v)

I am writing an editable NSTextFieldCell in a NSTableColumn, and everything goes well. But I found that my cell can accept the mouse right click copy/paste while does not respond to the keyboard copy/paste (cmd+c / cmd+v). Could someone please tell…