5.11.2.2 Edit commands

The menu casual-editkit-edit-tmenu contains commands and sub-menus related to editing text.

images/casual-editkit-edit-screenshot

Depending on the buffer mode, text can be operated on with different granularity as words, sentences, paragraphs, balanced expressions, functions (defuns). The following sub-menus illustrate what operations can be done on the different text granularity.

Mark› (casual-editkit-mark-tmenu)

Text can be marked with different granularity with this menu. Note that the menu item “d Defun” is only supported for modes derived from prog-mode.

images/casual-editkit-mark-screenshot

Copy› (casual-editkit-copy-tmenu)

Text can be copied with different granularity with this menu.

images/casual-editkit-copy-screenshot

Kill (Cut)› (casual-editkit-kill-tmenu)

Text can be cut (killed) with different granularity with this menu.

images/casual-editkit-kill-screenshot

Move› (casual-editkit-move-tmenu)

Text can be moved forwards or backwards with different granularity with this menu. Note that selecting a granularity will raise another menu to allow selection of direction (forward, backward) the text is to be moved. To enable repeat operation, that menu is persisted and must be dismissed either with either C-q (dismiss all) or C-g (dismiss to previous menu).

images/casual-editkit-move-screenshot

If “w Word›” is selected, then the following menu casual-editkit-move-word-tmenu is displayed.

images/casual-editkit-move-word-screenshot

Similar menus for moving a sentence (casual-editkit-move-sentence-tmenu) and balanced expression (casual-editkit-move-sexp-tmenu) are available.

Transpose› (casual-editkit-transpose-tmenu)

Text can be transposed with different granularity with this menu.

images/casual-editkit-transpose-screenshot

Transform› (casual-editkit-transform-tmenu)

Text can be transformed with different granularity with this menu. Supported transformations are capitalization, lower and upper casing of text.

images/casual-editkit-transform-screenshot

Delete› (casual-editkit-delete-tmenu)

Operations involving text deletion are included in this menu, including joining lines and zapping to a character.

images/casual-editkit-delete-screenshot

Sort› (casual-editkit-sort-tmenu)

Sorting operations on different sections of text are supported, as well as support for sorting off a field. Press ? or C-h to get help for a specific command.

images/casual-editkit-sort-screenshot

Reformat› (casual-editkit-reformat-tmenu)

Commands to reformat text such as filling, centering, and repunctuating sentences are provided here. Press ? or C-h to get help for a specific command.

images/casual-editkit-reformat-screenshot

Rectangle› (casual-editkit-rectangle-tmenu)

This menu offers all the rectangle commands. It is packaged as a sub-menu of casual-editkit-edit-tmenu.

images/casual-editkit-rectangle-screenshot

Users wishing more direct access to this menu can bind casual-editkit-rectangle-tmenu as shown in the install section.