Answer prose round 1: name the parent after .., mark the step down as the one exception to the shared draw, and plainer errors

This commit is contained in:
2026-10-05 00:18:46 +02:00
committed by Lillem4n
parent 406232e8f9
commit ec1dcbf9d3
8 changed files with 26 additions and 22 deletions
+7 -6
View File
@@ -552,7 +552,8 @@ A path descends from a row to a linked table by name, at any depth, and `--list`
advertises each direct step. Within one render and [draw group](#draw-group), linked
tables agree: the first table a reference path reads pins its ancestors, and a
descendant read after it is drawn inside them, so `{/city.name}` and
`{/country.name}` are a city and its country whichever is read first. A selected row
`{/country.name}` are a city and its country whichever is read first, except a step down
after a `..` ([Step up](#step-up)). A selected row
pins the render the same way, so every reference path into one family of linked
tables in one render and group selects the same rows: one that selects none beside
one that does is refused naming the spelling that does, `{/country[SE].city.name}`
@@ -574,8 +575,8 @@ or the reference draws it.
### Step up
`..` after a row steps up to the row its link column names, and the parent table's name
follows it, as a folder's does in a filesystem path:
`..` after a row steps up to the row its link column names. Name the parent table right
after the `..`:
```sh
fejkdata -d ./mydata 'city[Oslo]..country.name' # Norway
@@ -585,11 +586,11 @@ fejkdata -d ./mydata '{/city as c}{c}, {c..country.name}' # Oslo, Norway
```
It steps up from a selected row, a drawn row or a [name](#names) bound to a row, one level
per `..`: `{l..municipality..region.name}`. `.country` after a row still reads the link
per `..`: `geo.SE.locality..municipality..region.name`. `.country` after a row still reads the link
column's cell, `NO`.
After a `..`, `.` steps down again, drawing afresh inside the row stepped up to,
independent of the row the path stepped up from, which it may draw again. Paths stepping down from one `..` read one draw, as one
After a `..`, `.` steps down again and draws afresh inside the row stepped up to, so
`city[Göteborg]..country.city` may draw Göteborg again. Paths stepping down from one `..` read one draw, as one
reference path does: `{/city..country.city.name}` and `{/city..country.city.population}`
describe one city, within a render and [draw group](#draw-group), or within a name's pick.