Columns
Here you define the columns, as they are will be appeared in Total Commander.
<columns> <column name="ColumnName" coltype="ColumnOutputType">SourceName</column> <column name="ColumnName" type="template">SourceName1 any text SourceName2 SourceNameN</column> <separator/> <column name="ColumnName" type="list" list="ListName">SourceName</column> <column name="ColumnName" type="script">{script text}</column> <column name="ColumnName" type="script"> <![CDATA[ {script text} ]]> </column> <column name="ColumnName"> <unit name="UnitName">SourceName</unit> </column> </columns>
Each <column> node can have attributes:
ColumnName - name (usually english, in order it can be translated with standard Total Commander language file) of column, as this will be appeared in Total Commander.
type=«<single|template|list|script>» - defining, how to treat the node text.
name | Name (usually english, in order it can be translated with standard Total Commander language file) of column, as this will be appeared in Total Commander. |
type | Defining, how to treat the node text. Can be one of: single - the node text is name of source itself. template - simple template, source names in this text will be replaced by their values. list - value of source will be searched in list and replaced by some value, if found (refer to Replace lists page) script - script, written on the embedded scripting language (refer to Overview page). If this attribute is omitted, text is treated as simple source name (single). |
coltype | (optional) - type of column's output value. It is used to TC's format the date, as well as for the possibility of numerical comparison with the value of the column (where applicable, for example, when searching). Supported types: ft_string, ft_numeric_32, ft_numeric_64, ft_numeric_floating, ft_datetime, ft_date, ft_time. If omitted, ft_stringw will be used (ft_string on ANSI). |
Text of node can be wrapped to CDATA section. It's recommend for scripts, in order to not convert special symbols, it also useful for multiline scripts.
<column> node also can contain <unit> subnodes (units). They are handling the same as columns and can have the same attributes. Attribute coltype can be used for override the unit type, but this will work only when displayed on the TC panel. In the search dialogs, the type specified for the column will be used.
Also, you can place <separator/> node between columns, this will appear as separator in Total Commander's menu.