vikus-viewer icon indicating copy to clipboard operation
vikus-viewer copied to clipboard

Feature request: Operators "NOT" and "OR" for keywords

Open ch-sander opened this issue 2 years ago • 2 comments

How much work, do you think, it would be add to the Vikus viewer a second and identical keywords bar that has the operator NOT built in. So, hitting a keyword there will exclude all items having the keyword -- instead of hiding all items that don't have the respective keyword (as it works now). The two bars don't necessarily need to work in combination but one could just add a toggle for the operator "NOT". And the same would also work for "OR". This would make visual exploration much more powerful.

ch-sander avatar Apr 29 '22 16:04 ch-sander

That is an interesting idea. What about a 3 way switch for the keywords (and/or/not) as a first step. One "Feature" to keep in mind is that right now the keywords are boiled down to not overlap (or be too wide/many). The keywordlist is sorted after counts and then cutoff in order to fit nicely in the viewport. When discussing such a special feature, we should make sure that we get the result we want. So in this case, we want the keyword list act like a visual searchinput using "AND OR NOT" by separating them in lists.

cpietsch avatar Apr 30 '22 15:04 cpietsch

Great! As for the visual part and the UI: I fully trust in your and others' expertise! For the logic: If I am not mistaken, narrowing down the tags after each selection only makes sense for "AND" but not for "OR". Maybe a 2x2 matrix would be the best: AND/OR and NOT/IS ("IS" being the default setting). If OR is toggled, all keywords can be selected, on AND they narrow down after each selection. But I am not a specialist here and maybe fail to express myself clearly enough. I also asked @hassanhajj910 to look into this.

ch-sander avatar Apr 30 '22 16:04 ch-sander