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 230faf58a8 - Show all commits
+5
View File
@@ -48,10 +48,15 @@ type Category struct {
// ReadRows reads a rows file beside the category.
func (c Category) ReadRows(name string) (string, error) { return c.rows.read(name) }
// labelled is the file p as errors name it: under the source's label, as the labelled tree
// spells it, below any mount.
func (s Source) labelled(p string) string {
if s.label == "" {
return p
}
if m, isMounted := s.fsys.(mounted); isMounted {
p, _ = m.inner(p)
}
return path.Join(s.label, p)
}