WeakAuras

WeakAuras

200M Downloads

Allow Search to filter for Multiple Queries

ljosberinn opened this issue ยท 0 comments

commented

Is your feature request related to a problem? Please describe.
I have multiple spec packs imported, around 1600 auras in total. While maintaining I often jump between different auras, copying individual properties such as e.g. Text 2 offsets from one aura to another as copying Display in general would be too much.

I can do that currently by filtering for e.g. fittest to find my Survival of the Fittest aura and then scales to jump to Obsidian Scales, remembering the values I was looking for.

Describe the solution you'd like
Being able to show results from both queries in some way would be handy, e.g. by allowing fittest|scales. Then I can just swap between them all the time.

A naive and unperformant implementation in WeakAurasOptions > OptionsPrivate.SortDisplayButtons:

    if useTextFilter then
      for word in string.gmatch(filter, '([^|]+)') do
        if word then
          if(id:lower():find(word, 1, true)) then
            aurasMatchingFilter[id] = true
            for parent in OptionsPrivate.Private.TraverseParents(child.data) do
              aurasMatchingFilter[parent.id] = true
            end
          end
        end
      end
    else
      aurasMatchingFilter[id] = true
    end

has this working:
image

Additional context
Some auras probably use the example | so maybe just a ;? You'll know best