sampsyo/beets — pull request #22 by phmongeau (2012-03-01 00:27:41+00:00)
Title: Add format option the the list command

I added a format option to the `beet list` command using the same syntax as the path_format.

Example: `$ beet ls -f '$title - $album'`

There is just a little problem with the use of the `$` character. If it is used outside of single quotes it as to be escaped. So you would have to do `$ beet ls -f "\$title - \$album"` if you wanted to use it in double quotes.

Also, the way I pass items and albums value to Template.substitute might be a little bit hacky, If you think there's a better way, please tell me.