4.3. The Edit Menu

This menu provides all the program's editing functions, such as selecting and searching or replacing text according to certain patterns.

Undo/Redo

Use this to undo any unwanted changes and to restore the original text after an undo step. These functions are also available using the keyboard shortcuts Ctrl-Z and Ctrl-Shift-Z.

Cut (Ctrl-X)

This cuts the currently selected text region.

Copy (Ctrl-C)

This copies the selected text region to the clipboard.

Paste (Ctrl-V)

Use this to insert text from the clipboard. You can also paste text by middle-clicking.

Select All (Ctrl-A)

This selects all the text in a document, for example, to copy and paste it into another document.

Deselect (Ctrl-Shift-A)

This menu item deselects a previously selected text area. You can do the same by left-clicking in the document window.

Block Selection Mode (Ctrl-Shift-B)

KWrite not only supports marking and removing horizontal selections (lines or paragraphs), but also vertical selections (any desired text block). This item toggles the block selection mode. Text marked in this way can be moved to the clipboard using Copy or Cut.

Overwrite Mode (Ins)

This changes the program's input mode. By default, KWrite inserts new text at the current cursor position. Selecting this menu item switches the editing mode so any existing text is overwritten.

Find… (Ctrl-F), Find Next (F3), Find Previous (Shift-F3), Replace… (Ctrl-R)

In the dialog that opens, enter a search string or a regular expression and define the search direction, the starting point, and other details. To go from one match of the search term to the next, select Find Next. To go to a previous match of the search term, select Find Previous. To replace a search term with another string, use Replace….

Go to Line… (Ctrl-G)

To jump to a particular line in the document, select this menu item, enter the line number in the dialog that opens, then confirm with OK.