There are three ways to edit text in CUTE. First you can use keyboard commands directly or keyboard macros. Second you can use some CUTE commands, which you type in the command box beside the toolbar. At Last you can write python scripts, which is discussed in the Programming CUTE chapter.
Each CUTE command can be made undone by typing Ctrl+Z. For a list of supported editing commands please hava a look at the shortcut dialog.
Each CUTE command starts with a specific string, for example if you want to execute an external program, you have to type :!program. “:!” is the start string, indicating that command is an execution command (nobody dies ;-)). More CUTE commands are listed below:
filter selected text with given program, example “!indent”, the selection will be indented
insert output of given program at cursor position
search text forward, arguments if re, cs, word or wrap are given the search will match a regular expression, will be case sensitve, will search a word or will wrap around lines, example: “/switch(.*) re”, will find a case statement in C
same as above, but search backward
jump to given line number, example “:22”
run a python command, example “:py clear()”, will clear current view, as clear() is a built-in CUTE/python function
same as above
this is a sed-like substitution command, options are g or gc, g will replace all found strings, gc will replace all found strings, but the user must confirm each substitution, without an option CUTE will replace the first occurrence, example: “:s/true/TRUE gc”
exit CUTE
same as above
save current file
same as above
open given file, example “:e /home/heiko/CUTE/cute.cpp”
same as above
save all files and exit
same as above
close current file
change current directory, example “:cd /home/heiko/CUTE”
insert given integer value as character at current cursor position, example “:char 190”, will insert 3/4 char