Make great documentation goal 1.2, and plan the README's reorganisation and the nested-template gaps #33

Open
lilleman wants to merge 966 commits from worktree-todo-relative-dates-exact-counts into main
Showing only changes of commit 8d5c7e0adf - Show all commits
+7 -4
View File
@@ -114,7 +114,7 @@ func (f *readFold) reads(n node) []pathRead {
out = append(out, f.reads(it)...) out = append(out, f.reads(it)...)
} }
case *template: case *template:
if n.repeat > 1 { if repeats(n) {
break break
} }
for _, e := range renderEdges(n) { for _, e := range renderEdges(n) {
@@ -194,14 +194,17 @@ func pinBelow(reads []pathRead, tr *tableRead) []pathRead {
return kept return kept
} }
// rowReads is what the rows of t read through the columns its format renders. A format reaching // rowReads is what the rows of t read: the cells of the columns its format renders, each tagged
// its own cells through another category is checkOwnFamily's refusal, which runs first. // with its row, and the format's other reads, which every row shares. A format reaching its own
// cells through another category is checkOwnFamily's refusal, which runs first.
func (f *readFold) rowReads(t *table, tag func(*surveyAt, int) bool) []pathRead { func (f *readFold) rowReads(t *table, tag func(*surveyAt, int) bool) []pathRead {
var out []pathRead var out []pathRead
for _, e := range renderEdges(t.formatTemplate) { for _, e := range renderEdges(t.formatTemplate) {
if c, isColumn := e.to.(*tableColumn); isColumn { if c, isColumn := e.to.(*tableColumn); isColumn && !e.readsRef() {
out = append(out, f.cellReads(c, tag)...) out = append(out, f.cellReads(c, tag)...)
continue
} }
out = append(out, f.viaEdge(t.formatTemplate, e, surveyRoute{})...)
} }
return out return out
} }