pather icon indicating copy to clipboard operation
pather copied to clipboard

Allow multiple values for a single key in `ls(include)`

Open BigRoy opened this issue 10 years ago • 0 comments

Goal

If you'd want to filter to a subset of multiple values for a single key you'd currently have to perform multiple queries. Or a single larger query filtering the results afterwards.

Preferrably we would allow multiple values to be passed in and to be used during the globbing.

Example

For example allowing a tuple to be passed in as value. Here I'm filtering the family key to only allow model or rig in the subset.

ls("{family}/{data}", include={"family": ("model", "rig")})

This would similarly be of interest (or even more be of interest?) to exclude as proposed in #5.

BigRoy avatar Aug 30 '15 20:08 BigRoy