kaspiana / mage

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

Pseudo-tags in queries #24

Closed kaspiana closed 3 months ago

kaspiana commented 3 months ago

It should be possible to query for documents based on non-tag metadata such as the ingestion date or the format of the file.

mage search "comment('vriska')" # find all documents with a comment containing 'vriska'
mage search "date(>2024)" # find all documents ingested after 2024
mage search "format('image/jpeg')" # find all jpegs
mage search "id(250)" # get document /250

Since these apply document-wide, it may ultimately be simple to filter out documents in subtables without considering tags at all?