kaspiana / mage

A command-line tool for cataloguing images (particularly digital art), styled after Git.
0 stars 0 forks source link

Parameterised tags in queries #23

Open kaspiana opened 3 months ago

kaspiana commented 3 months ago

Dependent on #15

It should be possible to query for documents based on the parameters of their parameterised tags.

mage search "chars(>2)" # find all documents with more than two characters

To implement this: rather than manipulating tuples (documentID, tagID), we can use (documentID, tagID, param), with param = null for non-parameterised tags.