philomena-dev / philomena

Next-generation imageboard
GNU Affero General Public License v3.0
90 stars 32 forks source link

Add option to create complex watch/spoiler/hide expression straight from tag list under an image #121

Closed HushedFox closed 3 months ago

HushedFox commented 3 years ago

Is your feature request related to a problem? Please describe. Adding complex expressions is not so easily available as doing this for single tags. When I see image with a theme described with more than one tag (e.g. I want to see more of the character astra but only when they are fluffy and solo (astra AND fluffy AND solo) or I don't want to see those), I can't add such expression straight from the image I spotted with that theme. This

Describe the solution you'd like Add a button that would start the process of creating complex watch/spoiler/hide expressions from list of tags under an image:

image

Now there would be an option to select tags by clicking on them and they would automatically be added to an expression:

image

Maybe this could also provide abbility to add things different than AND, that is OR or NOT

image

But "OR" will need brackets to work properly. So maybe just AND and NOT? It's easy to edit it later in the text box but maybe idk, for mobile users?

Anyway, after clicking on save the expression would be added as a new line to either complex watch or complex spoiler or complex hide.

Meow commented 3 months ago

Not really feasible to implement considering our planned updates to the tag editor and the tagbox. Could perhaps be a userscript, though.