Now you perfectly know how to tag files and retrieve them by complex queries. What you may ask now is: how do I know what tags have been applied to a file?
This is somehow the complementary question to: what files are tagged as X and Y? The query syntax allows you to answer to this kind of questions, but does not answer to the first one. Hence Tagsistant provides you with a feature called tag suffix which is a string you can append to any object in a complete query to automagically create a file containing all the tags applied to that object. The default tags suffix is ".tags", but you can change it from the command line if you think this will conflict with your files. Let's see how it works:
$ cp ~/somefile.txt ~/myfiles/store/t1/t2/@@/ [ ... some time later ... ] $ cp ~/somefile.txt ~/myfiles/store/t6/t7/@@/ [ ... some days later ... ] $ cat ~/myfiles/store/t6/@@/somefile.txt.tags t1 t2 t6 t7 document:type=text
This feature works for files, directories, symlinks and any other kind of object supported by Tagsistant. Tags suffixed files do not get listed in normal queries to avoid hogging up your results, but you know you can make them appear whenever you need them.