Cut and paste
In
computing, a user-interface paradigm for a means of moving
text or other
data from a source to a destination. This paradigm is closely associated with graphical user interfaces that use pointing devices.
- The text to be moved is selected by some method, typically by dragging over the text with the pointing device.
- A cut operation is performed by key combination, menu, or other means.
- The visible effect of the cut is to remove the text immediately from its location.
- Conceptually, the text has been moved to a location often called the clipboard. The clipboard is typically invisible.
- A location for insertion is selected by some method, typically by clicking at the desired insertion point.
- A paste operation is performed which visible inserts the clipboard text at the insertion point.
- The paste operation is nondestructive; the text remains in the clipboard and additional copies can be inserted at other points.
When
cut and
paste are provided, a nondestructive operation called
copy is usually provided as well;
copy places a copy of the selected text in the clipboard without removing it from its original location.
The clipboard is usually not displayed, because the operations of cutting and pasting, while actually independent, are usually performed in quick succession, and the user needs no assistance in understanding the operation or maintaining mental context.
The cut-and-paste paradigm was widely popularized by Apple in the Lisa (1981) and Macintosh (1984) operating systems and applications. It was mapped to a key combination consisting of a special control key held down while typing the letters X (for cut), C (for copy), and V (for paste). Similar key combinations were later adopted by Microsoft in Windows.
Cut and paste are very frequently performed operations. It is customary to provide several methods for performing them, such as a key combination, a pulldown menu, and a toolbar button.
As of this writing (2003), the cut-and-paste paradigm is so universal as to be taken for granted, and it may be instructive to compare a competing paradigm, popular in some early, highly successful "easy-to-use" applications:
- Initially, no text is selected.
- The user initiates the operation by selecting a move command in some manner.
- The system displays a prompt such as "Move what?"
- The system enters a modal state in which the only actions available to the user are either to select text or cancel the move operation.
- The user selects the text in some manner.
- The system displays a prompt "To where?"
- The system enters a modal state in which the only actions available to the user are either to indicate an insertion point or cancel the move operation.
- The user indicates the insertion point and confirms the move operation.
- The effects of the move are displayed.
This paradigm uses an "verb-object" sequence—the user issues a
move command
before selecting the text to move. It makes use of modal states to guide the user through the complete move operation. In contrast, cut and paste uses an object-verb sequence and is nonmodal; the operations of selecting, cutting, marking the insertion point, and pasting are independent and do not need to be performed in sequence.
Cut and paste programming is a derogatory term for a bad programming practice.
The term "cut and paste" of course derives from the traditional practice in manuscript editing in which paragraphs were literally cut from a page with scissors and physically pasted onto another page. This was standard practice as late as the 1960s. "Editing scissors" with blades long enough to cut an 8-1/2"-wide page were available at stationery stores. The advent of photocopiers made the practice easier and more flexible.
Compare copy and paste.
See also: Control key.