better proposed syntax for filename derived metadata

This commit is contained in:
Joey Hess 2014-02-20 13:04:57 -04:00
parent a1c28de86d
commit bbb7440162
Failed to extract signature

View file

@ -72,9 +72,9 @@ metadata is derived, at least year=yyyy and probably also month, etc.
TODO From the original filename used in the master branch, when TODO From the original filename used in the master branch, when
constructing a view, generate fields. For example foo/bar/baz.mp3 constructing a view, generate fields. For example foo/bar/baz.mp3
would get under:foo=bar, under:foo/bar=baz, and ext=mp3. would get /=foo, /foo=bar, /foo/bar=baz, and .=mp3.
Note that under:dir=subdir allows a view to use `under:dir=*` and only Note that /dir=subdir allows a view to use `/dir=*` and only
match one level of subdirs with the glob. So is better than dir=foo/bar match one level of subdirs with the glob. So is better than dir=foo/bar
as the metadata. (Alternatively, could do special glob matching.) as the metadata. (Alternatively, could do special glob matching.)