Commit graph

3 commits

Author SHA1 Message Date
James R
01e7c48630 Lua tag lists
Index and take length of tag lists like a table, 1-indexed. There are three
methods which may be used on tag lists:

list:iterate() - returns an iterator over the tags in the list
list:has(tag) - returns a boolean whether the tag is in the list
list.shares(list2) - returns whether two lists share a tag

"find" is also an alias to "has". Each method may be accessed from the global
taglist library too, e.g. taglist.iterate(list)

Tag lists may be compared with an equality operator too. This will tell you if
the two lists are composed of identical tags.

Accessible from sector.taglist, line.taglist and mapthing.taglist.
2020-12-04 13:53:27 -08:00
James R
3c0c15f28c Mkae Lua taggroups indexable
They are 1-indexed.
2020-12-04 04:54:12 -08:00
James R
4cf8e32135 hehehehehe what if I forgot to git add? 2020-12-04 02:27:46 -08:00