Skip to content
Discussion options

You must be logged in to vote

There is no join argument. opensak.filter{} builds a new filter from the keys you pass (combined with AND, or OR with mode) and applies it; it does not extend the active one. You can get the same result in two steps, because opensak.codes() returns the GC codes of the caches in the active filter, and opensak.filter{} has a codes key ("exactly these GC codes") that is ANDed with the other keys:

local current = opensak.codes()   -- caches of the active filter
local n = opensak.filter{ codes = current, corrected = true, label = "Filter + corrected" }
print(n)                          -- 0: nothing matched, the view is unchanged

corrected = true is the filter key for caches with corrected coo…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@GeePa67
Comment options

Answer selected by GeePa67
Comment options

You must be logged in to vote
1 reply
@zuhairhalawa
Comment options

Comment options

You must be logged in to vote
1 reply
@GeePa67
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
FAQ
Labels
None yet
3 participants