You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to change the format used by mpc to also include the '%position%' format specifier when performing mpc playlist in order to be able to use mpc play <position>. This can be achieved by setting the MPC_FORMAT environment variable to something along the lines %position%: [[[%artist% - ]&[%title%]]|[%file%]].
Unfortunately, doing so breaks the mpc ls | mpc add combination as mpc ls will also pickup this format. If MPC_FORMAT is unset a different default format seems to be used for mpc playlist and mpc ls.
I would suggest one of the following solutions:
Always ignoring MPC_FORMAT in mpc ls
Allowing the specification of custom format string on a per-subcommand basis (e.g. MPC_FORMAT_LS, MPC_FORMAT_PLAYLIST, MPC_FORMAT_CUR, …)
Making mpc ls default to format %file% when standard out is not a tty.
The text was updated successfully, but these errors were encountered:
On 2018/10/15 21:22, nmeum ***@***.***> wrote:
Ok I get it. `mpc ls|mpc add` can simply be replaced by `mpc add /` but what about `mpc search artist foo | mpc add`?
I would like to change the format used by mpc to also include the
'%position%'
format specifier when performingmpc playlist
in order to be able to usempc play <position>
. This can be achieved by setting theMPC_FORMAT
environment variable to something along the lines%position%: [[[%artist% - ]&[%title%]]|[%file%]]
.Unfortunately, doing so breaks the
mpc ls | mpc add
combination asmpc ls
will also pickup this format. IfMPC_FORMAT
is unset a different default format seems to be used formpc playlist
andmpc ls
.I would suggest one of the following solutions:
MPC_FORMAT
inmpc ls
MPC_FORMAT_LS
,MPC_FORMAT_PLAYLIST
,MPC_FORMAT_CUR
, …)mpc ls
default to format%file%
when standard out is not a tty.The text was updated successfully, but these errors were encountered: