Open bartkl opened 8 years ago
This is actually true of all beets queries -- it's not specific to the remove
command. Here's what's going on: beets queries are joined by a boolean "AND" by default, so you can type stuff like this:
beet ls beatles white
to quickly get at the White Album. Then, as a convenience, beets will automatically detect path query components, so typing this:
beet ls /foo/bar
is equivalent to typing:
beet ls path:/foo/bar
but faster.
Put both of these together, and the query you ran finds albums that are located in path A and in path B, which is of course nothing.
I'm not exactly sure what the right resolution here. We could say, for example, that the idea behind the "automatic path query" deal is to emulate ordinary path-based CLIs. Then it would be logical to add a special rule that, if all of a query's components are paths, join them with boolean "or" instead by default. Would that make sense to you?
Sounds like a perfect solution to me!
Thanks On May 24, 2016 7:20 PM, "Adrian Sampson" notifications@github.com wrote:
This is actually true of all beets queries -- it's not specific to the remove command. Here's what's going on: beets queries are joined by a boolean "AND" by default, so you can type stuff like this:
beet ls beatles white
to quickly get at the White Album. Then, as a convenience, beets will automatically detect path query components, so typing this:
beet ls /foo/bar
is equivalent to typing:
beet ls path:/foo/bar
but faster.
Put both of these together, and the query you ran finds albums that are located in path A and in path B, which is of course nothing.
I'm not exactly sure what the right resolution here. We could say, for example, that the idea behind the "automatic path query" deal is to emulate ordinary path-based CLIs. Then it would be logical to add a special rule that, if all of a query's components are paths, join them with boolean "or" instead by default. Would that make sense to you?
— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/beetbox/beets/issues/2009#issuecomment-221340484
Cool! Changed the title to reflect that intent.
beet rm -d
supports only removal of one album at the time when passing dirpathsRunning this command in verbose (
-vv
) mode:Led to this problem:
Passing a single path argument works just fine:
Result:
Would come in handy if this got fixed, since sometimes good ol' bash globbing and TAB completion beats querying in terms of ease of use.
Thanks!
Setup
My configuration (output of
beet config
) is: