Filters

TEA Manual
Prev | Chapter 9. Functions | Next

# 9.18. Filters

Extract at the each line - extracts some text bewteen two delimeters, at the each line. The first and the second separators must be written into the Famous text entry in the form such as: first_delimeter~last delimeter. For example, the text is:

    g_print ("hello\n");
    g_print ("world\n");

We put the "~" (double quotes, tilde, double) template into the famous text entry. Select the text and apply this function. After that you shall have as the result:

    hello\n
    world\n

Extract at the each line before a separator and Extract at the each line after a separator - a custom case of the previous function. But here is only one delimeter is used in the Famous text entry. For example, to cut off all comments in the C++-like text, you can set // as the delimeter value and use the Extract at the each line before a separator function.

Kill lines with a phrase. Select a text. Enter some phrase into the Famous text entry. Apply this function. As a result, all lines containing your phrase will be deleted from the selection.

Kill all lines except with a phrase. Select some text. Enter some phrase into the famous text entry. Apply this function. As a result, all lines without your phrase will be deleted from the selection.

Kill all lines < N characters - Kill in the selection all lines smaller than N (value in the Famous text entry) characters.

Kill all lines > N characters - Kill in the selection all lines smaller than N (value in the Famous text entry) characters.

Prev | Home | Next
Sort | Up | Morse code