We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm thinking of opening a PR to add a method to filter on multiple categories when using .throw.
.throw
My idea is to add two boolean operators & (AND) and | (OR) that can be used when filtering categories.
&
|
We would like to categorise our nades with categories such as:
Then it would be nice to be able to throw all smokes to retake A by combining the categories.
.throw smoke&a&retake would throw any saved nades that are categorised with smoke, a and retake
.throw smoke&a&retake
smoke
a
retake
.throw smoke|a would throw any saved nades that are categorised with either smoke or a
.throw smoke|a
.throw smoke&b|smoke&a would throw any saved nades that are categorised with either smoke and a or smoke and b
.throw smoke&b|smoke&a
b
Is this something that you would be open to merging?
I'm still not fully decided on adding both AND and OR, I can't think of very many usecases for OR so I might only add AND to start with.
It would be a breaking change for anyone currently using & or | in their category names, but I don't expect many people to do so.
The text was updated successfully, but these errors were encountered:
Agreed.
Also agreed. It might be worth a cvar to disable the behavior, just in case someone is using them.
Sure, as long as the implementation is relatively straightforward, and I think it should be.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
I'm thinking of opening a PR to add a method to filter on multiple categories when using
.throw
.My idea is to add two boolean operators
&
(AND) and|
(OR) that can be used when filtering categories.Use-case:
We would like to categorise our nades with categories such as:
etc...
Then it would be nice to be able to throw all smokes to retake A by combining the categories.
For example:
.throw smoke&a&retake
would throw any saved nades that are categorised withsmoke
,a
andretake
.throw smoke|a
would throw any saved nades that are categorised with eithersmoke
ora
.throw smoke&b|smoke&a
would throw any saved nades that are categorised with eithersmoke
anda
orsmoke
andb
Is this something that you would be open to merging?
I'm still not fully decided on adding both AND and OR, I can't think of very many usecases for OR so I might only add AND to start with.
It would be a breaking change for anyone currently using
&
or|
in their category names, but I don't expect many people to do so.The text was updated successfully, but these errors were encountered: