Skip to content

Filter Reference

Peter Johnson edited this page Dec 3, 2022 · 9 revisions

Filter Reference

⚠️⚠️ THIS WIKI IS BEING USED TO JOT DOWN IDEAS AT PRESENT. DON'T ASSUME ANYTHING IS FIXED. ⚠️⚠️

Filters take output piped to them from the left in a placeholder statement, process the data and pipe the output to the right. The first filter in a chain gets its input from the source element of the placeholder. The placeholder returns the output of last filter in the chain, if necessary converted to text.

Each filter takes data of one or more data types and output the data in (potentially) other data types.

Internally, filters are implemented as commands that take one parameter, the input, and return the output. For this reason any @ command that takes a sole parameter can also act as a filter.

Data types ending in "ish" mean that either the data type or a value that can be converted to the type are accepted. For example "numberish" means either a number or something else that is then converted to a number, say a text value or "1.5".

Note that all data types are "textish" because they can always be rendered as text. Whether that value is meaningful or not is another matter!

Filter Descriptions

💭 Add Ons

Enable new filters to be added using Python?

Clone this wiki locally