cmus/cmus — pull request #151 by pavel-belikov (2014-07-30 10:09:50+00:00)
Title: Add conditionals in format strings

Idea from #150. Syntax `%{if COND then A [else B] }`.
I used `expr.c` for parsing. `format_print.c` was heavily modified. It uses `gbuf` now: I think, that it is more convenient.
Id's in `COND` can be options. Any unknown id is `false`.
Id `stream` checks if `is_http_url( %{filename} )`.
I haven't changed/removed/added default formats yet.