Identifying Columns
The following formats are avaialble for specifying which columns to manipulate.
These patterns are recognised by all commands that manipulate columns in some way.
| Format | In Words | Description |
|---|---|---|
| {name} | a column name |
Selects a column by its name or position. psv first attempts to match the name against the table's column names. If no column names match and {name} is a number, then the number will be used as described for .{number} below. This behaviour is expected be suitable for most situations. Ambiguous column identification can be overcome via the following alternatives. |
| first | the word first |
selects the left-most column of a table. Tip the first keyword is implied to mean before first when used as the last argument to the put, move or insert commands. |
| last | the word last |
selects the right-most column of a table. Tip the last keyword is implied to mean after last when used as the last argument to the put, move or insert commands. |
| before | the word before |
The before keyword indicates that the next argument will be the name of a target column, before which the command's action should take place. Specifically:
e.g. psv put todo before done will
move or insert the |
| after | the word after |
The after keyword indicates that the next argument will be the name of a target column, after which the command's action should take place. Specifically:
e.g. psv put todo after done will
move or insert the |
| :{name} | colon {name} |
Selects a column exclusively by its name. Even if name is a number, it will not be used as a column's position. :first, :last, :config etc. should be used to identify columns with names that would otherwise match psv keywords. |
| .{number} | dot {number} |
selects a column exclusively by its position, starting with 1 for the left-most column. |