paste

Is there a way to allow paste from the clipboard using Shift-Insert on top of CTRL-V?

I know that you can use the context menu using a right-mouse-click in a control to choose to cut, copy, paste, etc. I've also noticed that you can use the windows keyboard shortcuts CTRL-C for Copy and CTRL-V for Paste. Windows supports native CTRL-Insert (for copy) and SHIFT-Insert (for paste). However, within Flex, it seems these do...

How to Delete (desired text), delete (undesired text), and paste (desired text) in Vim

I don't know if its a retarded problem but its a funny dilemma. When I want to delete text that I want to place somewhere else, but that place has other bunch of text that I don't want, I would delete that text, but in the process I copy a new clipboard so the previously deleted text disappear. Any suggestions to solve this? ...

How to get a clipboard paste notification and provide my own data?

For a small utility I am writing (.NET, C#), I want to monitor clipboard copy operations and clipboard paste operations. My idea is to provide my own data when pasting into an arbitrary application. The monitoring of a copy operation can be easily done by using a clipboard viewer. Something that seems much more advanced to me is to wr...

UITextView paste method override

Hi All I really want to be able to detect a paste event in a UITextView, however it appears this cannot be done. I originally tried subclassing a UITextView and overriding the paste: method, but it never gets called on a paste event. Has anyone been able to do this? A previous question on the same ilk didn't have an answer back in Aug...

Override paste: to format text

Hello, I would like to capture a string being pasted into a control and apply some custom formatting to the string before being pasted. How is this possible? Thanks! ...

How do I select a chunk of text and paste it to the current cursor position w/o using mouse in vim?

I want to give up using mouse for selecting and pasting chunks of text within a buffer. Whats the most efficient way to do this with just kb? I mean navigate to arbitrary line, copy the substring, return to the previous position and paste. ...

Have a Linux shell script stuff a string into a Windows user's copy/paste buffer

We have a script right now which our Windows users run on a Linux host by way of putty. From time to time the script produces a string that the user must copy and paste into a Windows application. Without running a full-blown X display server on the Windows box, I'd like to modify the script so that the string is populated in the Windo...

Vim: add paste buffer every time certain text is found

In Vim I am trying to paste a few lines: PROC SQL; CONNECT TO DB2(DSN=test); CREATE TABLE test AS SELECT * FROM CONNECTION TO DB2 ( above every line starting with "select" and ); quit; below every line that ends with "FOR FETCH ONLY" Is there a way to use the paste buffer? Like %s/^select/(a!)\rselect/ so that it once...

Java Copy/Paste org.w3c.dom.Node between two running copies of the same program

I have a program that shows a tree representation of an XML file. Using a number of sources online I have Copy/Paste within a single instance of the program working. I am using the system Clipboard. What I need though is to be able to copy a node from one instance of the program and paste to a different instance of the same program. ...

How do I keep formatting when copying from gedit into open office?

I am editing octave files in gedit, and it does a nice job highlighting them. However, when I try to copy and paste the code into Open Office, it loses all formatting. Even when I try paste > special, it still doesn't work. Is there any way to do this without having to manually go through all my code highlighting keywords? ...

How can I know user is typing or pasting?

In text fields of my JSP, I wish to know whether user is typing in the data or just pasting. How can I identify this using javascript ? EDIT: As per Andy's answer I know how I can go about it, but still curios how those guys wrote onpaste event. ...

VIM Replace word with contents of paste buffer?

I need to do a bunch of word replacements in a file and want to do it with a vi command, not an EX command such as :%s///g. I know that this is the typical way one replaces the word at the current cursor position: cw<text><esc> but is there a way to do this with the contents of the unnamed register as the replacement text and without ove...

Disable copy paste in SWT Text Component

Hi I'm using SWT Text component. Do someone know how can I prevent copy/paste operation for the Text component. Thanks Subha ...

How to detect a Paste operation in a textbox?

I want to detect when the user pasted something into the textbox. I want to detect it whether the user used the mouse or keyboard. This is vb6 ...

jQuery prevent paste to iframe designmode from MS Word

I've seen some questions on catching the paste event. This looks helpful. But I want to prevent paste on a designmode iframe from happening when the pasted content is not plaintext, but comes from MS Word or other WYSIWYG editor. What is Your experience on that? I suppose I should catch the event (bind to iframe or to its body?) and lo...

WPF DataGrid extended "copy and paste"

Hi, How can I make the WPF DataGrid have some sort of improved "copy and paste" where I can select a single cell , copy using Ctrl-C , select a bunch of cells of columns and paste using Ctrl-V ??? So for example...in the image bellow ...I want to be able to copy the "Tech" word to all the highlighted cells just by a Ctrl-C on tech, a s...

Unix: how to have delimiter as "\t&\t" in paste-tool?

Results are in clean files. I want to get them to latex-table format with paste. So how can I have a delimiter "\t&\t"? or is there some Latex tool? Pasting Columnwise to have \t&\t delimiter $ paste -d'\t\&\t' d d_powered_-2 rad 5.0 400.0&384.5 7.5 204.1&184.5 10.0 100.0&115.5 15.0 44.4&58.2 20.0 25.0&45.0 25....

How to paste text from one app to another using Cocoa?

I have read about NSPasteBoard in the Apple documentation, and how it allows for applications to write into the PasteBoard and allow other applications to read that text and use it. Could someone tell me how to paste text from am application (that sits in the status bar) into a NSTextField that is inside a different application. What ...

MS Access: Copy/Paste selected record programmatically?

Sorry for the lengthy introduction but I think it best to explain the context of my question. I have an Access 2003 database in which users need to create new records based upon pre-existing records already in the table. Some of the users of the database are more familiar with computers in general and create a new record by ... 1. Selec...

Copy from a password field in form

I was designing a form which asks the user to type in a password and then to verify again in the next field. I noticed however, that if I copy and paste from the first password field to the other, the values are not same. It seems my Firefox running on Mac OS X, copies the asterisk graphic instead, which has the value '\x95' Is it poss...