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:
- a
- b
- smoke
- take
- hold
- retake
- flash
- long
- mid
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 with smoke, a and retake
.throw smoke|a would throw any saved nades that are categorised with either smoke or a
.throw smoke&b|smoke&a would throw any saved nades that are categorised with either smoke and a or smoke and 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.
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&retakewould throw any saved nades that are categorised withsmoke,aandretake.throw smoke|awould throw any saved nades that are categorised with eithersmokeora.throw smoke&b|smoke&awould throw any saved nades that are categorised with eithersmokeandaorsmokeandbIs 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.