kaspiana / mage

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

Tag queries #20

Closed kaspiana closed 3 months ago

kaspiana commented 3 months ago

Resolves #13

This implements a small predicate-based query language to search for documents through their tags. The results of queries are reflected in a new view.


mage search "rose_lalonde" # tagged with rose_lalonde
mage search "-kanaya_maryam" # not tagged with dirk_strider
mage search "rose_lalonde kanaya_maryam" # tagged with both
mage search "rose_lalonde OR kanaya_maryam" # tagged with either
mage search "vriska_serket OR (rose_lalonde kanaya_maryam)" # syntactic grouping

Not implemented: