# 9.2. Edit

Undo

  Undo an editor operation.

Redo

  Redo an editor operation.

Copy

  Copies a selection to the clipboard. The copied data is a MIME encapsulated message of the binary data.

Paste

  Pastes the contents of the clipboard into the document at the cursor location. If the contents is recognized as a MIME message made by KHexEdit itself, then this message will be decoded. Otherwise the data is written directly into the editor.

Cut

  Deletes a selected area. The selection is copied to the clipboard first as a MIME encapsulated message (see above).

Special

  This submenu contains copy and paste options. Copy as text (primary field) copies the current selection as formatted text to the clipboard. Only the data of the primary field is copied. Copy as text (all fields) copies the current selection, as well as the associated data in the offset column to the clipboard. Paste into new file pastes the clipboard contents to a new file while Paste into new window pastes the clipboard contents to a new file in a new window.

Select All

  Selects the entire document.

Unselect

  Removes a selection if present.

Goto Offset

  Opens the "Goto Offset" dialog box.

Find

  Opens the "Find" dialog box.

Find Again

  Locates the next match for the pattern defined in the "Find" dialog box. If no pattern has been defined, the user is prompted with a warning dialog box.

Find and Replace

  Opens the "Find and Replace" dialog box.

Insert Pattern

  Opens the "Insert Pattern" dialog box.